/* General Styles */
body {
    margin: 0;
    padding: 0;
    font-family: 'Arial', sans-serif;
    background-color: #121212;
    color: #f1f1f1;
    line-height: 1.6;
}

h1, h2, p {
    margin: 0;
    padding: 0;
}

/* Main Container */
#main-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

header {
    text-align: center;
    margin-bottom: 20px;
}

header h1 {
    font-size: 2.5em;
    color: #00ff7f;
}

header p {
    font-size: 1.2em;
    color: #eaeaea;
}

/* Controls Section */
#controls {
    margin-bottom: 30px;
    text-align: center;
}

#controls h2 {
    font-size: 1.8em;
    margin-bottom: 10px;
}

#controls ul {
    list-style-type: none;
    padding: 0;
}

#controls li {
    margin: 10px 0;
}

#controls b {
    color: #00ff7f;
}

/* Game Demo Section */
#game-demo {
    margin-bottom: 30px;
    text-align: center;
}

canvas {
    background-color: #000;
    border: 3px solid #00ff7f;
    box-shadow: 0 0 10px rgba(0, 255, 127, 0.5);
    margin: 20px 0;
}

/* Game Controls Section */
#game-controls {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

button {
    background-color: #00ff7f;
    color: #121212;
    border: none;
    padding: 10px 20px;
    font-size: 1.2em;
    cursor: pointer;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 255, 127, 0.4);
    transition: background-color 0.3s, transform 0.2s;
}

button:hover {
    background-color: #1eff7f;
    transform: scale(1.05);
}

button:disabled {
    background-color: #444;
    color: #888;
    cursor: not-allowed;
}

#difficulty-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

#difficulty-slider {
    width: 150px;
}

#score-container, #resource-container {
    font-size: 1.2em;
    text-align: center;
}

#score-container p, #resource-container p {
    margin: 0;
}

/* Footer */
footer {
    margin-top: auto;
    text-align: center;
    padding: 10px;
    background-color: #1d1d1d;
    color: #888;
}

footer p {
    font-size: 0.9em;
}

/* Responsive Design */
@media (max-width: 768px) {
    h1 {
        font-size: 2em;
    }

    #difficulty-slider {
        width: 120px;
    }

    button {
        font-size: 1em;
        padding: 8px 16px;
    }
}