body {
    margin: 0;
    min-height: 100%;
    background-color: #fff;
    font-family: 'Open Sans', sans-serif;
    color: #333;
    font-size: 12px;
    line-height: 20px;
    overflow-x: hidden;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
    width: 100%;
    max-width: 650px;
    margin-bottom: 20px;
    margin-left: auto;
    margin-right: auto;
    font-size: 14px;
}

th,
td {
    border: none;
    padding: 8px;
    text-align: center;
}

td:first-child,
th:first-child {
    border-left: 1px solid #ccc;
    border-right: 1px solid #ccc;
    font-weight: bold;
}

td:last-child,
th:last-child {
    border-right: 1px solid #ccc;
    border-left: 1px solid #ccc;
}

tr:last-child {
    border-top: 1px solid #ccc;
    border-bottom: 1px solid #ccc;
}

th {
    background-color: #f4f4f4;
    border-top: 1px solid #ccc;
    border-bottom: 1px solid #ccc;
    font-weight: bold;
}

.section {
    text-align: center;
    margin-left: 30px;
    margin-right: 30px;
}

.container {
    padding-left: 0;
    margin-left: auto;
    margin-right: auto;
    max-width: 940px;
}

.title {
    margin-top: 10px;
    margin-bottom: 0px;
    font-family: 'Noto Sans', sans-serif;
    color: #4d4d4d;
    font-size: 50px;
    line-height: 65px;
    font-weight: 700;
    letter-spacing: 4;
}

.main-title {
    font-size: 64px;
    /* increase size (adjust as needed) */
    font-weight: 700;
    margin-top: 60px;
}

.sub-title {
    font-size: 34px;
    font-weight: 400;
    margin-top: 20px;
    color: #555;
}


.title-mobile {
    margin-top: 10px;
    margin-bottom: 0px;
    font-family: 'Noto Sans', sans-serif;
    color: #4d4d4d;
    font-size: 40px;
    line-height: 65px;
    font-weight: 700;
    letter-spacing: 4;
}

.subheader {
    margin-top: 10px;
    margin-bottom: 10px;
    font-family: 'Open Sans', sans-serif;
    color: #333;
    font-size: 25px;
    line-height: 30px;
    font-weight: 500;
    letter-spacing: 0;
}

.tldr {
    margin-top: 30px;
    margin-bottom: 3px;
    font-family: 'Open Sans', sans-serif;
    color: #333;
    font-size: 18px;
    line-height: 24px;
    font-weight: 500;
    letter-spacing: 0;
}

.results-text {
    margin-top: 30px;
    margin-bottom: 3px;
    font-family: 'Open Sans', sans-serif;
    color: #333;
    font-size: 16px;
    line-height: 24px;
    font-weight: 500;
    letter-spacing: 0;
}

.title-row {
    margin-top: 20px;
}

.base-row {
    margin-left: -10px;
    margin-right: -10px;
}

.base-col {
    position: relative;
    float: left;
    min-height: 1px;
    padding-left: 0px;
    padding-right: 0px;
    width: 100%;
}

.author-row {
    height: 25px;
    /* text-align: right; */
}

.author-col {
    width: 20%;
    /* text-align: center; */
}

.prof-row {
    height: 25px;
    /* justify-content: center; */
    display: flex;
    justify-content: center;
    align-items: center;
}

.prof-col {
    width: 20%;
    /* justify-content: center; */
    /* text-align: center; */
}

.author-text {
    font-family: 'Open Sans', sans-serif;
    color: #333;
    font-size: 20px;
    font-weight: 400;
    text-decoration: underline;
}

.text-star {
    position: relative;
    top: -7px;
    display: inline-block;
    margin: 0px;
    font-size: 10px;
}

#uc-berkeley {
    padding-top: 10px;
    font-family: 'Open Sans', sans-serif;
    color: #333;
    font-size: 16px;
    font-weight: 400;
    margin: 0px;
    letter-spacing: 0;
}

#equal-contrib {
    padding-top: 10px;
    font-family: 'Open Sans', sans-serif;
    color: #333;
    font-size: 16px;
    font-weight: 400;
    letter-spacing: 0;
}

