body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

.container {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 250px;
    min-width: 250px;
    padding: 20px;
    background-color: #e8efe8;
    flex-shrink: 0; /* Prevents shrinking */
}

.main-content {
    flex-grow: 1;
    padding: 20px;
    background-color: #ffffff;
}

.cookie-box {
    display: flex;
    align-items: center;
    padding: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    gap: 10px;
}

.options-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 15px;
}

.option {
    width: 100%;
    padding: 10px;
    margin: 5px 0;
    background-color: #f8f9fa;
    border-radius: 6px;
    color: #333;
    cursor: pointer;
    border: 2px solid transparent;
    text-align: left;
    font-size: 1em;
    transition: all 0.2s ease;
}

.option:hover {
    background-color: #e9ecef;
    border-color: #dee2e6;
}

.option.selected {
    background-color: #e3f2fd;
    border-color: #1f77b4;
    color: #1f77b4;
}

.option:disabled {
    opacity: 0.8;
    cursor: not-allowed;
}

.option:disabled.selected {
    background-color: #e3f2fd;
    border-color: #1f77b4;
    color: #1f77b4;
}

/* Button container */
.button-container {
    margin-top: 15px;
    min-height: 42px;
    position: relative;
    margin-bottom: -10px; /* Negative margin to pull feedback up */
}

.primary-button {
    background-color: #1f77b4;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1em;
}

.primary-button:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

.next-quiz-round-btn {
    background-color: #90EE90;
    color: #006400;
    font-weight: bold;
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    width: 100%;
}

.question-nav-button {
    width: 100%;
    padding: 8px;
    margin: 4px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Feedback styling */
#feedback {
    margin-top: 0; /* Remove top margin completely */
    padding: 15px;
    border-radius: 8px;
    background-color: #f8f9fa;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

#resultMessage {
    margin-bottom: 8px;
}

.success {
    color: #28a745;
    padding: 8px 15px;
    background-color: #d4edda;
    border-radius: 4px;
    border-left: 4px solid #28a745;
}

.error {
    color: #dc3545;
    padding: 8px 15px;
    background-color: #f8d7da;
    border-radius: 4px;
    border-left: 4px solid #dc3545;
}

#explanation {
    margin-top: 8px;
    padding: 12px 15px;
    background-color: white;
    border-radius: 4px;
    border-left: 4px solid #1f77b4;
    line-height: 1.5;
}

#explanation strong {
    color: #1f77b4;
    display: block;
    margin-bottom: 6px;
}

#questionNumber {
    color: #1f77b4;
    font-size: 1.3em;
    margin-bottom: 15px;
    font-weight: 500;
}

#questionText {
    font-size: 1.1em;
    line-height: 1.5;
    color: #2c3e50;
    margin-bottom: 25px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 6px;
    border-left: 4px solid #1f77b4;
}

#welcomeScreen {
    max-width: 800px;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

#welcomeScreen h1 {
    color: #1f77b4;
    margin-bottom: 30px;
    font-size: 2em;
}

#welcomeScreen p {
    font-size: 1.1em;
    line-height: 1.5;
    margin: 0;
    margin-bottom: 15px;
    color: #2c3e50;
}

#welcomeScreen .button-container {
    margin-top: 40px;
    align-self: flex-start;
}

#startQuiz {
    margin-top: 20px;  width: 200px;
}

/* Add position: absolute only for buttons in the button-container */
.button-container .primary-button {
    position: absolute;
    left: 0;
    top: 0;
}

.primary-button:hover {
    background-color: #1a6698;
}

#question-navigation button {
    width: 100%;
    padding: 10px;
    margin: 5px 0;
    border: 2px solid #3498db;
    border-radius: 8px;
    background-color: #fff;
    color: #2c3e50;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: left;
}

#question-navigation button:hover {
    background-color: #3498db;
    color: white;
    transform: translateX(5px);
}

#question-navigation button.current {
    background-color: #3498db;
    color: white;
    border-color: #2980b9;
}

#question-navigation button.answered {
    border-color: #2ecc71;
    background-color: #f1f9f4;
}

#question-navigation button.answered.correct {
    border-left: 8px solid #2ecc71;
}

#question-navigation button.answered.incorrect {
    border-left: 8px solid #e74c3c;
}
