/* Shooting Star Background */

/* Base container for the sky */
html,
body {
    background: transparent !important;
}

#star-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    /* Behind everything */
    overflow: hidden;
    transition: background 0.5s ease;
    pointer-events: none;
    /* Let clicks pass through */
}

/* Light Mode Sky */
html:not(.dark) #star-container {
    background: linear-gradient(to bottom, #87CEEB 0%, #E0F7FA 100%);
}

/* Dark Mode Sky */
html.dark #star-container {
    background: linear-gradient(to bottom, #0f0c29, #302b63, #24243e);
}

/* Stars */
.star {
    position: absolute;
    width: 2px;
    height: 2px;
    background: white;
    border-radius: 50%;
    opacity: 0;
    box-shadow: 0 0 10px white, 0 0 20px white, 0 0 40px white;
    animation: shooting-star linear infinite;
}

/* Shooting Star Animation */
@keyframes shooting-star {
    0% {
        transform: translateX(0) translateY(0) rotate(-45deg) scale(1);
        opacity: 1;
    }

    70% {
        opacity: 1;
    }

    100% {
        transform: translateX(-100vw) translateY(100vh) rotate(-45deg) scale(0.5);
        opacity: 0;
    }
}

/* Twinkling stars (static background stars) */
.twinkle-star {
    position: absolute;
    background: white;
    border-radius: 50%;
    animation: twinkle infinite ease-in-out alternate;
}

@keyframes twinkle {
    0% {
        opacity: 0.3;
        transform: scale(0.8);
    }

    100% {
        opacity: 1;
        transform: scale(1.2);
    }
}