* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: linear-gradient(180deg, #87CEEB 0%, #1E90FF 100%);
    position: relative;
    overflow: hidden;
}

.title-container {
    text-align: center;
    margin-bottom: 30px;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.title-container h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
}

.title-container h2 {
    font-size: 1.5em;
    font-weight: normal;
    opacity: 0.9;
}

.game-container {
    background-color: rgba(255, 255, 255, 0.9);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0,0,0,0.2);
    width: 800px;
    position: relative;
    z-index: 1;
}

.stats {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    font-size: 1.2em;
}

.game-area {
    position: relative;
    height: 400px;
    border: 2px solid #333;
    margin-bottom: 20px;
    overflow: hidden;
    background: linear-gradient(180deg, #87CEEB 0%, #1E90FF 100%);
}

/* Wolken in het speelveld */
.game-area::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 56 24'%3E%3Cpath fill='%23fff' d='M44,12c0-6.6-5.4-12-12-12S20,5.4,20,12c-2.2,0-4,1.8-4,4s1.8,4,4,4h24c2.2,0,4-1.8,4-4S46.2,12,44,12z'/%3E%3C/svg%3E"),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 56 24'%3E%3Cpath fill='%23fff' d='M44,12c0-6.6-5.4-12-12-12S20,5.4,20,12c-2.2,0-4,1.8-4,4s1.8,4,4,4h24c2.2,0,4-1.8,4-4S46.2,12,44,12z'/%3E%3C/svg%3E");
    background-position: 0 20%, 0 80%;
    background-size: 80px auto;
    background-repeat: repeat-x;
    opacity: 0.6;
    animation: moveGameClouds 30s linear infinite;
    pointer-events: none;
    z-index: 0;
}

/* Animatie voor wolken in het speelveld */
@keyframes moveGameClouds {
    from {
        background-position: 0 20%, 0 80%;
    }
    to {
        background-position: 800px 20%, -800px 80%;
    }
}

.ladder {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Verticale stijlen van de ladder */
.ladder::before,
.ladder::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 100%;
    background-color: #8b4513;
    border-radius: 4px;
}

.ladder::before {
    left: 10px;
}

.ladder::after {
    right: 10px;
}

.ladder-step {
    position: absolute;
    width: calc(100% - 20px);
    height: 8px;
    background-color: #8b4513;
    border-radius: 4px;
    left: 10px;
    z-index: 1;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.player {
    position: absolute;
    width: 30px;
    height: 50px;
    left: 50%;
    transform: translateX(-50%);
    transition: bottom 0.5s ease, opacity 0.3s ease;
    z-index: 2;
}

.player.game-over {
    opacity: 0;
    pointer-events: none;
}

/* Hoofd */
.player::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    background-color: #FFD700;
    border-radius: 50%;
    border: 2px solid #000;
}

/* Lichaam */
.player::after {
    content: '';
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 20px;
    background-color: #FF0000;
    border: 2px solid #000;
}

/* Armen */
.player .arms {
    position: absolute;
    top: 25px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 4px;
    background-color: #FF0000;
    border: 2px solid #000;
}

/* Benen */
.player .legs-left,
.player .legs-right {
    position: absolute;
    top: 40px;
    width: 4px;
    height: 15px;
    background-color: #0000FF;
    border: 2px solid #000;
}

.player .legs-left {
    left: 8px;
    transform: rotate(-15deg);
}

.player .legs-right {
    right: 8px;
    transform: rotate(15deg);
}

/* Vuur animatie */
@keyframes fireGlow {
    0% { box-shadow: 0 0 20px #ff4d4d; }
    50% { box-shadow: 0 0 30px #ff9966; }
    100% { box-shadow: 0 0 20px #ff4d4d; }
}

.fire {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 60px;
    background: linear-gradient(to top, #ff4d4d, #ff9966);
    transition: height 0.5s ease;
    animation: fireGlow 2s ease-in-out infinite;
    z-index: 3;
}

.fire.game-over {
    height: 100%;
    animation: fireGlow 1s ease-in-out infinite;
}

.question-container {
    text-align: center;
    margin-bottom: 20px;
}

.question {
    font-size: 1.5em;
    margin-bottom: 10px;
}

input[type="number"] {
    padding: 10px;
    font-size: 1.2em;
    width: 100px;
    margin-right: 10px;
    border: 2px solid #333;
    border-radius: 5px;
}

button {
    padding: 10px 20px;
    font-size: 1.2em;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #45a049;
}

.message {
    text-align: center;
    font-size: 1.2em;
    min-height: 30px;
    color: #333;
}

.correct {
    color: #4CAF50;
}

.incorrect {
    color: #ff4d4d;
}

@keyframes fireRise {
    from {
        height: 60px;
    }
    to {
        height: 100%;
    }
}

/* Vuurwerk animaties */
@keyframes explode {
    0% {
        transform: scale(0);
        opacity: 1;
    }
    50% {
        transform: scale(1);
        opacity: 0.8;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

@keyframes fireworkParticles {
    0% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) scale(0);
        opacity: 0;
    }
}

.firework {
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    animation: explode 1s ease-out forwards;
    pointer-events: none;
}

.firework::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    transform-origin: center;
    animation: fireworkParticles 0.6s ease-out forwards;
}

/* Verschillende vuurwerk kleuren */
.firework-red {
    background: radial-gradient(circle, #ff0000, #ff6666);
    box-shadow: 0 0 20px #ff0000;
}

.firework-blue {
    background: radial-gradient(circle, #0000ff, #6666ff);
    box-shadow: 0 0 20px #0000ff;
}

.firework-gold {
    background: radial-gradient(circle, #ffd700, #ffeb99);
    box-shadow: 0 0 20px #ffd700;
}

.firework-green {
    background: radial-gradient(circle, #00ff00, #66ff66);
    box-shadow: 0 0 20px #00ff00;
}

.footer {
    margin-top: 20px;
    color: white;
    text-align: center;
    font-size: 1em;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
} 