/* Lightly modified version of https://nvlabs.github.io/stylegan3/ */

:root {
    --small-thumb-border-radius: 2px;
    --larger-thumb-border-radius: 3px;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

html {
    font-size: 14px;
    line-height: 1.6;
    /*font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";*/
    /*font-family: 'Inter', sans-serif;*/
    text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

@media(min-width: 900px) {
    html {
        font-size: 16px;
    }
}

body {
    margin: 0px;
    padding: 0px;
    padding-bottom: 150px;
}

.base-grid,
.n-header,
.n-byline,
.n-title,
.n-article,
.n-footer {
    display: grid;
    justify-items: normal;
    grid-template-columns: [screen-start] 8px [page-start kicker-start text-start gutter-start middle-start] 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr [text-end page-end gutter-end kicker-end middle-end] 8px [screen-end];
    grid-column-gap: 8px;
}

.grid {
    display: grid;
    grid-column-gap: 8px;
}


@media (min-width: 1180px) {
    .base-grid,
    .n-header,
    .n-byline,
    .n-title,
    .n-article,
    .n-footer {
        display: grid;
        justify-items: normal;
        grid-template-columns: [screen-start] 1fr [page-start kicker-start] 90px [middle-start] 90px [text-start kicker-end] 90px 90px 90px 90px 90px 90px 90px 90px [text-end gutter-start] 90px [middle-end] 90px [page-end gutter-end] 1fr [screen-end];
        grid-column-gap: 32px;
    }
    .grid {
        grid-column-gap: 32px;
    }
}

img {
    width: 100%;
}

.base-grid {
    grid-column: screen;
}


/* default grid column assignments */

.n-title>* {
    grid-column: text;
}

.n-article>* {
    grid-column: text;
}

.n-header {
    height: 0px;
}

.n-footer {
    height: 60px;
}

.n-title {
    padding: 3rem 0 1.5rem;
}

.l-page {
    grid-column: page;
}

.l-article {
    grid-column: text;
}

p {
    margin-top: 0;
    margin-bottom: 1em;
}

.pixelated {
    image-rendering: pixelated;
}

strong {
    font-weight: 600;
}


/*------------------------------------------------------------------*/


/* title */

.n-title h1 {
    font-family: "Barlow", system-ui, Arial, sans-serif;
    color: #082333;
    grid-column: text;
    font-size: 35px;
    font-weight: 500;
    line-height: 1.1em;
    margin: 0 0 0.5rem;
    text-align: center;
    background: #EEE;
    /*text-shadow: 3px 3px 3px rgba(0, 0, 0, 0.2);*/

}

@media (min-width: 900px) {
    .n-title h1 {
        font-size: 45px;
    }
}


/*------------------------------------------------------------------*/


/* article */
.n-article {
    color: rgb(33, 40, 53);
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    padding-top: 2rem;
    overflow: visible;
}

.n-article h2 {
    padding-top: 0;
    contain: layout style;
    font-weight: 500;
    font-size: 24px;
    line-height: 1.25em;
    margin: 2rem 0 1.5rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding-bottom: 1rem;
}

@media (min-width: 1000px) {
    .n-article {
        line-height: 1.7;
    }
    .n-article h2 {
        font-size: 36px;
    }
}


/*------------------------------------------------------------------*/


/* byline */
.n-byline {
    contain: style;
    overflow: hidden;
    /*border-top: 1px solid rgba(0, 0, 0, 0.1);*/
    font-size: 1.0rem;
    line-height: 1.5em;
    padding-bottom: 1.5em;
    min-height: 1.8em;
    background: #EEE;
}

.n-byline .byline {
    grid-column: text;
}

.byline {
    grid-template-columns: 1fr 1fr 1fr 1fr;
}

.grid {
    display: grid;
    grid-column-gap: 8px;
}

@media (min-width: 768px) {
    .grid {
        grid-column-gap: 16px;
    }
}

.n-byline p {
    margin: 0;
}

.n-byline h3 {
    font-size: 0.6rem;
    font-weight: 400;
    color: rgba(200, 0, 0, 0.5);
    margin: 0;
    text-transform: uppercase;
}

.n-byline .authors-affiliations {
    grid-column-end: span 2;
    grid-template-columns: 1fr 1fr;

}


/*------------------------------------------------------------------*/


/* figures */

.figure {
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

figcaption,
.figcaption {
    color: rgba(0, 0, 0, 0.6);
    font-size: 12px;
    line-height: 1.5em;
}

ul.authors {
    list-style-type: none;
    padding: 0;
    margin: 0;
    text-align: center;
}

ul.authors li {
    padding: 0 0.5rem;
    display: inline-block;
}

ul.authors sup {
    color: rgb(126, 126, 126);
}

ul.authors.affiliations {
    margin-top: 0.0rem;
}

ul.authors.affiliations li {
    color: rgb(126, 126, 126);
}

.authors-affiliations-gap {
    width: 100%;
    margin-bottom: .4rem;
}


/* Download section columns.  This switches between two layouts::after
    
    - two columns on larger viewport sizes: side-by-side paper thumb and links
    - single column: no thumb
     */

.download-section {
    display: grid;
    grid-template-areas: "links";
}

.download-thumb {
    grid-area: thumb;
    display: none;
}

.download-links {
    grid-area: links;
}

.download-links > ul > li > a {
    text-decoration: underline;
    font-style: italic;
}

img.dropshadow {
    box-shadow: 0 1px 10px rgba(0, 0, 0, 0.3);
    height: 90%;
    width: auto;
}

@media(min-width: 1180px) {
    .download-section {
        display: grid;
        grid-template-areas: "thumb links";
    }
    .download-thumb {
        display: block;
        height: 25rem;
        margin-left: 1rem;
    }
}


/* For BibTeX */

pre {
    font-size: 0.9em;
    padding-left: 7px;
    padding-right: 7px;
    padding-top: 3px;
    padding-bottom: 3px;
    border-radius: 3px;
    background-color: rgb(235, 235, 235);
    overflow-x: auto;
}


/* Custom */
a {
    color: steelblue;
    text-decoration: inherit;
}

a:hover {
    color: rgb(107, 145, 176);
}

h3 {
    font-size: 1.35em;
    margin-bottom: 0;
    /*color: #246385;*/
}

p {
    text-align: justify;
}

.video-desc{
    text-align: center;
    font-size: large;
}

#video-table{
    max-width: 100%;
}

.footer .icon-link {
    font-size: 25px;
    color: #000;
}

.link-block a {
    margin-top: 5px;
    margin-bottom: 5px;
}

img {
    border-radius: 10px;
}

.desc-text {
    color: grey;
}

.teaser {
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.white-box {
    background: white;
    border-radius: 10px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
    padding: 24px;
    padding-top: 0;
    width: 100%;
    margin: 20px auto;
}

.centered-img {
    display: block;
    width: 90%;
    margin: 20px auto 0;
}

.media-caption {
    margin: 8px auto 0;
    text-align: center;
    color: #555;
    font-size: 0.95rem;
}

.results-table {
    width: 60%;
    max-width: 520px;
    margin: 24px auto 0;
    border-collapse: collapse;
    font-size: 1rem;
}

.results-table caption {
    caption-side: top;
    margin-bottom: 8px;
    color: #555;
    font-size: 0.95rem;
    text-align: center;
}

.results-table th,
.results-table td {
    padding: 10px 14px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.12);
    text-align: center;
}

.results-table th:first-child,
.results-table td:first-child {
    text-align: left;
}

.results-table thead th {
    font-weight: 600;
    color: #082333;
}

/* ########################### Sticky Header #####################################*/
.sticky-mini-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    z-index: 1000;

    opacity: 0;
    transform: translateY(-100%);
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.sticky-mini-header.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.sticky-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.sticky-logo {
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    font-family: "Barlow", system-ui, Arial, sans-serif;
}

.sticky-links {
    display: flex;
    gap: 12px;
    align-items: center;
}

.mini-btn {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 999px;
    background: #111;
    color: white;
    text-decoration: none;
    font-size: 0.95rem;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.mini-btn:hover {
    transform: translateY(-1px);
    opacity: 0.9;
}

.sticky-logo,
.sticky-title-slot,
.floating-cosy {
    color: #082333;
    font-weight: 700;
    font-family: "Barlow", system-ui, Arial, sans-serif;
}


/*########### slider ##############*/

.frame-slider {
    margin-top: 1.5rem;
}

/* image container */
.frame-image-wrap {
    background: #f5f5f7;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
}

.frame-slider-image {
    display: block;
    width: 100%;
    transition: opacity 0.2s ease;
}

/* controls area */
.frame-controls {
    margin-top: 14px;
    padding: 0 6px;
}

/* slider base */
.frame-slider-input {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 4px;
    border-radius: 999px;
    background: #d2d2d7;
    outline: none;
    cursor: pointer;
}

/* slider track fill (optional visual enhancement) */
.frame-slider-input::-webkit-slider-runnable-track {
    height: 4px;
    border-radius: 999px;
    background: linear-gradient(to right, #0071e3 var(--progress, 0%), #d2d2d7 var(--progress, 0%));
}

/* thumb */
.frame-slider-input::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: white;
    border: 1px solid rgba(0,0,0,0.1);
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    margin-top: -7px;
    transition: transform 0.15s ease;
}

.frame-slider-input::-webkit-slider-thumb:hover {
    transform: scale(1.1);
}

/* Firefox */
.frame-slider-input::-moz-range-track {
    height: 4px;
    border-radius: 999px;
    background: #d2d2d7;
}

.frame-slider-input::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: white;
    border: 1px solid rgba(0,0,0,0.1);
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

/* subtle fade between frames */
.frame-slider-image.fade {
    opacity: 0;
}

.slider-row {
    display: flex;
    justify-content: center;   /* centers both sliders */
    align-items: flex-start;
    gap: 32px;                /* space between sliders */
    flex-wrap: wrap;          /* stacks on small screens */
    margin-top: 1.5rem;
}

.slider-row .frame-slider {
    width: 40%;
    min-width: 320px;
}

/* COLORS ###############################*/
.color-widget {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 28px;
    max-width: 900px;
    margin: 10px auto;
    background: white;
    border-radius: 18px;
    padding: 24px;
}

/* left column */
.color-panel-list {
    display: grid;
    grid-template-columns: repeat(2, 50px);
    gap: 12px;
}

/* square buttons */
.color-btn {
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, outline 0.18s ease;
    box-shadow: inset 0 0 0 1px rgba(0,0,0,0.08);
}

.color-btn:hover {
    transform: scale(1.08);
}

.color-btn.active {
    outline: 3px solid #0071e3;
    outline-offset: 2px;
    transform: scale(1.06);
}

/* right image */
.color-image-wrap {
    flex: 1;
    max-width: 256px;
    background: #f5f5f7;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: inset 0 0 0 1px rgba(0,0,0,0.03);
}

.color-image-wrap img {
    display: block;
    width: 100%;
    height: auto;
    transition: opacity 0.2s ease;
}

.color-image-wrap img.fade {
    opacity: 0;
}

/* mobile */
@media (max-width: 700px) {
    .color-widget {
        flex-direction: column;
    }

    .color-panel-list {
        grid-template-columns: repeat(8, 42px);
    }

    .color-image-wrap {
        width: 100%;
    }
}

/*Affiliations*/

.logo-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 48px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.logo-row img {
    max-height: 70px;
    width: auto;
    object-fit: contain;
    transition: transform 0.2s ease, opacity 0.2s ease;
    opacity: 0.9;
    border-radius: 0;
}

.logo-row img:hover {
    transform: scale(1.05);
    opacity: 1;
}

.affiliation-text {
    text-align: center;
    font-size: 1.05rem;
    color: #555;
    margin-bottom: 24px;
    margin-top: 24px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/*darkmode svg fix*/

.white-box img[src$=".svg"],
.centerd-img[src$=".svg"] {
    background: #fff;
    filter: none !important;
    mix-blend-mode: normal;
    color-scheme: light;
}

.svg-wrap {
    overflow: hidden;
}

.svg-img {
    width: 100%;
    display: block;
    background: white;
}
