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

.container {
    max-width: 800px;
    margin: auto;
    overflow: hidden;
    padding: 0 20px;
    background: #fff;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    border-radius: 8px;
    margin-top: 20px;
    margin-bottom: 20px;
}

header {
    background: #004d40;
    color: #fff;
    padding: 1rem 0;
    text-align: center;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

header h1 {
    margin: 0;
    font-size: 2em;
}

header p {
    margin: 0;
    font-size: 1.1em;
}

footer {
    text-align: center;
    padding: 1rem 0;
    margin-top: 20px;
    color: #777;
    font-size: 0.9em;
}

/* Module Navigation (index.php) */
.module-nav ul {
    list-style: none;
    padding: 0;
}

.module-nav li {
    margin-bottom: 15px;
}

.module-nav a {
    text-decoration: none;
    color: inherit;
    display: block;
    background: #e0f2f1;
    padding: 20px;
    border-radius: 8px;
    transition: background-color 0.3s ease, transform 0.3s ease;
    border-left: 5px solid #00796b;
}

.module-nav a:hover {
    background-color: #b2dfdb;
    transform: translateY(-3px);
}

.module-link h2 {
    margin-top: 0;
    margin-bottom: 5px;
    color: #004d40;
}

.module-link p {
    margin-bottom: 0;
    font-size: 1em;
}

/* Quiz Styles (pretest_1.php) */
.quiz-container {
    padding: 20px;
}

.quiz-header {
    text-align: center;
    margin-bottom: 20px;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}

.quiz-header h1 {
    color: #004d40;
}

.question-block {
    margin-bottom: 25px;
    background-color: #f9f9f9;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #ddd;
}

.question-block p.question {
    font-weight: bold;
    font-size: 1.1em;
    margin-top: 0;
}

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

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

.options label {
    display: block;
    padding: 10px;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s, border-color 0.3s;
}

.options label:hover {
    background-color: #f0f0f0;
}

.options input[type="radio"] {
    margin-right: 10px;
}

.submit-btn {
    display: block;
    width: 100%;
    padding: 15px;
    border: none;
    background: #00796b;
    color: white;
    font-size: 1.2em;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.submit-btn:hover {
    background: #004d40;
}

#quiz-form .error-message {
    color: #D8000C;
    background-color: #FFD2D2;
    border: 1px solid #D8000C;
    padding: 10px;
    margin-bottom: 20px;
    border-radius: 5px;
    text-align: center;
    display: none;
}
