html {
  font-family: Helvetica, sans-serif;
  font-weight: 800;
}

body {
  margin: 0;
  display: flex;
  justify-content: center;
}

main {
  width: 90%;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100vh;
}

.answer {
  background-color: black;
  color: white;
  width: 20%;
  min-width: 160px;
  max-width: 180px;
  height: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 5px;
  position: absolute;
  top: 80px;
}

.invalido {
  background-color: black;
  color: white;
  width: 25%;
  min-width: 160px;
  max-width: 200px;
  height: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 5px;
  position: absolute;
  top: 80px;
  opacity: 0;
}

.show {
  animation: displayBriefly 3s forwards;
}

@keyframes displayBriefly {
  0% {opacity: 0;}
  5% {opacity: 1;}
  50% {opacity: 1;}
  100%  {opacity: 0;}
}

.instructions {
  position: absolute;
  top: -100vh;
  background: white;
  height: 100vh;
  max-width: 600px;
  font-weight: 400;
  z-index: -1;
  padding: 15px;
  opacity: 0;
}

.drop-down {
  z-index: 1;
  animation: drop .6s forwards;
}

.up {
  animation: up .6s forwards;
}

@keyframes drop {
  0% {
    top: -100vh;
    opacity: 0;
  }
  100% {
    top: 0;
    opacity: 1;
  }
}

@keyframes up {
  0% {
    z-index: 1;
    top: 0;
    opacity: 1;
  }
  100% {
    z-index: -1;
    top: -100vh;
    opacity: 0;
  }
}

.instructions__header {
  display: flex;
  justify-content: space-between;
  height: 30px;
  margin-top: 10px;
}

.instructions__title {
  font-weight: bold;
}

.example-row {
  display: flex;
}

header {
  width: 100%;
  max-width: 450px;
  padding-top: 10px;
  height: 30px;
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid rgb(209, 209, 209);
}

.board {
  width: 90%;
  max-width: 250px;
  height: 50vh;
  /* max-height: 320px;
  min-height: 200px; */
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.game-row {
  height: 7.8vh;
  /* max-height: 60px;
  min-height: 45px; */
  display: flex;
  justify-content: space-between;
}

.game-square {
  width: 17%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 28px;
  border: 2px solid  #D3D6DA;
}

.keyboard {
  margin-top: 2vh;
  height: 30vh;
  width: 95%;
  max-width: 600px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  position: absolute;
  bottom: 3%;
}

.keyboard-row {
  width: 100%;
  height: 9.4vh;
  gap: 0.5%;
  display: flex;
  justify-content: space-between;
}

.kb-row-2 {
  max-width: 90%;
}

.key {
  background-color: #D3D6DA;
  color: black;
  text-align: center;
  flex-grow: 1;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.grey {
  background-color: #787C7E;
  color: white;
  border: 2px solid #787C7E;
}

.yellow {
  background-color: #C9B458;
  color: white;
  border: 2px solid #C9B458;
}

.green {
  background-color: #6AAA64;
  color: white;
  border: 2px solid #6AAA64;
}

.example-row {
  width: 50%;
  font-weight: 800;
}

.ex-square {
  width: 17%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 28px;
  border: 2px solid  #D3D6DA;
}

#close-instructions {
  cursor: pointer;
}

#show-instructions {
  cursor: pointer;
}

.hidden {
  display: none;
}

@keyframes fadeout {
  from {opacity: 1}
  to {opacity: 0}
}

@keyframes fadein {
  from {opacity: 0}
  to {opacity: 1}
}