* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: sans-serif;
  color: #333;
}

.navbar {
  border-bottom: 2px solid #333;
  text-align: center;
  padding: 10px;
}

.info-bar {
  display: flex;
  justify-content: center;
  height: 40px;
  align-items: center;
}

.scoreboard {
  display: grid;
  grid-template-columns: repeat(5, 45px);
  gap: 10px;
  justify-content: center;
  margin: 10px auto;
}

.scoreboard-letter {
  width: 45px;
  height: 45px;
  border: 3px solid #ccc;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: bold;
  text-transform: uppercase;
}

/* Colores que usaremos luego */
.correct {
  background: darkgreen;
  color: white;
}
.close {
  background: goldenrod;
  color: white;
}
.wrong {
  background: #888;
  color: white;
}
.invalid {
  animation: flash 1s;
}

@keyframes flash {
  5% {
    border-color: crimson;
  }
  100% {
    border-color: #ccc;
  }
}

/* Loading */
.spiral {
  font-size: 30px;
  animation: spin 1.5s linear infinite;
}
.hidden {
  visibility: hidden;
}

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

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

@keyframes rainbow {
  0% {
    color: red;
  }
  14% {
    color: orange;
  }
  28% {
    color: gold;
  }
  42% {
    color: green;
  }
  57% {
    color: blue;
  }
  71% {
    color: indigo;
  }
  85% {
    color: violet;
  }
  100% {
    color: red;
  }
}
