﻿.stars-wrapper {
    position: relative;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(#B2C4DB, #c7cfe8);
    overflow: hidden;
}

:root {
    --twinkle-duration: 4s;
}

@keyframes twinkle {
    25% {
        opacity: 0;
    }
}

.stars {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    animation: twinkle var(--twinkle-duration) ease-in-out infinite;
}

.stars:nth-child(2) {
    animation-delay: calc(var(--twinkle-duration) * -0.33);
}

.stars:nth-child(3) {
    animation-delay: calc(var(--twinkle-duration) * -0.66);
}


.star {
    fill: white;
}

.star:nth-child(3n) {
    opacity: 0.8;
}

.star:nth-child(7n) {
    opacity: 0.6;
}

.star:nth-child(13n) {
    opacity: 0.4;
}

.star:nth-child(19n) {
    opacity: 0.2;
}
