/* Base styles */
body {
    margin: 0;
    padding: 0;
    font-family: sans-serif;
    background-color: #f5f5f5;
}

.background {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 1rem;
    box-sizing: border-box;
    background-color: #121818;  
}

#outerGameContainer {
    position: relative;
    width: 100%;
    max-width: 960px; /* Set your desired max width for desktop */
    background-color: black;
    /* color: #efefef; */
    color: greenyellow;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    padding-top: 3rem; /* leave space for the fixed button */
    box-sizing: border-box;
}

/* Fixed button */
.fixed {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    z-index: 10;
    padding: 0.5rem 1rem;
    /* background-color: #007acc; */
    /* color: white; */
    background-color: #efefef;
    color: black;


    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
}

/* Game content *//* text-align: center; */
/* #desert {
    padding: 1rem;
    
    position: absolute;
    background-image: radial-gradient();
    height: 300px;
    width: 100%;
} */

/* ChatGPT */
#desert {
    position: relative; /* Needed if child elements are absolutely positioned */
    width: 100%;         /* Full width of parent container */
    max-width: 960px;    /* Optional: limits width on desktop */
    height: 300px;       /* Fixed height for consistent game area */
    overflow: hidden;    /* Hides overflow when background scrolls */
    background-image: url('your-background-image.png');
    background-repeat: repeat-x;
    background-size: cover; /* or 'contain' or a specific size depending on your art */
    background-position: 0 0;
}

.title h2 {
    margin: 0;
    font-size: 1.5rem;
}

/* Responsive adjustments */
@media screen and (max-width: 800px) {
    .background {
        padding: 0.5rem;
    }

    #outerGameContainer {
        width: 100%;
        max-width: none;
        padding-top: 3rem;
    }

    .fixed {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }

    .title h2 {
        font-size: 1.25rem;
    }
}
