* {
    margin: 0px;
    padding: 0px;
}

@font-face {
    font-family: "Gelasio";
    src: url('Gelasio-Regular.ttf');
}

body {
    background: rgb(255, 255, 255);
}

::selection {
    /* Change highlight background color to black */
    background: rgba(255, 251, 35, 0.58);
}

#title_slide {
    display: flex;
    flex-wrap: nowrap;
    margin-bottom: 2vw;
    margin-top: -4vw;
}

.gradient-bg {
    border-radius: 15rem;
    background: 
    radial-gradient(90.45% 90.45% at 87.84% 9.55%, rgba(139, 180, 214, 0.15) 0%, rgba(248, 249, 250, 0) 100%),
    linear-gradient(135.66deg, rgba(139, 180, 214, 0.1) 2.0%, rgba(248, 249, 250, 0) 74.33%);
    background-blend-mode: normal, normal, normal, normal, normal, normal;
    filter: blur(75px);
    -webkit-filter: blur(75px);
    height: 117vh;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
    -webkit-transform: translateZ(0);
    -webkit-perspective: 1000;
    -webkit-backface-visibility: hidden;
}

.title_left {
    padding-top: 8vw;
    filter: none;
}

.title_left > h1 {
    color: #2f2f2f;
    font-family: "Gelasio",Georgia,serif;
    font-weight: normal;
    font-size: 2.6vw;
    text-align: center;
}

#title_slide > div.title_left > figure > .teaser-img {
    display: block;
    width: 75%;
    margin-left: auto;
    margin-right: auto;
}

/* #overview > figure > .dit-block {
    display: block;
    max-width: 50%;
    margin-left: auto;
    margin-right: auto;
    padding-top: 20px;
    padding-bottom: 0;
} */

#abstract {
    mix-blend-mode: normal;
    color: #2f2f2f;
    font-family: "Avenir Next",Gelasio,Helvetica,sans-serif;
    font-weight: normal;
    font-size: 1.15vw;
    width: 45%;
    padding-top: 2.7vw;
    margin-left: auto;
    margin-right: auto;
    text-align: justify;
}

.author-container {
    color: #2f2f2f;
    font-family: Gelasio,"Avenir Next",Helvetica,sans-serif;
    font-weight: normal;
    font-size: 1vw;
    padding-top: 1.5vw;
    justify-items: center;
    justify-content: center;
    display: grid;
    grid-template-columns: auto auto auto auto auto;
}

.grid-item {
    text-align: center;
    padding-right: 0.7vw;
    padding-left: 0.7vw;
}

.berkeley {
    color: #2f2f2f;
    font-family: Gelasio,"Avenir Next",Helvetica,sans-serif;
    font-weight: normal;
    font-size: 1vw;
    padding-top: 1.5vw;
    text-align: center;
    display: flex;
    justify-content: center;
    gap: 2vw;
}

.berkeley .grid-item {
    position: relative;
    padding-left: 1.5vw;
}

.berkeley .grid-item:first-child::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 0.8vw;
    height: 0.8vw;
    background: rgba(196, 18, 48, 0.4);
}

.berkeley .grid-item:last-child::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 0.8vw;
    height: 0.8vw;
    background: rgba(255,252,0, 0.4)
}

.button-container {
    color: #2f2f2f;
    justify-items: center;
    padding-top: 1.5vw;
    justify-content: center;
    display: flex;
}

.title_left > figure > img {
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-top: 2vw;
    max-width: 50%;
}

.title_left > figure > figcaption {
    max-width: 95%;
}

.button {
    color: #2f2f2f;
    font-family: "Varela Round",Helvetica,sans-serif;
    border-radius: 0.75vw;
    width: 10vw;
    height: 3vw;
    margin-left: 0.4vw;
    margin-right: 0.4vw;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1vw;
    horiz-align:right;
    vertical-align:middle;
    border: solid 3px transparent;
    background-image: linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0)), linear-gradient(101deg, #8BB4D6, #B5CCDF);
    background-origin: border-box;
    background-clip: content-box, border-box;
    box-shadow: 2px 1000px 1px rgba(248, 249, 250, 0.94) inset;
}

