html, body {
    width: 100%;
    font-family: Arial, sans-serif; 
    padding: 0;
    margin: 0;
    border: none;
    border-collapse: collapse;
}

img {
    display: block;
}

h2, h3, h4, p, .question, .answer, .message, .list-view {
    margin-bottom: 0px;
}

h1 {
    font-size: 24px;
    margin-bottom: 20px;
}

h2 {
    font-size: 22px;
}

h3 {
    font-size: 20px;
}

h4 {
    font-size: 18px;
    padding: 5px;
    margin-top: 20px;
    margin-bottom: 20px;
}

p ul, li, ol, code {
    font-size: 16px;                    /* Sets the font size to 16px */
    line-height: 24px;                  /* Sets the line height to 1.5 times the font size (24px) */
    margin-bottom: 0px;                /* Adds spacing after each paragraph, adjust as needed */
}

/* Page layout for purchase access and login form */
.login-page {
    display: flex;
    justify-content: flex-start; /* Aligns everything to the left */
    padding: 20px;
}

/* Left section for purchase access */
.purchase-access {
    width: 300px;
    padding: 20px;
    background-color: #f7f7f7;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-right: 20px; /* Adds space between the purchase and login sections */
}

.purchase-access h2 {
    font-size: 20px;
    margin-bottom: 10px;
}

.purchase-access p {
    margin-bottom: 15px;
}

.contact-link {
    display: block;
    margin-top: 10px;
    color: #007bff;
    text-decoration: none;
}

.contact-link:hover {
    text-decoration: underline;
}

/* Right section for login form */
.login-form-container {
    width: 400px;
    padding: 20px;
    background-color: #f7f7f7;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-left: 0; /* Remove right alignment */
}

.login-form-container h2 {
    font-size: 20px;
    margin-bottom: 10px;
}

/* General form styling */
.form-group {
    margin-bottom: 15px;
}

.form-input {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    padding-left: 10px; /* Add space inside the input fields */
}

.form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.btn {
    background-color: #007bff;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.btn:hover {
    background-color: #0056b3;
}

.reset-link {
    font-size: 14px;
    color: #007bff;
    text-decoration: none;
}

.reset-link:hover {
    text-decoration: underline;
}

/* Error message styling */
.error-message {
    color: red;
    margin-bottom: 15px;
}









 /* Matching Question Begin */
 .left-padded-div {
    padding-left: 20px; /* Adds 20px of space to the left of all content inside this div */
}

 .columns-wrapper {
    display: flex;
    flex-direction: column;
}

.row {
    display: flex;
    align-items: center;
}

.column-a {
    width: 200px; 
    padding-left: 20px; 
}

.column-b {
    padding-right: 20px; 
}

.column-a .answer {
    width: 200px; 
    height: 60px; 
    padding: 10px;
    border: 1px solid #ddd;
    background-color: #f9f9f9;
    display: flex;
    align-items: center; /* Center content vertically */
    justify-content: center; /* Center content horizontally */
    box-sizing: border-box;
    text-align: center; /* Center text horizontally */
    overflow: hidden; /* Hide overflow if the text is too long */
    white-space: nowrap; /* Prevent text from wrapping to the next line */
    text-overflow: ellipsis; /* Add ellipsis (...) if the text overflows */
}

.column-b .answer {
    margin-left: 20px; /* Space between Column A and B */
    flex-grow: 1; /* Allow Column B to take up the remaining space */
    word-wrap: break-word;
    overflow-wrap: break-word;
    height: 60px; /* Ensure the height matches Column A */
    padding: 10px;
    border: 1px solid #ddd;
    background-color: #f9f9f9;
    display: flex;
    align-items: center; /* Center content vertically */
    box-sizing: border-box;
}

 /* Matching Question End */

.menu-label-cell {
    width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: left;
}

.menu-link-cell {
    width: 40px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: right;
}

.question, .answer, .message{ 
    margin: 20px; 
    font-size: 20px; 
}

#revealBtn { 
    margin: 20px; 
    font-size: 16px; 
    cursor: pointer; 
}

.form-row {
    width: 400px;
    display: flex;
    margin-bottom: 10px; /* Space between rows */
}
.form-row label {
    flex-basis: 50%; /* Assigns 50% of the container's width to the label */
    padding-right: 10px; /* Space between the label and the select */
    text-align: right;
}
.form-row select {
    flex-basis: 50%; /* Assigns 50% of the container's width to the select */
}

