* {
    box-sizing: border-box;
}

html,
body {
    padding: 0;
    margin: 0;
}

body {
    background-color: #FAF3E0; /* Light Beige for the background */
    font-family: Arial, Helvetica, Verdana;
    font-size: 16px;
    line-height: 22px;
    color: #2F4F4F; /* Charcoal Grey for text */
    position: relative;
    -webkit-text-size-adjust: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin: 1em 0;
    font-size: 22px;
    color: #003366; /* Navy Blue for headers */
}


h1{
    text-decoration: underline; /* Underlines the text */
}

p {
    margin: 1em 0;
    color: #2F4F4F; /* Charcoal Grey for text */
}

a,
a:link,
a:active,
a:visited,
a:hover {
    color: #FFD700; /* Yellow for links */
    text-decoration: underline;
}

#header {
    display: flex;
    justify-content: space-between; /* Distributes space between elements */
    align-items: center;
    padding: 0 20px; /* Adjusted padding for spacing */
    background: #003366; /* Navy Blue for the header */
    color: #FFFFFF; /* White for header text */
    position: sticky;
    top: 0;
    height: 50px;
    font-size: 24px;
    font-weight: bold;
    line-height: 50px;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: center; /* Center aligns the logo and title */
    flex: 1; /* Ensures the content takes up available space */
    text-align: center;
}

.header-content .logo {
    max-height: 40px; /* Limit logo height to 50px */
    margin-right: 10px; /* Adjust spacing as needed */
}

.menu-toggle {
    position: relative; /* Remove absolute positioning */
    display: block;
}

.header-buttons {
    display: flex;
    gap: 10px; /* Space between buttons */
    align-items: center;
}

#header a {
    display: block;
    position: relative;
    top: 0;
    left: 0;
    width: 80px;
    height: 50px;
    padding: 15px 25px;
}

#header a:before,
#header a:after {
    content: "";
    display: block;
    background: #FFFFFF; /* White for header link lines */
    height: 2px;
}

#header a span {
    background: #FFFFFF; /* White for header link lines */
    display: block;
    height: 2px;
    margin: 7px 0;
}

#content {
    padding: 50px 50px 50px 50px;
    text-align: center;
    background-color: #FFE; /* Light Beige for content background */
    color: #2F4F4F; /* Charcoal Grey for content text */
}

#course-content {
    width: 80%; /* Adjust the width as needed */
    margin: 10px auto; /* This centers the content horizontally */
    padding: 10px 50px 50px 50px;
    text-align: left;
    background-color: #FFE; /* Light Beige for content background */
    color: #2F4F4F; /* Charcoal Grey for content text */
}

button, .btn {
    background-color: #008080; /* Teal for buttons */
    color: #FFFFFF; /* White for button text */
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
}

button:hover, .btn:hover {
    background-color: #005f5f; /* Darker Teal for button hover */
}

.custom-rounded-rectangle {
    width: 300px; /* Width of the rectangle */
    height: 150px; /* Height of the rectangle */
    border: 5px dashed #FF6347; /* Dashed border with color */
    border-radius: 25px; /* Roundness of the corners */
    background-color: rgba(255, 255, 255, 0.5); /* Semi-transparent background */
    margin: 30px; /* Space around the rectangle */
    padding: 20px; /* Space inside the rectangle */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Shadow for a lif*/
}

/* Buttons container style */
.header-buttons {
    display: flex;
    gap: 10px; /* Space between buttons */
}

/* Button styles */
.header-buttons .btn {
    background-color: #008080; /* Teal for buttons */
    color: #FFFFFF; /* White for button text */
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    text-decoration: none; /* Remove underline from links */
    cursor: pointer;
    border-radius: 5px; /* Rounded corners for buttons */
}

.header-buttons .btn:hover {
    background-color: #005f5f; /* Darker Teal for button hover */
}


blockquote {
    width: 100%; /* Set to full width, or adjust as needed */
    padding: 20px; /* Padding inside the rectangle */
    background-color: #FAF3E0; /* Subtle background color */
    border: 2px solid #003366; /* Border to give it a boxed appearance */
    border-radius: 5px; /* Rounded corners can be adjusted or removed */
    color: #2F4F4F; /* Text color */
    font-style: normal; /* Remove italic styling for regular text */
    margin: 20px 0; /* Space above and below the blockquote */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Optional shadow for a lifted effect */
}


.card-list {
    display: flex;
    gap: 20px;
}

/* Card Styling */
.card {
    background-color: #FAF3E0; /* Light beige */
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    width: 300px;
    transition: transform 0.3s ease;
    border: 2px solid #003366; /* Navy Blue border */
}

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

/* Image Styling */
.card-img {
    max-width: 100%; /* Ensures the image doesn't exceed the card width */
    height: auto; /* Makes the image responsive */
    margin-bottom: 15px; /* Adds space between the image and the rest of the content */
    border-radius: 8px; /* Slight rounding of image corners for a softer look */
}

.card i {
    font-size: 40px;
    color: #FF6347; /* Tomato Red for the icon */
    margin-bottom: 10px;
}

.card h3 {
    font-size: 24px;
    color: #003366; /* Navy Blue for the heading */
    margin-bottom: 10px;
}

.card p {
    font-size: 16px;
    color: #2F4F4F; /* Charcoal Grey */
    margin-bottom: 5px;
}

/* Mobile optimization: Stacks the cards vertically for small screens */
@media (max-width: 768px) {
    .card-list {
        flex-direction: column; /* Cards stack vertically */
    }

    .card {
        margin-bottom: 20px; /* Add some space between stacked cards */
        flex: none; /* Prevents the card from stretching too wide */
        width: 100%; /* Cards take up the full width of the container */
    }
}