a, a:hover, a:focus, a:active {
    text-decoration: none;
    color: inherit;
}

/* https://html-online.com/articles/gradient-background-buttons-css-html/ */
.gradient-button {
    text-align: center;
    background-size: 200% auto;
    transition: all 0.3s cubic-bezier(.25,.8,.25,1);
    cursor: pointer;
    text-decoration: none;
}
.gradient-button:hover{
    background-position: right center;
}

#overview, #section_bib, #correlation_section {
    padding-top: 1vw;
    padding-bottom: 1vw;
}

hr.rounded {
    background: rgba(139, 180, 214, 1);
    border-radius: 10px;
    height: 2px;
    width: 50%;
    margin-left: auto;
    margin-right: auto;
    mix-blend-mode: normal;
    border: none;
}

#overview h1, #section_bib h1, #correlation_section h1, #method_section h1, #results_section h1 {
    color: #2f2f2f;
    font-family: Gelasio,Georgia,serif;
    font-weight: normal;
    font-size: 2vw;
    padding-top: 2vw;
    width: 100%;
    text-align: center;
    margin: 0 auto;
    padding-bottom: 1vw;
}

#overview p, #section_bib p, #correlation_section p {
    padding-top: 1vw;
    color: #2f2f2f;
    font-family: "Avenir Next",Gelasio,Helvetica,sans-serif;
    font-weight: normal;
    font-size: 1.2vw;
    width: 45%;
    margin-left: auto;
    margin-right: auto;
}

#section_bib > .bibtex {
    font-family: "Courier", monospace;
    font-size: 0.7vw;
    color: #000000;
    background-color: rgba(139, 180, 214, 0.1);
    border: 5px;
    border-color: rgba(47, 47, 47, 0.8);
    border-radius: 10px;
    margin-top: auto;
    margin-bottom: 3vw;
    padding-bottom: 1vw;
    vertical-align: center;
    padding-left: 1vw;
    padding-right: 1vw;
}

/* Author underline styles */
.author-underline-red {
    position: relative;
    text-decoration: none;
}

.author-underline-red::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: -2px;
    width: 105%;
    height: 4px;
    background: radial-gradient(ellipse at center, rgba(196, 18, 48, 0.6) 0%, rgba(196, 18, 48, 0.4) 30%, rgba(156, 14, 38, 0.5) 60%, rgba(196, 18, 48, 0.6) 100%);
    border-radius: 50% 20% 80% 30%;
    opacity: 0.75;
    transform: rotate(-1deg) scaleY(0.8);
}

.author-underline-red::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 10%;
    width: 80%;
    height: 2px;
    background: rgba(196, 18, 48, 0.5);
    border-radius: 80% 50% 70% 40%;
    opacity: 0.6;
    transform: rotate(0.5deg);
}

.author-underline-yellow {
    position: relative;
    text-decoration: none;
}

.author-underline-yellow::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: -2px;
    width: 105%;
    height: 4px;
    background: radial-gradient(ellipse at center, rgba(255,252,0, 0.6) 0%, rgba(255,252,0, 0.4) 30%, rgba(205,202,0, 0.5) 60%, rgba(255,252,0, 0.6) 100%);
    border-radius: 40% 70% 30% 60%;
    opacity: 0.75;
    transform: rotate(1deg) scaleY(0.8);
}

.author-underline-yellow::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 15%;
    width: 70%;
    height: 2px;
    background: rgba(255,252,0, 0.5);
    border-radius: 60% 40% 80% 50%;
    opacity: 0.6;
    transform: rotate(-0.5deg);
}

