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

@font-face {
    font-family: "NVIDIA Sans";
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: url("https://brand-assets.cne.ngc.nvidia.com/assets/fonts/nvidia-sans/2.0.0/NVIDIASans-Light.woff2") format("woff2");
  }
  @font-face {
    font-family: "NVIDIA Sans";
    font-style: italic;
    font-weight: 300;
    font-display: swap;
    src: url("https://brand-assets.cne.ngc.nvidia.com/assets/fonts/nvidia-sans/2.0.0/NVIDIASans-LightItalic.woff2") format("woff2");
  }
  @font-face {
    font-family: "NVIDIA Sans";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("https://brand-assets.cne.ngc.nvidia.com/assets/fonts/nvidia-sans/2.0.0/NVIDIASans-Regular.woff2") format("woff2");
  }
  @font-face {
    font-family: "NVIDIA Sans";
    font-style: italic;
    font-weight: 400;
    font-display: swap;
    src: url("https://brand-assets.cne.ngc.nvidia.com/assets/fonts/nvidia-sans/2.0.0/NVIDIASans-Italic.woff2") format("woff2");
  }
  @font-face {
    font-family: "NVIDIA Sans";
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url("https://brand-assets.cne.ngc.nvidia.com/assets/fonts/nvidia-sans/2.0.0/NVIDIASans-Medium.woff2") format("woff2");
  }
  @font-face {
    font-family: "NVIDIA Sans";
    font-style: italic;
    font-weight: 500;
    font-display: swap;
    src: url("https://brand-assets.cne.ngc.nvidia.com/assets/fonts/nvidia-sans/2.0.0/NVIDIASans-MediumItalic.woff2") format("woff2");
  }
  @font-face {
    font-family: "NVIDIA Sans";
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url("https://brand-assets.cne.ngc.nvidia.com/assets/fonts/nvidia-sans/2.0.0/NVIDIASans-Bold.woff2") format("woff2");
  }
  @font-face {
    font-family: "NVIDIA Sans";
    font-style: italic;
    font-weight: 700;
    font-display: swap;
    src: url("https://brand-assets.cne.ngc.nvidia.com/assets/fonts/nvidia-sans/2.0.0/NVIDIASans-BoldItalic.woff2") format("woff2");
  }
  @font-face {
    font-family: "NVIDIA Sans Fallback";
    font-style: normal;
    font-weight: 300;
    ascent-override: 93.59%;
    descent-override: 26.74%;
    line-gap-override: 0.00%;
    size-adjust: 104.71%;
    src: local("Arial");
  }
  @font-face {
    font-family: "NVIDIA Sans Fallback";
    font-style: italic;
    font-weight: 300;
    ascent-override: 97.18%;
    descent-override: 27.77%;
    line-gap-override: 0.00%;
    size-adjust: 100.84%;
    src: local("Arial Italic");
  }
  @font-face {
    font-family: "NVIDIA Sans Fallback";
    font-style: normal;
    font-weight: 400;
    ascent-override: 92.70%;
    descent-override: 26.49%;
    line-gap-override: 0.00%;
    size-adjust: 105.71%;
    src: local("Arial");
  }
  @font-face {
    font-family: "NVIDIA Sans Fallback";
    font-style: italic;
    font-weight: 400;
    ascent-override: 96.18%;
    descent-override: 27.48%;
    line-gap-override: 0.00%;
    size-adjust: 101.89%;
    src: local("Arial Italic");
  }
  @font-face {
    font-family: "NVIDIA Sans Fallback";
    font-style: normal;
    font-weight: 500;
    ascent-override: 91.53%;
    descent-override: 26.15%;
    line-gap-override: 0.00%;
    size-adjust: 107.07%;
    src: local("Arial");
  }
  @font-face {
    font-family: "NVIDIA Sans Fallback";
    font-style: italic;
    font-weight: 500;
    ascent-override: 94.81%;
    descent-override: 27.09%;
    line-gap-override: 0.00%;
    size-adjust: 103.36%;
    src: local("Arial Italic");
  }
  @font-face {
    font-family: "NVIDIA Sans Fallback";
    font-style: normal;
    font-weight: 700;
    ascent-override: 97.74%;
    descent-override: 27.93%;
    line-gap-override: 0.00%;
    size-adjust: 100.26%;
    src: local("Arial Bold");
  }
  @font-face {
    font-family: "NVIDIA Sans Fallback";
    font-style: italic;
    font-weight: 700;
    ascent-override: 101.13%;
    descent-override: 28.90%;
    line-gap-override: 0.00%;
    size-adjust: 96.90%;
    src: local("Arial Bold Italic");
  }

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

