:root {
    --primary-color: #FACB10;
    /* User Requested Yellow */
    --secondary-color: #e67e22;
    /* Warm Orange to match Yellow */
    --accent-color: #2c3e50;
    /* Dark Blue for contrast */
    --bg-gradient: linear-gradient(135deg, #fffbf0 0%, #fff8e1 100%);
    --card-bg: rgba(255, 255, 255, 0.95);
    --text-main: #2c3e50;
    --text-light: #7f8c8d;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Lato', sans-serif;
    --anim-speed: 0.3s;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    background: #FACB10;
    /* fallback for old browsers */
    background: -webkit-linear-gradient(to right, #FFFFFF, #FFEFBA);
    /* Chrome 10-25, Safari 5.1-6 */
    background: linear-gradient(to right, #fff5d7, #ffedb8);
    /* Lighter soft yellow gradient */
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
}

/* Background Animation Placeholder */
.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.4;
    background-image: radial-gradient(#e94e77 1px, transparent 1px);
    background-size: 30px 30px;
}

/* Main Container */
.quiz-container {
    background: var(--card-bg);
    width: 90%;
    max-width: 600px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    transition: transform var(--anim-speed);
}

.quiz-header {
    text-align: center;
    margin-bottom: 2rem;
}

h1 {
    font-family: var(--font-heading);
    color: var(--secondary-color);
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
}

.subtitle {
    color: var(--text-light);
    font-weight: 300;
}

/* Progress Bar */
.progress-bar {
    width: 100%;
    height: 6px;
    background: #eee;
    margin-top: 1.5rem;
    border-radius: 10px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--primary-color);
    width: 0%;
    /* JS will update this */
    transition: width 0.5s ease-in-out;
}

/* Quiz Content */
.question-card h2 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-main);
    text-align: center;
}

.options-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.option-btn {
    background: #fff;
    border: 2px solid #eee;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 1rem;
    text-align: left;
    transition: all 0.2s ease;
    color: var(--text-main);
}

.option-btn:hover {
    border-color: var(--primary-color);
    background: #fff0f3;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(233, 78, 119, 0.15);
}

.option-btn:active {
    transform: translateY(0);
}

/* Footer */
.quiz-footer {
    margin-top: 2rem;
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-light);
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 1;
    visibility: visible;
    transition: all 0.3s ease;
}

.modal.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.modal-content {
    background: #fff;
    padding: 2.5rem;
    border-radius: 20px;
    text-align: center;
    max-width: 500px;
    width: 90%;
    position: relative;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);
    border-top: 5px solid var(--primary-color);
    animation: slideUp 0.4s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 1.5rem;
    cursor: pointer;
    color: #999;
}

.result-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--secondary-color);
    margin: 1rem 0;
}

.result-icon {
    font-size: 4rem;
    margin: 1rem 0;
    animation: pulse 2s infinite;
}

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

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

.result-description {
    line-height: 1.6;
    margin-bottom: 2rem;
    color: #555;
}

.primary-btn {
    background: var(--primary-color);
    color: #2c3e50;
    /* Dark text for better contrast on yellow */
    border: none;
    padding: 1rem 2rem;
    font-size: 1rem;
    border-radius: 50px;
    cursor: pointer;
    transition: background 0.3s;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.primary-btn:hover {
    background: var(--secondary-color);
    color: white;
    /* White text on darker hover color */
}

/* Mobile Responsiveness */
@media (max-width: 480px) {
    h1 {
        font-size: 1.8rem;
    }

    .quiz-container {
        padding: 1.5rem;
        width: 95%;
    }

    .modal-content {
        padding: 1.5rem;
    }
}

/* Store Buttons */
.store-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1.5rem;
    padding: 0.5rem 0;
    align-items: center;
}

.store-btn {
    display: inline-block;
    transition: transform 0.2s;
    text-decoration: none;
    /* remove underline from links */
}

.store-btn img {
    height: 40px;
    width: auto;
    display: block;
    /* remove inline gap */
}

.store-btn:hover {
    transform: scale(1.05);
}
/* Modal Actions */
.modal-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.secondary-btn {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--text-main);
    padding: 1rem 2rem;
    font-size: 1rem;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 700;
    font-family: var(--font-body);
}

.secondary-btn:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
}
