/* Basic quiz container styles */
.quiz-container {
    max-width: 800px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Blur effect for answers */
#quiz-original-content ul {
    filter: blur(5px);
    position: relative;
}

#quiz-original-content ul::after {
    content: "Start the quiz to view answers";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(13, 71, 161, 0.1);
    font-weight: bold;
}

/* Progress bar styles */
.quiz-progress-container {
    height: 10px;
    background-color: #f0f0f0;
    border-radius: 5px;
    margin: 15px 0;
}

#quiz-progress-bar {
    height: 100%;
    background-color: #0d47a1; /* Navy blue */
    border-radius: 5px;
    width: 0%;
    transition: width 0.3s ease;
}

#quiz-counter {
    text-align: right;
    margin-bottom: 20px;
    font-weight: bold;
}
/* Fix for dropdown visibility */
.form-control {
    width: 100%;
    padding: 12px 15px;
    font-size: 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background-color: #fff;
    height: auto;
    line-height: 1.5;
    display: block;
    appearance: auto;
}

select.form-control {
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='12' fill='none'%3E%3Cpath d='M8 12L0 0h16z' fill='%23444'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 30px;
}

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

/* Ensure dropdowns are fully visible */
select.form-control option {
    padding: 20px;
    font-size: 6px;
}

/* Question styles */
.quiz-question {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 5px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

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

.quiz-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.quiz-option {
    padding: 15px;
    background-color: #fff;
    border: 2px solid #ddd;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.2s;
}

.quiz-option:hover {
    border-color: #0d47a1;
}

.quiz-option.selected {
    border-color: #0d47a1;
    background-color: #e8eaf6;
}

.quiz-option.correct {
    border-color: #0d47a1;
    background-color: #e8f0fe;
}

.quiz-option.incorrect {
    border-color: #f44336;
    background-color: #ffebee;
}

.quiz-explanation {
    margin-top: 15px;
    padding: 15px;
    background-color: #f0f7ff;
    border-left: 4px solid #0d47a1;
    display: none;
}

/* Navigation buttons */
.quiz-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.nav-button {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    background-color: #e3f2fd;
    color: #0d47a1;
    font-weight: bold;
}

.nav-button:hover:not(:disabled) {
    background-color: #bbdefb;
}

.nav-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Main quiz button */
.quiz-button {
    background-color: #0d47a1;
    color: white;
    border: none;
    padding: 12px 25px;
    font-size: 16px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
}

.quiz-button:hover {
    background-color: #1a237e;
}

/* Results section */
#quiz-results {
    text-align: center;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 5px;
}

#quiz-score {
    font-size: 24px;
    margin: 20px 0;
    padding: 15px;
    background-color: #e8f0fe;
    border-radius: 5px;
}

#share-results {
    margin: 20px 0;
}

.share-button {
    background-color: #0d47a1;
    color: white;
    border: none;
    padding: 8px 16px;
    margin: 0 5px;
    border-radius: 4px;
    cursor: pointer;
}

#share-twitter {
    background-color: #1DA1F2;
}

#share-facebook {
    background-color: #4267B2;
}

#copy-results {
    background-color: #333;
}