html {
  font-size: 16px;
}

body {
  background-image: url(./imagens/blackjackTable.jpeg);
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  font-family: "Montserrat", sans-serif;
  margin: 0;
  padding: 1rem;
  color: white;
  min-height: 100vh;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}

.game-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 1rem;
  width: 100%;
}

#titulo {
  font-family: "Lobster", cursive;
  text-align: center;
  font-size: clamp(2.5rem, 8vw, 4rem);
  font-weight: normal;
  margin-bottom: 0.25rem;
  color: goldenrod;
  text-shadow: 2px 2px 3px rgba(0, 0, 0, 0.6), 0 0 8px rgba(255, 223, 0, 0.4);
  letter-spacing: 1px;
  line-height: 1.1;
}

.logo {
  display: flex;
  justify-content: center;
  align-items: center;
}
.logo img#logo {
  max-width: clamp(50px, 10vw, 80px);
  height: auto;
  opacity: 0.85;
}

main {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 1rem;
  background-color: rgba(0, 0, 0, 0.4);
  border-radius: 8px;
  box-sizing: border-box;
  flex-grow: 1;
}

.imagens {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  min-height: 160px;
}
.imagens #deck-cartas, .imagens .carta-retirada {
  width: clamp(60px, 10vw, 100px);
  height: clamp(90px, 15vw, 150px);
  max-width: none;
  cursor: pointer;
  object-fit: contain;
  border-radius: 4px;
}
.imagens .carta-retirada {
  position: relative;
  z-index: 5;
  box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
}
.imagens #deck-cartas {
  box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
}

#jogador-cpu, #jogador-humano {
  display: block;
  text-align: center;
  font-size: clamp(1rem, 3vw, 1.2rem);
  font-weight: bold;
  width: 100%;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: rgba(255, 255, 255, 0.9);
}

#mao-humano, #mao-cpu {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  min-height: 165px;
  margin-bottom: 1.5rem;
  gap: 5px;
}
#mao-humano .container, #mao-humano .container2, #mao-cpu .container, #mao-cpu .container2 {
  position: relative;
}
#mao-humano img, #mao-cpu img {
  display: block;
  width: 100px;
  height: 150px;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
}
#mao-humano img.dragging, #mao-cpu img.dragging {
  opacity: 0.5;
  border: 2px dashed goldenrod;
}

#quem-joga {
  display: block;
  text-align: center;
  font-size: clamp(1.1rem, 3.5vw, 1.5rem);
  font-weight: bold;
  margin-bottom: 1rem;
  min-height: 1.5em;
  width: 100%;
  color: white;
}