.icon-col {
    width: 33%;
}

.icon-img {
    max-width: 35%;
    margin-right: auto;
    margin-bottom: 1px;
    margin-left: auto;
    padding-top: 0px;
}

.github-img-icon {
    max-width: 30%;
    margin-top: 6px;
    margin-bottom: 9px;
    opacity: .77;
}

.data-img-icon {
    max-width: 30%;
    margin-top: 5px;
    margin-bottom: 9px;
    opacity: .62;
}

.link-block {
    display: block;
    max-width: 100%;
    margin-right: auto;
    margin-bottom: -14px;
    margin-left: auto;
    text-align: center;
}

.link-labels {
    display: inline-block;
    width: 60%;
    margin-top: 5px;
}

.link-labels-text {
    font-family: 'Open Sans', sans-serif;
    color: #333;
    font-size: 14px;
}

#main-video {
    width: 90%;
    /* max-width: 750px; */
    margin-top: 0px;
    margin-bottom: 10px;
    border-radius: 15px;
}

#addtl-video {
    width: 100%;
    /* max-width: 750px; */
    margin-top: 0px;
    margin-bottom: 10px;
    border-radius: 15px;
}

#pipeline-img {
    width: 90%;
    /* max-width: 560px; */
    margin-top: 10px;
    margin-right: 20px;
    margin-bottom: 10px;
}

#dynamics-img {
    width: 70%;
    max-width: 660px;
    margin-top: 10px;
    margin-right: 20px;
    margin-bottom: 10px;
}

#full-img {
    width: 100%;
}

#med-img {
    width: 100%;
    max-width: 700px;
}

#smaller-img {
    width: 100%;
    max-width: 600px;
}

#cf-img {
    width: 70%;
    /* max-width: 560px; */
    margin-top: 10px;
    margin-right: 20px;
    margin-bottom: 10px;
}

#splash-fig {
    width: 90%;
    /* max-width: 560px; */
    margin-top: 10px;
    margin-bottom: 10px;
    margin-left: 20px;
}

#why-lerf-img {
    width: 30%;
    max-width: 560px;
    margin-top: 10px;
    margin-bottom: 10px;
    margin-left: 20px;
}

#why-lerf {
    padding-top: 10px;
    margin-top: 10px;
    margin-bottom: 10px;
}

#clip-img {
    width: 100%;
    max-width: 700px;
    margin-top: 20px;
}

#main-img {
    width: 100%;
    max-width: 700px;
    margin-top: 00px;
    margin-bottom: 0px;
}

#double-img {
    width: 40%;
    margin-top: 00px;
    margin-bottom: 0px;
    margin-left: 2%;
    margin-right: 2%;
}

#splash-img {
    width: 100%;
    max-width: 800px;
    margin-top: 0px;
    margin-bottom: 0px;
}

.paragraph {
    margin-top: 0px;
    margin-bottom: 20px;
    font-family: 'Open Sans', sans-serif;
    color: #333;
    font-size: 16px;
    line-height: 24px;
    font-weight: 400;
    letter-spacing: 0;
    text-align: left;
}

.paragraph-center {
    margin-top: 0px;
    /* margin-bottom: 20px; */
    font-family: 'Open Sans', sans-serif;
    color: #333;
    font-size: 16px;
    line-height: 24px;
    font-weight: 400;
    letter-spacing: 0;
    text-align: center;
}

.thumbnails {
    width: 90%;
    overflow: hidden;
    margin-top: 20px;
    margin-bottom: 5px;
    margin-left: auto;
    margin-right: auto;
}

.thumbnail-btn {
    border: none;
    cursor: pointer;
    outline: none;
    background-color: #fff;
    padding-bottom: 8px;
    border-radius: 10px;
}

.thumbnail-btn:hover {
    background-color: #eaeaea;
}

.active-btn {
    background-color: #d9e8ec;
}

.thumbnail-row {
    display: flex;
    overflow-x: scroll;
    scroll-behavior: smooth;
    width: 88%;
    margin-left: auto;
    margin-right: auto;
    float: left;
}

