/* Base Styles */
body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #d3d3d3; /* Light gray background */
    color: #333; /* Dark gray text */
    line-height: 1.6;
    padding-top: 180px; /* Adjust based on header height */
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 20px; /* Reduced padding */
}

/* Header Styles */
header {
    background: #333; /* Dark gray */
    color: white;
    padding: 15px 0; /* Reduced padding */
    text-align: center;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    border-bottom: 6px solid #696969; /* Dim gray */
    box-sizing: border-box;
}

header h1 {
    font-size: 2em; /* Reduced font size */
    font-weight: 700;
    letter-spacing: 1px;
    margin: 0;
}

header p {
    font-size: 1em; /* Reduced font size */
    font-weight: 300;
    margin: 5px 0 10px; /* Reduced margin */
}

nav {
    margin-top: 10px; /* Reduced margin */
}

nav ul {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: center;
}

nav ul li {
    margin: 0 5px; /* Reduced margin */
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-size: 1em; /* Reduced font size */
    padding: 3px 5px; /* Reduced padding */
    transition: background-color 0.3s, color 0.3s;
    border-radius: 4px;
    border: 2px solid transparent;
}

nav ul li a:hover {
    background-color: #696969; /* Dim gray */
    border-color: #696969;
}

/* Section Styles */
section {
    padding: 10px 0; /* Reduced padding */
    border-bottom: 1px solid #a9a9a9; /* Medium gray */
    background-color: #ffffff; /* White background */
    margin: 20px 0;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: relative;
    scroll-margin-top: 200px; /* Adjust based on the header height */
}

@media (max-width: 768px) {
    header {
        padding: 10px 0; /* Reduced padding for smaller screens */
    }

    header h1 {
        font-size: 1.5em; /* Reduce font size */
    }

    header p {
        font-size: 0.9em; /* Reduce font size */
        margin: 5px 0; /* Reduce margin */
    }

    nav ul {
        flex-direction: row;
        justify-content: space-around;
        margin-top: 5px; /* Reduce margin */
        flex-wrap: wrap; /* Allow wrapping */
    }

    nav ul li {
        margin: 5px 2px; /* Reduce margin */
    }

    nav ul li a {
        font-size: 0.8em; /* Reduce font size of links */
        padding: 3px 6px; /* Reduce padding */
    }

    body {
        padding-top: 170px; /* Adjust based on header height for smaller screens */
    }

    section {
        scroll-margin-top: 190px; /* Adjust based on header height for smaller screens */
    }
}

section h2 {
    font-size: 1.8em; /* Reduced font size */
    margin-bottom: 5px; /* Reduced margin */
    color: #333; /* Dark gray */
    position: relative;
}

section h2::after {
    content: '';
    display: block;
    width: 50px;
    height: 4px;
    background: #696969; /* Dim gray */
    margin-top: 5px; /* Reduced margin */
    border-radius: 2px;
}

section p,
section ul {
    font-size: 1em; /* Reduced font size */
    line-height: 1.6;
}

section ul {
    list-style-type: disc;
    padding-left: 20px;
}

section ul li {
    margin-bottom: 10px;
}

/* Footer Styles */
footer {
    background-color: #333; /* Dark gray */
    color: white;
    text-align: center;
    padding: 10px 0; /* Reduced padding */
    font-size: 0.8em; /* Reduced font size */
}

footer p {
    margin: 0;
}

a {
    color: #696969; /* Dim gray */
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: #333; /* Dark gray */
}

/* Additional Modern Styles */
button {
    background-color: #696969; /* Dim gray */
    color: white;
    border: none;
    padding: 8px 16px; /* Reduced padding */
    border-radius: 4px;
    font-size: 0.9em; /* Reduced font size */
    cursor: pointer;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #333; /* Dark gray */
}

/* Font Awesome Icons */
.fab {
    font-size: 1.2em; /* Reduced size */
    margin-right: 5px; /* Add spacing between icon and text */
}

/* Bibtex Entry Styles */
.bibtex_template .title {
    font-weight: bold;
}

.bibtex_template .if.author {
    font-weight: bold;
    margin-left: 10px;
    margin-bottom: 5px;
}

.bibtex_template .if.year {
    margin-right: 5px;
}

