/* Basic Reset and Font */
body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #4c007d, #2a005a); /* Deep indigo to purple gradient */
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    box-sizing: border-box;
}

/* Quiz Container */
.quiz-container {
    background-color: #ffffff;
    border-radius: 15px; /* More rounded corners */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3); /* Stronger shadow */
    padding: 35px;
    width: 100%;
    max-width: 500px; /* Slightly wider */
    text-align: center;
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Question Counter */
.question-counter {
    font-size: 0.9em;
    color: #6b7280; /* Gray-600 equivalent */
    margin-bottom: 15px;
    font-weight: 500;
}

/* Question Text */
.question-text {
    font-size: 1.6em; /* Larger question text */
    font-weight: 600;
    color: #1f2937; /* Gray-900 equivalent */
    margin-bottom: 30px;
    line-height: 1.4;
}

/* Options Container */
.options-container {
    display: flex;
    flex-direction: column;
    gap: 15px; /* Spacing between buttons */
}

/* Option Buttons */
.option-button {
    background-color: #f9fafb; /* Gray-50 equivalent */
    border: 2px solid #d1d5db; /* Gray-300 equivalent */
    color: #374151; /* Gray-700 equivalent */
    padding: 14px 20px;
    border-radius: 10px; /* Rounded corners for buttons */
    font-size: 1.1em;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    text-align: left;
    width: 100%;
    box-sizing: border-box;
}

.option-button:hover:not(.selected):not(.disabled) {
    background-color: #eff6ff; /* Blue-50 equivalent */
    border-color: #93c5fd; /* Blue-300 equivalent */
    color: #1e40af; /* Blue-800 equivalent */
    transform: translateY(-2px); /* Slight lift on hover */
}

.option-button.selected {
    font-weight: 600;
}

/* Correct Option */
.option-button.correct {
    background-color: #dcfce7; /* Green-100 equivalent */
    border-color: #22c55e; /* Green-500 equivalent */
    color: #166534; /* Green-800 equivalent */
}

/* Incorrect Option */
.option-button.incorrect {
    background-color: #fee2e2; /* Red-100 equivalent */
    border-color: #ef4444; /* Red-500 equivalent */
    color: #991b1b; /* Red-800 equivalent */
}

/* Disabled Option */
.option-button.disabled {
    cursor: not-allowed;
    opacity: 0.8;
}

/* Feedback Message */
.feedback-message {
    margin-top: 25px;
    font-size: 1.2em;
    font-weight: 600;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.feedback-message.correct {
    color: #10b981; /* Green-600 equivalent */
}

.feedback-message.incorrect {
    color: #ef4444; /* Red-600 equivalent */
}

/* Next/Show Results Button */
.next-button {
    margin-top: 35px;
    background-color: #8b5cf6; /* Purple-600 equivalent */
    color: #ffffff;
    padding: 14px 25px;
    border: none;
    border-radius: 10px;
    font-size: 1.15em;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4); /* Purple shadow */
}

.next-button:hover:not(.disabled) {
    background-color: #7c3aed; /* Purple-700 equivalent */
    transform: translateY(-3px); /* Lift effect */
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.6);
}

.next-button.disabled {
    background-color: #d1d5db; /* Gray-300 equivalent */
    color: #6b7280; /* Gray-600 equivalent */
    cursor: not-allowed;
    box-shadow: none;
}

/* Results Screen */
.results-screen {
    text-align: center;
}

.results-screen h2 {
    font-size: 2.5em;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 20px;
}

.results-screen p {
    font-size: 1.4em;
    color: #374151;
    margin-bottom: 30px;
}

.restart-button {
    background-color: #3b82f6; /* Blue-600 equivalent */
    color: #ffffff;
    padding: 14px 25px;
    border: none;
    border-radius: 10px;
    font-size: 1.15em;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4); /* Blue shadow */
}

.restart-button:hover {
    background-color: #2563eb; /* Blue-700 equivalent */
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.6);
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .quiz-container {
        padding: 25px;
    }
    .question-text {
        font-size: 1.4em;
    }
    .option-button, .next-button, .restart-button {
        font-size: 1em;
        padding: 12px 15px;
    }
    .results-screen h2 {
        font-size: 2em;
    }
    .results-screen p {
        font-size: 1.2em;
    }
}
