:root {
    --theme-background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    --theme-primary: #2563eb;
    --theme-secondary: #3b82f6;
    --theme-accent: #60a5fa;
    --theme-question: linear-gradient(135deg, #dbeafe 0%, #eff6ff 100%);
    --theme-success: #93c5fd;
    --theme-danger: #1d4ed8;
    --theme-info: #bfdbfe;
    --theme-title: #1e3a8a;
    --theme-progress: #93c5fd;
    --theme-score: #60a5fa;
}

body {
    background: var(--theme-background);
    min-height: 100vh;
    font-family: 'Karla', sans-serif;
    color: var(--theme-primary);
}

/* Add theme indicator line at top */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--theme-secondary);
    z-index: 9999;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 80%, var(--theme-accent) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, var(--theme-primary) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, var(--theme-secondary) 0%, transparent 50%);
    opacity: 0.1;
    pointer-events: none;
    z-index: -1;
}

.box.game-container {
    background: var(--theme-question);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border: 4px solid var(--theme-accent);
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.game-container::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, var(--theme-accent) 0%, transparent 70%);
    opacity: 0.05;
    transform: rotate(45deg);
    pointer-events: none;
}

.title {
    color: var(--theme-primary);
    font-family: 'Comic Neue', cursive !important;
    font-weight: 400 !important;
    letter-spacing: 0.02em;
}

/* Override Bulma title styling */
h1.title {
    font-family: 'Comic Neue', cursive !important;
    font-weight: 400 !important;
    text-shadow: none !important;
}

/* Ensure the game title specifically is not bold */
.game-container h1.title {
    font-family: 'Comic Neue', cursive !important;
    font-weight: 400 !important;
    margin-bottom: 2rem !important;
}

.subtitle {
    color: var(--theme-primary);
    opacity: 0.9;
    font-weight: 400;
}

/* Section styling for proper spacing with header/footer */
.section {
    padding: 3rem 1.5rem;
}

/* Override Bulma column padding */
.column {
    padding: 0 !important;
}


/* Progress Info */
.progress-info {
    margin-bottom: 2rem;
}

/* Progress bar styles */
.progress-bar-container {
    width: 100%;
}

.progress-bar {
    width: 100%;
    height: 32px;
    background: var(--theme-progress);
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--theme-primary) 0%, var(--theme-secondary) 100%);
    border-radius: 20px;
    width: 10%; /* Will be updated dynamically */
    transition: width 0.3s ease;
}

.progress-timer {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Karla', sans-serif;
    font-size: 1.2rem;
    font-weight: 400;
    color: white;
    z-index: 10;



}



.tag {
    font-size: 1.1rem;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
}

.tag.is-info {
    background: var(--theme-accent) !important;
    color: white !important;
    border: 2px solid var(--theme-secondary) !important;
}

.tag.is-success {
    background: var(--theme-score) !important;
    color: white !important;
    border: 2px solid var(--theme-primary) !important;
}

/* Statement Container */
.statement-container {
    margin-bottom: 2rem;
}

