/* General Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background: radial-gradient(circle at 50% 50%, #1e3d72, #141852, #0a052b); /* Deep space colors */
    color: #333;
    overflow: auto; /* Allow scrolling */
    position: relative; /* Allows for absolute positioning of stars */
}

/* Stars Background */
.stars {
    width: 100%;
    height: 100%;
    background: transparent;
    position: fixed; /* Keep stars fixed in the background */
    z-index: 1;
    pointer-events: none;
}

.star {
    width: 2px;
    height: 2px;
    background: white;
    position: absolute;
    border-radius: 50%;
    animation: twinkle 2s infinite ease-in-out;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 0.3; }
}

/* Header */
header {
    background-color: rgba(51, 51, 51, 0.7); /* Semi-transparent for space effect */
    color: white;
    text-align: center;
    padding: 20px 0;
    position: relative; /* Stacking context for stars */
    z-index: 2; /* Make header above stars */
}

h1 {
    font-size: 2.5rem;
}

/* Main Content */
main {
    color: white;
    width: 90%;
    max-width: 1100px;
    margin: 20px auto;
    position: relative; /* Stacking context for stars */
    z-index: 2; /* Make main content above stars */
}

#game-section {
    text-align: center;
    margin-bottom: 40px;
}

.game-frame {
    width: 100%;
    max-width: 600px;
    height: 400px;
    border: 5px solid #333;
    box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.2);
}

#about {
    background-color: white;
    color: black;
    padding: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    margin-top: 20px;
}

#additional-content {
    margin-top: 40px; /* Ensure there's some space above */
}

p {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

/* Footer */
footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 10px 0;
    margin-top: 40px;
}

/* Responsive Styles */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .game-frame {
        height: 300px;
    }

    p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.6rem;
    }

    h2 {
        font-size: 1.3rem;
    }

    .game-frame {
        height: 250px;
    }

    p {
        font-size: 0.9rem;
    }
}
