@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700&family=Roboto:wght@300;400;700&display=swap');

body,
html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    font-family: 'Roboto', sans-serif;
    background-image: url('pixelart_starfield.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    overflow-x: hidden;
}

h1,
h2,
h3,
button {
    font-family: 'Orbitron', sans-serif;
}

#app-container {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 50px;
}

#logo {
    max-width: 80%;
    width: 400px;
    margin-bottom: 50px;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0px);
    }
}

.menu-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 300px;
    z-index: 10;
}

.menu-btn {
    background: rgba(0, 0, 0, 0.6);
    border: 2px solid #00AAFF;
    color: #00AAFF;
    padding: 15px 30px;
    font-size: 1.2rem;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 10px;
    backdrop-filter: blur(5px);
    width: 100%;
}

.menu-btn:hover {
    background: rgba(0, 170, 255, 0.2);
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(0, 170, 255, 0.5);
}

.content-section {
    display: none;
    flex-direction: column;
    align-items: center;
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid #444;
    border-radius: 15px;
    padding: 30px;
    margin-top: 20px;
    max-width: 600px;
    width: 90%;
    backdrop-filter: blur(10px);
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
    z-index: 20;
}

.content-section.active {
    display: flex;
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.store-buttons {
    display: flex;
    gap: 20px;
    margin-top: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.store-link {
    display: inline-block;
    padding: 10px 20px;
    background: #333;
    border-radius: 5px;
    text-decoration: none;
    color: white;
    font-weight: bold;
    border: 1px solid #666;
    transition: 0.3s;
}

.store-link:hover {
    background: #555;
    border-color: white;
}

#earth-decoration {
    position: fixed;
    bottom: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    opacity: 0.8;
    pointer-events: none;
    z-index: 1;
}

.text-content {
    line-height: 1.6;
    margin-bottom: 20px;
    white-space: pre-wrap;
    /* Preserves formatting from game text */
}

.close-btn {
    margin-top: 15px;
    background: transparent;
    border: 1px solid #ff4444;
    color: #ff4444;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 5px;
    font-family: 'Orbitron';
}

.close-btn:hover {
    background: rgba(255, 68, 68, 0.2);
}

@media (max-width: 768px) {
    #earth-decoration {
        width: 300px;
        bottom: -50px;
        /* left/transform are inherited, just adjusting size/bottom */
    }
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    width: 100%;
    margin-bottom: 20px;
}

.gallery-img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    border: 1px solid #444;
    transition: transform 0.3s ease;
}

.gallery-img:hover {
    transform: scale(1.05);
    border-color: #00AAFF;
    box-shadow: 0 0 15px rgba(0, 170, 255, 0.5);
    z-index: 10;
}