body {
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: #333;
}

.game-container {
    position: relative;
}

canvas {
    border: 2px solid white;
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
}

.controls {
    color: white;
    text-align: center;
    font-family: Arial, sans-serif;
    margin-top: 10px;
    position: relative;
    z-index: 1;
}

.level-message {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 48px;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    opacity: 0;
    transition: opacity 0.5s;
    pointer-events: none;
}

/* Make sure canvas fills the screen in fullscreen mode, but maintains aspect ratio */
canvas:fullscreen {
    width: auto !important;
    height: auto !important;
    max-width: 100vw;
    max-height: 100vh;
    margin: auto;
}

/* Make sure canvas fills the screen in fullscreen mode */
canvas:-webkit-full-screen {
    width: 100%;
    height: 100%;
}

canvas:-moz-full-screen {
    width: 100%;
    height: 100%;
}

canvas:-ms-fullscreen {
    width: 100%;
    height: 100%;
} 