* {
    box-sizing: border-box;
}


body {
    color: #333;
    margin: 0;
    padding: 0;
    overflow: hidden;
    font-family: Arial, Helvetica, sans-serif;
}

.welcome-message {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
    color: white;
    background-color: rgba(97, 44, 44, 0.8);
    padding: 2rem 3rem;
    border-radius: 1rem;
    z-index: 9999;
    opacity: 1;
    transition: opacity 1s ease-in-out;
    text-align: center;
    pointer-events: none;
}

.title {
    margin-top: 3rem;
    text-align: center;

}

.brand {
    font-size: 2rem;
    font-weight: 700;
    text-decoration: dotted;
    color: #6c6666;
}

.scoreboard {
    max-width: 295px;
    padding: 2px;
    width: 100%;
    margin: 10px auto;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
    row-gap: 10px;
    column-gap: 5px;
}

.scoreboard-letter {
    box-shadow: 2px 2px 7px #918989e3;
    height: 45px;
    width: 45px;
    font-size: 30px;
    color: #333;
    text-transform: uppercase;
    border: 3px solid #ccc;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2px;
}

.correct {
    background-color: darkgreen;
    color: white;
}

.close {
    background-color: goldenrod;
    color: white;
}

.wrong {
    background-color: #888;
    color: white;
}

.invalid {
    animation: flash 1s;
}

/* flashes red border and then fades back to gray */
@keyframes flash {
    5% {
        border-color: crimson;
    }

    100% {
        border-color: #ccc;
    }
}



.spiral {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: conic-gradient(#6334db 10%, transparent 10%);
    animation: spin 1s linear infinite;
    box-shadow: 0 0 8px rgba(134, 63, 164, 0.759);
    margin-block: 16px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* rotates clockwise indefinitely */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* visibility hidden means the item is still there and taking up space
   but just not shown. display: none doesn't take up space */

.info-bar {
    visibility: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.show {
    visibility: visible;
}


/* winner animation */

@keyframes rainbow {

    100%,
    0% {
        color: rgb(255, 0, 0);
    }

    8% {
        color: rgb(255, 127, 0);
    }

    16% {
        color: rgb(255, 255, 0);
    }

    25% {
        color: rgb(127, 255, 0);
    }

    33% {
        color: rgb(0, 255, 0);
    }

    41% {
        color: rgb(0, 255, 127);
    }

    50% {
        color: rgb(0, 255, 255);
    }

    58% {
        color: rgb(0, 127, 255);
    }

    66% {
        color: rgb(0, 0, 255);
    }

    75% {
        color: rgb(127, 0, 255);
    }

    83% {
        color: rgb(255, 0, 255);
    }

    91% {
        color: rgb(255, 0, 127);
    }
}

.winner {
    animation: rainbow 4s infinite linear;
}