body {
    font-family: 'Roboto', sans-serif;
    margin: 0px;
    padding: 0;
    margin: 0;
    font-size: 16px;
    line-height: 1.5;
    color: #606c71;
}

html {
    scroll-behavior: smooth;
    margin: 0px;
}

nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 9999;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 25px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

nav ul {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin: 0;
    padding: 0;
    list-style: none;
    flex-grow: 1;
}

nav li {
    margin-left: 20px;
    float: left;
}

nav li:first-child {
    margin-left: 0;
}

nav li:last-child {
    float: right;
}


nav a {
    text-decoration: none;
    color: #2d3748;
    font-weight: 500;
    font-size: 16px;
    transition: all 0.2s ease-in-out;
    position: relative;
    padding: 5px 0;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #4299e1;
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 100%;
}

nav a:hover {
    color: #4299e1;
}

#main img {
    max-width: 100%;
}

.project-header {
    padding: 3% 20%;
    margin-bottom: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
    text-align: center;
    background: linear-gradient(to bottom, #1e3c72, #307afa);
}

.project-header .paper_title {
    margin-top: 100px;
    font-size: 36px;
    color: #fff;
    margin-bottom: 10px;
}

.project-header .authors {
    font-size: 24px;
    color: #cec9c9;
    margin-bottom: 10px;
}

.project-header .authors a {
    color: #cec9c9;
    text-decoration: none;
}

.project-header .journal {
    font-size: 20px;
    color: #999;
}

.project-header .award {
    font-weight: bold;
    color: #f27933;
}

.paper_buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 50px;
    gap: 10px;
    /* Add gap between buttons */
}

/* Adjustments for screens smaller than 768px */
@media (max-width: 767px) {
    .paper_buttons {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }

    .paper_button {
        margin-bottom: 1rem;
        margin-right: 1rem;
    }

}

.paper_button {
    display: inline-block;
    margin-bottom: 1rem;
    padding: 10px;
    color: rgba(255, 255, 255, 0.7);
    background-color: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    border-style: solid;
    border-width: 1px;
    border-radius: 0.3rem;
    transition: color 0.2s, background-color 0.2s, border-color 0.2s;
    text-decoration: none;
}


.paper_button img {
    display: block;
    margin-left: auto;
    margin-right: auto
}

#main {
    padding: 2rem 10rem;
    margin: 0 auto;
    font-size: 1rem;
    margin-bottom: 5rem;
}

.section h2 {
    margin-bottom: 1rem;
    font-weight: normal;
    color: #3596fe;
    font-size: 2em;
    margin: 0.67em 0;

}

@media (max-width: 767px) {
    .section h2 {
        font-size: 1.8em;
    }

    #main {
        padding: 0.8rem 0.8rem;
        font-size: 0.9rem;
    }

}

#bibtex pre {
    line-height: 1.45;
    padding: 0.8rem;
    margin-top: 0;
    margin-bottom: 1rem;
    padding: 1rem;
    font: 1rem Consolas, "Liberation Mono", Menlo, Courier, monospace;
    color: #567482;
    word-wrap: normal;
    background-color: #f3f6fa;
    border: solid 1px #dce6f0;
    border-radius: 0.3rem;
    overflow: auto;
    /* Added overflow property */
}

#bibtex pre code {
    display: inline;
    max-width: initial;
    padding: 0;
    margin: 0;
    overflow: initial;
    line-height: inherit;
    word-wrap: normal;
    background-color: transparent;
    border: 0;
}

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

footer p {
    margin: 0;
}

footer a {
    color: #39bdbd;
    text-decoration: none;
}

/* Image carousel */

* {
    box-sizing: border-box
}

/* Slideshow container */
.slideshow-container {
    max-width: 1000px;
    position: relative;
    margin: auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Hide the images by default */
.mySlides {
    display: none;
}

/* Next & previous buttons */
.prev,
.next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    margin-top: -22px;
    padding: 16px;
    color: white;
    font-weight: bold;
    font-size: 18px;
    transition: 0.3s ease;
    border-radius: 50%;
    user-select: none;
    background-color: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(5px);
    height: 45px;
    width: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 15px;
}

/* Position the "next button" to the right */
.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

/* On hover, add a black background color with a little bit see-through */
.prev:hover,
.next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

