/* 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;
}

/* Stars Background */
.stars {
    width: 100%;
    height: 100%;
    position: fixed; /* Use fixed positioning for stars to cover the viewport */
    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 {
    background-color: rgba(51, 51, 51, 0.8); /* Slightly transparent header */
    color: white;
    text-align: center;
    padding: 20px 0;
    position: relative; /* Ensure header is positioned relative to the stars */
    z-index: 2; /* Make header above stars */
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
}

a {
    color: #0066cc;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Button Styles */
.link-button {
    position: absolute; /* Position button absolutely within the header */
    top: 20px;
    left: 20px;
    padding: 10px 15px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 15px; /* Rounded corners */
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

.link-button:hover {
    background-color: #0056b3; /* Darker shade on hover */
}

.link-button i {
    margin-right: 5px; /* Space between the icon and text */
}

/* Main Content */
main {
    color: white;
    width: 90%;
    max-width: 1100px;
    margin: 20px auto;
    padding: 20px; /* Optional: Add some padding to the main section */
    position: relative;
    z-index: 2; /* Ensure content is above the stars */
    overflow: auto; /* Allow scrolling */
    min-height: calc(100vh - 200px); /* Adjust based on header/footer height */
}

#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: rgba(255, 255, 255, 0.1); /* Optional: Light background for better readability */
    padding: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    margin-top: 20px;
}

p {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

/* Footer */
footer {
    background-color: rgba(51, 51, 51, 0.8);
    color: white;
    text-align: center;
    padding: 10px 0;
    z-index: 3;
}

/* 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;
    }
}
