/* General Styles */
body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

/* Header Styles */
header {
    background-color: #333;
    color: #fff;
    padding: 20px 0;
    text-align: center;
}

header h1 {
    margin: 0;
}

/* Navigation Styles */
nav {
    display: flex;
    justify-content: center;
    background: #444;
    padding: 10px;
}

nav a {
    color: #fff;
    text-decoration: none;
    margin: 0 15px;
}

nav a:hover {
    text-decoration: underline;
}

nav a.active {
    font-weight: bold;
    text-decoration: underline;
}

/* Content Styles */
.content {
    padding: 20px;
    max-width: 800px;
    margin: 20px auto;
}

.content h2 {
    margin-top: 0;
}

/* Form Styles */
.form-group {
    margin-bottom: 15px;
}

label {
    display: block;
    margin-bottom: 5px;
}

input[type="text"],
input[type="email"],
input[type="password"] {
    width: 100%;
    padding: 8px;
    box-sizing: border-box;
}

button {
    background-color: #333;
    color: #fff;
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    display: inline-block;
}

button:hover {
    background-color: #555;
}

/* MCQ Styles */
.question {
    background-color: #fff;
    border: 1px solid #ddd;
    padding: 20px;
    margin-bottom: 20px;
}

.choices {
    list-style-type: none;
    padding: 0;
}

.choices li {
    margin-bottom: 10px;
}

.pagination {
    text-align: center;
    margin: 20px 0;
}

.pagination button {
    background-color: #ddd;
    border: none;
    padding: 10px;
    margin: 2px;
    cursor: pointer;
}

.pagination button.active {
    background-color: #333;
    color: #fff;
}

.pagination button:hover {
    background-color: #ccc;
}

/* Notes Styles */
.note {
    background-color: #fff;
    border: 1px solid #ddd;
    padding: 20px;
    margin-bottom: 20px;
}

.note h3 {
    margin-top: 0;
}


.question-image { 
    max-width: 100%; 
    max-height: 300px; /* Set a maximum height */ 
    width: auto; 
    height: auto; 
    display: block; 
    margin: 10px 0;
}



/* Fixed container for timer and question status */
#fixed-container {
    position: fixed;
    top: 10px;
    right: 10px;
    text-align: right;
    z-index: 1000;
}

/* Ensure main content is not hidden under fixed header */
body {
    padding-top: 60px;
}

#timer, #question-status {
    background: none;
    color: #333;
    padding: 5px 10px;
    text-align: right;
    display: inline-block;
    margin-left: 10px;
}

/* Table styles */ 
table { 
    width: 100%; 
    border-collapse: collapse; 
    margin-top: 1rem; 
} 

th, td { 
    padding: 1rem; 
    border: 1px solid #dee2e6; 
    text-align: left; 
} 

th { 
    background-color: #343a40; 
    color: #fff; 
} 

tr:nth-child(even) { 
    background-color: #f2f2f2; 
}