@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@400;500;700&display=swap');

body {
    font-family: 'Tajawal', sans-serif;
    background-color: #f0f2f5;
    color: #333;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
}
.quiz-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #f0fdf4;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 700px;
    margin-bottom: 5px;
}
.logo {
  height: 2.5rem; /* Fixed height for the logo */
  width: auto;
}

.quiz-container {
    background-color: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 700px;
    margin-bottom: 20px;
}

.quiz-header-info {
    display: flex;
    justify-content: center; 
    align-items: center;
    margin-bottom: 20px;
}

.progress-bar-container {
    width: 100%; 
    background-color: #e9ecef;
    border-radius: 8px;
    height: 20px;
    overflow: hidden;
}

.progress-bar {
    width: 0%;
    height: 100%;
    background-color: #007bff;
    border-radius: 8px 0 0 8px;
    transition: width 0.4s ease-in-out;
}

.question-header {
    font-size: 1.4em;
    font-weight: 700;
    color: #0056b3;
    margin-bottom: 25px;
    border-bottom: 2px solid #0056b3;
    padding-bottom: 10px;
}

.options-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.option {
    background-color: #e9ecef;
    border: 1px solid #ced4da;
    padding: 15px;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s, border-color 0.3s;
    font-size: 1.1em;
}

.option:hover:not(.disabled) {
    background-color: #dde2e6;
    border-color: #b0b9c2;
}

.option.selected {
    background-color: #007bff !important; 
    color: white !important;
    border-color: #0056b3 !important;
}

.option.correct {
    background-color: #28a745 !important;
    color: white !important;
    border-color: #1e7e34 !important;
}

.option.incorrect {
    background-color: #dc3545 !important;
    color: white !important;
    border-color: #b02a37 !important;
}
.option.disabled {
    cursor: not-allowed;
    opacity: 0.7;
}

.feedback-area {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    padding: 15px;
    margin-top: 20px;
    border-radius: 8px;
    font-size: 1em;
    color: #343a40;
    line-height: 1.6;
}
.feedback-area.correct-feedback {
    border-right: 5px solid #28a745;
}
.feedback-area.correct-feedback strong {
    color: #28a745;
}
.feedback-area.incorrect-feedback {
    border-right: 5px solid #dc3545;
}
.feedback-area.incorrect-feedback strong { 
    color: #17a2b8; 
}

.navigation-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
}

.btn {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: 500;
    transition: background-color 0.3s;
    margin-left: 10px; 
}

#prev-btn {
    background-color: #6c757d;
}
#prev-btn:hover:not(:disabled) {
    background-color: #5a6268;
}

.btn:hover:not(:disabled) {
    background-color: #0056b3;
}

.btn:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

.results-container {
    background-color: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 700px;
    text-align: center;
}

.results-header {
    font-size: 1.8em;
    font-weight: 700;
    color: #0056b3;
    margin-bottom: 20px;
}

.score {
    font-size: 1.5em;
    margin-bottom: 20px;
}

.chart-container {
    width: 100%;
    max-width: 400px;
    margin: 20px auto;
}

.suggestions {
    text-align: right;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.suggestions h3 {
    color: #0056b3;
    font-size: 1.3em;
}

.suggestions ul {
    list-style-type: "– "; 
    padding-right: 20px;
    text-align: right;
}
.suggestions li {
    margin-bottom: 10px;
    font-size: 1.1em;
    line-height: 1.6;
}

.results-actions {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 15px;
}

footer {
    margin-top: 30px;
    font-size: 0.9em;
    color: #666;
    padding-bottom: 20px;
}

.quiz-main-title {
    text-align: center;
    color: #0056b3;
    margin-top: 0;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e9ecef;
}

.quiz-header-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

#timer-display {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: #e9ecef;
    padding: 8px 15px;
    border-radius: 8px;
    border: 1px solid #ced4da;
    font-size: 1.2em;
    font-weight: 700;
    color: #343a40;
    min-width: 110px;
    justify-content: center;
}

#timer-display svg {
    stroke-width: 2.5;
}

#timer-display.timer-warning {
    background-color: #fff3cd;
    border-color: #ffeeba;
    color: #856404;
}

.quiz-title-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
    border-bottom: 2px solid #e9ecef;
}

.quiz-main-title {
    margin: 0;
    padding-bottom: 15px;
    border-bottom: none;
    flex-grow: 1;
}

.btn.btn-secondary {
    background-color: #6c757d;
    padding: 8px 15px;
    font-size: 0.9em;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.btn.btn-secondary:hover {
    background-color: #5a6268;
}

.btn.btn-secondary svg {
    margin-top: -1px;
}


