/* Botones */
.no {
  position: absolute;
  top: 60vh;
  background-color: red;
  border-radius: 25%;
  padding: 5px 20px;
}

.yes {
  position: absolute;
  top: 50vh;
  background-color: green;
  border-radius: 25%;
  padding: 5px 20px;
}

/* Pregunta y mensaje */
.question {
  position: absolute;
  top: 30vh;
  color: #000;
  text-align: center;
}

.message {
  position: absolute;
  top: 40vh;
  display: none;
  color: #fff;
  text-align: center;
  font-size: 2rem;
}

.fecha-animada {
  font-size: 1.5rem;
  margin-top: 10px;
  color: #ffddc1;
  font-family: monospace;
  min-height: 1.5em; /* evita salto al animar */
}

.cronometro {
  font-size: 1.2rem;
  color: #fff;
  margin-top: 10px;
  font-family: monospace;
}

/* Fondo cuando dice Sí */
body {
  background: #ffdde1; /* color de transición mientras carga imagen */
  transition: background 1s ease-in-out;
}

body.celebration-bg {
  background: url("felicidad.png") no-repeat center center;
  background-size: cover;
}

/* Animación de fondo inicial */
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

body {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Contenedor de corazones */
.confetti-container {
  pointer-events: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  overflow: hidden;
}

/* Corazones flotantes */
.confetti {
  position: absolute;
  width: 15px;
  height: 15px;
  background-color: red;
  transform: rotate(-45deg);
}

.confetti::before,
.confetti::after {
  content: '';
  position: absolute;
  width: 15px;
  height: 15px;
  background-color: inherit;
  border-radius: 50%;
}

.confetti::before { top: -7.5px; left: 0; }
.confetti::after { top: 0; left: 7.5px; }

/* Colores románticos */
.confetti.red { background-color: #ff4d6d; }
.confetti.red::before, .confetti.red::after { background-color: #ff4d6d; }

.confetti.pink { background-color: #ff99c8; }
.confetti.pink::before, .confetti.pink::after { background-color: #ff99c8; }

.confetti.purple { background-color: #b19cd9; }
.confetti.purple::before, .confetti.purple::after { background-color: #b19cd9; }

.confetti.yellow { background-color: #fff176; }
.confetti.yellow::before, .confetti.yellow::after { background-color: #fff176; }

/* Animación de caída */
@keyframes fall {
  0% {
    transform: translateY(0) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: translateY(100vh) rotate(360deg);
    opacity: 0;
  }
}
