@keyframes animateBg {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }
}

@keyframes animate {
    0% {
        opacity: 1;
        transform: rotate(315deg) translateX(0);
    }

    70% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        transform: rotate(315deg) translateX(-1000px);
    }
}

.shooting-stars {
    animation: animateBg 50s linear infinite;
    background-size: cover;
    height: 100vh;
    left: 0;
    opacity: 0.3;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1;
}

.shooting-stars span {
    animation: animate 60s linear infinite;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.1), 0 0 0 8px rgba(255, 255, 255, 0.1), 0 0 20px rgba(255, 255, 255, 0.1);
    height: 2px;
    left: 50%;
    position: absolute;
    top: 50%;
    width: 2px;
}

.shooting-stars span::before {
    background: linear-gradient(90deg, #fff, transparent);
    content: '';
    height: 1px;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 150px;
}

.shooting-stars span:nth-child(1) {
    animation-delay: 0s;
    animation-duration: 30s;
    left: initial;
    right: 0;
    top: 0;
}

.shooting-stars span:nth-child(2) {
    animation-delay: 0.2s;
    animation-duration: 40s;
    left: initial;
    right: 80px;
    top: 0;
}

.shooting-stars span:nth-child(3) {
    animation-delay: 0.4s;
    animation-duration: 50s;
    left: initial;
    right: 0px;
    top: 80;
}

.shooting-stars span:nth-child(4) {
    animation-delay: 0.6s;
    animation-duration: 30s;
    left: initial;
    right: 180px;
    top: 0;
}

.shooting-stars span:nth-child(5) {
    animation-delay: 0.8s;
    animation-duration: 50s;
    left: initial;
    right: 400px;
    top: 0;
}

.shooting-stars span:nth-child(6) {
    animation-delay: 1s;
    animation-duration: 40s;
    left: initial;
    right: 600px;
    top: 0;
}

.shooting-stars span:nth-child(7) {
    animation-delay: 1.2s;
    animation-duration: 25s;
    left: initial;
    right: 0px;
    top: 300px;
}

.shooting-stars span:nth-child(8) {
    animation-delay: 1.4s;
    animation-duration: 45s;
    left: initial;
    right: 700px;
    top: 0px;
}

.shooting-stars span:nth-child(9) {
    animation-delay: 0.75s;
    animation-duration: 35s;
    left: initial;
    right: 1000px;
    top: 0px;
}

.shooting-stars span:nth-child(9) {
    animation-delay: 2.75s;
    animation-duration: 70s;
    left: initial;
    right: 450px;
    top: 0px;
}