
body {
    background: #f7fffb;
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
}

#quiz-container {
    max-width: 600px;
    margin: 40px auto;
    padding: 20px;
}

#question-card, #result-card {
    background: #ffffff;
    border-radius: 14px;
    padding: 25px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.08);
}

#progress-bar {
    width: 100%;
    height: 10px;
    background: #d9f7ee;
    border-radius: 10px;
    margin-bottom: 20px;
}

#progress-fill {
    height: 100%;
    width: 0%;
    background: #4cd4a9;
    border-radius: 10px;
    transition: width 0.3s ease;
}

#options-container {
    margin-top: 20px;
}

.option-btn {
    display: block;
    width: 100%;
    padding: 12px;
    margin-bottom: 12px;
    background: #eafff7;
    border: 2px solid #c8f5e7;
    border-radius: 10px;
    cursor: pointer;
    text-align: left;
    transition: 0.2s;
}

.option-btn:hover {
    background: #dffcf3;
}

#next-btn {
    margin-top: 20px;
    padding: 12px 20px;
    background: #4cd4a9;
    border: none;
    border-radius: 10px;
    color: white;
    font-size: 16px;
    cursor: pointer;
}

#next-btn:hover {
    background: #3bbd94;
}

#result-card h2 {
    margin-top: 0;
}

#result-content {
    margin-top: 20px;
}


/* Smooth fade animation */
.fade-in {
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Loading screen */
#loading-screen {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(255,255,255,0.9);
    display: none;
    justify-content: center;
    align-items: center;
    font-size: 22px;
    color: #4cd4a9;
    font-weight: bold;
}

/* Progress text */
#progress-text {
    text-align: right;
    font-size: 14px;
    color: #4cd4a9;
    margin-bottom: 8px;
}
.option-btn.selected {
    background: #4cd4a9 !important;
    color: white !important;
    border-color: #35b48d !important;
    transform: scale(1.02);
}
.option-btn {
    transition: background 0.25s ease, transform 0.2s ease;
}

#close-results-btn {
    margin-top: 20px;
    padding: 12px 20px;
    background: #ff6b6b;
    border: none;
    border-radius: 10px;
    color: white;
    font-size: 16px;
    cursor: pointer;
    width: 100%;
}

#close-results-btn:hover {
    background: #e85a5a;
}



