@import url('https://fonts.googleapis.com/css2?family=Gantari:ital,wght@0,100..900;1,100..900&display=swap');

a {
  color: inherit; /* Makes the link inherit the color of its parent element */
  text-decoration: none; /* Optional: Removes the underline */
}

* {
  box-sizing: border-box;
}

.hidden {
    display: none;
}

body {
    font-family: 'Gantari', sans-serif; /* Example font */
    background-color: #ececec; /* Light gray background */
    display: flex;
    flex: 1;
    flex-direction: column;
    min-height: 100vh; /* Full viewport height */
    margin: 0;
    padding: 0;
}
header {
    background-color: #fff;
    padding: 0rem 2rem;
    border-radius: 1.3rem;
    margin: 0.5rem 1rem;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: padding 0.3s ease, height 0.3s ease;
    height: 8vh;
}

.logo-container img {
    margin: 0.3rem 0rem 0rem 0rem;
    width: 70px;
}

.container-std {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    justify-content: flex-start; /* Center items horizontally */
    align-items: flex-start; /* Align items to the top */
    background-color:#ececec;
    padding: 1rem; /* Increased padding for more space */
    width: 100%; /* Use full width on small screens */
    max-width: 1920px; /* Max width for larger screens */
    min-height: 75vh; /* Ensure some height */
    margin: 6rem auto 0rem auto; /* Center the container */
    box-sizing: border-box;
    align-items: center;
    align-content: top;
    text-align: center; /* Center text in the container */
}

/*-----------------------------------------------------------------------------------------*/
/* Form Element Styles */

select, button {
    padding: 0.75rem;
    border: 1px solid #b0bec5; /* Keeping a soft gray border */
    border-radius: 0.25rem;
    margin-bottom: 1rem;
    margin-top: 1rem;
    width: 100%;
    box-sizing: border-box;
    font-family: 'Gantari', sans-serif; /* Example font */
    font-size: 1rem; /* Ensure readable font size */
}
button {
    background-color: #179CBC; /* Medium Blue button */
    color: white;
    border: none;
    border-radius: 0.25rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
button:hover {
    background-color: #065893; /* Dark Blue on hover */
}

/*-----------------------------------------------------------------------------------------*/
/* Main Content Styles */

main {
    display: flex;
    align-content: flex-start;
    align-items: center;
    justify-content: flex-start;
    flex-direction: column;
    flex: 1;
    padding-top: 0; /* Adjust padding for fixed header */
    padding-bottom: 0;
    padding-left: 0;
    padding-right: 0;
    width: 100%;
    transition: padding-top 0.3s ease;
}


nav ul {
list-style-type: none; /* Removes default bullet points */
margin: 0;
padding: 0;
display: flex;          /* Enables flexbox layout */
justify-content: flex-end; /* Aligns items to the right */
}

nav ul li {
margin-left: 15px; /* Adds padding to the left of each item (except the first) */
                    /* Adjust this value as needed for more/less space */
display: flex;          /* Enables flexbox layout */
align-items: center;    /* Vertically centers the items */
}

/* Optional: If you want padding on both sides of the items,
you could use 'margin: 0 7.5px;' on 'nav ul li' instead,
and then remove 'margin-left' from the first child or
'margin-right' from the last child to avoid double padding at the ends.
However, 'margin-left' is often simpler for right-aligned menus.
*/

nav ul li:first-child {
margin-left: 0; /* Removes margin from the first item to prevent extra space on the left */
}

nav a { /* Style for the links themselves, if needed */
display: flex;          /* Enables flexbox layout */
align-items: center;    /* Vertically centers the items */
text-decoration: none; /* Removes underline from links */
color: #333; /* Example link color */
padding: 5px 0; /* Adds some vertical padding to the links if desired */
}

.nav-icon {
    margin-right: 8px; /* Add some space between the icon and the text */
}


.hidden {
    display: none;}

/*-----------------------------------------------------------------------------------------*/
/* Questions Page related Styles */

.chapter-tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem; /* Space between tags */
    margin-top: 1rem;
    margin-bottom: 1rem;
    padding: 0.7rem; /* Increased padding */
    border: 1px solid #b0bec5; /* Keeping a soft gray border */
    border-radius: 0.25rem;
    min-height: 40px; /* Ensure some height even when empty */
    align-items: center;
    background-color: #e8e8e8; /* Keeping a light gray background */
}
.chapter-tag {
    padding: 0.8rem 1.2rem; /* Increased padding */
    margin: 0.2rem 0.2rem 0.2rem 0.2rem; /* Space between tags */
    background-color: #a5ced5; /* Keeping a lighter gray tag */
    border-radius: 2rem;

    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease;
    font-size: 0.95rem; /* Slightly larger font */
    border: 1px solid transparent;
}
.chapter-tag:hover {
    background-color: #b0bec5; /* Keeping a darker gray on hover */
}
.chapter-tag.selected {
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    background-color: #2d8d9e; /* Medium Blue selected tag */
    color: white;
    border: 0px; /* Dark Blue border */
}
 /* Style for disabled filter group */