/* Caption text */
.carousel_caption {
    color: #f2f2f2;
    background-color: rgba(0, 0, 0, 0.7);
    font-size: 15px;
    padding: 12px 16px;
    position: absolute;
    bottom: 0;
    width: 100%;
    text-align: center;
    backdrop-filter: blur(5px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Number text (1/3 etc) */
.numbertext {
    color: #f2f2f2;
    font-size: 12px;
    padding: 8px 12px;
    position: absolute;
    top: 0;
}

/* The dots/bullets/indicators */
.dot {
    cursor: pointer;
    height: 10px;
    width: 10px;
    margin: 0 5px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    transition: all 0.3s ease;
}

.active,
.dot:hover {
    background-color: #3596fe;
    transform: scale(1.2);
}

/* Fading animation */
.fade {
    animation-name: fade;
    animation-duration: 1.5s;
}

@keyframes fade {
    from {
        opacity: .4
    }

    to {
        opacity: 1
    }
}

/* Add dropdown button styles */
.dropdown-btn {
    display: none;
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
}

.dropdown-btn img {
    width: 28px;
    height: 28px;
    transition: transform 0.3s ease;
}

/* Add theme toggle styles */
#theme-toggle {
    background: none;
    border: none;
    padding: 5px;
    cursor: pointer;
    height: 36px;
    width: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2d3748;
    transition: all 0.3s ease;
}

.moon-icon {
    display: none;
}

/* Dark theme styles */
.dark-theme {
    background-color: #1a202c;
    color: #e2e8f0;
}

.dark-theme nav {
    background-color: rgba(26, 32, 44, 0.95);
}

.dark-theme nav a {
    color: #e2e8f0;
}

.dark-theme nav a:hover {
    color: #63b3ed;
}

.dark-theme nav a::after {
    background-color: #63b3ed;
}

.dark-theme .section h2 {
    color: #90cdf4;
}

.dark-theme #main {
    color: #e2e8f0;
}

.dark-theme .publication-abstract,
.dark-theme .publication-bibtex {
    background-color: #2d3748;
    border-color: #4a5568;
    color: #e2e8f0;
}

/* Mobile responsive styles */
@media (max-width: 600px) {
    nav {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 8px 15px;
        height: 60px;
    }

    nav ul {
        display: block;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background-color: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        padding: 10px 0;
        z-index: 1000;

        /* Initial hidden state */
        opacity: 0;
        visibility: hidden;
        transform: translateY(-20px);
        transition: all 0.3s ease-in-out;
        pointer-events: none;
    }

    nav ul li {
        width: 100%;
        margin: 0;
        padding: 0;
    }

    nav ul li a {
        display: block;
        padding: 12px 20px;
        text-align: center;
        font-size: 16px;
        border-left: 3px solid transparent;
        transition: all 0.2s ease;
    }

    nav ul li a:hover {
        background-color: rgba(66, 153, 225, 0.1);
        border-left: none;
        border-bottom: 3px solid #4299e1;
    }

    .dropdown-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        background: none;
        border: none;
        padding: 8px;
        margin: 0;
        cursor: pointer;
        position: relative;
        left: 0;
    }

    .dropdown-btn img {
        width: 28px;
        height: 28px;
        filter: invert(0.4);
        transition: transform 0.3s ease;
    }

    nav ul.show {
        /* Visible state */
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        pointer-events: auto;
    }

    /* Dark theme adjustments */
    .dark-theme nav ul {
        background-color: rgba(26, 32, 44, 0.95);
    }

    .dark-theme nav ul li a:hover {
        background-color: rgba(99, 179, 237, 0.1);
        border-left: none;
        border-bottom: 3px solid #63b3ed;
    }

    .dark-theme .dropdown-btn img {
        filter: none;
    }

    #theme-toggle {
        position: relative;
        right: 0;
        top: 0;
        margin: 0 0 0 10px;
    }

    .nav-buttons {
        display: flex;
        align-items: center;
        gap: 5px;
    }
}

@media (max-width: 600px) {
    nav ul.show {
        display: block !important;
        /* Slide in from top */
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }
}

/* Add/update these styles */
.publication-bibtex-container {
    position: relative;
    margin: 20px auto;
    width: 80%;
}

.publication-bibtex {
    line-height: 1.45;
    padding: 2rem 1rem 1rem;
    margin: 0;
    font: 1rem Consolas, "Liberation Mono", Menlo, Courier, monospace;
    color: #567482;
    word-wrap: normal;
    background-color: #f3f6fa;
    border: solid 1px #dce6f0;
    border-radius: 0.3rem;
    overflow: auto;
    position: relative;
}

.publication-bibtex code {
    display: block;
    max-width: initial;
    padding: 0;
    margin: 0;
    overflow: initial;
    line-height: inherit;
    word-wrap: normal;
    background-color: transparent;
    border: 0;
    white-space: pre;
}

.bibtex-copy-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    padding: 4px 8px;
    font-size: 12px;
    color: #6c757d;
    background-color: transparent;
    border: 1px solid #ced4da;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Roboto', sans-serif;
    display: flex;
    align-items: center;
    gap: 4px;
}

