* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Open Sans, sans-serif;
    background: #ffffff;
    min-height: 100vh;
    padding: 20px;
    display: flex;
    justify-content: left;
}

.home_button {
    position: absolute;
    top: 0px;
    right: 140px;
    height: 110px;
    width: 110px;
}

.home_button img {
    height: 110px;
    width: 110px;
}

.quiz-container {
    background: white;
    border-radius: 0px;
    box-shadow: 0;
    max-width: 800px;
    width: 100%;
    padding: 0px 0px 0px 100px;
    width: 100%;
    height: 100%;
}
#quiz-content{
    width: 800px;
    margin:auto;
}
.quiz-header {
    text-align: left;
    margin-bottom: 30px;
}

.quiz-header h1 {
    color: #02548f;
    font-size: 60px;
    margin-bottom: 10px;
}

.quiz-header .module-name {
    color: #02548f;
    font-size: 35px;
}

.progress-bar {
    background: #e0e0e0;
    height: 8px;
    border-radius: 0px;
    margin-bottom: 30px;
    overflow: hidden;
    border-radius: 2px;
}

.progress-fill {
    background: #02548f;
    height: 100%;
    width: 0%;
    transition: width 0.3s ease;
}

.question-container {
    margin-bottom: 30px;
}

.question-number {
    color: #02548f;
    font-weight: bold;
    font-size: 14px;
    margin-bottom: 10px;
}

.question-text {
    font-size: 20px;
    color: #333;
    margin-bottom: 20px;
    line-height: 1.5;
}

.answers {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.answer-option {
    display: flex;
    align-items: center;
    padding: 15px;
    background: #ffffff;
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 5px;
    border: 2px solid black;
}

.answer-option:hover {
    background: #f0f0f0;
    border-color: #2E75B6;
}

.answer-option input[type="radio"] {
    margin-right: 12px;
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.answer-option label {
    cursor: pointer;
    flex: 1;
    font-size: 20px;
    color: #333;
}


    .answer-option.selected {
        background-color: #02548f;
        color: white;
        font-weight: bold;
    }
.navigation-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    gap: 15px;
}

.btn {
    padding: 12px 30px;
    width: 255px;
    height: 63px;
    border: none;
    border-radius: 8px;
    font-size: 28px;
    font-weight: normal;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: #02548f;
    color: white;
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0;
}

.btn-secondary {
    background: #ffffff;
    color: #02548f;
}

.btn-secondary:hover:not(:disabled) {
    background: #d0d0d0;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.result-container {
    display: none;
    text-align: center;
    padding: 40px 20px;
}

.result-container.show {
    display: block;
}

.result-icon {
    font-size: 80px;
    margin-bottom: 20px;
}

.result-title {
    font-size: 32px;
    margin-bottom: 15px;
    font-weight: bold;
}

.result-title.pass {
    color: #28a745;
}

.result-title.fail {
    color: #dc3545;
}

.result-score {
    font-size: 24px;
    color: #666;
    margin-bottom: 20px;
}

.result-message {
    font-size: 18px;
    color: #666;
    margin-bottom: 30px;
    line-height: 1.5;
}

.loading {
    display: none;
    text-align: center;
    padding: 20px;
}

.loading.show {
    display: block;
}

.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.error-message {
    background: #f8d7da;
    color: #721c24;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: none;
}

.error-message.show {
    display: block;
}

@media (max-width: 768px) {
    .quiz-container {
        padding: 25px;
    }

    .quiz-header h1 {
        font-size: 24px;
    }

    .question-text {
        font-size: 16px;
    }

    .navigation-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }
}