.filter-group.disabled {
    opacity: 0.6;
    pointer-events: none;
}
 .filter-group.disabled select,
 .filter-group.disabled button,
 .filter-group.disabled .chapter-tag {
     pointer-events: none;
 }

 .chapter-tag:hover {
    background-color: #b0bec5; /* Keeping a darker gray on hover */
}

#loadQuestionsButton {
    background-color: #e0e0e0; /* button */
    color: black;
    border: 1px;
    border-radius: 0.75rem;
    cursor: pointer;
    padding: 0.75rem;
    transition: background-color 0.3s ease;
}

#loadQuestionsButton:hover {
    background-color: #a0a0a0; /* button */
}

#verifyAllButton {
    background-color: #e0e0e0; /* button */
    color: black;
    border: 1px;
    border-radius: 0.75rem;
    cursor: pointer;
    padding: 0.75rem;
    transition: background-color 0.3s ease;
}

#verifyAllButton:hover {
    background-color: #a0a0a0; /* button */
}

.question {
    margin-bottom: 1.8rem; /* More space between questions */
    padding: 1.2rem; /* Increased padding */
    border-width: 0 0 1px 0; /* Only bottom border */
    border-style: solid;
    border-color: #e0e0e0; /* Lighter border */
    border-radius: 0; /* Rounded corners */
    background-color: #ffffff; /* White background */
}
.question p {
    font-weight: bold;
    margin-bottom: 0.8rem; /* More space below question text */
    font-size: 1.1rem; /* Slightly larger question text */
    color: #37474f; /* Keeping a dark text color */
}
.options label {
    display: block;
    margin-bottom: 0.6rem; /* More space between options */
    cursor: pointer;
    font-size: 1rem; /* Ensure readable option font size */
    color: #546e7a; /* Keeping a softer text color */
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: background-color 0.3s, box-shadow 0.3s;
    border: 1px solid #ddd;
}
 .options input[type="radio"] {
     margin-right: 0.5rem; /* Space between radio button and text */
     vertical-align: middle; /* Align radio button vertically */
 }


.feedback {
    margin-top: 0.8rem; /* More space above feedback */
    padding: 0.6rem; /* Increased padding */
    border-radius: 0.25rem;
    font-weight: bold;
    font-size: 1rem; /* Readable feedback font size */
}
.feedback.correct {
    background-color: #e8f5e9; /* Keeping a light green for correct */
    color: #2e7d32; /* Keeping a darker green */
    border-color: #a5d6a7; /* Medium green border */
}
.feedback.incorrect {
    background-color: #ffebee; /* Keeping a light red for incorrect */
    color: #c62828; /* Keeping a darker red */
    border-color: #ef9a9a; /* Keeping a medium red border */
}

.explanation {
    margin-top: 0.8rem; /* More space above explanation */
    padding: 0.8rem; /* Increased padding */
    border-radius: 0.25rem;
    background-color: #e3f2fd; /* Keeping a very light blue */
    font-size: 0.95rem; /* Slightly larger font */
    color: #0277bd; /* Keeping a darker blue text */
    border-left: 4px solid #03a9f4; /* Keeping a light blue border on the left */
    line-height: 1.5; /* Improved readability */
}

#questionsArea  {
    text-align: left; /* Align text to the left */
    align-content: left; /* Align content to the left */
}