.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0;
    background-color: #ebebeb;
    text-align: center;
    border-radius: 8px;
}

.logo img {
    height: 90px; /* Keep image aspect ratio */
    width: auto; /* You can set a max-width here if needed */
    display: block;
}
.user-info {
    display: flex;
    align-items: right;
    padding: 10px;
    font-size: 14px;
    color: #ffffff;
}

.right-aligned-table {
    width: 100%;
    text-align: right;
}

.menu {
    list-style-type: none;
    width: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center; 
    background-color: #333;
    border-radius: 0 8px 8px 8px; 
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.menu li a {
    display: block;
    color: white;
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
    border-radius: 8px 8px 0 0; 
    font-family: Arial, sans-serif; 
}

.menu li a:hover {
    background-color: #111;
}

.menu li a.active {
    background-color: #111;
}

.admin-menu li a, .teacher-menu li a, .student-menu li a {
    background-color: #4CAF50; 
}

.admin-menu li a:hover, .teacher-menu li a:hover, .student-menu li a:hover {
    background-color: #45a049;
}

.wrapper {
    display: flex;
    flex-direction: row; /* Explicitly set the flex direction */
    min-height: 100vh; /* Ensure the wrapper fills at least the viewport height */
}

.sidebar {
    width: 35px; /* Initial collapsed width */
    transition: width 0.3s ease; /* Smooth transition for the sidebar width */
    background-color: #f0f0f0;
    overflow-y: auto; /* Adds scroll to the sidebar if content overflows */
    flex-shrink: 0; /* Prevents the sidebar from shrinking */
}

.sidebar.expanded {
    width: 25%; /* Expanded width */
}

.content.expanded {
    width: 100%; /* Adjust width as needed when sidebar is expanded or other conditions change */
}

.subjects a.subject-link {
    font-size: 14px;
    margin: 5px 5px 5px 45px;
    display: inline-block; /* Ensures margin applies all around, including top and bottom */
}

.sequences a.sequence-link, .terms a.term-link, .weeks a.week-link, .lessons a.lesson-link, .pages a.page-link,
.textbooks a.textbook-link, .topics a.topic-link, .sections a.section-link {
    font-size: 14px;
    display: inline-block;
}

.sequences a.sequence-link,
.textbooks a.textbook-link {
    margin: 5px 5px 5px 55px;
}

.terms a.term-link,
.topics a.topic-link {
    margin: 5px 5px 5px 65px;
}

.weeks a.week-link,
.sections a.section-link {
    margin: 5px 5px 5px 75px;
}

.lessons a.lesson-link {
    margin: 5px 5px 5px 85px;
}

.pages a.page-link {
    margin: 5px 5px 5px 95px;
}

.learning-area a.learning-area-link {
    font-size: 14px;
    margin: 10px 0px 10px 35px;
    display: inline-block; /* Ensures margin applies all around */
}

.hidden {
    display: none;
}

a {
    font-family: Arial, sans-serif;
    color: #007BFF; /* Bootstrap's default blue for links */
    text-decoration: none; /* Removes underline from links */
    transition: color 0.2s; /* Smooth transition for color change */
    margin: 10px;
}

a:hover,
a:focus {
    color: #0056b3; /* Darker blue on hover/focus for better visibility */
    text-decoration: underline; /* Adds underline on hover/focus */
}

.language-java {
    background-color: #000; /* Black background */
    color: #fff; /* White text */
    padding: 10px; /* Padding around the code */
    border-radius: 10px; /* Rounded corners */
    font-family: 'Courier New', monospace; /* Use a monospace font */
    overflow-x: auto; /* Enable horizontal scroll for long lines */
    display: block; /* Ensures it behaves as a block-level element and fits the container width */
    width: 80%; /* Ensures the code block does not exceed the width of its parent */
    margin-left: 20px; /* Left margin to align with the <p> tag above */
    box-sizing: border-box; /* Includes padding and border in the element's total width */
}

.language-java code {
    display: block; /* Aligns better for block-level display */
    white-space: pre-wrap; /* Wraps text to next line, maintaining white spaces */
    overflow-x: auto; /* Adds horizontal scrollbar if needed */
}

.language-python {
    background-color: #000; /* Black background */
    color: #fff; /* White text */
    padding: 10px; /* Padding around the code */
    border-radius: 10px; /* Rounded corners */
    font-family: 'Courier New', monospace; /* Use a monospace font */
    overflow-x: auto; /* Enable horizontal scroll for long lines */
    display: block; /* Ensures it behaves as a block-level element and fits the container width */
    width: 100%; /* Ensures the code block does not exceed the width of its parent */
    margin-left: 20px; /* Left margin to align with the <p> tag above */
    box-sizing: border-box; /* Includes padding and border in the element's total width */
}

.language-python code {
    display: block; /* Aligns better for block-level display */
    white-space: pre-wrap; /* Wraps text to next line, maintaining white spaces */
    overflow-x: auto; /* Adds horizontal scrollbar if needed */
}

/* Specific Python Syntax Highlighting */
.language-python .keyword { color: #569cd6; } /* Blue for Python keywords (def, import, etc.) */
.language-python .string { color: #ce9178; } /* Light red for string literals */
.language-python .comment { color: #6a9955; } /* Green for comments */
.language-python .function { color: #dcdcdc; } /* White for function names */
.language-python .class-name { color: #4ec9b0; } /* Teal for class names */

.language-html {
    background-color: #000; /* Black background */
    color: #fff; /* White text */
    padding: 10px; /* Padding around the code */
    border-radius: 10px; /* Rounded corners */
    font-family: 'Courier New', monospace; /* Use a monospace font */
    overflow-x: auto; /* Enable horizontal scroll for long lines */
    display: inline-block; /* Ensures it behaves like a block-level element */
    margin-left: 20px; /* Left margin to align with the <p> tag above */
}

.language-html code {
    display: inline-block; /* Makes each line take full width of its parent */
    white-space: pre-wrap; /* Wraps text to next line, maintaining white spaces */
}

/* Specific HTML Syntax Highlighting */
.language-html .tag { color: #569cd6; } /* Blue for HTML tags */
.language-html .attr-name { color: #9cdcfe; } /* Light blue for attribute names */
.language-html .attr-value { color: #ce9178; } /* Light red for attribute values */
.language-html .comment { color: #6a9955; } /* Green for comments */
.language-html .doctype { color: #4ec9b0; } /* Teal for doctype */

.slide-container {
    max-height: calc(100vh - 70px); /* Full height minus header height */
    overflow-y: auto; /* Allows scrolling */
    padding: 20px; /* Padding around slides */
}

.slide {
    background-color: #f9f9f9; /* Light grey background */
    border: 1px solid #ccc; /* Light grey border */
    border-radius: 10px; /* Rounded corners */
    padding: 20px; /* Padding inside the slide */
    margin-bottom: 20px; /* Space between slides */
    box-shadow: 0 2px 5px rgba(0,0,0,0.1); /* Subtle shadow for depth */
}

#content {
    position: relative; /* Establishes a positioning context for fixed positioning within */
    width: 100%;
    overflow-y: auto; /* Allows scrolling within the content area */
    transition: width 0.3s ease; /* Smooth width transition */
}

.content-header {
    position: sticky;
    top: 0;
    width: 100%;
    padding-left: 0px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    z-index: 1000;
    /* display: flex; */
}

  .responsive-video {
    position: relative;
    overflow: hidden;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
  }
  
  .responsive-video iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
  }

  .styled-text {
    background-color: #e0e0e0; /* Light pastel blue background */
    border: 1px solid #c0c0c0; /* Light blue border */
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1); /* Subtle drop shadow */
    border-radius: 8px; /* Rounded corners */
    padding: 20px; /* Padding around the text */
    margin-bottom: 20px;
    display: block; /* Make the element only as wide as its content */
    float: none; /* Ensures the div does not float */
    clear: both; /* Prevents floating elements from affecting this div */
}

.styled-heading {
    background-color: #ecccb6; /* Very light pastel green */
    border: 1px solid #d3b899; /* Muted pastel green border */
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1); /* Subtle drop shadow */
    border-radius: 8px; /* Rounded corners */
    padding: 20px; /* Padding around the text */
    margin-top: 20px;
    margin-bottom: 20px;
    font-size: 20px;
    font-weight: bold;
    float: none; /* Ensures the div does not float */
    clear: both; /* Prevents floating elements from affecting this div */
    display: inline-block;
}

.styled-heading-code {
    background-color: #ffffff; /* Very light pastel green */
    border: 1px solid #464544; /* Muted pastel green border */
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1); /* Subtle drop shadow */
    border-radius: 8px; /* Rounded corners */
    padding: 20px; /* Padding around the text */
    margin-top: 20px;
    margin-bottom: 20px;
    font-size: 20px;
    font-weight: bold;
    float: none; /* Ensures the div does not float */
    clear: both; /* Prevents floating elements from affecting this div */
    display: inline-block;
}

.styled-slide-title {
    background-color: #b6dcef; /* Very light pastel blue */
    border: 1px solid #99c2d1; /* Muted pastel blue border */
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1); /* Subtle drop shadow */
    border-radius: 8px; /* Rounded corners */
    padding: 20px; /* Padding around the text */
    margin: 0px;
    font-size: 24px;
    font-weight: bold;
}

.styled-page-title {
    background-color: #ccffd9; /* Very light pastel green */
    border: 1px solid #a8e0b6; /* Muted pastel green border */
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1); /* Subtle drop shadow */
    border-radius: 8px; /* Rounded corners */
    padding: 10px 20px 20px 20px; /* Padding around the text */
    margin: 0px;
    font-size: 24px;
    font-weight: bold;
    }

.styled-question-title {
    background-color: #ffd8b1; /* Very light orange */
    border: 1px solid #f4c4a3; /* Muted pastel orange border */
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1); /* Subtle drop shadow */
    border-radius: 8px; /* Rounded corners */
    padding: 20px; /* Padding around the text */
    margin: 0px;
    font-size: 24px;
    font-weight: bold;
}

.rounded-question-table {
    border-collapse: separate; /* This is important for rounded corners */
    border-spacing: 0; /* Removes default spacing between cells */
    width: 100%; /* Optional: Adjust width as necessary */
    border: 1px solid #cccccc; /* Example border: solid, 1px, light grey */
    border-radius: 8px; /* Rounded corners of 8px */
}

.rounded-question-table tr:first-child th:first-child {
    border-top-left-radius: 8px; /* Rounds the top left corner of the first header */
}

.rounded-question-table tr:first-child th:last-child {
    border-top-right-radius: 8px; /* Rounds the top right corner of the last header */
}

.rounded-question-table tr:last-child td:first-child {
    border-bottom-left-radius: 8px; /* Rounds the bottom left corner of the last cell in the first column */
}

.rounded-question-table tr:last-child td:last-child {
    border-bottom-right-radius: 8px; /* Rounds the bottom right corner of the last cell in the last column */
}

.rounded-slide-table {
    border-collapse: separate; /* This is important for rounded corners */
    border-spacing: 0; /* Removes default spacing between cells */
    width: 100%; /* Optional: Adjust width as necessary */
    border: 1px solid #cccccc; /* Example border: solid, 1px, light grey */
    border-radius: 8px; /* Rounded corners of 8px */
}

.rounded-slide-table tr:first-child th:first-child {
    border-top-left-radius: 8px; /* Rounds the top left corner of the first header */
}

.rounded-slide-table tr:first-child th:last-child {
    border-top-right-radius: 8px; /* Rounds the top right corner of the last header */
}

.rounded-slide-table tr:last-child td:first-child {
    border-bottom-left-radius: 8px; /* Rounds the bottom left corner of the last cell in the first column */
}

.rounded-slide-table tr:last-child td:last-child {
    border-bottom-right-radius: 8px; /* Rounds the bottom right corner of the last cell in the last column */
}

.rounded-page-table {
    border-collapse: separate; /* This is important for rounded corners */
    border-spacing: 0; /* Removes default spacing between cells */
    width: 100%; /* Optional: Adjust width as necessary */
    border: 1px solid #cccccc; /* Example border: solid, 1px, light grey */
    border-radius: 8px; /* Rounded corners of 8px */
}

.rounded-page-table tr:first-child th:first-child {
    border-top-left-radius: 8px; /* Rounds the top left corner of the first header */
}

.rounded-page-table tr:first-child th:last-child {
    border-top-right-radius: 8px; /* Rounds the top right corner of the last header */
}

.rounded-page-table tr:last-child td:first-child {
    border-bottom-left-radius: 8px; /* Rounds the bottom left corner of the last cell in the first column */
}

.rounded-page-table tr:last-child td:last-child {
    border-bottom-right-radius: 8px; /* Rounds the bottom right corner of the last cell in the last column */
}

.image-container {
    width: 600px; /* Adjust the width as needed or use a specific value */
    margin: auto; /* Centers the container */
    text-align: center; /* Centers the caption text under the image */
    padding-top: 20px; /* 20px space above the image */
    padding-bottom: 20px; /* 20px space below the caption */
}

.image-container img {
    width: 100%; /* Makes the image fit the container */
    border-radius: 10px; /* Adjust this value to increase or decrease the roundness of the corners */
    box-shadow: 0 4px 8px rgba(0,0,0,0.1); /* Optional: adds shadow for better visibility */
    margin-bottom: 10px; /* 10px space between the image and the caption */
}

.double-image-container {
    width: 400px; /* Adjust the width as needed or use a specific value */
    margin: auto; /* Centers the container */
    text-align: center; /* Centers the caption text under the image */
    padding-top: 20px; /* 20px space above the image */
    padding-bottom: 20px; /* 20px space below the caption */
}

.double-image-container img {
    width: 100%; /* Makes the image fit the container */
    border-radius: 10px; /* Adjust this value to increase or decrease the roundness of the corners */
    box-shadow: 0 4px 8px rgba(0,0,0,0.1); /* Optional: adds shadow for better visibility */
    margin-bottom: 10px; /* 10px space between the image and the caption */
}

/* This ensures the table takes the full width of the parent container */
.image-table {
    width: 100%;
    max-width: 100%; /* Prevents the table from being wider than its parent */
    table-layout: fixed; /* This helps with distributing column widths evenly */
}

/* Container for images */
.triple-image-container {
    width: 100%; /* Full width of the parent cell */
    margin: auto; /* Centers the container */
    text-align: center; /* Centers the caption text under the image */
    padding-top: 20px; /* Space above the image */
    padding-bottom: 20px; /* Space below the caption */
}

/* Styles for images */
.triple-image-container img {
    width: 100%; /* Makes the image responsive */
    height: auto; /* Maintain aspect ratio */
    border-radius: 10px; /* Roundness of the corners */
    box-shadow: 0 4px 8px rgba(0,0,0,0.1); /* Optional: adds shadow for better visibility */
    margin-bottom: 10px; /* Space between the image and the caption */
}


.caption {
    font-size: 14px; /* Adjust font size as needed */
    color: #333; /* Caption text color */
}

.triple-caption {
    margin: auto; /* Centers the container */
    text-align: center;
    width: 600px;
    font-size: 12px; /* Adjust font size as needed */
    color: #333; /* Caption text color */
}

iframe {
    margin-top: 20px;
    margin-bottom: 20px;
    width: 600px;  /* Example width */
    height: 400px; /* Example height */
}

.dot {
    height: 10px;
    width: 10px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 5px;
    margin: 5px;
}

.dot.green { background-color: #34b034; }
.dot.yellow { background-color: #eee611; }
.dot.orange { background-color: #ee8311; }
.dot.red { background-color: #ee3011; }
.dot.grey { background-color: #757170; }



#legend {
    margin-left: 10px;
    font-size: 14px;
    line-height: 1.6;
    display: flex;
}

.legend-pages {
    margin: 10px 0;
}

.legend-pages table {
    border-collapse: collapse;
    width: auto;
    margin: 10px 0;
}

.legend-pages td {
    padding: 5px;
    vertical-align: middle;
}

.legend-label {
    text-align: right;
    padding-right: 10px;
}

.square {
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-left: 10px;
    vertical-align: middle;
    border: 1px solid #000; 
}

.square.red {background-color: #ee3011;}
.square.lightcoral {background-color: lightcoral;}
.square.orange {background-color: orange;}
.square.gold {background-color: gold;}
.square.limegreen {background-color: limegreen;}
.square.lightgray {background-color: lightgray;}

.sidebar-header-container {
    display: flex;
    align-items: center;
}

.reveal-answer, .next-question, .check-code {
    width: 180px;
    padding: 15px 0;
    text-align: center;
    margin: 20px 10px;
    border-radius: 25px;
    font-weight: bold;
    border: 2px solid #f59512;
    background: transparent;
    font-size: 16px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: color 0.4s, border-color 0.4s;
}

.reveal-answer::before, .next-question::before, .check-code::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(245, 149, 18, 0.1);
    z-index: 0;
    transition: left 0.4s;
}

.reveal-answer:hover::before, .next-question:hover::before, .check-code:hover::before {
    left: 0;
}

.reveal-answer:hover, .next-question:hover, .check-code:hover {
    color: #fff;
}

.reveal-answer span, .next-question span, .check-code span {
    position: relative;
    z-index: 1; /* Ensure text stays in front */
    display: inline-block; /* Ensure the span covers the text properly */
    width: 100%;
}

.option-container {
    display: flex;
    align-items: center;
    padding: 10px;
    margin: 5px 0;
    border-radius: 8px;
    background-color: #fde5c2; 
}

input[type="radio"] {
    margin-right: 10px;
    vertical-align: middle;
}

label {
    line-height: 1.6; 
}

.code-textarea, .writing-textarea {
    display: flex;
    width: 100%;
    align-items: center;
    padding: 10px;
    border-radius: 8px;
    height: 200px;
    background-color: black;
    color: white;
    font-family: monospace;
    border: none;
    resize: vertical;
}

.button-container {
    margin-top: 10px;
    text-align: right;
}

.reveal-answer-writing, .next-question-writing, .mark-feedback, .style-structure, .spelling-grammar {
    width: 175px;
    padding: 15px 0;
    text-align: center;
    margin: 20px 10px;
    border-radius: 25px;
    font-weight: bold;
    border: 2px solid #f59512;
    background: transparent;
    font-size: 16px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: color 0.4s, border-color 0.4s;
}

.reveal-answer-writing::before, .next-question-writing::before, .mark-feedback::before, .style-structure::before, .spelling-grammar::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(245, 149, 18, 0.1);
    z-index: 0;
    transition: left 0.4s;
}

.reveal-answer-writing:hover::before, .next-question-writing:hover::before, .mark-feedback:hover::before, .style-structure:hover::before, .spelling-grammar:hover::before {
    left: 0;
}

.reveal-answer-writing:hover, .next-question-writing:hover, .mark-feedback:hover, .style-structure:hover, .spelling-grammar:hover {
    color: #fff;
}

.reveal-answer-writing span, .next-question-writing span, .mark-feedback span, .style-structure span, .spelling-grammar span {
    position: relative;
    z-index: 1; /* Ensure text stays in front */
    display: inline-block; /* Ensure the span covers the text properly */
    width: 100%;
}

.save-load-writing {
    width: 125px;
    padding: 15px 0;
    text-align: center;
    margin: 20px 10px;
    border-radius: 25px;
    font-weight: bold;
    border: 2px solid #f59512;
    background: transparent;
    font-size: 16px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: color 0.4s, border-color 0.4s;
}

.save-load-writing::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(245, 149, 18, 0.1);
    z-index: 0;
    transition: left 0.4s;
}

.save-load-writing:hover::before{
    left: 0;
}

.save-load-writing:hover {
    color: #fff;
}

.save-load-writing span {
    position: relative;
    z-index: 1; /* Ensure text stays in front */
    display: inline-block; /* Ensure the span covers the text properly */
    width: 100%;
}

.download-ai-interactions {
    width: 204px;
    padding: 15px 0;
    text-align: center;
    margin: 20px 10px;
    border-radius: 25px;
    font-weight: bold;
    border: 2px solid #f59512;
    background: transparent;
    font-size: 16px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: color 0.4s, border-color 0.4s;
}

.download-ai-interactions::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(245, 149, 18, 0.1);
    z-index: 0;
    transition: left 0.4s;
}

.download-ai-interactions:hover::before{
    left: 0;
}

.download-ai-interactions:hover {
    color: #fff;
}

.download-ai-interactions span {
    position: relative;
    z-index: 1; /* Ensure text stays in front */
    display: inline-block; /* Ensure the span covers the text properly */
    width: 100%;
}

.download-pages {
    width: 220px;
    padding: 15px 0;
    text-align: center;
    margin: 20px 10px;
    border-radius: 25px;
    font-weight: bold;
    border: 2px solid #f59512;
    background: transparent;
    font-size: 16px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: color 0.4s, border-color 0.4s;
}

.download-pages::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(245, 149, 18, 0.1);
    z-index: 0;
    transition: left 0.4s;
}

.download-pages:hover::before{
    left: 0;
}

.download-pages:hover {
    color: #fff;
}

.download-pages span {
    position: relative;
    z-index: 1; /* Ensure text stays in front */
    display: inline-block; /* Ensure the span covers the text properly */
    width: 100%;
}

.download-questions {
    width: 250px;
    padding: 15px 0;
    text-align: center;
    margin: 20px 10px;
    border-radius: 25px;
    font-weight: bold;
    border: 2px solid #f59512;
    background: transparent;
    font-size: 16px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: color 0.4s, border-color 0.4s;
}

.download-questions::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(245, 149, 18, 0.1);
    z-index: 0;
    transition: left 0.4s;
}

.download-questions:hover::before{
    left: 0;
}

.download-questions:hover {
    color: #fff;
}

.download-questions span {
    position: relative;
    z-index: 1; /* Ensure text stays in front */
    display: inline-block; /* Ensure the span covers the text properly */
    width: 100%;
}

.download-chat {
    width: 280px;
    padding: 15px 0;
    text-align: center;
    margin: 20px 10px;
    border-radius: 25px;
    font-weight: bold;
    border: 2px solid #f59512;
    background: transparent;
    font-size: 16px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: color 0.4s, border-color 0.4s;
}

.download-chat::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(245, 149, 18, 0.1);
    z-index: 0;
    transition: left 0.4s;
}

.download-chat:hover::before{
    left: 0;
}

.download-chat:hover {
    color: #fff;
}

.download-chat span {
    position: relative;
    z-index: 1; /* Ensure text stays in front */
    display: inline-block; /* Ensure the span covers the text properly */
    width: 100%;
}

.generate-summary {
    width: 200px;
    padding: 15px 0;
    text-align: center;
    margin: 20px 10px;
    border-radius: 25px;
    font-weight: bold;
    border: 2px solid #f59512;
    background: transparent;
    font-size: 16px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: color 0.4s, border-color 0.4s;
}

.generate-summary::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(245, 149, 18, 0.1);
    z-index: 0;
    transition: left 0.4s;
}

