/* Custom Modal Styles */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1000; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgba(0,0,0,0.6); /* Black w/ opacity */
    justify-content: center; /* Center horizontally */
    align-items: center; /* Center vertically */
}

.modal-content {
    background-color: #fefefe;
    margin: auto;
    padding: 2rem;
    border-radius: 0.75rem; /* rounded-lg */
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); /* shadow-xl */
    max-width: 500px;
    width: 90%;
    text-align: center;
    position: relative;
}

.close-button {
    color: #aaa;
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-button:hover,
.close-button:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

/* Review Page Styles */
.review-option {
    padding: 0.75rem;
    border-radius: 0.5rem;
    background-color: #ffffff;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    font-size: 1rem;
    color: #4a5568; /* gray-700 */
}

.review-option.correct {
    background-color: #d1fae5; /* green-100 */
    color: #065f46; /* green-800 */
    font-weight: 600;
}

.review-option.incorrect {
    background-color: #fee2e2; /* red-100 */
    color: #991b1b; /* red-800 */
    font-weight: 600;
}

.review-option .review-icon {
    font-size: 1.25rem;
    margin-right: 0.5rem;
    width: 1.25em; /* आइकन के लिए निश्चित चौड़ाई */
    text-align: center;
    line-height: 1; /* वर्टिकल अलाइनमेंट के लिए */
}

.review-option.correct .review-icon {
    color: #047857; /* green-700 */
}

.review-option.incorrect .review-icon {
    color: #b91c1c; /* red-700 */
}

.review-option.selected {
    border: 2px solid #3b82f6; /* blue-500 */
}

/* Mobile Palette Specific Styles */
.question-palette-mobile {
    -webkit-overflow-scrolling: touch; /* iOS पर स्मूथ स्क्रॉलिंग */
}

/* Ensure images within question content are responsive */
#question-text img, #review-content img {
    max-width: 100%;
    height: auto;
    display: block; /* ताकि इमेज के नीचे कोई अतिरिक्त स्पेस न हो */
    margin: 0 auto 1rem auto; /* ऊपर और नीचे कुछ मार्जिन */
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

/* Styles for Marked Questions in Palette */
.palette-button.marked {
    background-color: #a855f7; /* purple-500 */
    color: white;
    border: 2px solid #c084fc; /* purple-400 */
}

.palette-button.marked.answered {
    background-color: #8b5cf6; /* purple-600 */
    color: white;
}

.palette-button.marked.current {
    background-color: #7c3aed; /* purple-700 */
    color: white;
    border: 2px solid #c084fc;
}
