:root {
    --primary-color: #E84A5F;
    /* Soft Rose Pink */
    --primary-dark: #C0394B;
    --background-color: #FFF5F7;
    /* Very light pink tint */
    --card-bg: #ffffff;
    --text-color: #333333;
    --text-secondary: #666666;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --border-radius: 16px;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.container {
    width: 100%;
    max-width: 600px;
}

.quiz-container {
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

/* Progress Bar */
.progress-bar-container {
    width: 100%;
    height: 8px;
    background-color: #e0e0e0;
    border-radius: 10px;
    margin-bottom: 2rem;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background-color: var(--primary-color);
    width: 25%;
    /* Initial progress */
    transition: width 0.5s ease-in-out;
}

/* Question Card */
.question-card {
    display: none;
    flex-direction: column;
    align-items: center;
    text-align: center;
    animation: fadeIn 0.5s ease;
}

.question-card.active {
    display: flex;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.image-container {
    width: 100%;
    height: 250px;
    /* Fixed height for consistency */
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-color);
    line-height: 1.3;
}

/* Buttons */
.options-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    width: 100%;
}

.options-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.option-btn {
    padding: 1rem;
    background-color: transparent;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-family: inherit;
    font-weight: 500;
    font-size: 1rem;
    color: var(--text-color);
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.option-btn:hover {
    background-color: #FFF0F3;
    border-color: var(--primary-color);
    color: var(--primary-dark);
}

.option-btn:active {
    transform: scale(0.98);
}

.back-btn {
    margin-top: 1.5rem;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 0.9rem;
    cursor: pointer;
    text-decoration: underline;
    transition: color 0.2s;
}

.back-btn:hover {
    color: var(--text-color);
}

/* Results / Loading */
.result-card {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem 0;
}

.loading-spinner {
    border: 5px solid #f3f3f3;
    border-top: 5px solid var(--primary-color);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin-bottom: 1.5rem;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Responsive Adjustments */
@media (max-width: 480px) {
    .quiz-container {
        padding: 1.5rem;
    }

    .image-container {
        height: 180px;
    }

    .options-grid {
        grid-template-columns: 1fr;
        /* Stack on mobile */
    }

    h2 {
        font-size: 1.25rem;
    }
}