body {
    font-family: sans-serif;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    /* Align to top for longer content */
    min-height: 100vh;
    background-color: #f4f4f4;
    margin: 0;
    padding: 20px;
    box-sizing: border-box;
}

.container {
    background-color: #fff;
    padding: 20px 30px;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 700px;
    text-align: center;
}

h1,
h2 {
    color: #333;
}

button {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 10px 15px;
    margin: 10px 5px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #0056b3;
}

button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.hidden {
    display: none !important;
}

#question-container p {
    font-size: 1.2em;
    margin-bottom: 20px;
    min-height: 50px;
    /* Ensure space for question text */
}

#options-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.option-btn {
    background-color: #e9ecef;
    color: #333;
    border: 1px solid #ced4da;
    padding: 12px;
    text-align: left;
    width: 100%;
    box-sizing: border-box;
}

.option-btn:not(:disabled):hover {
    background-color: #d3d9df;
}

.option-btn.selected {
    background-color: #007bff;
    color: white;
    border-color: #0056b3;
}

.option-btn.correct {
    background-color: #28a745 !important;
    color: white !important;
}

.option-btn.incorrect {
    background-color: #dc3545 !important;
    color: white !important;
}

#feedback-container {
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 5px;
    font-weight: bold;
}

#feedback-container.correct-feedback {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

#feedback-container.incorrect-feedback {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

#timer-display {
    font-size: 1.1em;
    font-weight: bold;
    margin-bottom: 15px;
    color: #555;
}

#results-area p {
    font-size: 1.1em;
}

#result-details {
    text-align: left;
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #eee;
    padding: 10px;
    margin-top: 15px;
}

#result-details div {
    padding: 5px 0;
    border-bottom: 1px solid #f0f0f0;
}

#result-details div:last-child {
    border-bottom: none;
}

#result-details .user-correct {
    color: green;
}

#result-details .user-incorrect {
    color: red;
}

/* Add these styles for the progress display */
#progress-display {
    margin-bottom: 15px;
    font-weight: bold;
    text-align: center;
    color: var(--text-color, #333);
    background-color: var(--secondary-bg-color, #f0f0f0);
    padding: 8px 15px;
    border-radius: 4px;
    display: inline-block;
}