@import url("https://fonts.googleapis.com/css2?family=Paytone+One&display=swap");

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

h1 {
  text-align: center;
  margin-top: 20px;
  color: #fff;
  font-size: 2rem; /* Texto adaptable */
}
p {
  text-align: center;
  color: #ffd700;
  padding-top: 20px;
}

img {
  width: 100%;
  display: block;
}

body {
  font-family: "Paytone One", sans-serif;
  background-color: #769c38;
  background-image:url("/topos/images/cesped.png");
}

.count {
  text-align: center;
  margin-top: 20px;
  color: #fff;
  font-size: 1.5rem; /* Texto adaptable */
}

.btn-container {
  margin-top: 0px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px; /* Espacio entre botones */
}

#start-game,
#restart-game,
.game-button
 {
  padding: 8px 15px;
  border-radius: 20px;
  border: none;
  font-family: "Paytone One", sans-serif;
  background-color: #066924;
  color: white;
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.5s ease;
}

#start-game:hover,
#restart-game:hover,
.game-button:hover 
{
  background-color: #74d691;
  color: #0d5322;
}

.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px; /* Espacio entre los elementos */
}

.item {
  width: 100%; /* Ajusta el ancho para que se adapte al contenedor */
  aspect-ratio: 5 / 6; /* Mantiene la proporción */
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.mole {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  cursor: pointer;
  background-color: #afc21b;
  border-radius: 50%;
  transition: all 300ms ease;
  box-shadow: 0 4px 8px rgba(10,10, 50, 20);
}

.mole img {
  padding: 5px;
}

.mole-hide {
  bottom: 10px;
  width: 50px;
}

.mole-appear {
  width: 120px;
  bottom: 40px;
}

/* Conejo */
.conejo {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  cursor: pointer;
  background-color: #ff9aa2; /* color distinto para diferenciar */
  border-radius: 50%;
  transition: all 300ms ease;
  box-shadow: 0 4px 8px rgba(10, 10, 50, 0.2);
}

.conejo img {
  padding: 5px;
}

.conejo-hide {
  bottom: 10px;
  width: 50px;
}

.conejo-appear {
  width: 120px;
  bottom: 40px;

}
/* Fin Conejo */

.bush {
  width: 120px;
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}

.whack-text {
  color: #fff;
  text-transform: uppercase;
  font-size: 20px;
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
}
/*Estilos para el popup de scores*/
.score-popup{
  width: 400px;
}

.score-content pre {
  margin: 1em auto;
  padding: 1em;
  background: rgba(0,0, 0, 0.5);
  border-radius: 8xp;
  white-space: pre-wrap;
}

 /* Estilos para los botones de SweetAlert */
        .my-confirm-button {
            background: linear-gradient(to right, #00b09b, #96c93d) !important;
            border: none !important;
            border-radius: 50px !important;
            padding: 10px 25px !important;
            font-weight: 600 !important;
            box-shadow: 0 4px 15px rgba(150, 201, 61, 0.3) !important;
        }
        
        .my-cancel-button {
            background: linear-gradient(to right, #ff416c, #ff4b2b) !important;
            border: none !important;
            border-radius: 50px !important;
            padding: 10px 25px !important;
            font-weight: 600 !important;
            box-shadow: 0 4px 15px rgba(255, 65, 108, 0.3) !important;
        }
        .my-cerrar-button {
            background: linear-gradient(to right, #ff416c, #ff4b2b) !important;
            border: none !important;
            border-radius: 50px !important;
            padding: 10px 25px !important;
            font-weight: 600 !important;
            box-shadow: 0 4px 15px rgba(255, 65, 108, 0.3) !important;
        }
        
        .my-input {
            border-radius: 10px !important;
            border: 2px solid #ddd !important;
            padding: 12px 15px !important;
            transition: border-color 0.3s !important;
        }
        
        .my-input:focus {
            border-color: #4776E6 !important;
            box-shadow: 0 0 0 3px rgba(71, 118, 230, 0.2) !important;
        }

/* Ícono Success en blanco */
.swal2-icon.swal2-success {
  border-color: white !important;
  color: white !important;
}
.swal2-success-line-tip,
.swal2-success-line-long,
.swal2-success-ring {
  background-color: white !important;
  border-color: white !important;
}

/* Ícono Info en blanco */
.swal2-icon.swal2-info {
  border-color: white !important;
  color: white !important;
}
.swal2-icon.swal2-info [class^='swal2-info-'] {
  background-color: white !important;
}

/* Ícono Question en blanco */
.swal2-icon.swal2-question {
  border-color: white !important;
  color: white !important;
}
.swal2-icon.swal2-question mark {
  color: white !important;
}

/* Media queries para dispositivos más pequeños */
@media (max-width: 768px) {
  h1 {
    font-size: 1.8rem; /* Reduce el tamaño del título */
  }

  .count {
    font-size: 1.2rem; /* Reduce el tamaño del contador */
  }

  #start-game,
  #restart-game {
    font-size: 0.9rem; /* Reduce el tamaño de los botones */
    padding: 6px 12px; /* Ajusta el relleno de los botones */
  }

  .container {
    grid-template-columns: repeat(3, 1fr); /* Ajusta a 2 columnas */
    gap: 15px;
  }

  .item {
    aspect-ratio: 4 / 5; /* Ajusta la proporción */
  }

  .mole-hide {
    width: 40px;
  }

  .mole-appear {
    width: 100px;
  }

  .conejo-hide {
    width: 40px;
  }

  .conejo-appear {
    width: 100px;
  }

  .bush {
    width: 100px;
  }

  .whack-text {
    font-size: 18px; /* Ajusta el tamaño del texto "whack!" */
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 1.5rem; /* Reduce aún más el tamaño del título */
  }

  .count {
    font-size: 1rem; /* Reduce el tamaño del contador */
  }

  #start-game,
  #restart-game {
    font-size: 0.8rem; /* Reduce el tamaño de los botones */
    padding: 5px 10px;
  }

  .container {
   
    gap: 10px;
  }

  .item {
    aspect-ratio: 3 / 4;
  }

  .mole-hide {
    width: 30px;
  }

  .mole-appear {
    width: 80px;
  }

  .conejo-hide {
    width: 30px;
  }

  .conejo-appear {
    width: 80px;
  }

  .bush {
    width: 80px;
  }

  .whack-text {
    font-size: 16px; /* Ajusta el tamaño del texto "whack!" */
  }
}