.thumbnail-col {
    width: 22%;
    flex: 1 0 22%;
}

:root {
    --opacity: 50;
}

#canvas {
    position: absolute;
    left: 0;
    right: 0;
    margin-left: auto;
    margin-right: auto;
}

#canvas-overlay {
    position: absolute;
    left: 0;
    right: 0;
    margin-left: auto;
    margin-right: auto;
    /* opacity: var(--opacity); */
    filter: opacity(var(--opacity));
    transition-property: filter;
    transition-duration: 0.5s;
}

#main-results {
    width: 100%;
    /* margin-top: 30px; */
    margin-bottom: 0px;
    text-align: center;
    background-color: white;
    border-radius: 15px;
    -webkit-mask-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAIAAACQd1PeAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAA5JREFUeNpiYGBgAAgwAAAEAAGbA+oJAAAAAElFTkSuQmCC);
    overflow: hidden;
}

#main-results>div {
    height: 200px;
    background-color: red;
}

.videos {
    visibility: hidden;
    position: absolute;
    width: 1%;
}

#opacity {
    font-family: 'Open Sans', sans-serif;
    color: #3c3c3c;
    font-size: 20px;
    line-height: 20px;
}

.viewer-bar {
    width: 22%;
}

.switch {
    position: relative;
    display: inline-block;
    width: 73px;
    height: 34px;
    margin-left: 15px;
    margin-top: 5px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    -webkit-transition: .2s;
    transition: .2s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    -webkit-transition: .2s;
    transition: .2s;
    border-radius: 50%;
}

input:checked+.slider {
    background-color: #2196F3;
}

input:focus+.slider {
    box-shadow: 0 0 1px #2196F3;
}

input:checked+.slider:before {
    -webkit-transform: translateX(39px);
    -ms-transform: translateX(39px);
    transform: translateX(39px);
}

.video-bar {
    width: 150%;
    margin-top: -60px;
    margin-left: 0px;
    margin-right: 0px;
    margin-bottom: 20px;
    height: 40px;
}

.video-btn {
    width: 40px;
    height: 40px;
    padding: 8px 6px 8px 6px;
    margin: 0px 10px 0px 0px;
    cursor: pointer;
    outline: none;
    border: none;
    color: #fff;
    background-color: #2196F3;
    padding-bottom: 8px;
    border-radius: 10px;
}

.video-btn:hover {
    background-color: #0b7dda;
}

.video-export {
    text-align: right;
}

#play-btn {
    border-radius: 20px;
    padding: 0px;
}

.switch .labels {
    position: absolute;
    top: 8px;
    left: 0;
    width: 100%;
    height: 100%;
    font-size: 14px;
    font-family: sans-serif;
    transition: all 0.2s ease-in-out;
}

.switch .labels::after {
    content: attr(data-off);
    position: absolute;
    right: 8px;
    color: #4d4d4d;
    opacity: 1;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.4);
    transition: all 0.2s ease-in-out;
}

.switch .labels::before {
    content: attr(data-on);
    position: absolute;
    left: 8px;
    color: #ffffff;
    opacity: 0;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.4);
    transition: all 0.2s ease-in-out;
}

.switch input:checked~.labels::after {
    opacity: 0;
}

.switch input:checked~.labels::before {
    opacity: 1;
}

#opacity-col {
    text-align: left;
}

.citation {
    background: #f3f4f6;
    padding: 1rem;
    border-left: 4px solid #6b7280;
    border-radius: 6px;
    overflow-x: auto;
    font-family: monospace;
    font-size: 0.875rem;
    text-align: left;
}

.citation>h1 {
    margin-top: 10px;
    margin-bottom: 10px;
    margin-left: 10px;
    padding: 10px;
    font-family: sans-serif;
}

.citation>pre {
    margin-bottom: 10px;
    margin-left: 10px;
    padding: 10px;
}

.citation>p {
    margin-left: 20px;
    font-family: sans-serif;
    font-size: 1rem;
}

