.nebula-bg-wrapper {
  position: fixed;
  inset: 0;
  overflow: hidden;
  z-index: -1;
  pointer-events: none;
  background: url(../img/bg/nebula.webp), linear-gradient(to bottom, rgba(4, 13, 29, 0.8), rgba(48, 61, 156, 0.8));
  background-size: cover;
  background-position: center;
  background-blend-mode: hard-light;
}

.nebula-bg-wrapper .canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
}

.nebula-bg-wrapper .spiral-star {
  position: absolute;
  width: 3.5%;
  transform: translate(-50%, -50%);
  z-index: 1;
}

.nebula-bg-wrapper .sparkle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: #71fff1;
  border-radius: 50%;
  opacity: 0.8;
  animation: sparkleFade 1s ease-out forwards;
  z-index: 0;
}

@keyframes sparkleFade {
  0% {
    transform: translate(0, 0) scale(1);
    opacity: 1;
  }
  100% {
    transform: translate(-10px, 10px) scale(0.5);
    opacity: 0;
  }
}

@media screen and (min-width: 1px) and (max-width: 743px) {
  .nebula-bg-wrapper .spiral-star {
    width: 14%;
  }
}

@media screen and (min-width: 744px) and (max-width: 1024px) {

  .nebula-bg-wrapper .spiral-star {
    width: 7%;
  }
}