/* Game Boy Classic Green Palette */
:root {
    --gb-darkest: #0f380f;
    --gb-dark: #306230;
    --gb-light: #8bac0f;
    --gb-lightest: #9bbc0f;
    --gb-screen: #9bbc0f;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Courier New', monospace;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.gameboy-container {
    background: #ddd;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    max-width: 600px;
}

.gameboy-screen {
    background: var(--gb-darkest);
    padding: 15px;
    border-radius: 10px;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.8);
}

.screen-border {
    position: relative;
    background: var(--gb-screen);
    padding: 10px;
    border-radius: 5px;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.3);
}

#gameCanvas {
    display: block;
    width: 100%;
    height: auto;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
    background: var(--gb-lightest);
}

#ui-overlay {
    position: absolute;
    top: 15px;
    left: 15px;
    right: 15px;
    display: flex;
    justify-content: space-between;
    color: var(--gb-darkest);
    font-size: 14px;
    font-weight: bold;
    pointer-events: none;
    z-index: 10;
    text-shadow: 1px 1px 0 var(--gb-lightest);
}

.controls-info {
    margin-top: 20px;
    text-align: center;
    color: #333;
}

.controls-info h3 {
    margin-bottom: 10px;
    color: #222;
}

.controls-info p {
    margin: 5px 0;
    font-size: 14px;
}

.game-title {
    text-align: center;
    margin-top: 15px;
    font-size: 24px;
    font-weight: bold;
    color: #222;
    letter-spacing: 2px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .gameboy-container {
        padding: 15px;
    }

    .game-title {
        font-size: 18px;
    }

    .controls-info p {
        font-size: 12px;
    }
}
