body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow: hidden; /* Evita el scroll */
  background-color: #0e6182; /* Color del cielo */
}

#rain {
  position: absolute;
  width: 100%;
  height: 100%;
  pointer-events: none; /* Para que los clics pasen a las flores */
}

.drop {
  position: absolute;
  width: 3px;
  height: 12px;
  background: rgba(255, 255, 255, 0.6);
  animation: fall linear;
}

@keyframes fall {
  to {
      transform: translateY(100vh);
  }
}

.flower {
  position: absolute;
  width: 300px;
  height: 300px;
  background-image: url('imageF/flower.png');
  background-size: cover;
  z-index: 10; /* Asegúrate de que tenga un z-index alto */
  opacity: 1; /* Opacidad inicial */
  transition: opacity 10s ease; /* Transición de opacidad */
}

#canvas-container {
  width: 100%;
  height: 100%; /* El contenedor ocupa toda la pantalla */
  position: absolute;
  top: 0;
  left: 0;
}

#canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;   /* 100% del ancho de la ventana */
  height: 100vh;  /* 100% de la altura de la ventana */
  background-color: black;
}













/* Contenedor principal para los globos */
#balloon-container {
  position: relative;
  width: 100%;
  height: 100vh;
  background: linear-gradient(to bottom, #87CEEB, #FFFFFF);
  overflow: hidden;
}

/* Estilo para los globos de colores aleatorios */
.balloon {
  position: absolute;
  bottom: -100px;
  width: 50px;
  height: 70px;
  background: red;
  border-radius: 50%;
  animation: float 10s linear infinite;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  box-shadow: inset -5px -5px 10px rgba(0, 0, 0, 0.2);
}

/* Estilo para el globo kiti */
/* Estilo para el globo kiti */
.kiti-balloon {
  position: absolute;
  bottom: -100px;
  width: 50px;
  height: 70px;
  background-image: url('css/imageR/kiti.png');
  background-size: contain; /* Ajusta la imagen sin deformarla */
  background-position: center; /* Centra la imagen dentro del globo */
  background-repeat: no-repeat; /* Evita que la imagen se repita */
  border-radius: 50%; /* Hace que el globo sea redondeado */
  animation: float 12s linear infinite; /* Animación para el globo */
  display: flex;
  justify-content: center;
  align-items: flex-end;
  box-shadow: inset -5px -5px 10px rgba(0, 0, 0, 0.2);
}



/* Estilo para el hilo del globo */
.string {
  position: absolute;
  bottom: -40px;
  width: 2px;
  height: 120px;
  background: none;
  animation: float 10s linear infinite, wave 2s ease-in-out infinite;
  background-image: radial-gradient(circle at 50% 0, transparent 5%, black 5%, transparent 10%);
  background-repeat: repeat-y;
  background-size: 10px 10px;
}

/* Animación de flotación */
@keyframes float {
  0% {
    transform: translateY(100vh) translateX(0);
    opacity: 1;
  }
  100% {
    transform: translateY(-110vh) translateX(calc(50vw - 20px));
    opacity: 0.7;
  }
}

/* Animación ondulada para el hilo */
@keyframes wave {
  0%, 100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-5px);
  }
  75% {
    transform: translateX(5px);
  }
}

/* Estilo para la imagen de fondo "anto" */
#image {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('css/imageR/1.png.PNG');
  background-size: cover;
  opacity: 0;
  transition: opacity 1s;
  filter: blur(0) saturate(1);
  z-index: 10;
  background-position: center center; /* Centra la imagen en ambas direcciones */
}

/* Estilo para la invitación centrada */
#invitation {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 50%; /* Hacer el cuadro más ancho */
  font-size: 32px; /* Aumentar el tamaño de la fuente */
  color: hwb(69 52% 0%); /* Cambiar el color de la letra a dorado */
  display: none;
  text-align: center;
  font-family:Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
  background-color: rgba(34, 34, 34, 0.702); /* Cambiar el color del fondo del cuadro */
  padding: 20px; /* Aumentar el padding para un cuadro más grande */
  border-radius: 5px;
  z-index: 20;
}

/* Efecto glitch */
@keyframes glitchEffect {
  0% {
    transform: translate(0, 0);
  }
  25% {
    transform: translate(-5px, -5px);
  }
  50% {
    transform: translate(5px, 5px);
  }
  75% {
    transform: translate(-5px, 5px);
  }
  100% {
    transform: translate(0, 0);
  }
}

.glitch {
  animation: glitchEffect 0.1s infinite;
}

/* Ajustes responsivos para la imagen "anto" */
@media (max-width: 768px) {
  #image {
    background-position: center center; /* Asegura que la imagen se mantenga centrada en pantallas más pequeñas */
  }
}

@media (max-width: 480px) {
  #image {
    background-position: center center; /* Mantener centrado en pantallas más pequeñas aún */
  }

  /* Ajustes responsivos para la invitación en pantallas pequeñas */
  #invitation {
    width: 80%; /* Reducir el ancho del cuadro en pantallas más pequeñas */
    font-size: 22px; /* Ajustar el tamaño de la fuente */
    padding: 20px; /* Reducir el padding */
  }
}

.letra{
  color: hwb(69 52% 0%); /* Cambiar el color de la letra a dorado */
}

.center{
  text-align: center;
}








#u {
  position: absolute;
  width: 100%;
  height: 100%;
  pointer-events: none; /* Para que los clics pasen a las flores */
}

.firework-container {
  position: absolute;
  width: 10px;
  height: 10px;
  pointer-events: none;
  transform-origin: center;
  animation: explosion 1s ease-out;
}

@keyframes explosion {
  0% {
    transform: scale(1) translate(0, 0);
    opacity: 1;
  }
  100% {
    transform: scale(1) translate(0, 0);
    opacity: 0;
  }
}

.particle {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 1);
  animation: explode 1s ease-out forwards;
}

@keyframes explode {
  0% {
    transform: scale(1) translate(0, 0);
    opacity: 1;
  }
  100% {
    transform: scale(2) translate(var(--x), var(--y)); /* Movimiento aleatorio en X y Y */
    opacity: 0;
  }
}

.f {
  position: absolute;
  width: 300px;
  height: 300px;
  background-image: url('css/imageF/1.webp');
  background-size: cover;
  z-index: 10; /* Asegúrate de que tenga un z-index alto */
  opacity: 1; /* Opacidad inicial */
  transition: opacity 10s ease; /* Transición de opacidad */
}
