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

body {
    font-family: Arial, sans-serif;
    background-color: #2c3e50;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    overflow: hidden;
}

.game-container {
    position: relative;
    max-width: 100%;
    max-height: 100vh;
}

#gameCanvas {
    display: block;
    background-color: #87CEEB;
    border: 3px solid #34495e;
    max-width: 100%;
    height: auto;
}

/* Touch Controls */
.touch-controls {
    display: none;
    position: fixed;
    bottom: 20px;
    left: 0;
    right: 0;
    justify-content: center;
    align-items: center;
    gap: 20px;
    z-index: 1000;
}

.control-btn {
    width: 70px;
    height: 70px;
    font-size: 24px;
    background-color: rgba(52, 73, 94, 0.8);
    color: white;
    border: 3px solid #34495e;
    border-radius: 50%;
    cursor: pointer;
    user-select: none;
    touch-action: manipulation;
    transition: background-color 0.2s;
}

.control-btn:active {
    background-color: rgba(41, 128, 185, 0.9);
}

.control-btn.jump {
    width: 80px;
    height: 80px;
    font-size: 28px;
    margin-left: 30px;
}

/* Show touch controls on mobile/tablet */
@media (max-width: 768px), (pointer: coarse) {
    .touch-controls {
        display: flex;
    }

    #gameCanvas {
        width: 100vw;
        height: auto;
        border: none;
    }

    .game-container {
        width: 100%;
    }
}

/* Responsive canvas */
@media (max-width: 800px) {
    #gameCanvas {
        width: 100%;
        height: auto;
    }
}