#codecell0 {
    margin-bottom: 10px;
    margin-left: 10px;
    overflow-y: scroll;
}

.slide-arrow {
    display: flex;
    top: 0;
    bottom: 0;
    margin-top: 35px;
    height: 4rem;
    background-color: #6dbdff;
    border: none;
    width: 5%;
    font-size: 3rem;
    padding: 0;
    cursor: pointer;
    opacity: 1.0;
    transition: color 100ms;
    justify-content: center;
}

.slide-arrow:hover,
.slide-arrow:focus {
    background-color: #2196F3;
    opacity: 1;
}

#slide-arrow-prev {
    float: left;
    left: 10;
    margin-right: 1%;
    border-radius: 2rem 2rem 2rem 2rem;
}

#slide-arrow-next {
    float: right;
    right: 10;
    margin-left: 1%;
    border-radius: 2rem 2rem 2rem 2rem;
}

#gpt-words {
    float: left;
    width: 100%;
    padding-bottom: 15px;
}

#gpt-img-col {
    width: 100%;
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.gpt-query {
    margin-left: 0px;
    margin-right: 0px;
    padding: 5px;
    border-radius: 10px;
    border: 1px solid #ffffff;
    float: left;
    width: 15%;
    line-height: 2.5vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.gpt-query:hover {
    border: 1px solid #252525;
    font-weight: 700;
}

.add-top-padding {
    margin-top: 10px;
}

/* Styling for the carousel container */
.carousel {
    display: flex;
    overflow-x: scroll;
    scroll-behavior: smooth;
    width: 100%;
}

/* Styling for each video container */
.video-container {
    flex: 1 0 100%;
    /* Two videos side by side */
    margin-right: 10px;
}

/* Styling for each video */
video {
    width: 100%;
    height: auto;
}

.carousel-button {
    position: relative;
    align-items: center;
    font-size: 2rem;
    top: -200px;
    height: 4rem;
    background-color: #6dbdff;
    border: none;
    width: 30px;
    font-size: 2rem;
    padding: 0;
    cursor: pointer;
    opacity: 1.0;
    transition: color 100ms;
}

.carousel-button:hover,
.carousel-button:focus {
    background-color: #2196F3;
    opacity: 1;
}


.carousel-button.left {
    left: max(-40vw, -400px);
    border-radius: 2rem 2rem 2rem 2rem;
}

.carousel-button.right {
    right: max(-40vw, -400px);
    border-radius: 2rem 2rem 2rem 2rem;
}

.carousel-slider-wrapper {
    position: relative;
    max-width: 48rem;
    margin: 0 80px;
}

.carousel-slider {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    /* border-radius: 0.5rem; */
}

.carousel-slider video {
    flex: 1 0 50%;
    /* scroll-snap-align: start; */
    object-fit: cover;
    /* border-radius: 0.5rem; */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.carousel-slider-nav {
    display: flex;
    column-gap: 1rem;
    position: absolute;
    bottom: 1.25rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
}

.iframe-container {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 Aspect Ratio (divide 9 by 16 = 0.5625) */
    height: 0;
    overflow: hidden;
}

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

iframe {
    /* opacity: 0; */
    display: none;
    /* transition: opacity 0.5s ease; Default transition effect */
    width: 960px;
    height: 540px;
    border: none;
}

iframe.show {
    /* opacity: 1; */
    display: block;
}

iframe:not(.show) {
    display: none;
}

@media only screen and (max-width: 950px) {
    .new-line-small-device {
        display: block;
    }
}

@media screen and (max-width: 750px) {
    .gpt-query {
        height: 30px;
        font-size: 2.5vw;
    }

    .slide-arrow {
        margin-top: 20px;
    }
}

@media screen and (max-width: 550px) {
    .subheader {
        font-size: 16px;
    }

    .author-text {
        font-size: 12px;
    }

    .author-row {
        height: 35px;
    }

    #uc-berkeley {
        font-size: 12px;
    }

    #pipeline-img {
        width: 90%;
        /* max-width: 560px; */
        margin-top: 20px;
        margin-right: 0px;
    }

    #dynamics-img {
        width: 70%;
        max-width: 460px;
        margin-top: 20px;
        margin-right: 0px;
    }

    #why-lerf-img {
        width: 60%;
        max-width: 560px;
        margin-top: 20px;
        margin-left: 0px;
    }

    .slide-arrow {
        margin-top: 15px;
    }
}

