* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Times New Roman', serif;
    background-color: #f5f5f5;
    padding: 20px;
    line-height: 1.6;
}

.quiz-container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.quiz-header {
    background-color: #2c3e50;
    color: white;
    padding: 20px;
    text-align: center;
}

.quiz-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 5px;
}

.quiz-subtitle {
    font-size: 14px;
    opacity: 0.9;
}

.question-section {
    padding: 30px 30px 20px 30px;
}

.question-number {
    font-size: 18px;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 20px;
}

.question-image {
    max-width: 100%;
    /* max-width: 600px; */
    height: auto;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 25px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.question-text {
    font-size: 16px;
    margin-bottom: 25px;
    color: #333;
    text-align: center;
}

.answers-section {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 15px;
}

.answer-option {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background-color: #fafafa;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.answer-option:hover {
    background-color: #f0f0f0;
    border-color: #3498db;
}

.answer-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.answer-option:not(.wrong):not(.success) input[type="radio"]:checked + .answer-label {
    color: #3498db;
}

.answer-option:not(.wrong):not(.success):has(input[type="radio"]:checked) {
    border-color: #3498db;
}

.answer-option.wrong input[type="radio"] + .answer-label {
    color: red;
}

.answer-option.wrong:has(input[type="radio"]) {
    border-color: red;
}

.answer-option.success input[type="radio"] + .answer-label {
    color: green;
}

.answer-option.success:has(input[type="radio"]) {
    border-color: green;
}

.answer-label {
    font-weight: bold;
    color: #2c3e50;
    font-size: 18px;
    pointer-events: none;
}

.answer-text {
    color: #555;
    flex: 1;
}

.quiz-footer {
    background-color: #ecf0f1;
    padding: 20px;
    text-align: center;
    border-top: 1px solid #bdc3c7;
}

.submit-btn {
    background-color: #3498db;
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.submit-btn:hover {
    background-color: #2980b9;
}

.navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
}

.nav-btn {
    background-color: #95a5a6;
    color: white;
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.nav-btn:hover {
    background-color: #7f8c8d;
}

.nav-btn:disabled {
    background-color: #bdc3c7;
    cursor: not-allowed;
}

.question-counter {
    font-size: 14px;
    color: #7f8c8d;
}
