#exam-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

#exam-start-screen, #user-registration-screen {
    text-align: center;
    padding: 40px;
    background: #f8f9fa;
    border-radius: 10px;
    border: 1px solid #dee2e6;
}

#user-registration-form {
    max-width: 400px;
    margin: 0 auto;
    text-align: left;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
}

.form-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    box-sizing: border-box;
}

.form-group input:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 5px rgba(0, 124, 186, 0.3);
}

.exam-start-btn {
    background: #28a745;
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 5px;
    font-size: 18px;
    cursor: pointer;
    margin-top: 20px;
}

#exam-timer {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #007cba;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: bold;
    z-index: 1000;
    font-size: 16px;
}

.question-container {
    border: 1px solid #ddd;
    padding: 20px;
    margin: 20px 0;
    border-radius: 5px;
    background: #f9f9f9;
}

.question-text {
    margin-bottom: 15px;
    font-weight: bold;
    font-size: 16px;
}

.question-option {
    display: block;
    margin: 10px 0;
    padding: 5px;
}

.question-option input {
    margin-right: 8px;
}

.question-text-input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    margin-top: 10px;
}

.exam-form {
    max-width: 800px;
    margin: 0 auto;
}

.exam-submit-btn {
    background: #dc3545;
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
}

.exam-submit-container {
    text-align: center;
    margin: 30px 0;
    padding: 20px;
    background: #fff;
    border-radius: 5px;
    border: 2px solid #dc3545;
}

.exam-results {
    margin-top: 20px;
    padding: 20px;
    background: #f0f8ff;
    border-radius: 5px;
}

#exam-progress {
    text-align: center;
    margin-bottom: 20px;
    padding: 10px;
    background: #e9ecef;
    border-radius: 5px;
    font-weight: bold;
}

.question-slide {
    min-height: 300px;
}

.exam-navigation {
    text-align: center;
    margin: 30px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 5px;
}

.nav-btn {
    background: #007cba;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    margin: 0 10px;
    cursor: pointer;
}

.nav-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.exam-score {
    font-size: 24px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    background: #e9ecef;
    border-radius: 5px;
}

.result-correct {
    margin: 15px 0;
    padding: 15px;
    background: #d4edda;
    border-left: 4px solid #28a745;
    border-radius: 5px;
}

.result-incorrect {
    margin: 15px 0;
    padding: 15px;
    background: #f8d7da;
    border-left: 4px solid #dc3545;
    border-radius: 5px;
}

/* Math formula styling */
.math-content .MathJax {
    font-size: 1.1em;
}

.question-text {
    line-height: 1.6;
    margin-bottom: 15px;
}

.question-text p {
    margin-bottom: 10px;
}