.floating-dose {
  position: fixed;
  width: 50px;
  height: auto;
  z-index: -999;
  pointer-events: none;
  opacity: 0;
  animation: float-animation 10s infinite ease-in-out,
    fade-in 1.5s forwards ease-out;
}

/* Left side images */
.floating-dose:nth-child(1) {
  top: 15%;
  left: 10%;
  animation-delay: 0s, 0.2s;
  animation-duration: 11s, 1.5s;
}

.floating-dose:nth-child(3) {
  bottom: 20%;
  left: 20%;
  animation-delay: 4s, 0.6s;
  animation-duration: 15s, 1.5s;
}

.floating-dose:nth-child(5) {
  top: 40%;
  left: 30%;
  animation-delay: 3.5s, 1s;
  animation-duration: 12s, 1.5s;
}

.floating-dose:nth-child(8) {
  top: 75%;
  left: 5%;
  animation-delay: 2s, 1.2s;
  animation-duration: 14s, 1.5s;
}

.floating-dose:nth-child(9) {
  top: 25%;
  left: 16%;
  animation-delay: 5s, 1.4s;
  animation-duration: 13s, 1.5s;
}

/* Right side images */
.floating-dose:nth-child(2) {
  top: 30%;
  right: 15%;
  animation-delay: 2s, 0.4s;
  animation-duration: 13s, 1.5s;
}

.floating-dose:nth-child(4) {
  top: 60%;
  right: 25%;
  animation-delay: 1.5s, 0.8s;
  animation-duration: 14s, 1.5s;
}

.floating-dose:nth-child(6) {
  bottom: 40%;
  right: 10%;
  animation-delay: 5s, 1.1s;
  animation-duration: 16s, 1.5s;
}

.floating-dose:nth-child(7) {
  bottom: 15%;
  right: 35%;
  animation-delay: 6s, 1.3s;
  animation-duration: 13.5s, 1.5s;
}

.floating-dose:nth-child(10) {
  top: 45%;
  right: 5%;
  animation-delay: 3s, 1.5s;
  animation-duration: 12.5s, 1.5s;
}

@keyframes float-animation {
  0% {
    transform: translate(0, 0) rotate(0deg);
  }
  25% {
    transform: translate(15px, 15px) rotate(5deg);
  }
  50% {
    transform: translate(0, 30px) rotate(0deg);
  }
  75% {
    transform: translate(-15px, 15px) rotate(-5deg);
  }
  100% {
    transform: translate(0, 0) rotate(0deg);
  }
}

@keyframes fade-in {
  0% {
    opacity: 0;
    transform: scale(0.5) translateY(20px);
  }
  100% {
    opacity: 0.7;
    transform: scale(1) translateY(0);
  }
}

@media (max-width: 768px) {
  .floating-dose {
    width: 30px;
  }
}