#resultsArea {
    padding: 2.5rem; /* Increased padding */
    border: 2px solid #525252; /* Medium Blue dashed border */
    border-radius: 0.75rem; /* Rounded corners */
    text-align: center;
    background: linear-gradient(to right, #FFDAB9, #FFC0CB, #E0BBE4, #ADD8E6, #AFEEEE); /* Gradient background inspired by the logo colors */
    display: none;
}
#resultsArea h2 {
    font-size: 2rem; /* Larger heading */
    font-weight: bold;
    margin-bottom: 1.2rem; /* More space below heading */
    color: #065893; /* Dark Blue */
}
 #resultsArea p {
    font-size: 1.3rem; /* Larger text */
    margin-bottom: 2rem; /* More space below text */
    color: #403eaf; /* Keeping a dark text color */
 }
 #restartButton {
     background-color: #179CBC; /* Medium Blue color for restart */
     color: white; /* White text as requested */
     font-size: 1.1rem; /* Slightly larger button text */
     padding: 0.8rem 2rem; /* More padding */
     width: auto; /* Auto width */
     max-width: 250px; /* Max width for larger screens */
     margin: 0 1%; /* Small margin between buttons */
     border: none; /* Removed border */
     transition: background-color 0.3s ease;
 }
  #restartButton:hover {
     background-color: #065893; /* Darker Blue on hover */
  }

   #defineNewTestButton {
     background-color: #179CBC; /* Medium Blue color for restart */
     color: white; /* White text as requested */
     font-size: 1.1rem; /* Slightly larger button text */
     padding: 0.8rem 2rem; /* More padding */
     width: auto; /* Auto width */
     max-width: 250px; /* Max width for larger screens */
     margin: 0 1%; /* Small margin between buttons */
     border: none; /* Removed border */
     transition: background-color 0.3s ease;
 }
  #defineNewTestButton:hover {
     background-color: #36a08c; /* Darker Teal/Green on hover */
     border-color: #065893;
  }



/*-----------------------------------------------------------------------------------------*/
/* Card Styles */

.card {
    display: flex;
    flex-direction: column;
    align-items:flex-start;
    justify-content: stretch;
    min-width: 12rem;
    max-width: 20rem;
    max-height: 18rem;
    min-height: 18rem;
    overflow: hidden;
    background-color: #fff;
    border-radius: 4px;
    border-color: #dbdbdb;
    border-width: 2px;
    border-style: solid;
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
    gap: 0.1rem;
}

.card:hover {
    transform: translateY(-2px);
}

.card img {
    width: 100%;
    object-fit: cover;
    object-position: top center;
    display:block;
}

.card-body {
    gap: 0.2rem;
    flex-direction: column;
    align-items: center;
    justify-content: stretch;
    display:flex;
    width: 100%;
    flex: 1 1 auto;
    margin-top: 0.3rem;
}

.card-image {
    min-width: 0;
    min-height: 9rem;
    max-height: 9rem;
    flex: 1 1 auto;
    display: flex;
}

.card h5 {
    margin: 0;
    padding: 0;
    display:flex;
}

.card p {
    margin: 0;
    padding: 0;
    display:flex;
}

.card-title {
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    display:flex;
    justify-content: stretch;
}

.card-text {
    font-size: 1rem;
    color: #555;
    display:flex;
}

.container {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    justify-content: flex-start; /* Center items horizontally */
    align-items: flex-start; /* Align items to the top */
    gap: 1rem; /* Space between items */
    /* background-color:#ececec; */
    padding: 1rem; /* Increased padding for more space */
    /*border-radius: 1.3rem; /* Slightly more rounded corners */
    width: 100%; /* Use full width on small screens */
    max-width: 1920px; /* Max width for larger screens */
    min-height: 75vh; /* Ensure some height */
    margin: 6rem auto 0rem auto; /* Center the container */
    box-sizing: border-box;
    align-items: center;
    align-content: top;
    text-align: center; /* Center text in the container */
}

.container h1 {
    margin: 0.3rem 0.1rem 0.1rem 0.1rem;
}

.container-content h1 {
    font-size: 2em;
    color: #065893;
    margin: 0.2rem;
    text-align: center;
    width: 100%;
}

.content-container {
    width: 100%;
    align-items: center;
    text-align: center; /* Center text in the container */
}

.content-container-video {
    width: 70%;
    align-items: center;
    text-align: center; /* Center text in the container */
    height: auto;
}

.content-container iframe {
    border-width: 0px;
    width: 95%;
    height: 75vh;
}

.content-grid   {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    justify-content: center; /* Center items horizontally */
    align-items: flex-start; /* Align items to the top */
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Responsive columns */
    gap: 1rem; /* Space between grid items */
    width: 100%;
}