@media (max-width: 768px) {
    .video-container {
        max-width: 100%; /* On mobile, use the full width of the screen */
        margin: 0; /* Remove the margin on mobile */
    }

    .video-container iframe {
        width: 100%; /* Scale iframe to the full width of its container */
        height: auto; /* Ensure the height scales automatically */
    }
}

.video-container {
    display: flex;
    justify-content: left; /* Center the video horizontally */
}

.video-container iframe {
    width: 100%; /* Make the iframe responsive and take up the full width of its container */
    max-width: 560px; /* Set the maximum width of the iframe */
    max-height: 315px; /* Set the maximum height of the iframe */
    aspect-ratio: 16 / 9; /* Ensure the aspect ratio is maintained */
    border: none; /* Remove any borders */
}

.latex-font {
    font-family: 'STIX Two Text', serif; /* LaTeX-style font */
    font-weight: normal; /* Optional: Set default font weight */
    font-size: 1em; /* Optional: Adjust font size as needed */
    line-height: 1.6; /* Optional: Adjust line height for better readability */
}


table {
    width: 100%; /* Full width table */
    border-collapse: separate; /* Ensures individual cell borders are separate */
    border-spacing: 0; /* Removes spacing between cells */
    border: 2px solid #003366; /* Border for the table */
    border-radius: 10px; /* Rounds the corners of the entire table */
    overflow: hidden; /* Ensures content fits inside rounded corners */
}

th, td {
    border: 1px solid #003366; /* Borders between table cells */
    padding: 10px;
    text-align: left;
    font-size: 16px;
}

thead th {
    background-color: #003366; /* Navy blue background for header */
    color: white; /* White text for header */
}

tbody tr:nth-child(even) {
    background-color: #FAF3E0; /* Light Beige for alternating rows */
}

tbody tr:nth-child(odd) {
    background-color: #FFE; /* Another subtle background color */
}

tbody tr:hover {
    background-color: #fa905ee3; /* Yellow on hover */
    color: #003366; /* Navy Blue for text */
}

.example {
    max-width: 800px;
    padding: 20px;
    background-color: #f9f9f9; /* Soft background color for readability */
    border: 1px solid #ccc;
    border-radius: 8px;
    margin: 20px auto;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* Soft shadow */
    font-family: Arial, sans-serif;
}

h3, h4 {
    color: #003366;
    margin-bottom: 10px;
}

p, ul {
    line-height: 1.6; /* Improve text readability */
    margin-bottom: 20px;
}

ul {
    padding-left: 20px;
}

.equation {
    text-align: center;
    font-size: 1.2em;
    overflow-x: auto; /* Allows horizontal scrolling if necessary on small screens */
    padding: 10px 0;
    margin-bottom: 20px;
    background-color: #ffffff; /* White background for equations */
    border-radius: 5px;
}

.example-box {
    background-color: #e6f0ff;
    border: 2px solid #003366;
    border-radius: 5px;
    padding: 20px;
    margin: 20px 0;
    cursor: pointer;
}

.example-box:hover {
    background-color: #dce4f8;
}

#prompt-message {
    font-style: italic; /* Italicize the prompt */
    text-align: center; /* Center the text */
    color: #555; /* A lighter gray to make it stand out as a subtle instruction */
    margin: 10px 0; /* Add a margin for spacing */
}


@media (max-width: 600px) {
    .equation {
        font-size: 1em; /* Scale down equation size for mobile */
    }
}

/* Override mmenu variables */
:root {
    --mm-lineheight: 22px;
    --mm-color-background: #f3f3f3; /* Light beige background *FAF3E0/
    --mm-color-border: rgba(0, 0, 0, 0.15); /* Navy blue border */
    --mm-color-icon: #FFD700; /* Yellow icons */
    --mm-color-text: #2F4F4F; /* Charcoal grey text */
    --mm-color-text-dimmed: rgba(47, 79, 79, 0.7); /* Dimmed charcoal grey text */
    --mm-color-background-highlight: #f7e0cf; /* Light grey highlight */
    --mm-color-background-emphasis: #f3f3f3; /* Light beige emphasis */
    --mm-color-focusring: #FFD700; /* Yellow focus ring */
}

.mm-navbar__title {
    -webkit-box-flex: 1;
    -ms-flex: 1 1 50%;
    flex: 1 1 50%;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    padding: 0 20px;
    overflow: hidden;
    background:#d96031;
}


.mm-menu a, .mm-menu a:active, .mm-menu a:hover, .mm-menu a:link, .mm-menu a:visited {
    text-decoration: none;
    color: black;
}


/* Image alignment */
.img-wrapper {
    float: left; /* Align image to the left */
    margin-right: 20px; /* Space between the image and text */
}

.mechanics-img {
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    max-width: 300px; /* Limit image width */
    height: auto;
}


.caution-note {
  background-color: #ffe6e6; /* Light red background for caution */
  border-left: 4px solid #ff0000; /* Red border to highlight caution */
  color: #b30000; /* Dark red text for emphasis */
  padding: 10px;
  margin: 10px 0;
  font-family: Arial, sans-serif;
}

.info-note {
    background-color: #e6eeff; /* Light red background for caution */
    border-left: 4px solid #00bfff; /* Red border to highlight caution */
    color: #000000; /* Dark red text for emphasis */
    padding: 10px;
    margin: 10px 0;
    font-family: Arial, sans-serif;
  }

  section {
    margin-bottom: 20px;
    padding: 15px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  }

  .highlight {
    background-color: #e8f4fc;
    padding: 5px;
    border-radius: 4px;
    display: inline-block;
  }

  .container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  }

  .centered-text {
    text-align: center;
    font-weight: bold;
    margin: 12px 0;
  }