/* Style the custom dropdown container */
.custom-dropdown {
    position: relative;
    display: inline-block;
}

/* Style the default selected option */
.custom-dropdown .dropdown-btn {
    background-color: #2196F3;
}

/* Style the dropdown button */
.dropdown-btn {
    font-family: sans-serif;
    color: #fff;
    position: relative;
    padding: 10px 20px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
}

.dropdown-btn:hover {
    background-color: #0b7dda;
}

/* Style the selected option text */
#selected-option {
    margin-right: 10px;
}

/* Style the down arrow icon */
.arrow {
    font-size: 10px;
}

/* Style the dropdown menu */
.dropdown-menu {
    display: none;
    position: absolute;
    top: 60%;
    /* Position the menu just below the button */
    left: 35%;
    /* margin-top: 5px; Add some margin to separate the menu from the button */
    z-index: 1;
    background-color: #ffffff;
    /* border-radius: 10px; */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    list-style: none;
    padding: 0;
    animation: fadeInDown 0.3s ease;
}

/* Style the dropdown menu items (options) */
.dropdown-menu li {
    padding: 10px;
    font-size: 14px;
    cursor: pointer;
    color: #2196F3;
}

/* Highlight the option on hover */
.dropdown-menu li:hover {
    background-color: #e5e5e5;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Show the dropdown menu when the button is clicked */
.show {
    display: block;
}

/* CSS for the columns layout */
.columns {
    display: flex;
    flex-direction: row;
    justify-content: center;
    /* Center the columns horizontally */
    align-items: flex-start;
    /* Align columns to the top */
    flex-wrap: wrap;
    /* Allow columns to wrap on smaller screens */
    margin: 0 auto;
    /* Center the container */
}

.column {
    flex: 1;
    /* Each column takes up equal width */
    max-width: 50%;
    /* Limit the maximum width of each column */
    box-sizing: border-box;
    /* Include padding and border in the element's total width and height */
    padding: 1rem;
    /* Add padding inside columns */
}

.results-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 2rem;
}

.result-row {
    display: flex;
    gap: 2rem;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.result-image {
    width: 200px;
    height: auto;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.result-image-no-border {
    width: 200px;
    height: auto;
    object-fit: contain;
}

.result-video {
    width: 320px;
    height: auto;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.result-video-no-border {
    width: 320px;
    height: auto;
    object-fit: contain;
}

.video-section {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    flex-wrap: wrap;
    /* stack on small screens */
}

.main-video-container {
    flex: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#main-video {
    width: 100%;
    max-width: 720px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

#video-title {
    margin-top: 10px;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
}

.thumbnail-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Grid of thumbnails */
.thumbnail-grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    /* 5 columns */
    grid-template-rows: repeat(5, 1fr);
    /* 5 rows */
    gap: 10px;
    max-width: 400px;
    /* adjust depending on thumbnail size */
    justify-items: center;
    align-items: center;
}

/* Thumbnails style */
.video-thumb {
    width: 100%;
    /* fills grid cell */
    border-radius: 8px;
    cursor: pointer;
    border: 3px solid transparent;
    transition: transform 0.2s, box-shadow 0.2s, border 0.2s;
}

.video-thumb:hover {
    transform: scale(1.05);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

/* Highlight selected thumbnail */
.active-thumb {
    border: 3px solid #007bff;
    box-shadow: 0 0 10px rgba(0, 123, 255, 0.6);
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .video-section {
        flex-direction: column;
        align-items: center;
    }

    .thumbnail-grid {
        grid-template-columns: repeat(5, 1fr);
        max-width: 100%;
    }
}

.thumbnail-instruction {
    margin-top: 10px;
    font-size: 14px;
    text-align: center;
    color: #555;
    font-style: italic;
}