html {
    font-size: 14px;
    line-height: 1.6;
    font-family: "NVIDIA Sans", "NVIDIA Sans Fallback", sans-serif;
    text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    -webkit-text-size-adjust: 100%;
}

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

body {
    font-family: 'NVIDIA Sans', sans-serif;
    margin: 0px;
    padding: 0px;
}

.base-grid,
.n-header,
.n-byline,
.n-title,
.n-article,
.n-footer {
    display: grid;
    justify-items: stretch;
    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: 768px) {
    .base-grid,
    .n-header,
    .n-byline,
    .n-title,
    .n-article,
    .n-footer {
        display: grid;
        justify-items: stretch;
        grid-template-columns: [screen-start] 1fr [page-start kicker-start middle-start text-start] 45px 45px 45px 45px 45px 45px 45px 45px [ kicker-end text-end gutter-start] 45px [middle-end] 45px [page-end gutter-end] 1fr [screen-end];
        grid-column-gap: 16px;
    }
    .grid {
        grid-column-gap: 16px;
    }
}

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

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

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


/* default grid column assignments */

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

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

.n-header {
    height: 0px;
}

.n-footer {
    height: 60px;
    text-align: center;
    align-items: center;
    display: flex;
    justify-content: center;
}

.n-title {
    padding: 4rem 0 0 0;
}

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

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

hr {
    width: 100%;
    height: 1px;
    border: 0;
    border-top: 2px solid #EEE;
}

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

.pixelated {
    image-rendering: pixelated;
}

strong {
    font-weight: 600;
}


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


/* title */

.n-title h1 {
    font-family: "NVIDIA Sans", Arial, sans-serif;
    color: #082333;
    grid-column: text;
    font-size: 40px;
    font-weight: 700;
    line-height: 1.1em;
    margin: 0 0 0.5rem;
    text-align: center;
}

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


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


/* article */

.n-article {
    color: rgb(33, 40, 53);
    padding-top: 2rem;
}

.n-article h2 {
    contain: layout style;
    font-family: "NVIDIA Sans", sans-serif;
    font-weight: 600;
    font-size: 24px;
    line-height: 1.25em;
    margin: 2rem 0 1.5rem 0;
}

.n-article h3 {
    padding-bottom: 0.7rem;
}

@media (min-width: 768px) {
    .n-article {
        line-height: 1.7;
    }
    .n-article h2 {
        font-size: 36px;
        text-align: center; /* Center aligns the text in .n-article h2 */
        margin-left: 0;
    }
    .n-article h3 {
        font-size: 28px;
        text-align: center; /* Center aligns the text in .n-article h2 */
    }
}


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


/* byline */

.n-byline {
    contain: style;
    overflow: hidden;
    font-size: 16px;
    line-height: 1.8em;
    padding: 0;
    min-height: 1.8em;
}

.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;
    font-size: 14px;
}

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

.authors-affiliations-gap {
    width: 100%;
    height: 0%;
    margin: 0;
    border: 0;
    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: "thumb links";
}

.download-section h4 {
    margin-left: 2.5rem;
    display: block;
}

.download-thumb {
    grid-area: thumb;
    display: block;
    height: 15rem;
}

.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: 100%;
}

@media(min-width: 1180px) {
    .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;
}


/* video caption */
.video-row {
    display: flex; /* Set the parent container as a flexbox */
    flex-direction: row; /* Ensure items are laid out horizontally */
    justify-content: center; /* Center items horizontally */
    align-items: flex-start; /* Align items to the top */
    gap: 20px; /* Add space between the videos */
    padding: 10px; /* Optional: Add padding around the container */
}

.col-md-8 {
    flex: 1; /* Allow both containers to have equal width */
    max-width: 45%; /* Optional: Limit the maximum width of each container */
}

.video {
    margin-top: 1.0rem;
    margin-bottom: .5rem;
    margin-left: 0;
    margin-right: 0;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
}

.videocaption {
    display: flex;
    font-size: 16px;
    line-height: 1.5em;
    margin-bottom: 1rem;
    justify-content: center;
}

