﻿

.urdu-text {
    font-family: 'Jameel Noori Nastaleeq', 'Noto Nastaliq Urdu', serif;
    font-size: 20px;
    line-height: 2;
    direction: rtl;
    text-align: right;
}



.subject-header-image {
    width: 40%; /* Makes the image take up the full width of its container */
    max-width: 1200px; /* Optional: Sets a maximum width for larger screens to prevent it from looking too stretched */
    height: 10%; /* Maintains the image's aspect ratio */
    display: block; /* Removes any extra space below the image */
    margin-left: auto; /* Centers the image */
    margin-right: auto; /* Centers the image */
    margin-bottom: 20px;
    border-bottom: 2px solid #005f73; /* Adds a line at the bottom for separation */
    box-shadow: 0 4px 8px rgba(0,0,0,0.1); /* Adds a subtle shadow for a modern look */
    border-bottom: 2px solid #005f73;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    border-radius: 10px;
}

.header {
    padding: 20px;
    text-align: center;
    background: black;
    color: white;
    font-size: 18px;
}

.button-container {
    text-align: center; /* This is no longer necessary with Flexbox, but won't cause harm */
    margin: 30px 0;
    display: flex; /* Makes the container a flex container */
    flex-wrap: wrap; /* Allows buttons to wrap to the next line */
    justify-content: center; /* Horizontally centers the buttons */
    gap: 10px; /* Adds space between buttons both horizontally and vertically */
}

.next-button {
    padding: 12px 24px;
    font-size: 16px;
    color: white;
    background: linear-gradient(135deg, #4CAF50, #2E8B57);
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

    .next-button:hover {
        background-color: #0056b3;
    }

.hidden {
    display: none;
}

.mcq {
    margin-bottom: 18px;
}

.Answer {
    display: none;
    margin-top: 8px;
    font-weight: bold;
    color: #1a7f1a;
}

.explanationDiv {
    background-color: antiquewhite;
    padding: 8px;
    margin-top: 5px;
    display: none;
}

    .explanationDiv img {
        width: 30%;
        height: 10%;
        margin-bottom: 2px;
    }

    .explanationDiv .childExplanation .putDescription .loadingGif {
        width: 20%;
        height: 50%;
    }

.putDescription {
    padding: 5px;
    text-align: justify;
}

.commentsDiv {
    background-color: antiquewhite;
    padding: 10px;
    margin-top: 10px;
}

.commentInput {
    width: 100%;
    height: 40px;
    padding: 6px;
    margin-bottom: 6px;
}

.commentsList .singleComment {
    background: yellow;
    padding: 8px;
    margin-bottom: 6px;
}

#explanationContainer {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    padding: 20px;
    border: 1px solid #ccc;
    box-shadow: 0 0 10px rgba(0,0,0,0.2);
    z-index: 9999;
    width: 90%;
    max-width: 700px;
}

#explanationBox img {
    max-width: 150px;
    display: block;
    margin-bottom: 8px;
}

.stylish-header {
    text-align: center;
    background: linear-gradient(135deg, #4CAF50, #2E8B57);
    color: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}