.subject-filters {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1rem; /* Increased padding for more space */
    border-radius: 1.3rem; /* Slightly more rounded corners */
    background: white;

}

.subject-filters a {
    text-decoration: none;
    color: #333;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.subject-filters a:hover {
    background-color: #eee;
}

.subject-filters a.active {
    background-color: #065893;
    color: #fff;
}


/*-----------------------------------------------------------------------------------------*/
/* Main Container Styles */

.container-main {
    display: flex;
    background-image: url("/assets/home copy.webp");
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment:scroll;
    /*border-radius: 1.3rem; /* Slightly more rounded corners */
    width: 100%; /* Use full width on small screens */
    min-height: 90vh; /* Ensure some height */
    height: 90vh;
    margin: 0rem 0 0rem 0; /* Center the container */
    box-sizing: border-box;
    align-items: center;
    text-align: center; /* Center text in the container */
    padding-top: 10vh;
}

.container-content {
    display: block;
    background-color:#ffffff;
    padding: 0.5rem; /* Increased padding for more space */
    border-radius: 1.3rem; /* Slightly more rounded corners */
    width: 99%; /* Use full width on small screens */
    max-width: 1920px; /* Max width for larger screens */
    min-height: 75vh; /* Ensure some height */
    margin: 0rem auto 0rem auto; /* Center the container */
    box-sizing: border-box;
    align-items: center;
    align-content: top;
    text-align: center; /* Center text in the container */
}

.container-content h1 {
    font-size: 2em;
    color: #065893;
    margin: 0.2rem;
    text-align: center;
    width: 100%;
}


.hero-image-container {
    width: 90%;
    max-width: 300px;
    margin: 1rem auto;
}

.hero-text-container h1 {
    display: flex;
    font-size: 5vw;
    color: #ffffff;
    margin: 0;
    text-shadow: 0px 0px 15px #5c5c5c;
}

.hero-text-container p {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.6dvw;
    color: #ffffff;
    line-height: 2.8dvh;
    margin-bottom: 1em;
}

.spacer {
    display: flex;
    flex: 1; 
    flex-direction: column;
    justify-content: center;
    width: 50dvh;
    height: 80dvh;
    overflow: hidden;}

.hero-text-container {
    display: flex;
    flex: 1; /* half */
    flex-direction: column;
    justify-content: center;
    text-align: center;
    height: 80dvh;
    overflow: hidden;
}

.button-container {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.1rem;
}

.hero-text-container span {
    font-weight: bold;
    color: #ffffff;
}

/*-----------------------------------------------------------------------------------------*/
/* Action Button Styles */

.action-button-w {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.3);
    border-color: #ffffff;
    border-style: solid;
    border-width: 3px;
    color: rgb(255, 255, 255);
    padding: 0.75dvh;
    font-weight: bold;
    font-size: 2dvh;
    text-decoration: none;
    border-radius: 50px;
    transition: background-color 0.3s ease;
    margin-top: 20px;
    margin-left: 1em;
    width: 20dvw;
    min-width: 10rem;
}

.action-button {
    display: inline-block;
    background-color: rgba(0, 0, 0, 0.3);
    border-color: #ffffff;
    border-style: solid;
    border-width: 3px;
    color: rgb(255, 255, 255);
    padding: 15px 90px;
    font-size: 1.5em;
    font-weight: bold;
    text-decoration: none;
    border-radius: 50px; /* Makes the button rounded */
    transition: background-color 0.3s ease;
    margin-top: 20px;
}


.action-button-w:hover {
    background-color: rgba(223, 194, 30, 0.4); /* Darker blue on hover */
}



/*-----------------------------------------------------------------------------------------*/
/* Footer Styles */

footer {
    padding: 2.5rem 1rem;
    text-align: center;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #ffffff;
    min-height: 2vh;
    height: 10vh;
    align-content: center;
    /*padding: 20px 0;
    margin-top: 40px;*/
}

