*{
    box-sizing: border-box;
}
body{
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

.bage{
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.header{
    font-size: 50px;
    font-family: sans-serif;
    font-weight: 600;
    display: flex;
    justify-content: center;
    padding-bottom: 35px;
    border-bottom: black 3px solid;
}

.game-area{
    padding-top: 60px;
}
.word-row{
    display: flex;
    justify-content: center;
}

.letter-field{
    width: 90px;
    height: 90px;
    border: solid rgb(205, 205, 205) 5px;
    margin: 10px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bolder;
    font-size:55px;
    
}


.spiral {
    font-size: 50px;
    animation: spin 1.5s linear infinite;

  }
  
  /* 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 */
  .hidden {
    visibility: hidden;
  }
  
  .info-bar {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
@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;
  }

  .correct {
    background-color: darkgreen;
    color: white;
  }
  
  .close {
    background-color: goldenrod;
    color: white;
  }
  
  .wrong {
    background-color: #888;
    color: white; 
  }
  
  .invalid {
    animation: flash 1s;
  }
  
  @keyframes flash {
    5% {
      border-color: crimson;
    }
  
    100% {
      border-color: #ccc;
    }
  }
  