.generate-summary:hover::before{
    left: 0;
}

.generate-summary:hover {
    color: #fff;
}

.generate-summary span {
    position: relative;
    z-index: 1; /* Ensure text stays in front */
    display: inline-block; /* Ensure the span covers the text properly */
    width: 100%;
}

.styled-select {
    width: 280px;
    height: 53px;
    padding: 15px 10px;
    margin: 20px 10px;
    border-radius: 25px;
    font-weight: bold;
    font-size: 16px;
    border: 2px solid #f59512;
    background: transparent;
    cursor: pointer;
    position: relative;
    z-index: 1;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    color: #333;
    text-align: center;    
    text-align-last: center; 
    transition: color 0.4s, border-color 0.4s;
}

.styled-select:hover {
    background: rgba(245, 149, 18, 0.1);
}

.styled-select:focus {
    outline: none;
    border-color: #f59512;
    box-shadow: 0 0 5px rgba(245, 149, 18, 0.4);
}

.chat-container {
    display: flex;
    flex-direction: column;
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 10px;
    max-height: 500px;
    overflow-y: auto;
    background-color: #f9f9f9;
}
.chat-row {
    display: flex;
    margin-bottom: 10px;
}
.chat-row.user-input {
    justify-content: flex-start;
}
.chat-row.ai-response {
    justify-content: flex-end;
}
.chat-bubble {
    max-width: 60%;
    padding: 10px;
    border-radius: 10px;
    background-color: #e0f7fa;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
}
.chat-bubble strong {
    display: block;
    margin-bottom: 5px;
}
.chat-row.ai-response .chat-bubble {
    background-color: #d1c4e9;
}
.timestamp {
    font-size: 0.8em;
    color: #666;
    margin-top: 5px;
    text-align: right;
}

