/* 🧠 Fuente cálida y legible */
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;700&display=swap');

body {
  margin: 0;
  background-color: #f4f1e0;
  font-family: 'Nunito', sans-serif;
  color: #3e3e3e;
  text-align: center;
  font-size: 1.2rem;
}

/* 🌿 Fondo adaptable */
.fondo {
  background-image: url('fondo.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 100vh;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* 🧊 Cuadro blanco para contenido */
.cuadro, .cuadro2, .contenedorJuego {
  background-color: rgba(255, 255, 255, 0.95);
  padding: 4vw;
  border-radius: 1.5vw;
  box-shadow: 0 0 2vw rgba(0, 0, 0, 0.2);
  max-width: 90vw;
  width: 100%;
  box-sizing: border-box;
  
}

/* 📦 Contenedor del juego */
.contenedorJuego {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2vh;
}

/* 🌱 Imagen de la planta responsiva */
#plantaVisual {
  width: 30vw;
  max-width: 300px;
  height: auto;
  margin-top: 2vh;
}

/* 🌟 Botones animados */
button {
  background-color: #8bc34a;
  color: #fff;
  border: none;
  padding: 1em 2em;
  margin: 1vh;
  font-size: 1.2rem;
  border-radius: 1vw;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 0.4vw 0.8vw rgba(0,0,0,0.2);
  animation: aparecer 0.6s ease-out;
}

button:hover {
  background-color: #7cb342;
  transform: scale(1.05);
  box-shadow: 0 0.6vw 1.2vw rgba(0,0,0,0.3);
}

/* ✨ Animación de entrada tipo rebote */
@keyframes aparecer {
  0% {
    transform: scale(0.8);
    opacity: 0;
  }
  60% {
    transform: scale(1.1);
    opacity: 1;
  }
  100% {
    transform: scale(1);
  }
}

/* 💫 Efecto de resplandor */
.resplandor {
  animation: brillar 1s ease-in-out infinite alternate;
}

@keyframes brillar {
  from {
    box-shadow: 0 0 1vw #a5d6a7;
    transform: scale(1);
  }
  to {
    box-shadow: 0 0 2.5vw #66bb6a;
    transform: scale(1.05);
  }
}
 .contenedorJuego {
  background-color: rgba(255, 255, 255, 0.95);
  padding: 2vw;
  border-radius: 1.5vw;
  box-shadow: 0 0 2vw rgba(0, 0, 0, 0.2);
  max-width: 50vw;
  width: 100%;
  box-sizing: border-box;
  display: f;
  flex-direction: column;
  align-items: center;
  gap: 1vh;
}
.overlay {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  width: 100%;
  background-color: #fefefe;
   background-image: url('fondo.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 100vh;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.cuadro2 {
  background-color: rgb(133, 206, 155);
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 0 0 10px rgba(0,0,0,0.2);
  text-align: center;
  max-width: 600px;
  width: 90%;
}