/* Reset some default styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    color: #333;
}

/* Container to center the content */
.container {
    width: 80%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header styles */
header {
    background: url('banner-image.png') no-repeat center center;
    background-size: cover;
    height: 300px; /* Adjust as needed */
}

header h1 {
    font-size: 3em;
}

header p {
    font-size: 1.2em;
    margin-top: 10px;
}

/* Navigation styles 
nav {
    background-color: #333;
    padding: 10px 0;
    text-align: center;
}

nav ul {
    list-style-type: none;
}

nav ul li {
    display: inline;
    margin: 0 15px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-size: 1.2em;
} */

/* Section styles */
section {
    margin: 40px 0;
}

section h2 {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: #008CBA;
}

section h3 {
    font-size: 1.5em;
    margin-bottom: 20px;
    color: #000000;
    padding: 10px 0 10px 0;
}

section p {
    font-size: 1.1em;
    line-height: 1.6;
    padding: 0 0 10px 0;
}

section ul {
    list-style-type: none;
}

section ul li {
    font-size: 1.1em;
    margin-bottom: 10px;
}

/* Footer styles */
footer {
    background-color: #333;
    color: white;
    text-align: center;
    clear: both;
    position: relative;
    width: 100%;
    padding: 20px 0;
}

footer a {
    color: #00bcd4;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

.about-img {
    float: left; /* Floats the image to the left */
    margin-right: 20px; /* Creates a gap between the image and text */
    margin-bottom: 20px; /* Optional: Adds space below the image */
    width: 300px; /* Keep the original dimensions */
    height: auto; /* Ensures aspect ratio is maintained */
    display: block; /* Ensures proper wrapping */
}

#about p {
    overflow: hidden; /* Ensures the section properly wraps around the image */
}

.home-img {
    float: left; /* Floats the image to the left */
    margin-right: 20px; /* Creates a gap between the image and text */
    margin-bottom: 10px; /* Optional: Adds space below the image */
    width: 800px; /* Keep the original dimensions */
    height: auto; /* Ensures aspect ratio is maintained */
    display: block; /* Ensures proper wrapping */
}

#home p {
    overflow: hidden; /* Ensures the section properly wraps around the image */
}

.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #000;
    margin-top: 20px;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.banner {
    width: 100%;         /* Make the image take full width */
    height: auto;        /* Keep the aspect ratio */
    display: block;      /* Remove any extra spacing */
}

#controls {
    text-align: center;
    font-size: 18px;
    font-weight: bold;
    background: white;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    margin-top: 30px;  /* Adds space above */
    margin-bottom: 50px; /* More spacing from the bottom */
    width: fit-content;
}

#controls input {
    padding: 8px;
    font-size: 16px;
    width: 80px;
    text-align: center;
}

#controls button {
    padding: 8px 12px;
    font-size: 16px;
    background-color: #444;
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 5px;
}

#controls button:hover {
    background-color: #222;
}

#plot {
    font-family: Arial, sans-serif !important;
}

/* Navigation styles */
nav {
    background-color: #333;
    padding: 10px 0;
    text-align: center;
}

nav ul {
    list-style-type: none;
}

nav ul li {
    display: inline;
    margin: 0 15px;
    position: relative; /* Ensures child dropdown is positioned relative to this */
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-size: 1.2em;
}

/* Dropdown menu styles */
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;  /* Directly below Tools */
    left: 0;  /* Align with parent <li> */
    background: #444;
    list-style: none;
    padding: 0;
    margin: 0;
    min-width: 200px;
    z-index: 1000;
}

/* Ensure dropdown items are properly styled */
.dropdown-menu li {
    width: 100%;
}

.dropdown-menu li a {
    padding: 10px;
    display: block;
    color: white;
    white-space: nowrap;
}

/* Show dropdown on hover */
.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu {
    display: block;
}

/* Optional: Add border and styling */
.dropdown-menu li a:hover {
    background: #555;
}
