@import url("https://fonts.googleapis.com/css2?family=Great+Vibes&family=Tangerine:wght@400;700&family=Dancing+Script:wght@400..700&family=Parisienne&display=swap");

.heart {
  position: absolute;
  width: 20px;
  height: 20px;
  background-color: red;
  transform: rotate(45deg);
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
}
.heart::before,
.heart::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  background-color: red;
  border-radius: 50%;
}

.heart::before {
  top: -10px;
  left: 0;
}

.heart::after {
  left: -10px;
  top: 0;
}

@keyframes floatHeart {
  0% {
    transform: rotate(45deg) translateY(0) translateX(0);
    opacity: 1;
  }
  50% {
    opacity: 0.8;
  }
  100% {
    transform: rotate(45deg) translateY(-150vh)
      translateX(calc(var(--x) * 10px));
    opacity: 0;
  }
}

.confetti {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  animation: fall 3s linear infinite;
  opacity: 0;
}

@keyframes fall {
  0% {
    transform: translateY(-10vh) rotate(0deg);
    opacity: 0;
  }
  20% {
    opacity: 1;
  }
  100% {
    transform: translateY(110vh) rotate(360deg);
    opacity: 0;
  }
}
#container {
  position: relative;
  width: 100%;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

#customText {
  font-size: 5em;
  font-family: "Great Vibes", cursive;
  color: #8b0000;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  z-index: 1;
  position: relative;
}
