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

body {
    overflow: hidden;
    touch-action: none;
    background: #1a1a1a;
    font-family: Arial, sans-serif;
}

canvas {
    width: 100%;
    height: 100%;
    position: fixed;
}

#ui-container {
    position: fixed;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
}

#score {
    position: absolute;
    top: 20px;
    right: 20px;
    color: white;
    font-size: 24px;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

#game-over {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0,0,0,0.8);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    color: white;
    pointer-events: auto;
}

#start-screen {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0,0,0,0.8);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    color: white;
    pointer-events: auto;
}

button {
    background: #4CAF50;
    border: none;
    padding: 10px 20px;
    color: white;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 10px;
    pointer-events: auto;
    transition: background-color 0.3s ease;
}

button:hover {
    background: #45a049;
}

.mobile-controls {
    position: absolute;
    bottom: 20px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    pointer-events: auto;
}

#jump-button {
    background: rgba(255,255,255,0.3);
    border: 2px solid white;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 18px;
    cursor: pointer;
    transition: transform 0.1s ease;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

#jump-button:active {
    transform: scale(0.95);
    background: rgba(255,255,255,0.4);
}

@media (orientation: portrait) {
    #orientation-message {
        display: flex;
    }
    #game-container {
        display: none;
    }
}

@media (orientation: landscape) {
    #orientation-message {
        display: none;
    }
    #game-container {
        display: block;
    }
} 