.disable-selection {
    user-select: none;
    -moz-user-select: none;
    /* Firefox */
    -ms-user-select: none;
    /* Internet Explorer */
    -khtml-user-select: none;
    /* KHTML browsers (e.g. Konqueror) */
    -webkit-user-select: none;
    /* Chrome, Safari, and Opera */
    -webkit-touch-callout: none;
    /* Disable Android and iOS callouts*/
}

.hidden {
    display: none;
}

h3.figtitle {
    margin-top: 0;
    margin-bottom: 0;
}

.fig-title-line {
    grid-template-columns: 2fr 0.75fr;
}

.fig-thumb-image-row {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr;
}

.fig-thumb-image-row-item {
    width: 100%;
    min-height: auto;
    border-radius: var(--small-thumb-border-radius);
}

.fig-dataset-button {
    border-color: rgba(0, 0, 0, 0);
    border-width: 1px;
    border-style: solid;
    cursor: pointer;
    opacity: 0.6;
}

.fig-dataset-button.active {
    border-color: rgba(0, 0, 0, 0.7);
    border-width: 1px;
    border-style: solid;
    opacity: 1.0;
}

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

.fig-3-image-row {
    margin-top: 1em;
    grid-template-columns: 1fr 1.3fr 1fr;
    grid-template-rows: 1fr;
}

.fig-3-image-item {
    justify-self: center;
    align-self: center;
    width: 100%;
    border-radius: var(--larger-thumb-border-radius);
}


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

.fig-slider {
    grid-template-columns: auto 2fr;
    grid-template-rows: 1fr;
    margin-top: 1em;
    align-items: start;
    justify-content: center;
}

.fig-slider img.play_button {
    margin-right: 8px;
    cursor: pointer;
    justify-self: center;
}

.fig-slider svg {
    touch-action: none;
}

.fig-preload {
    display: none;
}

.youtube-embed {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%;
}

.youtube-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

a {
    /*color: inherit;*/
    color: #76B900 !important;
    text-decoration: inherit;
}

h3 {
    font-size: 1.35em;
    margin: 0;
    margin-bottom: -.5rem;
}

.play-pause {
    height: 1.3ex;
}


/* From Ref-NeRF */
.video-compare-container {
    width: 63%;
    margin: 0 auto;
    position: relative;
    display: block;
    line-height: 0;
  }

.partners {
  text-align: center;
}

.partner-logo {
  display: inline-block;
  vertical-align: middle;
  width: 12%;
  min-width: 120px;
  margin: 20px 2%;
}

a.nvgreen,
span.nvgreen {
  color: #76B900 !important;
}

a.nvbold,
span.nvbold {
  color: #76B900 !important;
  font-weight: bold !important;
}

span.todo {
  color: red;
  font-weight: bold;
}

/* Enhanced Links Section Styling */
.enhanced-links-list {
  list-style: none;
  padding: 0;
}

.enhanced-link-item {
  margin-bottom: 0;
  padding: 5px 10px;
  background: #363636; /* Solid dark background */
  border-radius: 30px; /* Rounded pill shape */
  transition: background-color 0.2s ease;
}

.enhanced-link-item:hover {
  background: #505050;
}

.enhanced-link-item a {
  color: #ffffff !important;
  text-decoration: none;
  display: flex;
  align-items: center;
  font-weight: 500;
}

.enhanced-link-item .link-emoji {
  margin-right: 8px;
}

/* Event Information Styling */
.event-info {
  text-align: center;
  margin-top: 10px;
  margin-bottom: 10px;
}

.event-item {
  margin-bottom: 15px;
  padding: 6px 10px;
  background:  rgba(118, 185, 0, 0.08);
  border-radius: 16px;
  /* border-left: 3px solid #76B900; */
}

.event-name {
  font-size: 1.1em;
  font-weight: 600;
  color: #76B900;
  margin-bottom: 4px;
}

.event-details {
  font-size: 0.95em;
  color: #666;
  font-weight: 400;
}

.event-location {
  margin-right: 15px;
}

.event-date {
  font-weight: 500;
}

/* Past Event Styling */
.event-item.past-event {
  background: rgba(128, 128, 128, 0.08);
  /* border-left: 3px solid #888; */
}

.event-item.past-event .event-name {
  color: #666;
}

.event-item.past-event .event-details {
  color: #999;
}
