body {
    font-family: "Segoe UI", Arial, sans-serif;
    background: #f3f6fa;
    padding: 30px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.quiz-card,
.result-card {
    width: 500px;
    background: #fff;
    padding: 25px;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    animation: fadeIn 0.4s ease-in-out;
}

.quiz-header {
    margin-bottom: 15px;
}

.quiz-header h2 {
    margin: 0;
    font-size: 22px;
    color: #333;
}

.question-count {
    font-size: 14px;
    color: #777;
    margin-top: 5px;
}

.options-list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.options-list li {
    background: #f9f9f9;
    border: 1px solid #ddd;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.options-list li:hover {
    background: #D9FDD3 ;
    border-color: #D9FDD3 ;
}

.options-list li.active-class {
    background: #D9FDD3 ;
    color: #fff;
    border-color: #D9FDD3 ;
}

.quiz-footer {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

#nextQuestion {
    padding: 10px 18px;
    font-size: 15px;
    background: #007bff;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.3s;
}

#nextQuestion:disabled {
    background: #bbb;
    cursor: not-allowed;
}

#nextQuestion:hover:not(:disabled) {
    background: #0056b3;
}

#progressBarContainer {
    width: 100%;
    height: 12px;
    background: #eaeaea;
    border-radius: 6px;
    overflow: hidden;
}

#progressBar {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #28a745, #5be47f);
    border-radius: 6px;
    transition: width 0.4s ease;
}

.timer {
    font-weight: bold;
    color: #444;
}

#timer.warning {
    color: #d9534f;
}

.result-card h2 {
    color: #333;
}

.result-message.pass {
    color: green;
    font-weight: bold;
}

.result-message.fail {
    color: red;
    font-weight: bold;
}

.result-card {
    max-width: 500px;
    margin: 40px auto;
    padding: 20px 25px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    animation: fadeIn 0.5s ease-in-out;
}

.result-card h2 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #333;
}

.result-card p {
    font-size: 16px;
    margin: 8px 0;
    color: #555;
}

.result-message.pass {
    color: #28a745;
    font-weight: bold;
    font-size: 18px;
}

.result-message.fail {
    color: #dc3545;
    font-weight: bold;
    font-size: 18px;
}

.result-card button {
    margin: 10px 8px;
    padding: 10px 18px;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    cursor: pointer;
    transition: 0.3s;
}

.result-card button:hover {
    opacity: 0.9;
}

.result-card button:first-of-type {
    background-color: #007bff;
    color: white;
}

.result-card button:last-of-type {
    background-color: #6c757d;
    color: white;
}

.hidden {
    display: none;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}