.botoes {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: center;
  gap: 0.8rem;
}
.botoes button {
  cursor: pointer;
  border: none;
  text-align: center;
  font-family: "Montserrat", sans-serif;
  font-size: clamp(0.8rem, 2.2vw, 1rem);
  font-weight: bold;
  color: white;
  border-radius: 5px;
  padding: 0.7rem 1.1rem;
  background-color: goldenrod;
  flex-grow: 1;
  flex-basis: 140px;
  max-width: 220px;
  transition: background-color 0.2s, color 0.2s, transform 0.1s, box-shadow 0.2s;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  line-height: 1.2;
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.botoes button:hover {
  color: black;
  background-color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}
.botoes button:active {
  transform: translateY(0px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.7);
  padding-top: 5vh;
  backdrop-filter: blur(3px);
}

.modal.visivel {
  display: block;
}

.modal-conteudo {
  font-family: "Montserrat", sans-serif;
  background-color: #fdfdfd;
  margin: 5% auto;
  padding: 25px 35px;
  border: 1px solid #ccc;
  width: 90%;
  max-width: 600px;
  border-radius: 10px;
  position: relative;
  color: #333;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}
.modal-conteudo h2 {
  font-family: "Lobster", cursive;
  text-align: center;
  color: goldenrod;
  margin-top: 0;
  margin-bottom: 1.5rem;
  font-size: clamp(1.8rem, 5vw, 2.2rem);
}
.modal-conteudo ul {
  list-style: none;
  padding-left: 0;
}
.modal-conteudo ul li {
  margin-bottom: 0.8rem;
  font-size: clamp(0.9rem, 2.5vw, 1rem);
  line-height: 1.5;
}
.modal-conteudo ul li ul {
  list-style: disc;
  padding-left: 25px;
  margin-top: 0.5rem;
}
.modal-conteudo ul li ul li {
  margin-bottom: 0.4rem;
}
.modal-conteudo strong {
  color: #111;
}

.fechar-modal {
  color: #888;
  position: absolute;
  top: 15px;
  right: 25px;
  font-size: clamp(1.8rem, 5vw, 2.2rem);
  font-weight: bold;
  cursor: pointer;
  transition: color 0.2s;
}
.fechar-modal:hover, .fechar-modal:focus {
  color: goldenrod;
  text-decoration: none;
}

@media (max-width: 768px) {
  html {
    font-size: 15px;
  }
  main {
    padding: 0.8rem;
  }
  .game-header {
    flex-direction: row;
    justify-content: center;
    gap: 1rem;
    align-items: center;
    margin-bottom: 0.8rem;
  }
  #titulo {
    font-size: clamp(2rem, 7vw, 3rem);
    margin-bottom: 0;
    text-align: right;
  }
  .logo img#logo {
    max-width: clamp(40px, 8vw, 60px);
    order: -1;
  }
  .imagens {
    min-height: 130px;
  }
  .imagens #deck-cartas, .imagens .carta-retirada {
    width: clamp(55px, 12vw, 80px);
    height: clamp(80px, 18vw, 120px);
  }
  #mao-humano, #mao-cpu {
    min-height: 135px;
    gap: 4px;
  }
  #mao-humano img, #mao-cpu img {
    width: 80px;
    height: 120px;
  }
  .botoes button {
    padding: 0.6rem 0.9rem;
    flex-basis: 120px;
    max-width: 180px;
    font-size: clamp(0.75rem, 2vw, 0.9rem);
  }
  .modal-conteudo {
    width: 90%;
    padding: 15px 25px;
  }
  .modal-conteudo h2 {
    font-size: clamp(1.5rem, 4.5vw, 1.8rem);
  }
  .modal-conteudo ul li {
    font-size: clamp(0.85rem, 2.3vw, 0.95rem);
  }
}
@media (max-width: 480px) {
  html {
    font-size: 14px;
  }
  body {
    padding: 0.5rem;
  }
  main {
    padding: 0.5rem;
    background-color: rgba(0, 0, 0, 0.5);
  }
  .game-header {
    flex-direction: column;
    margin-bottom: 0.5rem;
    gap: 0.1rem;
  }
  #titulo {
    font-size: clamp(1.8rem, 7vw, 2.2rem);
    margin-bottom: 0.1rem;
    text-align: center;
  }
  .logo img#logo {
    max-width: clamp(35px, 10vw, 50px);
    order: 0;
  }
  .imagens {
    margin-bottom: 1rem;
    min-height: 102.5px;
    gap: 0.5rem;
  }
  .imagens #deck-cartas, .imagens .carta-retirada {
    width: clamp(45px, 15vw, 60px);
    height: clamp(65px, 22vw, 90px);
  }
  #mao-humano, #mao-cpu {
    min-height: 107.5px;
    gap: 2.5px;
    margin-bottom: 1rem;
  }
  #mao-humano img, #mao-cpu img {
    width: 65px;
    height: 97.5px;
    border-radius: 3px;
    box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
  }
  #jogador-cpu, #jogador-humano {
    font-size: clamp(0.85rem, 2.8vw, 1rem);
  }
  #quem-joga {
    font-size: clamp(0.9rem, 3vw, 1.2rem);
    margin-bottom: 0.8rem;
  }
  .botoes {
    gap: 0.5rem;
  }
  .botoes button {
    flex-basis: calc(50% - 0.5rem);
    max-width: calc(50% - 0.5rem);
    font-size: 0.7rem;
    padding: 0.5rem 0.4rem;
    min-width: 0;
    letter-spacing: 0.1px;
    line-height: 1.1;
    min-height: 38px;
  }
  .modal-conteudo {
    width: 95%;
    margin: 2% auto;
    padding: 15px 20px;
  }
  .modal-conteudo h2 {
    font-size: 1.3rem;
  }
  .modal-conteudo ul li {
    font-size: 0.85rem;
  }
}

/*# sourceMappingURL=styles.css.map */
