html, body {
    margin: 0;
    padding: 0;
    overflow: hidden;
    height: 100%;
    font-family: Arial, sans-serif;
}

.navbar {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #333;
    padding: 10px 20px;
    width: 100%;
    box-sizing: border-box;
}

.restart-button {
    background: linear-gradient(45deg, #6b8cff, #88d8ff);
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 16px;
    border-radius: 5px;
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: color 0.4s ease;
}

.restart-button:hover {
    color: white; /* Ensure text color stays white */
}

.restart-button:before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300%;
    height: 300%;
    background: linear-gradient(45deg, #88d8ff, #6b8cff);
    transition: all 0.5s ease;
    transform: translate(-50%, -50%) rotate(45deg) scale(0);
    border-radius: 50%;
    z-index: -1; /* Lower z-index to ensure it stays behind text */
}

.restart-button:hover:before {
    transform: translate(-50%, -50%) rotate(45deg) scale(2);
}

.restart-button span {
    position: relative;
    z-index: 2; /* Ensure text has higher z-index */
}

.restart-button:after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    z-index: 0; /* Lower z-index to ensure it stays behind text */
    transition: all 0.4s ease;
}

.restart-button:hover:after {
    left: 100%;
}

.restart-button:focus {
    outline: none;
}
