/* Estilos generales */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  /* font-family: 'Raleway', sans-serif; */
  /* background: linear-gradient(135deg, #ff9a9e, #fad0c4); */
  background: #1a1a1a;
  min-height: 100vh;
  overflow: hidden;
  /* color: #5d0e0e; */
  overflow-x: hidden;
  position: relative;
  z-index: 0;
  /* Añade esto */
}

.container {
  display: flex;
  justify-content: center;
  /* Centra horizontalmente */
  align-items: center;
  flex-direction: column;
  /* Centrado en ambos ejes */
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem;
  text-align: center;
  position: relative;
  z-index: 2;
  /* background: rgba(255, 255, 255, 0.85); */
  /* Añade fondo semi-transparente */
  min-height: 100vh;
}

.container>h1 {
  font-size: 3.5rem;
  color: #fff;
  text-shadow: 0px 0px 5px white;
}

.hearts {
  position: fixed;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.heart {
  position: absolute;
  font-size: 20px;
  animation: float 6s linear infinite;
  opacity: 0;
}

@keyframes float {
  0% {
    transform: translateY(100vh) rotate(0deg);
    opacity: 1;
  }

  100% {
    transform: translateY(-20vh) rotate(360deg);
    opacity: 0;
  }
}

.pulse {
  animation: pulse 2s infinite;
  text-align: center;
  font-family: 'Arial', sans-serif;
  text-shadow: 0 0 10px #ff3366;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.1);
  }

  100% {
    transform: scale(1);
  }
}

.glow {
  filter: drop-shadow(0 0 5px #ff3366);
}

#transition-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: black;
  /* Color de fondo durante la transición */
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease-in-out, visibility 0.5s ease-in-out;
}

#transition-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Encabezado */
h1 {
  font-family: cursive;
  /* font-size: 3.5rem; */
  margin-bottom: 1.5rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

h2 {
  font-family: 'Great Vibes', cursive;
  font-size: 2rem;
  margin-bottom: 1.5rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

/* Contador */
.contador {
  background: rgba(255, 255, 255, 0.9);
  padding: 1.5rem;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  margin: 2rem 0;
}

#dias {
  font-size: 2.5rem;
  color: #e91e63;
  font-weight: bold;
}

/* Mensaje */
.mensaje {
  font-size: 1.2rem;
  line-height: 1.6;
  margin: 2rem 0;
  background-color: #FFEDED;
  padding: 2rem;
  border-radius: 15px;
}

/* Botón sorpresa */
.boton-sorpresa {
  background: #7EC8E3;
  color: white;
  border: none;
  padding: 1.2rem 2.4rem;
  border-radius: 25px;
  font-size: 1.5rem;
  cursor: pointer;
  transition: transform 0.3s, background 0.3s;
  margin-top: 1rem;
  margin-right: 100px;
  text-shadow: 0px 0px 8px white;
}

.no {
  background-color: #FF9AA2;
  color: white;
  border: none;
  padding: 1.2rem 2.4rem;
  border-radius: 25px;
  font-size: 1.5rem;
  cursor: pointer;
  /* margin-left: 10px; */
  transition: transform 0.3s, background 0.3s;
  margin-top: 1rem;
  text-shadow: 0px 0px 8px white;
}

.boton-sorpresa:hover {
  background: #c2185b;
  transform: scale(1.05);
}

/* Corazones animados */
.corazon {
  position: absolute;
  color: #ff4081;
  font-size: 20px;
  pointer-events: none;
  animation: caida 3s linear infinite;
  z-index: 1;
}

@keyframes caida {
  0% {
    transform: translateY(-100vh) rotate(45deg);
    opacity: 0;
  }

  50% {
    opacity: 1;
  }

  100% {
    transform: translateY(100vh) rotate(45deg);
    opacity: 0;
  }
}

@media (max-width: 768px) {
  body {
    overflow-y: hidden;
    /* Habilita scroll vertical */
  }

  .container {
    padding: 1rem;
  }
}