/* Container for image and stars */
.image-container {
  position: relative;
  display: inline-block;
  overflow: hidden;
}

/* Pulsating glow effect for the image */
.image-container img {
  width: 300px; /* adjust to your size */
  height: auto;
  display: block;
  animation: pulseGlow 3s infinite;
}

@keyframes pulseGlow {
  0% {
    transform: scale(1);
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.6));
  }
  50% {
    transform: scale(1.05);
    filter: drop-shadow(0 0 20px rgba(255, 255, 200, 0.9));
  }
  100% {
    transform: scale(1);
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.6));
  }
}

/* Stars setup */
.star {
  position: absolute;
  width: 12px;
  height: 12px;
  background: white;
  border-radius: 50%;
  opacity: 0.8;
}

/* Predefined movement animations */
@keyframes moveTopBottom {
  0% {
    top: -20px;
    left: 20%;
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    top: 100%;
    left: 25%;
    opacity: 0;
  }
}

@keyframes moveBottomTop {
  0% {
    top: 100%;
    left: 70%;
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    top: -20px;
    left: 65%;
    opacity: 0;
  }
}

@keyframes moveLeftRight {
  0% {
    left: -20px;
    top: 40%;
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    left: 100%;
    top: 45%;
    opacity: 0;
  }
}

@keyframes moveRightLeft {
  0% {
    left: 100%;
    top: 60%;
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    left: -20px;
    top: 55%;
    opacity: 0;
  }
}

@keyframes moveDiag1 {
  0% {
    top: -20px;
    left: -20px;
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    top: 100%;
    left: 100%;
    opacity: 0;
  }
}

@keyframes moveDiag2 {
  0% {
    top: 100%;
    left: -20px;
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    top: -20px;
    left: 100%;
    opacity: 0;
  }
}

@keyframes moveDiag3 {
  0% {
    top: -20px;
    left: 100%;
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    top: 100%;
    left: -20px;
    opacity: 0;
  }
}

@keyframes moveDiag4 {
  0% {
    top: 100%;
    left: 100%;
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    top: -20px;
    left: -20px;
    opacity: 0;
  }
}

/* Random assignment to stars */
.star:nth-child(1) {
  animation: moveTopBottom 8s linear infinite;
}
.star:nth-child(2) {
  animation: moveBottomTop 9s linear infinite;
}
.star:nth-child(3) {
  animation: moveLeftRight 7s linear infinite;
}
.star:nth-child(4) {
  animation: moveRightLeft 6s linear infinite;
}
.star:nth-child(5) {
  animation: moveDiag1 10s linear infinite;
}
.star:nth-child(6) {
  animation: moveDiag2 8s linear infinite;
}
.star:nth-child(7) {
  animation: moveDiag3 9s linear infinite;
}
.star:nth-child(8) {
  animation: moveDiag4 7s linear infinite;
}
.star:nth-child(9) {
  animation: moveTopBottom 6s linear infinite reverse;
}
.star:nth-child(10) {
  animation: moveBottomTop 10s linear infinite reverse;
}
