* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #fff;
    color: #333;
    line-height: 1.6;
    margin: 0;
    padding: 0;
}
a {
    color: #4facfe; /* Default link color (Teal) */
    text-decoration: none; /* Remove underline */
}

a:hover {
    color: #4facfe; /* Color when hovering over the link */
    text-decoration: underline; /* Optional: Add underline on hover */
}

a:visited {
    color: #4facfe; /* Color after the link has been visited */
}

a:active {
    color: #4facfe; /* Color when the link is being clicked */
}


.container {
    width: 80%; /* Adjust the width of the content */
    max-width: 1200px; /* Set the maximum width */
    margin: 0 auto; /* Center align the container */
}
header {
    background-color: #1e1e1e;
    color: #fff;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header h1 {
    font-size: clamp(1.2rem, 1.3vw, 1.5rem);
    line-height: 1.5;
    text-align: left;
    margin: 0 auto;
}

header li {
    font-size: clamp(0.5rem, 1.3vw, 1.0rem);
}

nav ul {
    list-style: none;
}

nav ul li {
    display: inline;
    margin-left: 20px;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
}

section {
    overflow-x: auto; /* Allows horizontal scrolling if content overflows */
    padding: 20px;
    box-sizing: border-box;
    max-width: 100%; /* Ensures the section respects the viewport width */
    text-align: center;
}
table {
    width: 100%; /* Ensures the table fits within its container */
    max-width: 100%;
    border-collapse: collapse;
}

th, td {
    font-size: clamp(0.4rem, 0.8vw, 1.0rem);
    word-wrap: break-word; /* Wraps long text */
    white-space: nowrap;   /* Prevents wrapping for cells unless needed */
}
.intro h1 {
    font-size: clamp(1.4rem, 1.6vw, 1.9rem);
}
.intro p {
    font-size: clamp(1.0rem, 1.0vw, 1.0rem);
    margin-bottom: 10px;
}
.content-section {
    margin-top: 20px;
    background-color: #fff;
    padding: 40px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.content-section h2 {
    font-size: clamp(1.2rem, 1.5vw, 1.8rem);
    margin-bottom: 20px;
}
.content-section p {
    font-size: clamp(0.5rem, 0.8vw, 1.0rem);
    text-align: left;
}
section img {
    max-width: 90%;  /* Ensures the image scales down to fit within its container */
    height: auto;     /* Maintains the image's aspect ratio */
    display: inline-block;   /* Removes any unwanted space below the image */
    object-fit: contain; /* Ensures the entire image fits within the bounds of its container */
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
}
th, td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: center;
}
th {
    background-color: #f4f4f4;
}
caption {
    font-weight: bold;
    margin-bottom: 10px;
}

.overlay {
    display: none; /* Hide the overlay by default */
    position: fixed; /* Cover the entire viewport */
    top: 0;
    left: 0;
    width: 100%; /* Full width of the viewport */
    height: 100%; /* Full height of the viewport */
    background: rgba(0, 0, 0, 0.5); /* Semi-transparent dark background */
    z-index: 999; /* Ensure it appears above all content */
}

/* Popup container - automatically adjust width to fit content */
.popup-container {
    display: none; /* Hide the popup by default */
    position: fixed; /* Position it relative to the viewport */
    top: 50%; /* Center it vertically */
    left: 50%; /* Center it horizontally */
    transform: translate(-50%, -50%); /* Adjust position to account for dimensions */
    padding: 20px; /* Space around text inside the box */
    background: #f9f9f9; /* Light background color */
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1); /* Soft shadow for depth */
    border: 1px solid #ccc; /* Border around the popup */
    z-index: 1000; /* Ensure it stays above other content */
    width: auto; /* Automatically adjust width based on content */
    max-width: 80%; /* Set a maximum width to prevent it from getting too large */
    word-wrap: break-word; /* Wrap text for very long lines */
    overflow: auto; /* Add scrollbars if necessary */
    white-space: pre-wrap; /* Preserve formatting and wrap long lines */
}

/* Close button */
.close-button {
    position: absolute; /* Position relative to the popup container */
    top: 10px; /* 10px from the top of the container */
    right: 10px; /* 10px from the right of the container */
    cursor: pointer; /* Cursor changes to indicate it's clickable */
}
a.bibtex-link {
    cursor: pointer; /* Change cursor to hand icon on hover */
    text-decoration: none;
    margin-right: 10px; /* Spacing between links */
}

a.bibtex-link:hover {
    text-decoration: underline; /* Optional: underline on hover for visual feedback */
}

footer {
    background-color: #1e1e1e;
    color: #fff;
    text-align: center;
    padding: 10px;
    bottom: 0;
    width: 100%;
}

