```html
body {
backgroundcolor: black;
color: white;
fontfamily: Arial, sansserif;
textalign: center;
padding: 50px;
}
.star {
position: absolute;
backgroundcolor: white;
width: 2px;
height: 2px;
borderradius: 50%;
animation: twinkle 1s infinite;
}
@keyframes twinkle {
0% { opacity: 1; }
50% { opacity: 0; }
100% { opacity: 1; }
}
for (let i = 0; i < 100; i ) {
const star = document.createElement('div');
star.className = 'star';
star.style.left = Math.random() * 100 'vw';
star.style.top = Math.random() * 100 'vh';
star.style.animationDelay = Math.random() * 5 's';
document.body.appendChild(star);
}