.game-area {
    background: linear-gradient(to bottom, #87CEEB, #E0F7FA);
    border-radius: 15px;
    padding: 20px;
    margin: 20px auto;
    max-width: 800px;
    min-height: 400px;
    position: relative;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.math-problem {
    text-align: center;
    margin: 20px auto;
    padding: 20px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.problem {
    font-size: 2.5em;
    font-weight: bold;
    margin: 20px 0;
    color: #2C3E50;
    font-family: 'Bangers', cursive;
}

.answer-input {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 20px 0;
}

.answer-input input {
    font-size: 1.5em;
    padding: 10px;
    width: 150px;
    border: 3px solid #3498DB;
    border-radius: 8px;
    text-align: center;
}

.control-btn {
    background: #3498DB;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.2em;
    transition: all 0.3s ease;
}

.control-btn:hover {
    background: #2980B9;
    transform: scale(1.05);
}

.monkey-container {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
}

.monkey {
    font-size: 4em;
    transition: all 0.3s ease;
}

.monkey.correct {
    animation: jump 0.5s ease;
}

.monkey.incorrect {
    animation: shake 0.5s ease;
}

.game-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin: 20px auto;
    max-width: 800px;
    text-align: center;
    font-size: 1.2em;
}

.game-stats div {
    background: rgba(255, 255, 255, 0.9);
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.level-complete {
    text-align: center;
    margin: 20px auto;
    padding: 20px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.highscores {
    margin: 20px auto;
    max-width: 800px;
    text-align: center;
}

.scores-list {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    padding: 20px;
    margin-top: 10px;
}

@keyframes jump {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-50px); }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

/* Responsywność */
@media (max-width: 600px) {
    .game-area {
        padding: 10px;
        min-height: 300px;
    }

    .problem {
        font-size: 2em;
    }

    .answer-input {
        flex-direction: column;
        align-items: center;
    }

    .answer-input input {
        width: 80%;
    }

    .monkey {
        font-size: 3em;
    }
} 