@font-face {
  font-family: "bootstrap-icons";
  src: url("../fonts/bootstrap-icons.woff2?30af91bf14e37666a085fb8a161ff36d")
      format("woff2"),
    url("../fonts/bootstrap-icons.woff?30af91bf14e37666a085fb8a161ff36d")
      format("woff");
}

/* General body styles */
body {
  margin: 0;
  padding: 0;
  background-color: #fff6f9; /* Light pink background */
  /*  */
}

/* Sticky container to make the content sticky */

/* Hearts container to hold all hearts */
.hearts-container {
  position: fixed; /* Fix the container to the viewport */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none; /* Allows clicks to pass through */
  z-index: 9999; /* Ensures the hearts are above other content */
}

/* Heart styles */
.heart {
  position: absolute;
  top: -10%; /* Start off-screen */
  color: #ff4d6d; /* Heart color: pinkish-red */
  font-size: 2rem; /* Default size */
  animation: fall linear infinite; /* Animation applied */
}

/* Create a heart shape using pseudo-elements */
.heart::before,
.heart::after {
  content: "";
  position: absolute;
  top: 0;
  width: 1em;
  height: 1em;
  /* background: transparent; */
  background-image: url("../images/wedding-pics/heart.png");
  /* border-radius: 50%; */
}

.heart::before {
  left: -0.5em;
}

.heart::after {
  right: -0.5em;
}

.heart {
  display: inline-block;
  transform: rotate(-45deg);
  margin: 0 auto;
}

.heart img {
  width: 1.8rem;
}

/* Random positions and animations for hearts */
.heart:nth-child(1) {
  left: 10%;
  animation-duration: 6s;
  animation-delay: 0s;
}

.heart:nth-child(2) {
  left: 20%;
  animation-duration: 8s;
  animation-delay: 1s;
}

.heart:nth-child(3) {
  left: 35%;
  animation-duration: 7s;
  animation-delay: 2s;
}

.heart:nth-child(4) {
  left: 50%;
  animation-duration: 6s;
  animation-delay: 0.5s;
}

.heart:nth-child(5) {
  left: 65%;
  animation-duration: 7s;
  animation-delay: 1.5s;
}

.heart:nth-child(6) {
  left: 80%;
  animation-duration: 8s;
  animation-delay: 2.5s;
}

.heart:nth-child(7) {
  left: 90%;
  animation-duration: 6s;
  animation-delay: 1s;
}

.heart:nth-child(8) {
  left: 25%;
  animation-duration: 9s;
  animation-delay: 0.3s;
}

/* Falling animation */
@keyframes fall {
  0% {
    transform: translateY(0) rotate(-45deg) scale(1);
    opacity: 1;
  }
  100% {
    transform: translateY(100vh) rotate(45deg) scale(0.5);
    opacity: 0;
  }
}