footer {
    background-color: #f8f9fa;
    padding: 20px;
    text-align: center;
    font-size: 12px;
    color: #6c757d;
    border-top: 1px solid #e9ecef;
}
/* Shuffle Question */
.answer-box {
    display: flex;
    flex-direction: column;
    width: 300px;
    margin: auto;
    border: 1px solid #ccc;
    padding: 10px;
}
.answer {
    padding: 10px;
    border: 1px solid #000;
    margin: 5px 0;
    cursor: pointer;
    background-color: #f0f0f0;
}

/* Matching Question */
.matching-answer-static, .matching-answer { 
    font-size: 16px; 
    padding: 5px;
    border: 1px solid #000;
    background-color: #e0e0e0;
    user-select: none; 
}
.matching-answer-static {
    list-style-position: inside; 
    margin-bottom: 15px;
    margin-top: 12px;
}
.matching-answer-box {
    display: flex;
    flex-direction: column;
    width: 100%; 
    border: 1px solid #ccc;
    padding: 10px;
    box-sizing: border-box; 
    background-color: #f0f0f0; 
}
.matching-answer {
    background-color: #f0f0f0; 
    cursor: pointer;
    padding: 10px;
    height: 15px;
}
.matching-answer:active {
    border-color: #bbb;
    background-color: #eee;
}
.matching-placeholder {
    border: 2px dashed #ccc;
    height: 35px;  
    margin: 5px 0;
}

