@import url("https://fonts.googleapis.com/css2?family=Ubuntu:wght@300;400;500&display=swap");
* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  padding-top: 10px;
  background-color: #f2f2f2;
  font-family: "Ubuntu", sans-serif;

  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

.container {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  flex-direction: column;
}

#imagem {
  background-image: url("../img/forca.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: 20px;
}

.letras {
  width: 16px;
  text-align: center;
  border-bottom: 2px solid #8b008b;
  color: #000;
  padding: 2px;
  margin-left: 2px;
  margin-right: 2px;
}

.letrasEspaco {
  width: 16px;
  text-align: center;
  color: #ffffff;
  padding: 2px;
  margin-left: 2px;
  margin-right: 2px;
}

#teclado {
  margin-top: 30px;
}

.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 dimgrey;
  color: #8b008b;
  font-family: "Ubuntu", sans-serif;
  font-weight: 900;
}

.teclas button:disabled {
  cursor: not-allowed;
}

.teclas button:hover {
  transform: scale(1.3);
}

.teclas_index button {
  width: auto;
  height: auto;
  margin: 5px;
  margin-bottom: 35px;
  cursor: pointer;
  box-shadow: 0px 2px 8px dimgray;
  border-radius: 5px;
  border: 1px solid dimgrey;
  color: #8b008b;
  font-family: "Ubuntu", sans-serif;
  font-weight: 900;
  font-size: 30px;
  padding: 5px;
}

.teclas_index button:disabled {
  cursor: not-allowed;
}

.teclas_index button:hover {
  transform: scale(1.3);
}

#categoria {
  margin-top: 10px;
  color: #8b008b;
  font-size: 1.2em;
  margin-bottom: 5px;
}
#titulo h1 {
  margin-top: 10px;
  color: #fff;
  font-size: 2.2em;
  margin-bottom: 5px;
  margin-left: 10px;
  margin-right: 10px;
  padding: 10px;
  background-color: #8b008b;
}

#abreModalAddPalavra,
#recarregar,
#jogarAutomatico,
#jogarNovamente {
  position: fixed;
  width: 70px;
  height: 70px;
  border: none;
  outline: none;
  border-radius: 70px;
  font-size: 3em;
  background-color: transparent;
  color: #000;
  cursor: pointer;
}

#abreModalAddPalavra {
  display: none;
  bottom: 160px;
  right: 5px;
}

#recarregar {
  bottom: 80px;
  right: 5px;
}

#jogarAutomatico {
  bottom: 5px;
  right: 5px;
}

#status {
  position: fixed;
  bottom: 10px;
  width: 100%;
  text-align: center;
}

#jogarNovamente {
  display: none;
  bottom: 15px;
  right: 30px;
  transform: rotate(-90deg);
  transform-origin: left top 0;
}

.modal-container {
  display: none;
  position: fixed;
  left: 0;
  top: 0;
  z-index: 1;
  padding-top: 100px;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.6);
}

.modal-add-palavra {
  position: relative;
  background-color: #fefefe;
  border: 10px solid #000;
  border-radius: 5px;
  text-align: center;
  margin: auto;
  padding: 0;
  width: 90%;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
  -webkit-animation-name: animacao;
  -webkit-animation-duration: 0.4s;
  animation-name: animacao;
  animation-duration: 0.4s;
}

@-webkit-keyframes animacao {
  from {
    top: -300px;
    opacity: 0;
  }
  to {
    top: 0;
    opacity: 1;
  }
}

@keyframes animacao {
  from {
    top: -300px;
    opacity: 0;
  }
  to {
    top: 0;
    opacity: 1;
  }
}

.modal-header-add-palavra {
  padding: 2px 16px;
  background-color: #ffd700;
  font-size: 1.3em;
  border-bottom: 10px solid #000;
}

.close {
  color: #000;
  float: right;
  font-size: 2em;
  font-weight: bold;
}

.close:hover,
.close:focus {
  color: #fff;
  text-decoration: none;
}

.modal-body-add-palavra {
  display: flex;
  flex-direction: column;
  padding: 2px 16px;
}

.modal-body-add-palavra input,
.modal-body-add-palavra button {
  text-align: center;
  margin: 10px 0;
  font-size: 1.5em;
  border-radius: 5px;
  outline: none;
  border: 1px solid #9c9c9c;
}

.modal-body-add-palavra input {
  text-transform: uppercase;
}

.modal-body-add-palavra button {
  background-color: #ffd700;
  cursor: pointer;
}

.modal-body-add-palavra button:hover {
  background-color: #000;
  color: #ffd700;
  cursor: pointer;
}

footer {
  text-align: center;
  padding: 15px 0;
  font-family: "Work Sans", sans-serif;
}

/*#region MEDIA QUERY*/
@media (min-width: 321px) {
  .teclas button {
    width: 25px;
    height: 25px;
  }
  #categoria {
    font-size: 1.3em;
  }
}

@media (min-width: 376px) {
  .teclas button {
    width: 30px;
    height: 30px;
  }
  #palavra-secreta {
    font-size: 1.3em;
  }
  .letras {
    width: 18px;
  }

  #categoria {
    font-size: 1.5em;
  }
}

@media (min-width: 426px) {
  .teclas button {
    width: 36px;
    height: 36px;
  }
  #palavra-secreta {
    font-size: 1.5em;
  }
  .letras {
    width: 20px;
  }

  #categoria {
    font-size: 1.6em;
  }
}

@media (min-width: 769px) {
  .teclas button {
    width: 68px;
    height: 68px;
    font-size: 2em;
  }
  #palavra-secreta {
    font-size: 2.5em;
  }
  .letras {
    width: 35px;
  }

  #categoria {
    font-size: 2em;
  }

  .modal-add-palavra {
    width: 80%;
  }
}

@media (min-width: 1025px) {
  .modal-add-palavra {
    width: 50%;
  }
}
/*#endregion*/
