body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #ff6b6b, #4ecdc4);
}

#startScreen {
    text-align: center;
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    max-width: 90%;
    width: 400px;
}

#startScreen h1 {
    font-size: 1.5rem;
    margin-bottom: 20px;
}

#nameInput {
    padding: 10px;
    font-size: 1rem;
    margin-bottom: 10px;
    width: 80%;
    max-width: 300px;
}

#startButton {
    padding: 10px 20px;
    font-size: 1rem;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    touch-action: manipulation;
}

#startButton:hover {
    background-color: #45a049;
}

#gameCanvas {
    border: 2px solid black;
    background-color: #fff;
    max-width: 100%;
    touch-action: none; /* Voorkom standaard touch-gedrag */
}

#score {
    font-size: 1.5rem;
    font-weight: bold;
    margin: 10px 0;
    color: white;
    text-shadow: 0 0 10px #ff6b6b;
}

#gameOver {
    text-align: center;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 20px;
    border-radius: 10px;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 90%;
}

#gameOver h2 {
    font-size: 1.5rem;
    margin: 0 0 10px;
}

#gameOver p {
    font-size: 1rem;
}

#leaderboard {
    margin: 20px 0;
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    max-width: 90%;
    width: 400px;
}

#leaderboard h2 {
    font-size: 1.2rem;
    margin-top: 0;
}

#leaderboard ul {
    list-style: none;
    padding: 0;
}

#leaderboard li {
    font-size: 1rem;
    margin: 5px 0;
}

footer {
    margin-top: 20px;
    font-size: 0.9rem;
    color: white;
    text-align: center;
}

.hidden {
    display: none;
}

@media (max-width: 600px) {
    #startScreen h1 {
        font-size: 1.2rem;
    }
    #nameInput {
        font-size: 0.9rem;
    }
    #startButton {
        font-size: 0.9rem;
    }
    #score {
        font-size: 1.2rem;
    }
    #gameOver h2 {
        font-size: 1.2rem;
    }
    #gameOver p {
        font-size: 0.9rem;
    }
    #leaderboard h2 {
        font-size: 1rem;
    }
    #leaderboard li {
        font-size: 0.9rem;
    }
}