/* Start - Ballons */
.balloon-wrapper {
  position: fixed;
  bottom: -140px;
  width: 60px;
  height: 140px;
  pointer-events: none;
  animation: floatUp 6s ease-in forwards;
  opacity: 0.96;
  z-index: 9999;
}

.balloon {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 80px;
  background: radial-gradient(
      circle at 30% 30%,
      rgba(255, 255, 255, 0.5),
      transparent 60%
    ),
    red;
  clip-path: ellipse(30px 40px at 50% 50%);
  box-shadow: inset -5px -8px 10px rgba(255, 255, 255, 0.6),
    inset 2px 2px 10px rgba(0, 0, 0, 0.15), 0 4px 12px rgba(0, 0, 0, 0.2);
}

.cord {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 30px;
  height: 40px;
  transform: translateX(-50%);
}

.cord svg {
  width: 100%;
  height: 100%;
}

@keyframes floatUp {
  from {
    transform: translateY(0) translateX(0);
    opacity: 1;
  }

  to {
    transform: translateY(-120vh) translateX(var(--float-x, 0px));
    opacity: 0;
  }
}

/* End - Ballons */

/* Start - stars explosion */
.star {
  position: fixed;
  width: 20px;
  height: 20px;
  background: yellow;
  clip-path: polygon(
    50% 0%,
    61% 35%,
    98% 35%,
    68% 57%,
    79% 91%,
    50% 70%,
    21% 91%,
    32% 57%,
    2% 35%,
    39% 35%
  );
  opacity: 1;
  pointer-events: none;
  transform: scale(1) rotate(0deg);
  animation: explode 2s ease-out forwards;
  z-index: 999;
  filter: drop-shadow(0 0 5px white);
  z-index: 9999 !important;
}

@keyframes explode {
  0% {
    transform: scale(1) translate(0, 0) rotate(0deg);
    opacity: 1;
  }

  80% {
    opacity: 1;
  }

  100% {
    transform: translate(var(--x), var(--y)) scale(1.5) rotate(720deg);
    opacity: 0;
  }
}

/*End - stars explosion */

/* Start - Confetti */
.confetti {
  position: fixed;
  width: 10px;
  height: 10px;
  background-color: red;
  top: 0;
  pointer-events: none;
  opacity: 0.8;
  animation: fall linear forwards;
  z-index: 9999;
}

@keyframes fall {
  to {
    transform: translateY(100vh) rotateZ(360deg);
    opacity: 0;
  }
}

/* End - Confetti */

/* Start - Fireworks */
.rocket {
  position: fixed;
  bottom: 0;
  width: 4px;
  height: 20px;
  background: black;
  animation: launch 1s ease-out forwards;
  z-index: 9999;
}

.particle {
  position: fixed;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: yellow;
  opacity: 1;
  animation: explode 1.2s ease-out forwards;
  pointer-events: none;
  z-index: 9998;
}

@keyframes launch {
  0% {
    bottom: 0;
    opacity: 1;
  }

  100% {
    bottom: var(--targetY);
    opacity: 0;
  }
}

@keyframes explode {
  0% {
    transform: translate(0, 0) scale(1);
    opacity: 1;
  }

  100% {
    transform: translate(var(--x), var(--y)) scale(1.5);
    opacity: 0;
  }
}

/* End - Fireworks */

/*Start - Snow*/
.snowflake {
  position: fixed;
  top: -10px;
  z-index: 9999;
  color: red;
  font-size: 1em;
  user-select: none;
  pointer-events: none;
  animation-name: fall;
  animation-timing-function: linear;
  text-shadow: 0 0 4px rgba(0, 0, 0, 0.2);
}

@keyframes fall {
  0% {
    transform: translateY(0);
    opacity: 1;
  }
  100% {
    transform: translateY(100vh);
    opacity: 0;
  }
}
/*End - Snow */

/*Start heart floating*/
.floating-heart {
  position: fixed;
  bottom: -40px;
  user-select: none;
  pointer-events: none;
  opacity: 0.9;
  filter: drop-shadow(0 0 4px rgba(255, 50, 150, 0.7));
  animation-name: floatUpOscillate;
  animation-timing-function: ease-in-out;
  animation-fill-mode: forwards;
  animation-iteration-count: 1;
  will-change: transform, opacity;
  z-index: 999999999;
}

@keyframes floatUpOscillate {
  0% {
    transform: translateX(0) translateY(0) rotate(0deg);
    opacity: 0.9;
  }
  20% {
    transform: translateX(-10px) translateY(-20vh) rotate(-15deg);
    opacity: 0.8;
  }
  40% {
    transform: translateX(10px) translateY(-40vh) rotate(15deg);
    opacity: 0.7;
  }
  60% {
    transform: translateX(-6px) translateY(-60vh) rotate(-10deg);
    opacity: 0.5;
  }
  80% {
    transform: translateX(6px) translateY(-80vh) rotate(10deg);
    opacity: 0.3;
  }
  100% {
    transform: translateX(0) translateY(-100vh) rotate(0deg);
    opacity: 0;
  }
}
/*End heart floating*/