/* Flowchart Question */
.flowchart-answer-static, .flowchart-answer { 
    font-size: 16px; 
    padding: 5px;
    border: 1px solid #000;
    background-color: #e0e0e0;
    user-select: none; 
}
.flowchart-answer-static {
    list-style-position: inside; 
    margin-bottom: 12px;
    margin-top: 14px;
}
.flowchart-answer-box {
    display: flex;
    flex-direction: column;
    width: 100%; 
    border: 1px solid #ccc;
    padding: 10px;
    box-sizing: border-box; 
    background-color: #f0f0f0; 
}
.flowchart-answer {
    background-color: #f0f0f0; 
    cursor: pointer;
    padding: 10px;
    height: 130px;
}
.flowchart-answer:active {
    border-color: #bbb;
    background-color: #eee;
}
.flowchart-placeholder {
    border: 2px dashed #ccc;
    height: 150px;  
    margin: 5px 0;
}
.subtext {
    font-size: 12px;
    font-weight: 300;
    font-style: italic;
    line-height: -3px;
}

/* Highlighted link style */
.highlighted {
    background-color: #d6d5d5; /* Pastel orange color */
    border-radius: 4px; /* Optional: Adds rounded corners */
    padding: 2px; /* Optional: Adds a bit of padding around the text */
}

