:root {
    --theme-background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    --theme-primary: #22c55e;
    --theme-secondary: #16a34a;
    --theme-accent: #4ade80;
    --theme-question: linear-gradient(135deg, #d1fae5 0%, #ecfdf5 100%);
    --theme-success: #86efac;
    --theme-danger: #15803d;
    --theme-info: #a7f3d0;
    --theme-title: #064e3b;
    --theme-progress: #86efac;
    --theme-score: #4ade80;
}


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

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

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

/* Match top spacing with Add One game on mobile */
@media screen and (max-width: 480px) {
    .section {
        padding-top: 1.5rem;
    }
}

.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;
}

.box.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;
}

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

/* Specific game title */
.game-container .title {
    font-family: 'Comic Neue', cursive !important;
    font-weight: 400 !important;
}

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

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

/* Add subtle pattern overlay */
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;
}

.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);
    color: white;
    border: 2px solid var(--theme-secondary);
}

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

/* Timer styling */
#timer {
}

.question-container {
    background: var(--theme-primary);
    padding: 1rem;
    border-radius: 15px;
    margin-bottom: 2rem;
    border: 2px solid var(--theme-secondary);
}

#question-text {
    font-family: 'Inter', sans-serif;
    color: white;
    margin: 0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.clock-display {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    margin-bottom: 2rem;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    min-height: 200px;
    border: 3px solid var(--theme-accent);
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.1);
}

.clock-svg {
    width: 200px;
    height: 200px;
    transition: transform 0.3s;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.2));
}

.clock-svg:hover {
    transform: scale(1.1) rotate(5deg);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Choice button styles */
.choices-section {
    margin-top: 2rem;
    margin-bottom: 2rem;
    text-align: center;
}

.choices-container {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: nowrap;
    padding: 0 0.5rem;
}

.choice-button {
    min-width: 120px;
    height: 80px;
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(45deg, var(--theme-primary) 0%, var(--theme-secondary) 100%);
    color: white;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.choice-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.choice-button:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.choice-button:hover::before {
    width: 200px;
    height: 200px;
}

.choice-button:active {
    transform: translateY(-2px) scale(1.02);
}

.choice-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.choice-button.selected {
    transform: scale(0.95);
}

.choice-button.correct {
    background: linear-gradient(45deg, #22c55e 0%, #16a34a 100%);
    animation: correctPulse 0.6s ease-out;
}

.choice-button.incorrect {
    background: linear-gradient(45deg, #ef4444 0%, #dc2626 100%);
    animation: shake 0.5s ease-out;
}

@keyframes correctPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.feedback-message {
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    border-radius: 10px;
    animation: slideIn 0.3s ease-out;
    border: 2px solid currentColor;
    padding: 1rem 1.5rem;
}

.notification.is-success {
    background-color: var(--theme-success);
    color: #064e3b;
    border: 2px solid var(--theme-secondary);
    font-weight: 600;
}

.notification.is-danger {
    background-color: #fee2e2;
    color: #dc2626;
    border: 2px solid #fca5a5;
    font-weight: 600;
}

@keyframes slideIn {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

#next-btn {
    margin-top: 1rem;
    font-size: 1.1rem;
    padding: 0.75rem 2rem;
    border-radius: 25px;
    background: linear-gradient(45deg, var(--theme-primary) 0%, var(--theme-secondary) 100%);
    color: white;
    border: none;
    transition: all 0.3s ease;
}

#next-btn:hover {
    transform: scale(1.05);
    background: linear-gradient(45deg, var(--theme-accent) 0%, var(--theme-primary) 100%);
}

.result-card {
    background: rgba(255, 255, 255, 0.95);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 3px solid var(--theme-primary);
    max-width: 500px;
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#final-score {
    font-size: 3rem;
    margin: 1rem 0;
    animation: zoomIn 0.5s ease-out;
    color: var(--theme-primary);
    font-weight: 900;
}

@keyframes zoomIn {
    from {
        transform: scale(0);
    }
    to {
        transform: scale(1);
    }
}

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

#play-again-btn {
    margin: 1.5rem 0 0;
    font-size: 1.2rem;
    padding: 1rem 2.5rem;
    border-radius: 30px;
    background: linear-gradient(45deg, var(--theme-primary) 0%, var(--theme-secondary) 100%);
    color: white;
    border: none;
    transition: all 0.3s ease;
    display: inline-block;
}

#play-again-btn:hover {
    transform: scale(1.05);
    background: linear-gradient(45deg, var(--theme-accent) 0%, var(--theme-primary) 100%);
}

/* Theme-based styling for all text elements */
#result-screen .title {
    color: var(--theme-primary);
}

#result-screen .subtitle {
    color: var(--theme-secondary);
}

/* Style time display */
#time-taken {
    color: var(--theme-primary);
    background: var(--theme-info);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    display: inline-block;
}

/* Progress bar effect for tags */
.tag {
    transition: all 0.3s ease;
}

.tag:hover {
    transform: scale(1.05);
}

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

/* Style feedback notification text */
.notification {
}

/* Mobile text abbreviation */
@media (max-width: 768px) {
    #question-text {
        font-size: 1.2rem;
    }

    #play-again-btn {
        font-size: 1.1rem;
        padding: 0.75rem 2rem;
        width: auto;
        min-width: 150px;
    }

