
/* --- Global Styles and Background --- */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-image: url('HRSbackground.png'); 
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: #333;
}

#quiz-container {
    background-color: rgba(255, 255, 255, 0.50);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    width: 90%;
    max-width: 800px;
    min-height: 500px;
    display: flex;
    flex-direction: column;
}

/* --- Title Page Styling --- */
.title-page {
    text-align: center;
    padding: 50px 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
}

.title-page h1 {
    color: #004d99; 
    margin-bottom: 20px;
    font-size: 2em;
}

.title-page p {
    font-size: 1.2em;
    color: #555;
    margin-top: 10px;
}

.title-page img {
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: 200px;
    height: auto;
    margin-bottom: 30px; 
}

/* --- Button Styling (Common) --- */
.btn-primary {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.3s ease;
    margin: 5px;
}

.btn-primary:hover {
    background-color: #0056b3;
}

.button-group {
    margin-top: 20px;
    text-align: center;
}

/* --- Question Page Styling --- */
.question-page {
    padding-top: 20px;
}

.question-text {
    font-size: 1.4em;
    margin-bottom: 20px;
    font-weight: bold;
    color: #333;
}

.options-list {
    list-style: none;
    padding: 0;
}

.option-item {
    margin-bottom: 15px;
    cursor: pointer;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    transition: background-color 0.2s;
}

.option-item label {
    display: block; 
    padding: 0;
    margin: 0;
}

.option-item:hover {
    background-color: #f0f8ff;
}

.option-item input[type="radio"] {
    margin-right: 15px;
}

/* Feedback Styling */
.feedback {
    margin-top: 10px;
    padding: 10px;
    border-radius: 5px;
    font-weight: bold;
    display: none; 
}

.feedback.correct {
    background-color: #e6ffed;
    color: #28a745;
}

.feedback.incorrect {
    background-color: #ffe6e6;
    color: #dc3545;
}

/* --- Results & Review Page Styling --- */
.results-page {
    text-align: center;
    padding: 30px;
}

.recommendation-text {
    font-size: 1.3em; 
    margin-top: 15px;
    font-weight: 600; 
}

.pass {
    color: #28a745; 
    font-size: 2em;
    font-weight: bold;
}

.fail {
    color: #dc3545; 
    font-size: 2em;
    font-weight: bold;
}

.summary-stats {
    margin: 20px 0;
    text-align: left;
    display: inline-block;
    min-width: 300px;
    font-size: 1.1em;
}

.performance-line {
    font-weight: bold;
}

.summary-stats div {
    margin: 5px 0;
}

/* Detailed Review Styling */
.detailed-review {
    padding: 20px;
    border-top: 1px solid #ccc;
    margin-top: 20px;
    max-height: 400px; 
    overflow-y: auto;
}

.review-item {
    border: 1px solid #eee;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 8px;
    background-color: #fafafa;
}

.review-item p {
    margin: 5px 0;
}

.review-question {
    font-weight: bold;
    color: #004d99;
    margin-bottom: 10px;
}

.review-status {
    font-size: 1.2em;
    font-weight: bold;
    float: right;
}

.review-status .fa-check-circle {
    color: #28a745; 
}

.review-status .fa-times-circle {
    color: #dc3545; 
}

.user-answer, .correct-answer {
    padding: 3px 0;
    font-size: 0.95em;
}

.user-answer.incorrect {
    color: #dc3545; 
    font-weight: bold;
}

.correct-answer {
    color: #28a745; 
    font-weight: bold;
}
