/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', 'Comic Sans MS', sans-serif;
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 50%, #d299c2 100%);
    min-height: 100vh;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.container {
    max-width: 900px;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    padding: 30px;
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Header Styles */
header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 3px solid #ffd700;
}

header h1 {
    font-size: 2.5em;
    color: #2c3e50;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.subtitle {
    font-size: 1.2em;
    color: #7f8c8d;
    font-weight: 600;
}

/* Screen Management */
.screen {
    display: none;
}

.screen.active {
    display: block;
    animation: slideIn 0.4s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Level Selection */
.level-selection {
    text-align: center;
}

.level-selection h2 {
    font-size: 2em;
    color: #2c3e50;
    margin-bottom: 30px;
}

.level-buttons {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 600px;
    margin: 0 auto;
}

.level-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 20px;
    padding: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
    font-family: 'Poppins', sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.level-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.level-btn:active {
    transform: translateY(-2px);
}

.level-icon {
    font-size: 3em;
}

.level-title {
    font-size: 1.5em;
    font-weight: 700;
}

.level-desc {
    font-size: 1em;
    opacity: 0.9;
}

/* Health Hero Character */
.hero-container {
    text-align: center;
    margin-bottom: 20px;
}

.health-hero {
    font-size: 5em;
    display: inline-block;
    animation: bounce 2s infinite;
    transition: transform 0.3s ease;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

.health-hero.excited {
    animation: jump 0.5s;
}

.health-hero.sad {
    transform: scale(0.9);
    animation: shake 0.5s;
}

@keyframes jump {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-30px) scale(1.2);
    }
}

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(-10px);
    }
    75% {
        transform: translateX(10px);
    }
}

.hero-status {
    font-size: 1.2em;
    color: #2c3e50;
    font-weight: 600;
    margin-top: 10px;
}

/* Score Board */
.score-board {
    display: flex;
    justify-content: space-around;
    background: linear-gradient(135deg, #84fab0 0%, #8fd3f4 100%);
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.score-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.score-label {
    font-size: 0.9em;
    color: #2c3e50;
    font-weight: 600;
}

.score-value {
    font-size: 1.8em;
    color: #fff;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

/* Question Container */
.question-container {
    background: white;
    padding: 30px;
    border-radius: 20px;
    margin-bottom: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.question-header {
    margin-bottom: 15px;
}

.question-category {
    display: inline-block;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: 600;
}

.question-text {
    font-size: 1.5em;
    color: #2c3e50;
    margin-bottom: 25px;
    line-height: 1.6;
}

/* Options Container */
.options-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.option-btn {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
    border: 3px solid transparent;
    border-radius: 15px;
    padding: 20px;
    font-size: 1.1em;
    font-family: 'Poppins', sans-serif;
    color: #2c3e50;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    font-weight: 600;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.option-btn:hover {
    transform: translateX(10px);
    border-color: #667eea;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.option-btn:active {
    transform: translateX(5px);
}

.option-btn.correct {
    background: linear-gradient(135deg, #84fab0 0%, #56ab2f 100%);
    color: white;
    border-color: #56ab2f;
    animation: correctPulse 0.5s;
}

.option-btn.incorrect {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    color: white;
    border-color: #fa709a;
    animation: incorrectShake 0.5s;
}

@keyframes correctPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes incorrectShake {
    0%, 100% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(-10px);
    }
    75% {
        transform: translateX(10px);
    }
}

.option-btn.disabled {
    pointer-events: none;
    opacity: 0.7;
}

/* Feedback Message */
.feedback-message {
    text-align: center;
    padding: 20px;
    border-radius: 15px;
    font-size: 1.3em;
    font-weight: 700;
    margin-top: 20px;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.feedback-message.show {
    opacity: 1;
    transform: translateY(0);
}

.feedback-message.correct {
    background: linear-gradient(135deg, #84fab0 0%, #56ab2f 100%);
    color: white;
}

.feedback-message.incorrect {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    color: white;
}

/* Results Screen */
.results-container {
    text-align: center;
    padding: 20px;
}

.result-emoji {
    font-size: 6em;
    margin-bottom: 20px;
    animation: bounce 1s infinite;
}

.result-title {
    font-size: 2.5em;
    color: #2c3e50;
    margin-bottom: 20px;
}

.final-score {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 25px;
    border-radius: 20px;
    margin: 30px auto;
    max-width: 400px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.final-score-label {
    display: block;
    font-size: 1.3em;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 10px;
}

.final-score-value {
    display: block;
    font-size: 3em;
    color: white;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.result-message {
    font-size: 1.3em;
    color: #2c3e50;
    line-height: 1.8;
    margin: 20px 0;
    padding: 20px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 15px;
}

.achievement-badge {
    font-size: 4em;
    margin: 20px 0;
    animation: rotate 1s ease-in-out;
}

@keyframes rotate {
    0%, 100% {
        transform: rotate(0deg);
    }
    50% {
        transform: rotate(180deg) scale(1.2);
    }
}

.action-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 30px;
    flex-wrap: wrap;
}

.action-btn {
    padding: 15px 40px;
    font-size: 1.2em;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.action-btn.primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.action-btn.secondary {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

.action-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.action-btn:active {
    transform: translateY(-1px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 20px;
        border-radius: 20px;
    }

    header h1 {
        font-size: 2em;
    }

    .question-text {
        font-size: 1.2em;
    }

    .score-board {
        flex-direction: column;
        gap: 15px;
    }

    .level-buttons {
        gap: 15px;
    }

    .level-btn {
        padding: 20px;
    }

    .health-hero {
        font-size: 4em;
    }

    .action-buttons {
        flex-direction: column;
    }

    .action-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px;
    }

    header h1 {
        font-size: 1.5em;
    }

    .question-text {
        font-size: 1.1em;
    }

    .option-btn {
        padding: 15px;
        font-size: 1em;
    }
}
