.stars {
  /* Added by David */
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-45deg);
}


.star {
  /* Changed by David */
  /*--star-color: var(--primary-color);*/
  --star-color: #A0A2D4;
  --star-tail-length: 6em;
  --star-tail-height: 2px;
  --star-width: calc(var(--star-tail-length) / 6);
  --fall-duration: 9s;
  --tail-fade-duration: var(--fall-duration);
  position: absolute;
  top: var(--top-offset);
  left: 0;
  width: var(--star-tail-length);
  height: var(--star-tail-height);
  color: var(--star-color);
  background: linear-gradient(45deg, currentColor, transparent);
  border-radius: 50%;
  filter: drop-shadow(0 0 6px currentColor);
  transform: translate3d(104em, 0, 0);
  animation: fall var(--fall-duration) var(--fall-delay) linear infinite, tail-fade var(--tail-fade-duration) var(--fall-delay) ease-out infinite;
}
@media screen and (max-width: 750px) {
  .star {
    animation: fall var(--fall-duration) var(--fall-delay) linear infinite;
  }
}
/* Add by David 10 stars */
.star:nth-child(1) {
  --star-tail-length: 6.8em;
  --top-offset: 70.98vh;
  --fall-duration: 7.64s;
  --fall-delay: 3.9s;
}
.star:nth-child(2) {
  --star-tail-length: 6.14em;
  --top-offset: 52.23vh;
  --fall-duration: 8.607s;
  --fall-delay: 8.454s;
}
.star:nth-child(3) {
  --star-tail-length: 5.06em;
  --top-offset: 16.76vh;
  --fall-duration: 9.174s;
  --fall-delay: 6.387s;
}
.star:nth-child(4) {
  --star-tail-length: 5.99em;
  --top-offset: 1.32vh;
  --fall-duration: 9.703s;
  --fall-delay: 2.632s;
}
.star:nth-child(5) {
  --star-tail-length: 6.04em;
  --top-offset: 91.48vh;
  --fall-duration: 8.824s;
  --fall-delay: 6.742s;
}
.star:nth-child(6) {
  --star-tail-length: 6.85em;
  --top-offset: 67.26vh;
  --fall-duration: 10.353s;
  --fall-delay: 1.769s;
}
.star:nth-child(7) {
  --star-tail-length: 5.72em;
  --top-offset: 76.27vh;
  --fall-duration: 6.423s;
  --fall-delay: 0.076s;
}
.star:nth-child(8) {
  --star-tail-length: 7.32em;
  --top-offset: 5.38vh;
  --fall-duration: 9.923s;
  --fall-delay: 8.648s;
}
.star:nth-child(9) {
  --star-tail-length: 6.32em;
  --top-offset: 1.42vh;
  --fall-duration: 10.606s;
  --fall-delay: 4.962s;
}
.star:nth-child(10) {
  --star-tail-length: 7.16em;
  --top-offset: 80.53vh;
  --fall-duration: 7.891s;
  --fall-delay: 6.228s;
}
.star::before, .star::after {
  position: absolute;
  content: "";
  top: 0;
  left: calc(var(--star-width) / -2);
  width: var(--star-width);
  height: 100%;
  background: linear-gradient(45deg, transparent, currentColor, transparent);
  border-radius: inherit;
  animation: blink 2s linear infinite;
}
.star::before {
  transform: rotate(45deg);
}
.star::after {
  transform: rotate(-45deg);
}

@keyframes fall {
  to {
    transform: translate3d(-30em, 0, 0);
  }
}
@keyframes tail-fade {
  0%, 50% {
    width: var(--star-tail-length);
    /* Changed by David */
    /*opacity: 1;*/
    opacity: 0.7;
  }
  70%, 80% {
    width: 0;
    /* Changed by David */
    /*opacity: 0.4;*/
    opacity: 0.3;
  }
  100% {
    width: 0;
    opacity: 0;
  }
}
@keyframes blink {
  50% {
    opacity: 0.6;
  }
}