.statement-box {
    background: rgba(255, 255, 255, 0.5);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.statement-text {
    font-family: 'Inter', sans-serif;
    font-size: 2rem;
    font-weight: 400;
    color: var(--theme-primary);
    margin: 0;
    line-height: 1.4;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.statement-text .number {
    font-family: 'Inter', sans-serif;
    font-size: 2rem;
    color: var(--theme-accent);
    font-weight: 400;
}

/* Choice Buttons */
.choices-container {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.choice-button {
    background: white;
    border: 3px solid #e5e7eb;
    border-radius: 15px;
    font-size: 3rem;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #374151;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.choice-button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.choice-button.selected {
    border-color: var(--theme-primary);
    background: var(--theme-info);
    transform: scale(1.05);
}

.choice-button.correct {
    border-color: #22c55e;
    background: #dcfce7;
    color: #15803d;
}

.choice-button.incorrect {
    border-color: #ef4444;
    background: #fee2e2;
    color: #dc2626;
}

.choice-button:disabled {
    cursor: not-allowed;
    opacity: 0.7;
}

.true-button {
    color: #059669;
}

.false-button {
    color: #dc2626;
}

/* Submit and Next Buttons */
.submit-container {
    margin-top: 2rem;
    margin-bottom: 0;
}

.button.is-rounded {
    padding-left: 2rem;
    padding-right: 2rem;
}

#submit-btn {
    background: var(--theme-primary);
    border-color: var(--theme-primary);
    color: white;
    font-weight: 400;
    font-size: 1.25rem;
    padding: 1.5rem 3rem;
    transition: all 0.3s ease;
}

#submit-btn:hover:not(:disabled) {
    background: var(--theme-secondary);
    border-color: var(--theme-secondary);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

#submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.button.is-primary {
    background: var(--theme-primary);
    color: white;
}

.button.is-primary:hover:not(:disabled) {
    background: var(--theme-secondary);
    transform: translateY(-2px);
}

.button.is-success {
    background: #22c55e;
    color: white;
}

.button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Feedback Message */
.feedback-message {
    margin: 1rem auto;
    max-width: 500px;
    font-size: 1.1rem;
    text-align: center;
}

.notification {
    padding: 1rem 1.5rem;
    border-radius: 10px;
}

.notification.is-success {
    background: #dcfce7;
    color: #15803d;
    border: 2px solid #22c55e;
}

.notification.is-danger {
    background: #fee2e2;
    color: #dc2626;
    border: 2px solid #ef4444;
}

/* Result Screen */
.result-stats {
    margin: 2rem 0;
}

.result-stats .title.is-1 {
    color: var(--theme-primary);
    font-size: 3rem;
    margin: 1rem 0;
}

.result-stats .subtitle {
    color: var(--theme-primary);
    opacity: 0.8;
}

.result-message {
    font-size: 1.5rem;
    color: var(--theme-primary);
    margin: 2rem 0;
    font-weight: 400;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .box.game-container {
        padding: 1.5rem;
    }
    
    .game-container .title {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    .statement-text {
        font-size: 1.2rem;
    }

    .statement-text .number {
        font-size: 1.5rem;
    }

    .choices-container {
        gap: 1.5rem;
    }

    .choice-button {
        width: 100px;
        height: 100px;
        font-size: 2.5rem;
    }

    .tag {
        font-size: 0.9rem;
        padding: 0.5rem 1rem;
    }
    

@media screen and (max-width: 480px) {
    .box.game-container {
        padding: 1rem;
    }
    
    .game-container .title {
        font-size: 1.25rem;
    }
    
    .statement-text {
        font-size: 1.1rem;
    }
    
    .statement-text .number {
        font-size: 1.25rem;
    }
    
    .statement-box {
        padding: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .choices-container {
        gap: 0.75rem;
    }
    
    .choice-button {
        width: 80px;
        height: 80px;
        font-size: 2rem;
    }
    
    #submit-btn, #next-btn, #play-again-btn {
        font-size: 1rem;
        padding: 1rem 1.5rem;
        width: 100%;
        max-width: 300px;
    }
    
    .submit-container {
        margin-top: 1.5rem;
    }
    
    .tag {
        font-size: 0.75rem;
        padding: 0.4rem 0.8rem;
    }
    

/* Animations */
@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.correct {
    animation: bounce 0.5s ease;
}

.incorrect {
    animation: shake 0.5s ease;
}

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

/* Very small screens - keep horizontal padding consistent */
@media screen and (max-width: 360px) {
    .section {
        padding: 1.5rem 1.5rem;
    }
}

/* Utility Classes */
.is-hidden {
    display: none !important;
}

/* Title font styling - Comic Neue */
.title {
    color: var(--theme-primary);
    font-family: 'Comic Neue', cursive !important;
    font-weight: 400 !important;
    letter-spacing: 0.02em;
}

.game-container h1.title {
    font-family: 'Comic Neue', cursive !important;
    font-weight: 400 !important;
    margin-bottom: 2rem !important;
}

/* Title responsive font sizes */
@media (max-width: 768px) {
    .game-container .title,
    .game-container h1.title {
        font-size: 1.1rem !important;
    }
}

@media (max-width: 480px) {
    .game-container .title,
    .game-container h1.title {
        font-size: 1rem !important;
    }
}
