/* Improve the overall design of the full page */
body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    margin: 0;
    padding: 0;
}

/* Quiz Container - More responsive and SEO-friendly */
.quiz-container {
    max-width: 700px;
    margin: 25px auto;
    padding: 10px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out;
}

.quiz-container:hover {
    transform: scale(1.02);
}

/* Question design */
.question {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 15px;
    text-align: left;
    color: #222;
}

/* Option button design */
.options button {
    display: block;
    text-align: left;
    width: 100%;
    padding: 12px;
    margin: 8px 0;
    font-size: 16px;
    font-weight: bold;
    border: 1px solid #ddd;
    cursor: pointer;
    border-radius: 5px;
    background: #fff;
    color: black;
    transition: background 0.3s, color 0.3s, transform 0.2s;
}

.options button:hover {
    background: #e0e0e0;
    transform: scale(1.00);
}

/* Correct and incorrect answer styles */
.correct {
    background-color: #4CAF50 !important;
    color: white !important;
    border: 2px solid #388E3C;
}

.incorrect {
    background-color: #f44336 !important;
    color: white !important;
    border: 2px solid #C62828;
}

/* 📌 Answer explanation styling */
.answer-description {
    font-size: 16px;
    margin-top: 10px;
    color: #333;
    text-align: left;
    font-style: italic;
    border-left: 4px solid blue;
    padding-left: 10px;
    background: #f9f9f9;
    padding: 10px;
    border-radius: 5px;
}

/* 📌 Timer styling */
#timer {
    font-size: 18px;
    font-weight: bold;
    color: #d9534f;
    margin-bottom: 10px;
    text-align: right;
}

/* 📌 Button navigation layout */
.navigation {
    margin-top: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navigation button {
    padding: 12px 20px;
    font-size: 16px;
    font-weight: bold;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    margin: 5px;
    transition: background 0.3s, color 0.3s, transform 0.2s;
}

/* 📌 Previous and Next buttons */
#prev-btn {
    background: #007BFF;
    color: white;
    order: 1;
}

#next-btn {
    background: #28A745;
    color: white;
    order: 2;
}

#prev-btn:hover {
    background: #0056b3;
    transform: scale(1.05);
}

#next-btn:hover {
    background: #218838;
    transform: scale(1.05);
}

/* 📌 Submit button */
#submit-btn {
    background: #FFC107;
    color: black;
    display: none;
}

#submit-btn:hover {
    background: #e0a800;
}

/* 📌 Mobile-friendly design */
@media (max-width: 768px) {
    .quiz-container {
        width: 98%;
        margin: 1px auto;
        padding: 5px;
    }

    .question {
        font-size: 18px;
    }

    .options button {
        font-size: 14px;
        padding: 5px;
    }

    .navigation button {
        font-size: 16px;
        padding: 10px;
    }

    #timer {
        font-size: 16px;
    }
}

/* 📌 Result container styling */
#result-container {
    font-size: 16px;
    font-weight: normal;
    margin-top: 15px;
    text-align: left;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background: #fff;
    animation: fadeIn 0.3s ease-in-out;
}

/* 📌 Animation for fade-in effect on results */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(2px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 📌 Loader (Spinner) design */
.loader {
    border: 6px solid #f3f3f3;
    border-top: 6px solid #007BFF;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    display: block;
    margin: 50px auto;
}

/* Desktop loader size */
@media (min-width: 768px) {
    .loader {
        width: 100px;
        height: 100px;
    }
}

/* Mobile loader size */
@media (max-width: 767px) {
    .loader {
        width: 60px;
        height: 60px;
    }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ✅ FAQ Section */
.faq-container {
    display: none;
    background: #fff;
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    margin-top: 20px;
    transition: all 0.3s ease-in-out;
}

.faq-item {
    border-bottom: 1px solid #ddd;
    padding: 10px 0;
}

.faq-answer {
    color: green;
    font-weight: bold;
}

.hidden {
    display: none !important;
}
