*{
    box-sizing: border-box;
}
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell,
    'Open Sans', 'Helvetica Neue', sans-serif;
    color: #333;
    margin: 0;
    padding: 0;
}
.nav-bar {
    border-bottom: 2px solid #333;
    padding: 15px;
    text-align: center;
    margin-bottom: 0;
}
.brand {
    font-size: 30px;
}
.scoreboard {
    max-width: 300px;
    width: 100%;
    margin: 10px auto;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    row-gap: 10px;
    column-gap: 5px;
}
.scoreboard-letter {
    height: 50px;
    width: 50px;
    border: 3px solid #ccc;
    font-size: 30px;
    text-transform: uppercase;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    color: black
}
.info-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 10px;
}
.spiral {
    font-size: 40px;
    animation: spin 1.5s linear infinite;
}
.invalid {
    animation: flash 1s;
}
/* rotates clockwise indefinitely*/
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

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

@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;
}
/* visibility hidden means the item is still there and taking up space 
    but just not shown. display: none doesn't take up space */
.hidden {
    visibility: hidden;
}
.correct {
    background-color: darkgreen;
}
.close {
    background-color: goldenrod;
}
.wrong {
    background-color: #888;
}
.correct, .close, .wrong {
    color: white;
}