/* Extra small screens and iPhone 4 */
@media (max-width: 480px) {
    #question-text {
        font-size: 1.1rem;
    }

    #play-again-btn {
        font-size: 1rem;
        padding: 0.6rem 1.5rem;
        min-width: 120px;
    }
    .clock-display {
        padding: 0.5rem;
    }
    
    .clock-svg {
        width: 160px;
        height: 160px;
    }
    
    .box.game-container .title {
        font-size: 1rem;
    }
    
    #question-text {
    font-family: 'Inter', sans-serif;
        font-size: 1.1rem;
    }
    
    .tag {
        font-size: 0.85rem;
        padding: 1rem;
    }
    
    #final-score {
        font-size: 2.5rem;
    }
    
    .choice-button {
        min-width: 60px;
        height: 45px;
        font-size: 1.2rem;
        border-radius: 12px;
        padding: 0 0.75rem;
    }
    
    .choices-container {
        gap: 0.5rem;
    }
}

/* iPhone 4 and very small screens */
@media (max-width: 320px) {
    .choice-button {
        min-width: 50px;
        height: 40px;
        font-size: 1.1rem;
        padding: 0 0.5rem;
    }
    
    .choices-container {
        gap: 0.4rem;
        padding: 0 0.25rem;
    }
    
    .choices-section {
        padding: 0 0.5rem;
    }
}

/* 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;
}

#game-area {
}

/* 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;
    }
}

/* Very small screens */
@media screen and (max-width: 360px) {
    .box.game-container {
        padding: 0.75rem;
    }
}
}

/* Hide elements */
.is-hidden {
    display: none !important;
}

/* Theme variations - updated to use CSS variables */
.theme-purple {
    --theme-primary: #8b5cf6;
    --theme-secondary: #7c3aed;
    --theme-background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    --theme-question: linear-gradient(135deg, #e9d5ff 0%, #f3e8ff 100%);
    --theme-accent: #a78bfa;
    --theme-success: #c4b5fd;
    --theme-danger: #7c3aed;
    --theme-info: #ddd6fe;
    --theme-progress: #c4b5fd;
    --theme-score: #a78bfa;
}

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

.theme-green {
    --theme-primary: #22c55e;
    --theme-secondary: #16a34a;
    --theme-background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    --theme-question: linear-gradient(135deg, #bbf7d0 0%, #dcfce7 100%);
    --theme-accent: #4ade80;
    --theme-success: #86efac;
    --theme-danger: #15803d;
    --theme-info: #a7f3d0;
    --theme-progress: #86efac;
    --theme-score: #4ade80;
}

.theme-red {
    --theme-primary: #ef4444;
    --theme-secondary: #dc2626;
    --theme-background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    --theme-question: linear-gradient(135deg, #fecaca 0%, #fee2e2 100%);
    --theme-accent: #f87171;
    --theme-success: #fca5a5;
    --theme-danger: #b91c1c;
    --theme-info: #fecaca;
    --theme-progress: #fca5a5;
    --theme-score: #f87171;
}

.theme-orange {
    --theme-primary: #f97316;
    --theme-secondary: #ea580c;
    --theme-background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    --theme-question: linear-gradient(135deg, #fed7aa 0%, #ffedd5 100%);
    --theme-accent: #fb923c;
    --theme-success: #fdba74;
    --theme-danger: #c2410c;
    --theme-info: #fed7aa;
    --theme-progress: #fdba74;
    --theme-score: #fb923c;
}

.theme-yellow {
    --theme-primary: #eab308;
    --theme-secondary: #ca8a04;
    --theme-background: linear-gradient(135deg, #eab308 0%, #ca8a04 100%);
    --theme-question: linear-gradient(135deg, #fef08a 0%, #fef9c3 100%);
    --theme-accent: #facc15;
    --theme-success: #fde047;
    --theme-danger: #a16207;
    --theme-info: #fef08a;
    --theme-progress: #fde047;
    --theme-score: #facc15;
}

.theme-pink {
    --theme-primary: #ec4899;
    --theme-secondary: #db2777;
    --theme-background: linear-gradient(135deg, #ec4899 0%, #db2777 100%);
    --theme-question: linear-gradient(135deg, #fbcfe8 0%, #fce7f3 100%);
    --theme-accent: #f472b6;
    --theme-success: #f9a8d4;
    --theme-danger: #be185d;
    --theme-info: #fbcfe8;
    --theme-progress: #f9a8d4;
    --theme-score: #f472b6;
}

.theme-indigo {
    --theme-primary: #6366f1;
    --theme-secondary: #4f46e5;
    --theme-background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    --theme-question: linear-gradient(135deg, #c7d2fe 0%, #e0e7ff 100%);
    --theme-accent: #818cf8;
    --theme-success: #a5b4fc;
    --theme-danger: #4338ca;
    --theme-info: #e0e7ff;
    --theme-progress: #a5b4fc;
    --theme-score: #818cf8;
}

.theme-teal {
    --theme-primary: #14b8a6;
    --theme-secondary: #0d9488;
    --theme-background: linear-gradient(135deg, #14b8a6 0%, #0d9488 100%);
    --theme-question: linear-gradient(135deg, #99f6e4 0%, #ccfbf1 100%);
    --theme-accent: #2dd4bf;
    --theme-success: #5eead4;
    --theme-danger: #0f766e;
    --theme-info: #99f6e4;
    --theme-progress: #5eead4;
    --theme-score: #2dd4bf;
}

.theme-cyan {
    --theme-primary: #06b6d4;
    --theme-secondary: #0891b2;
    --theme-background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
    --theme-question: linear-gradient(135deg, #a5f3fc 0%, #cffafe 100%);
    --theme-accent: #22d3ee;
    --theme-success: #67e8f9;
    --theme-danger: #0e7490;
    --theme-info: #cffafe;
    --theme-progress: #67e8f9;
    --theme-score: #22d3ee;
}

/* Sticky footer styles */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}