.student-list {
    border-collapse: collapse;
    width: 600px; /* Adjust if necessary */
}

.student-list td {
    border: 1px solid black;
    padding: 5px;
    width: 200px; /* Adjust width for specific columns if needed */
}

.student-list button {
    border: none;
    background: none;
    padding: 0;
    margin: 0;
    color: blue;
    cursor: pointer;
}

.bar-graph {
    display: flex; /* Arrange bars in a row */
    align-items: flex-end; /* Align bars to the bottom (x-axis) */
    justify-content: flex-start; /* Align bars to the left */

    border: 1px solid #ccc; /* Add a border for the graph area */
    position: relative; /* Ensure bars are positioned within this container */
    margin: 10px; /* Add margin around the graph container */
    padding-left: 10px;
    border-radius: 10px; /* Add rounded corners */
    overflow: hidden; /* Prevent content from spilling outside rounded corners */
}

.bar {
    width: 12px; /* Set the width of each bar */
    margin: 0 2px; /* Add some space between bars */
    display: flex; /* Allow stacking segments within the bar */
    flex-direction: column; /* Ensure segments stack vertically */
    align-items: center; /* Center align segments  */
    position: relative; /* Position relative to align with the graph container */
}

.bar-segment {
    width: 100%; /* Ensure the segment fills the bar width */
    border: 1px solid #000; 
}

