@import url("https://fonts.googleapis.com/css2?family=Ubuntu:wght@300;400;500&display=swap");

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

body {
  width: 100%;
  height: 100vh;
  margin-top: 5px;
  background: linear-gradient(
    150deg,
    #d4ff54 0,
    #a6ff48 16.67%,
    #9df29d 50%,
    #86e49d 66.67%,
    #72d89d 83.33%,
    #60ce9e 100%
  );
  font-family: "Ubuntu", sans-serif;
  background-size: 300% 300%;
  animation: gradient 10s ease alternate infinite;
}

@keyframes gradient {
  0% {
    background-position: 0 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 30% 50%;
  }
}

@keyframes transicao {
  from {
    opacity: 0;
    transform: translateX(80px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.transicao {
  animation: transicao 2.5s;
  animation-timing-function: ease-in-out;
}

@keyframes transicao2 {
  from {
    opacity: 0;
    transform: translateX(-80px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.transicao2 {
  animation: transicao2 2.5s;
  animation-timing-function: ease-in-out;
}

.container {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  flex-direction: column;
}

#imagem {
  background-image: url("../assets/img/forca01.png");
  width: 234px;
  height: 272px;
  background-repeat: no-repeat;
}

#palavra-secreta {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  font-size: 1em;
  margin-top: 5px;
}

.letras {
  width: 16px;
  text-align: center;
  border-bottom: 2px solid #000000;
  color: rgb(27, 23, 23);
  padding: 2px;
  margin-left: 2px;
  margin-right: 2px;
  font-weight: bold;
}

#teclado {
  margin-top: 20px;
}

.teclas button {
  width: 24px;
  height: 24px;
  margin: 2px;
  margin-bottom: 5px;
  cursor: pointer;
  box-shadow: 0px 2px 8px dimgray;
  border-radius: 5px;
  border: 1px solid dimgray;
  color: #000000;
  font-family: "Ubuntu", sans-serif;
  font-weight: 900;
}

.teclas button:disabled {
  cursor: not-allowed;
}

.teclas button:hover {
  transform: scale(1.05);
}

#dica {
  margin-top: 10px;
  color: #000000;
  font-size: 1em;
  font-weight: bold;
  text-align: center;
}

.rodape {
  display: flex;
  justify-content: center;
  align-items: center;
  color: rgb(0, 0, 0);
  font-weight: 600;
  border-top: #ffffff 4px solid;
  margin-top: 20px;
  padding-top: 5px;
  text-align: center;
  letter-spacing: 1px;
  font-size: 1em;
}

@media (min-width: 321px) {
  .teclas button {
    width: 25px;
    height: 25px;
  }

  #dica {
    font-size: 1.3em;
  }

  .rodape {
    font-size: 0.8em;
  }
}

@media (min-width: 376px) {
  .teclas button {
    width: 30px;
    height: 30px;
  }

  #palavra-secreta {
    font-size: 1.3em;
  }

  .letras {
    width: 18px;
  }

  #dica {
    font-size: 1.5em;
  }

  .rodape {
    font-size: 0.8em;
  }
}

@media (min-width: 426px) {
  .teclas button {
    width: 36px;
    height: 36px;
  }

  #palavra-secreta {
    font-size: 1.5em;
  }

  .letras {
    width: 20px;
  }

  #dica {
    font-size: 1.6em;
  }

  .rodape {
    font-size: 0.8em;
  }
}

@media (min-width: 769px) {
  .teclas button {
    width: 68px;
    height: 68px;
    font-size: 2em;
  }

  #palavra-secreta {
    font-size: 2.5em;
  }

  .letras {
    width: 35px;
  }

  #dica {
    font-size: 2em;
  }

  .rodape {
    font-size: 0.8em;
  }
}
