*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
  font-size: 20px;
  background: rgb(38, 20, 74);
  background: linear-gradient(90deg, rgba(38, 20, 74, 1) 0%, rgba(37, 125, 203, 1) 100%);
  color: #ccc;
}

header,
section, p.game-message {
  width: 75%;
  margin: 1rem auto;
  text-align: center;
}

section#grid {
  width: min(75%, 750px);
  height: 100vh;
  display: grid;
  grid-template-rows: repeat(6, 1fr);
  gap: 0.3rem;
}

div.row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.3rem;
}

.letter-input {
  background-color: rgba(20, 2, 54, 1);
  border: 2px solid #ccc;
  border-radius: 3px;
  display: block;
  width: 100%;
  height: 100%;
  padding-top: 1rem;
  font-size: 70px;
  color: white;
  font-weight: bold;
}

.letter-input.wrong {
  background-color: #777;
}

.letter-input.close {
  background-color: rgb(245, 198, 98);
  color: #333;
}

.letter-input.correct {
  background-color: rgb(89, 150, 65);
}

.invalid {
  border: 2px solid red;
}

.hidden {
  visibility: hidden;
}

div.spinner {
  font-size: 40px;
  animation: spin 2s linear infinite;
}

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

/*** mobile view ***/
@media screen and (max-width: 800px) {
  section#grid {
    width: 90%;
  }

  .letter-input {
    padding-top: 0.6rem;
    font-size: 50px;
  }
}