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

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

#game-container {
    position: relative;
    width: 100%;
    height: 100%;
    max-width: 800px;
    max-height: 600px;
    background-color: #000;
    overflow: hidden;
}

#game-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

#score {
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 24px;
    color: #fff;
    z-index: 10;
}

#developer {
    position: absolute;
    bottom: 5px;
    right: 10px;
    font-size: 12px;
    color: #fff;
    z-index: 10;
    display: none;
}

#copyright {
    position: absolute;
    bottom: 5px;
    right: 10px;
    font-size: 12px;
    color: #fff;
    z-index: 10;
}

#game-over, #start-screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 20;
    text-align: center;
}

#game-over h1, #start-screen h1 {
    font-size: 48px;
    color: #ff0000;
    margin-bottom: 20px;
}

#game-over p, #start-screen p {
    font-size: 24px;
    margin-bottom: 30px;
}

button {
    padding: 10px 20px;
    font-size: 20px;
    background-color: #333;
    color: #fff;
    border: 2px solid #fff;
    border-radius: 5px;
    cursor: pointer;
}

button:hover {
    background-color: #555;
}

.hidden {
    display: none !important;
}

#timer, #goal {
    position: absolute;
    z-index: 10;
    font-size: 24px;
    color: #fff;
}

#timer {
    top: 10px;
    right: 10px;
}

#goal {
    top: 50px;
    left: 10px;
}

#controls {
    display: none;
}

#move-controls {
    display: flex;
    gap: 10px;
}

#move-controls button, #jump-btn {
    width: 60px;
    height: 60px;
    font-size: 24px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.3);
    border: 2px solid #fff;
}

#jump-btn {
    width: 80px;
}

.paypal-button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #0070ba;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 15px;
    font-weight: bold;
}

.paypal-button:hover {
    background-color: #005ea6;
}

#donate-container {
    margin-top: 20px;
    font-size: 16px;
}

#controls-info {
    position: absolute;
    top: 50px;
    right: 10px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    background-color: rgba(0, 0, 0, 0.6);
    padding: 10px;
    border-radius: 8px;
    z-index: 10;
    text-align: right;
    opacity: 0.8;
    pointer-events: none;
    animation: fadeOut 5s forwards;
}

@keyframes fadeOut {
    0% { opacity: 0.8; }
    70% { opacity: 0.8; }
    100% { opacity: 0; display: none; }
}