.footer-content {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.footer-content a {
    display: flex;
    align-items: center;
    margin: 0 15px;
    text-decoration: none;
    color: #333;
}


/*-----------------------------------------------------------------------------------------*/
/* Responsive Styles */

@media (max-width: 768px) {
    .content-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0.5rem;
    }

    .hero-text-container h1 {
        font-size: 1.8em;
    }

    .hero-text-container p {
        font-size: 1em;
    }

    .filter-group {
        padding: 0.8rem;
    }

    .filter-group h2 {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .hide-on-mobile {
        display: none !important;
    }

    .spacer {
    display: none;
    }

    header {
        padding: 0.5rem 1rem;
        height: auto;
    }

    .logo-container img {
        width: 60px;
        margin-left: 0;
    }
    .content-container-video {
        width: 100%;
    }

    .carousel-container {
        min-height: auto;
        overflow: visible;
    }

    .carousel-slide {
        position: static;
        flex-direction: column;
        transform: none !important;
        opacity: 1 !important;
        visibility: visible !important;
        height: auto;
        gap: 1rem;
        margin-bottom: 2rem;
    }

    .hero-text-container {
        align-self: center;
        text-align: center;
        width: 100%;
        margin: auto;
        padding: 1rem;
        box-sizing: border-box;
        background-color: rgba(0, 0, 0, 0.3);
    }

    .hero-image-container {
        width: 90%;
        max-width: 300px;
        margin: 1rem auto;
    }

    .hero-text-container h1 {
        font-size: 2.2em;
    }

    .hero-text-container p {
        font-size: 1.1em;
    }

    .nav-text {
        display: none;
    }

    .nav-icon {
        margin-right: 0;
    }

    .container {
        padding: 1rem;
    }

    .filter-group {
        padding: 6rem 1rem 1rem 1rem;
        max-width: 90vh;
    }

    .filter-group h2 {
        font-size: 1.1rem;
    }

    select, button {
        padding: 0.6rem;
        font-size: 0.9rem;
    }

    .action-button {
        padding: 12px 24px;
        font-size: 1em;
    }
}


/*-----------------------------------------------------------------------------------------*/
/* Other styles */

        .nav-text {
            color: rgb(27, 27, 27);
        }
        .feedback-icon {
            margin-left: 10px;
            font-size: 1.2em;
            vertical-align: middle;
        }
        .feedback-icon.correct {
            color: green;
        }
        .feedback-icon.incorrect {
            color: red;
        }
        .option-label.correct-answer-border {
            border: 2px solid green;
        }
        .option-label.incorrect-answer-border {
            border: 2px solid red;
        }

        
#messageArea {
    padding-top: 6rem;
    align-content: center;
    text-align: center;
}

#legal h1 {
    font-size: 2rem; /* Larger heading */
    font-weight: bold;
    margin-bottom: 1.2rem; /* More space below heading */
    color: #065893; /* Dark Blue */
}

#legal h2 {
    font-size: 1.2rem; /* Larger heading */
    font-weight: bold;
    margin-top: 1.2rem;
    margin-bottom: 0.2rem; /* More space below heading */
    color: #073758; /* Dark Blue */
}

#legal p {
    margin-top: 0.2rem;
    margin-bottom: 1.2rem; /* More space below heading */
}

#contactForm textarea {
    width: 100%; /* Full width */
    height: 150px; /* Height for the textarea */
    padding: 0.75rem; /* Padding for better spacing */
    border: 1px solid #b0bec5; /* Soft gray border */
    border-radius: 0.25rem; /* Rounded corners */
    font-family: 'Gantari', sans-serif; /* Example font */
    font-size: 1rem; /* Ensure readable font size */
    margin-top: 1rem;            
    box-sizing: border-box; /* Include padding and border in element's total width and height */
}

/* Admin Page Styles */
.admin-container {
    display: flex;
    height: calc(100vh - 8vh - 2rem);
    margin-top: calc(8vh + 1rem);
}

.sidebar {
    width: 80px;
    background-color: #f8f9fa;
    padding: 1rem;
    transition: width 0.3s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-radius: 1.3rem;
    margin: 0rem 1rem 0rem 1rem;
}

.sidebar:hover {
    width: 250px;
}

.sidebar-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    color: #333;
    text-decoration: none;
    width: 100%;
    box-sizing: border-box;
}

.sidebar-item:hover {
    background-color: #e9ecef;
}

.sidebar-icon {
    font-size: 1.5rem;
    margin-right: 1rem;
}

.sidebar-text {
    display: none;
    white-space: nowrap;
}

.sidebar:hover .sidebar-text {
    display: inline;
}

.main-content {
    flex-grow: 1;
    padding: 2rem;
    background-color: #fff;
}
