/* JavaScript controlled stars container */
#stars-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    /* dvh prevents the height from jumping when address bar hides */
    height: 100dvh; 
    pointer-events: none;
    overflow: hidden;
    z-index: -1;
    /* Hardware acceleration to prevent flickering */
    will-change: transform;
    transform: translateZ(0);
}

.star {
    position: absolute;
    background-color: #fff;
    border-radius: 50%;
    opacity: 0;
    animation-name: twinkle;
    animation-iteration-count: infinite;
    animation-timing-function: ease-in-out;
    /* Keeps stars sharp on mobile */
    backface-visibility: hidden;
}

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

    50% {
        opacity: 1;
        transform: scale(1);
    }

    100% {
        opacity: 0;
        transform: scale(0.5);
    }
}