/* smartphone and tablet optimizations */
@media only screen and (max-width: 1000px) {

    #title_slide {
        flex-wrap: wrap;
    }

    .gradient-bg {
        height: 70%;
    }

    #abstract {
        margin-top: 5vw;
        width: 90%;
        margin-left: auto;
        margin-right: auto;
        font-size: 4.6vw;
    }

    .title_left {
        padding-top: 10vw;
    }

    .title_left > h1 {
        font-size: 5.2vw;
    }

    .title_left > figure > img {
        margin-top: 5vw;
        max-width: 98%;
    }

    .author-container {
        margin-top: 5vw;
        font-size: 3.5vw;
    }

    .grid-item {
        padding-right: 3vw;
        padding-left: 3vw;
    }

    .berkeley {
        margin-top: 5vw;
        font-size: 3.5vw;
    }

    .button {
        margin-top: 5vw;
        font-size: 4vw;
        margin-left: 1vw;
        margin-right: 1vw;
        width: 30vw;
        height: 12vw;
        border-radius: 2vw;
    }

    hr.rounded {
        width: 90%;
    }

    #overview h1, #section_bib h1, #correlation_section h1 {
        font-size: 4.6vw;
        width: 100%;
        padding-top: 4vw;
        text-align: center;
    }

    #overview p, #section_bib p, #correlation_section p {
        -webkit-text-size-adjust: none;
        font-size: 3.8vw;
        width: 90%;
        padding-top: 3vw;
    }

    #section_bib > .bibtex {
        font-size: 2.3vw;
        padding-left: 10px;
        padding-bottom: 10px;
        padding-top: 10px;
    }

    #overview > figure > .dit-block {
        max-width: 98%;
    }

    .gallery-caption {
        font-size: 4.2vw;
        margin-bottom: 4vw;
        padding: 2vw 0;
        width: 100%;
    }

    .gallery-container {
        gap: 3vw;
    }

    .nav-arrow {
        width: 8vw;
        height: 8vw;
        font-size: 5vw;
    }

    .row-container {
        flex-direction: column;
        /* align-items: flex-start; */
        align-items: center;
    }

    .row-label {
        margin-right: 0;
        margin-top: 2vw;
        align-self: center;
    }

    .curly-brace {
        width: 4vw;
        height: 25vw;
    }

    .label-text {
        font-size: 3.5vw;
    }

    .model-label {
        font-size: 2.5vw;
        margin-bottom: 1vw;
    }

    .model-group {
        margin-bottom: 2vw;
        margin-left: 2vw;
        margin-right: 2vw;
    }

    .model-buttons {
        gap: 1vw;
    }

    .model-selector {
        justify-content: center;
        align-items: center;
        gap: 1vw;
    }

    .caption-container {
        flex-direction: column;
        gap: 3vw;
    }

    .caption-plus {
        font-size: 4vw;
        align-self: center;
    }

    .depth-container {
        max-width: 25%;
        align-self: center;
    }

}

.model-selector {
    text-align: center;
    margin-bottom: 2vw;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    flex-wrap: wrap;
}

.model-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 0.5vw;
    margin-left: 1.5vw;
    margin-right: 1.5vw;
}

.model-group:first-child {
    margin-left: 0;
}

.model-group:last-child {
    margin-right: 0;
}

.model-label {
    font-family: "Varela Round", Helvetica, sans-serif;
    font-size: 0.7vw;
    color: #666;
    margin-bottom: 0.4vw;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.model-buttons {
    display: flex;
    align-items: center;
    gap: 0.3vw;
}



.model-button {
    color: #2f2f2f;
    font-family: "Varela Round",Helvetica,sans-serif;
    border-radius: 0.6vw;
    padding: 8px 16px;
    margin-left: 0.3vw;
    margin-right: 0.3vw;
    text-align: center;
    font-size: 0.9vw;
    border: solid 3px transparent;
    background-image: linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0)), linear-gradient(101deg, #8BB4D6, #B5CCDF);
    background-origin: border-box;
    background-clip: content-box, border-box;
    box-shadow: 2px 1000px 1px rgba(248, 249, 250, 0.94) inset;
    background-size: 200% auto;
    transition: all 0.3s cubic-bezier(.25,.8,.25,1);
    cursor: pointer;
    text-decoration: none;
    opacity: 0.25;
}

.model-button:hover{
    background-position: right center;
}