.questions-bar-graph {
    display: flex; /* Arrange bars horizontally */
    align-items: flex-end; /* Align bars to the bottom */
    justify-content: flex-start; /* Align bars to the left */
    border: 1px solid #ccc; /* Border for the graph area */
    position: relative; /* Ensure bars are positioned relative to the container */
    margin: 10px; /* Margin around the graph container */
    padding-left: 10px; /* Left padding for alignment */
    border-radius: 10px; /* Rounded corners */
    overflow: hidden; /* Prevent content from spilling out */
}

.questions-bar {
    display: flex; /* Enable stacking of segments */
    flex-direction: column-reverse; /* Stack segments from bottom to top */
    justify-content: flex-end; /* Align segments to the bottom */
    width: 12px; /* Width of each bar */
    margin: 0 2px; /* Space between bars */
    position: relative; /* Ensure segments are positioned within the bar */
    background-color: lightgray; /* Default background for the bar */
    align-items: center; /* Center align segments  */
}

.questions-bar-segment {
    width: 100%; /* Ensure the segment fills the bar width */
    height: 15px; /* Fixed height for each segment */
    display: block; /* Block-level layout */
    position: relative; /* Relative to the bar */
    border: 1px solid #000; 
}

.disabled-btn {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: auto; /* allow clicks even when "disabled" looking */
}