.bibtex-copy-btn:hover {
    background-color: #e9ecef;
    color: #495057;
}

.bibtex-copy-btn svg {
    width: 14px;
    height: 14px;
}

.bibtex-copy-btn.copied {
    background-color: #28a745;
    color: white;
    border-color: #28a745;
}

/* Dark theme styles */
.dark-theme .publication-bibtex {
    background-color: #2d3748;
    border-color: #4a5568;
    color: #e2e8f0;
}

.dark-theme .publication-bibtex code {
    color: #e2e8f0;
}

.dark-theme .bibtex-copy-btn {
    color: #a0aec0;
    border-color: #4a5568;
    background-color: rgba(0, 0, 0, 0.2);
}

.dark-theme .bibtex-copy-btn:hover {
    background-color: #4a5568;
    color: #e2e8f0;
}

.dark-theme .bibtex-copy-btn.copied {
    background-color: #2f855a;
    color: #e2e8f0;
    border-color: #2f855a;
}

/* Mobile responsive styles */
@media (max-width: 768px) {
    .publication-bibtex-container {
        width: 100%;
    }

    .publication-bibtex {
        font-size: 0.9rem;
        padding: 2rem 0.8rem 0.8rem;
    }
}

/* Remove any conflicting dark theme styles */
.dark-theme .publication-bibtex-container pre {
    background-color: #2d3748;
    border-color: #4a5568;
    color: #e2e8f0;
}

/* Remove old bibtex styles that might conflict */
#bibtex pre {
    background-color: inherit;
    border-color: inherit;
    color: inherit;
}

#bibtex pre code {
    color: inherit;
}

.nav-buttons {
    display: flex;
    align-items: center;
    margin-left: auto;
}

#theme-toggle {
    background: none;
    border: none;
    padding: 5px;
    cursor: pointer;
    height: 36px;
    width: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2d3748;
    transition: all 0.3s ease;
}

#theme-toggle:hover {
    background-color: rgba(0, 0, 0, 0.1);
}

/* Update mobile styles */
@media (max-width: 600px) {
    nav {
        justify-content: space-between;
        padding: 8px 15px;
    }

    .dropdown-btn {
        display: block;
    }

    nav ul {
        display: none;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        flex-direction: column;
    }

    nav ul.show {
        display: block;
    }

    .nav-buttons {
        margin-left: 0;
    }

    #theme-toggle {
        margin: 0;
    }
}

/* Dark theme adjustments */
.dark-theme nav {
    background-color: rgba(26, 32, 44, 0.95);
}

.dark-theme #theme-toggle {
    color: #e2e8f0;
}

.dark-theme #theme-toggle:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.samples-content {
    flex: 0 0 60%;
    min-width: 300px;
    max-width: none;
}

.abstract-section {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.teaser-section {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    overflow: hidden;
    width: 100%;
}

.teaser-section img {
    width: 100%;
    border-radius: 8px;
    display: block;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.teaser-caption {
    padding: 15px;
    margin: 0;
    color: #666;
    font-style: italic;
    text-align: center;
    font-size: 0.9em;
}

.dark-theme .teaser-caption {
    color: #999;
}

/* Add these styles for better list formatting */

#main ol,
#main ul {
    padding-left: 2rem;
    margin: 1rem 0;
    color: #606c71;
}

#main li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
    position: relative;
    color: #606c71;
}

#main ol {
    counter-reset: list-counter;
    list-style: none;
}

#main ol li {
    counter-increment: list-counter;
    padding-left: 0.5rem;
}

#main ol li::before {
    content: counter(list-counter) ".";
    color: #3596fe;
    font-weight: 500;
    position: absolute;
    left: -2rem;
    width: 1.5rem;
    text-align: right;
}

#main ul {
    list-style: none;
}

#main ul li::before {
    content: "•";
    color: #3596fe;
    font-weight: bold;
    position: absolute;
    left: -1.5rem;
}

/* Dark theme adjustments */
.dark-theme #main ol li::before,
.dark-theme #main ul li::before {
    color: #90cdf4;
}

/* Mobile responsive adjustments */
@media (max-width: 767px) {

    #main ol,
    #main ul {
        padding-left: 1.5rem;
    }

    #main ol li::before {
        left: -1.5rem;
    }

    #main ul li::before {
        left: -1.2rem;
    }
}

/* Dark theme adjustments */
.dark-theme #main ol,
.dark-theme #main ul,
.dark-theme #main li {
    color: #999;
}

.dark-theme #main ol li::before,
.dark-theme #main ul li::before {
    color: #90cdf4;
}