.model-button.active {
    opacity: 1;
}

.gallery-panel {
    width: 70%;
    margin: auto auto;
}

.gallery-row {
    display: flex;
    justify-content: space-around;
    margin-bottom: 1vw;
    padding-left: 0%;
    padding-right: 0%;
    width: 100%;
}

.gallery-row img, .gallery-image {
    width: 24%;
    border: 0px solid #ddd;
    border-radius: 0px;
}

.gallery-caption {
    font-family: 'Kalam', 'Comic Sans MS', cursive;
    font-size: 1.4vw;
    color: #2f2f2f;
    text-align: center;
    margin-bottom: 1.5vw;
    padding: 0.5vw 0;
    font-weight: 400;
    line-height: 1.3;
    width: 15vw;
}

.gallery-container {
    display: flex;
    align-items: center;
    gap: 2vw;
    width: 100%;
}

.gallery-content {
    flex: 1;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.gallery-content.transitioning {
    opacity: 0.6;
    transform: translateY(10px);
    pointer-events: none;
}

.gallery-image {
    transition: opacity 0.2s ease;
}

.caption-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5vw;
    margin-bottom: 1.5vw;
    width: 100%;
}

.caption-container .gallery-caption {
    flex: 0 0 auto;
    /* max-width: 150px; */
    margin-bottom: 0;
}

.caption-plus {
    font-size: 2vw;
    color: #666;
    font-weight: bold;
    flex: 0 0 auto;
}

.depth-container {
    flex: 0 0 auto;
    max-width: 15%;
}

.depth-image {
    width: 100%;
    height: auto;
}

/* Add vertical dashed lines between IID images to show independence */
.iid-row .gallery-image:not(:last-child) {
    border-right: 3px dashed #999;
    margin-right: 0.5vw;
    padding-right: 0.5vw;
}

/* Group row has transparent dashed lines for alignment but not visible */
.group-row .gallery-image:not(:last-child) {
    border-right: 3px dashed transparent;
    margin-right: 0.5vw;
    padding-right: 0.5vw;
}

/* Row containers with labels */
.row-container {
    display: flex;
    align-items: center;
    position: relative;
    margin-bottom: 1vw;
    min-height: fit-content;
    width: 100%;
}

.row-label {
    display: flex;
    align-items: center;
    margin-right: 2vw;
    opacity: 0;
    height: 100%;
    width: 8vw;
    flex-shrink: 0;
}

.row-label.animate {
    animation: slideInLabel 1s ease-out 0.5s forwards;
}

.curly-brace {
    width: 2vw;
    height: 12vw;
    margin-left: 0.5vw;
    transform: scaleY(0) scaleX(-1);
    transform-origin: center;
}

.curly-brace.animate {
    animation: expandBrace 0.8s ease-out 0.8s forwards;
}

.label-text {
    font-family: "Varela Round", Helvetica, sans-serif;
    font-weight: 500;
    font-size: 0.8vw;
    color: #2f2f2f;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transform: translateX(-20px);
    opacity: 0;
    text-align: center;
}

.label-text.animate {
    animation: slideInText 0.6s ease-out 1.2s forwards;
}

