body {
    margin: 0;
    padding: 0;
    overflow: hidden;
    background-color: #f7f7f7; /* Match game sky color */
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

canvas {
    display: block;
    background-color: #f7f7f7; /* Match page background */
    border: none; /* Remove border for seamless look */
    max-width: 100%;
    height: auto;
    image-rendering: pixelated; /* Better for pixel art games */
    image-rendering: crisp-edges;
}

/* For mobile devices - make canvas fill width but maintain aspect ratio */
@media (max-width: 640px) {
    body {
        align-items: center;
        padding: 0;
        justify-content: center;
    }
    
    canvas {
        width: 100%;
        max-height: 100vh;
        height: auto;
        border: none;
        object-fit: contain;
    }
}

h1 {
    text-align: center;
    font-family: 'Arial', sans-serif;
    color: #333;
}

.game-over {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2em;
    color: #ff0000;
    display: none;
}