@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;600;800&display=swap');

:root {
    --primary: #FF6B6B; /* Soft Red */
    --secondary: #FFD93D; /* Sunny Yellow */
    --accent: #6BCB77; /* Grass Green */
    --info: #4D96FF; /* Sky Blue */
    --bg-gradient: linear-gradient(135deg, #fceabb 0%, #f8b500 100%);
    --card-bg: rgba(255, 255, 255, 0.95);
    --text-dark: #2D3436;
    --text-light: #636E72;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Outfit', sans-serif;
    background: var(--bg-gradient);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-dark);
    padding: 20px;
}

#app {
    width: 100%;
    max-width: 900px;
    background: var(--card-bg);
    border-radius: 40px;
    padding: 30px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    border: 8px solid rgba(255,255,255,0.5);
    position: relative;
    overflow: hidden;
}

@media (min-width: 768px) {
    #app { padding: 50px; }
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

h1 {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary);
    text-shadow: 2px 2px 0px rgba(0,0,0,0.05);
}

#timer {
    font-size: 1.4rem;
    font-weight: 800;
    background: var(--primary);
    color: white;
    padding: 8px 18px;
    border-radius: 50px;
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.3);
}

#progress-bar {
    width: 100%;
    height: 15px;
    background: #eee;
    border-radius: 50px;
    margin-bottom: 30px;
    overflow: hidden;
}

#progress-inner {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), var(--info));
    width: 0%;
    transition: width 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.question-box {
    animation: slideIn 0.5s ease;
}

.theme-badge {
    display: inline-block;
    background: var(--info);
    color: white;
    padding: 6px 15px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.question-image {
    width: 100%;
    max-height: 250px;
    object-fit: contain;
    border-radius: 20px;
    margin-bottom: 20px;
    background: #fdfdfd;
    padding: 10px;
    border: 3px dashed #ddd;
}

h2 {
    font-size: 1.6rem;
    margin-bottom: 15px;
    line-height: 1.3;
}

.options-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

@media (min-width: 600px) {
    .options-list { grid-template-columns: 1fr 1fr; }
}

.option-card {
    background: white;
    border: 3px solid #f0f0f0;
    padding: 20px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-size: 1.05rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    position: relative;
}

.option-card:hover {
    border-color: var(--secondary);
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.option-card.correct {
    background: var(--accent) !important;
    border-color: #fff !important;
    color: white !important;
}

.option-card.incorrect {
    background: var(--primary) !important;
    border-color: #fff !important;
    color: white !important;
}

.btn-next {
    background: var(--info);
    color: white;
    border: none;
    padding: 18px 40px;
    border-radius: 50px;
    font-size: 1.3rem;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(77, 150, 255, 0.3);
    margin-top: 30px;
    width: 100%;
    display: none;
    transition: 0.2s;
}

.btn-next:active { transform: scale(0.95); }

#results {
    text-align: center;
    display: none;
}

.final-score-box {
    font-size: 4rem;
    font-weight: 900;
    color: var(--primary);
    margin: 20px 0;
}

.review-area {
    margin-top: 40px;
    text-align: left;
    max-height: 400px;
    overflow-y: auto;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 30px;
}

.review-card {
    background: white;
    padding: 20px;
    border-radius: 20px;
    margin-bottom: 15px;
    border-left: 10px solid #eee;
}

.review-card.wrong { border-left-color: var(--primary); }
.review-card.right { border-left-color: var(--accent); }

@keyframes slideIn {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Custom scrollbar for review area */
.review-area::-webkit-scrollbar { width: 8px; }
.review-area::-webkit-scrollbar-thumb { background: #ddd; border-radius: 10px; }
