* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

html,
body {
    background-color: #2f4f30;
    color: #fff;
}

.btn-section {
    max-width: 678px;
    height: 700px;
    margin: auto;
}

.players-section {
    margin: auto;
    padding: 16px;
    min-width: 375px;
}

.title {
    text-align: center;
    background-color: #333;
    padding: 5px;
    box-shadow: 0 5px 5px #202020;
}

._btn {
    padding: 5px;
    border: none;
    border-radius: 5px;
    margin: 10px;
    box-shadow: 0 5px 5px #202020;
    color: #fff;
    opacity: 0.8;
    transition: all .2s ease;
    cursor: pointer;
}

._btn:hover,
.carta:hover {
    opacity: 1;
    transform: scale(1.1);
}

.btn-new-game {
    background-color: #32dd32;
}

.btn-give-me-letters {
    background-color: #239ef0;
}

.btn-stop {
    background-color: #eb230d;
}

.carta {
    position: relative;
    width: 100px;
    left: 100px;
    margin-left: -75px;
    cursor: pointer;
    transition: all .2s ease;
}

.score {
    color: #fef562;
}

.cpu,
.player-1 {
    font-size: 1.8rem;
    font-weight: 500;
}

.cards {
    padding: 16px;
}

#cpu-cards,
#player-1-cards {
    height: 150px;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  inset: 0; /* top:0, left:0, right:0, bottom:0 */
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  animation: fadeIn 0.3s ease-in-out;
}

/* Contenido */
.modal-contenido {
  background: linear-gradient(145deg, #1e3c1f, #2f4f30);
  margin: 12% auto;
  padding: 30px 20px;
  border-radius: 15px;
  width: 350px;
  text-align: center;
  color: #fff;
  box-shadow: 0px 8px 20px rgba(0,0,0,0.6);
  transform: scale(0.8);
  animation: popIn 0.3s ease forwards;
}

/* Animaciones */
@keyframes fadeIn {
  from {opacity: 0;}
  to {opacity: 1;}
}

@keyframes popIn {
  to {transform: scale(1);}
}

/* Título ganador */
#tituloGanador {
  font-size: 28px;
  margin-bottom: 20px;
  font-weight: bold;
  text-shadow: 0 0 10px gold, 0 0 20px yellow;
}

/* Botón cerrar */
#btnCerrarModal {
  background: gold;
  border: none;
  padding: 12px 25px;
  font-size: 16px;
  font-weight: bold;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.3s;
}

#btnCerrarModal:hover {
  background: #ffdf00;
  transform: scale(1.05);
}

/* X cerrar */
.cerrar {
  color: #fff;
  font-size: 28px;
  font-weight: bold;
  float: right;
  cursor: pointer;
}

.cerrar:hover {
  color: red;
}