/* Animation keyframes */
@keyframes slideInLabel {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes expandBrace {
    from {
        transform: scaleY(0) scaleX(-1);
    }
    to {
        transform: scaleY(1) scaleX(-1);
    }
}

@keyframes slideInText {
    from {
        transform: translateX(-20px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.nav-arrow {
    background: #B5CCDF;
    border: none;
    border-radius: 50%;
    width: 3vw;
    height: 3vw;
    font-size: 1.8vw;
    font-weight: bold;
    color: #2f2f2f;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    opacity: 0.9;
    line-height: 1;
    font-family: Arial, sans-serif;
    text-align: center;
    position: relative;
}

.nav-arrow.nav-left {
    transform: translateX(-0.05vw);
}

.nav-arrow.nav-right {
    transform: translateX(0.05vw);
}

.nav-arrow:hover:not(:disabled) {
    transform: scale(1.1);
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.nav-arrow.nav-left:hover:not(:disabled) {
    transform: scale(1.1) translateX(0.0);
}

.nav-arrow.nav-right:hover:not(:disabled) {
    transform: scale(1.1) translateX(0.0);
}

.nav-arrow:disabled {
    opacity: 0.2;
    cursor: not-allowed;
    transform: none;
}



.scaling-caption{
    max-width: 45%;
    text-align: justify;
    font-size: 0.9vw;
    padding-top: 10px;
    padding-left: 0%;
    margin-left: auto;
    margin-right: auto;
}
.correlation-caption {
    width: 45%;
    text-align: justify;
    font-size: 0.85vw;
    /* margin-top: -40px; */
    padding-left: 0%;
}



/*
// CSS for the interactive scaling chart
*/

#scaling_section {
    padding-top: 1vw;
    /* display: flex;
    flex-direction: column;
    align-items: center; */
}

#scaling_section p {
    max-width: 800px;
    margin: 0 auto 20px auto;
    line-height: 1.6;
}

/* #scaling_section h1 {
    color: #2f2f2f;
    font-family: Gelasio,Georgia,serif;
    font-weight: normal;
    font-size: 2vw;
    padding-top: 2vw;
    width: 100%;
    margin-left: 0;
    margin-right: auto;
    text-align: left;
    padding-left: 5%;
} */

#scaling_section h1 {
    color: #2f2f2f;
    font-family: Gelasio,Georgia,serif;
    font-weight: normal;
    font-size: 2vw;
    padding-top: 2vw;
    width: 100%;
    text-align: center;
    margin: 0 auto;
}

#scaling-container {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    max-width: 800px;
    margin: 0 auto;
}

#chart-container {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    width: 80%;
}

/* Style for the chart axes */
.axis path, .axis line {
    fill: none;
    stroke: #555;
    shape-rendering: crispEdges;
}

.axis text {
    fill: #333;
    font-size: 12px;
}

/* Style for the data line */
.line {
    fill: none;
    stroke: #8BB4D6;
    stroke-width: 2.5px;
}

/* Style for the data points */
.dot {
    fill: #8BB4D6;
    stroke: #fff;
    stroke-width: 1.5px;
    cursor: pointer;
}

/* Style for the tooltip */
.tooltip {
    position: absolute;
    text-align: center;
    width: 120px;
    padding: 8px;
    font: 12px sans-serif;
    background: #333;
    color: white;
    border: 0px;
    border-radius: 8px;
    pointer-events: none; /* Prevents the tooltip from interfering with mouse events */
}

.line.baseline {
    stroke: #aaa;
    stroke-opacity: 0.9;
}

.line.group {
    stroke: #B5CCDF;
    stroke-opacity: 0.9;
}

.legend-text {
    font-size: 12px;
    fill: #333;
}

.dot {
    stroke-width: 1.5;
    stroke: white;
}

.dot.baseline {
    fill: #aaa;
}

.dot.group {
    fill: #B5CCDF;
}



#chart-container {
    flex: 0 0 80%;
}

#scaling-model-buttons {
    flex: 0 0 20%;
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding-top: 20px;
}

.scaling-model-button {
    color: #2f2f2f;
    font-family: "Varela Round",Helvetica,sans-serif;
    border-radius: 0.75vw;
    padding: 10px 20px;
    margin-left: 0.1vw;
    margin-right: 0.1vw;
    text-align: center;
    font-size: 0.9vw;
    border: solid 3px transparent;
    background-image: linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0)), linear-gradient(101deg, #8BB4D6, #B5CCDF);
    background-origin: border-box;
    background-clip: content-box, border-box;
    box-shadow: 2px 1000px 1px rgba(248, 249, 250, 0.94) inset;
    background-size: 200% auto;
    transition: all 0.3s cubic-bezier(.25,.8,.25,1);
    cursor: pointer;
    text-decoration: none;
    opacity: 0.25;
}

.scaling-model-button:hover {
    background-position: right center;
}

.scaling-model-button.active {
    opacity: 1;
}