body {
  background-color: #0fe035;
  font-family: Arial, sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  margin: 0;
}

body {
  background-image: url("../img/f1.png"); /* Puede ser JPG, PNG o GIF */
  background-size: cover;         /* Ajusta la imagen para cubrir toda la pantalla */
  background-repeat: no-repeat;   /* Evita que se repita */
  background-position: center;    /* Centra la imagen */
  font-family: Arial, sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  margin: 0;
}

.container {
  background: white;
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  width: 300px;
  text-align: center;
}

input[type="number"] {
  width: 80%;
  padding: 0.5rem;
  margin: 1rem 0;
  font-size: 1rem;
}

button {
  padding: 0.5rem 1rem;
  font-size: 1rem;
  background-color: #4CAF50;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

button:hover {
  background-color: #45a049;
}

.pista {
  margin-top: 1rem;
  font-weight: bold;
}

.mensaje {
  margin-top: 1rem;
}

/**/
.pantalla-inicio {
  text-align: center;
}

.pantalla-inicio h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.pantalla-inicio button {
  padding: 0.7rem 1.2rem;
  font-size: 1.1rem;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 10px;
  cursor: pointer;
}

.pantalla-inicio button:hover {
  background-color: #0056b3;
}


/**/
.mensaje-final {
  font-size: 2rem;
  font-weight: bold;
  text-align: center;
  color: #f39c12;
  margin-top: 2rem;
}

/**/

.fin-del-juego {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 3rem;
}

.fin-del-juego button {
  margin: 0.5rem;
  padding: 0.7rem 1.5rem;
  font-size: 1rem;
  background-color: #4CAF50;
  color: white;
  border: none;
  border-radius: 10px;
  cursor: pointer;
}

.fin-del-juego button:hover {
  background-color: #388e3c;
}
.pista {
  font-size: 1.2rem;
  font-weight: bold;
  color: #2c3e50;
  background-color: #ffeaa7; /* fondo suave y claro */
  padding: 1rem;
  border-radius: 15px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  margin-top: 1rem;
  line-height: 1.6;
  text-align: left;
  text-shadow: 1px 1px 1px rgba(255,255,255,0.5);
}

.inicio-contenido {
  background-color: white;
  padding: 2rem;
  border-radius: 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  display: inline-block;
}

.pista-item {
  text-align: center;
  font-size: 1.1rem;
  font-weight: bold;
  padding: 0.8rem;
  margin: 0.5rem 0;
  border-radius: 10px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Colores para cada pista */
.color-1 { background-color: #ffeaa7; color: #2c3e50; }
.color-2 { background-color: #a29bfe; color: #fff; }
.color-3 { background-color: #fab1a0; color: #2d3436; }
.color-4 { background-color: #81ecec; color: #2d3436; }
.color-5 { background-color: #74b9ff; color: #fff; }
.color-6 { background-color: #55efc4; color: #2d3436; }

.felicidades {
  position: fixed;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #ffeaa7;
  color: #d35400;
  font-size: 2rem;
  font-weight: bold;
  padding: 1.5rem 2rem;
  border-radius: 20px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
  animation: aparecer 1s ease-out, desaparecer 2s ease-in 2s forwards;
  z-index: 1000;
  text-align: center;
}

@keyframes aparecer {
  0% { opacity: 0; transform: scale(0.5) translate(-50%, -50%); }
  100% { opacity: 1; transform: scale(1) translate(-50%, -50%); }
}

@keyframes desaparecer {
  0% { opacity: 1; }
  100% { opacity: 0; display: none; }
}

.nivel-actual {
  margin-top: 1rem;
  text-align: center;
  background-color: #ffeaa7;
  color: #2c3e50;
  font-weight: bold;
  padding: 0.8rem 1rem;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  font-size: 1.2rem;
}

.tarjeta-final {
  background-color: white;
  padding: 2rem;
  border-radius: 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  text-align: center;
}

.mensaje-final {
  font-size: 2rem;
  font-weight: bold;
  color: #e67e22;
  margin-bottom: 1.5rem;
}

.animacion-nivel {
  position: fixed;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #fff6c3;
  color: #d35400;
  font-size: 2rem;
  font-weight: bold;
  padding: 1rem 2rem;
  border-radius: 20px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  z-index: 999;
  animation: aparecerNivel 0.8s ease-out, desaparecerNivel 1s ease-in 2s forwards;
  text-align: center;
}

@keyframes aparecerNivel {
  0% {
    opacity: 0;
    transform: scale(0.5) translate(-50%, -50%);
  }
  100% {
    opacity: 1;
    transform: scale(1) translate(-50%, -50%);
  }
}

@keyframes desaparecerNivel {
  0% { opacity: 1; }
  100% { opacity: 0; display: none; }
}

