@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@100;300;400;500;700;900&display=swap');

/* Apply box-sizing globally */
*,
*::before,
*::after {
    box-sizing: border-box;
}

:root {
    --scroll: 0;
    --margin: 50px;
    --totalScroll: 0;
    --interviewStickyTop: 0;
    --distanceToInterviewSection: 0;
    --walkthroughStickyTop: 0;
    --highlight: #CC1616;
    --transectHorizontalScroll: 0;
    --wipePercentage: 0;
}

/* For debugging outlines */
/* * {
    outline: 1px solid #f00 !important;
} */

html,
body {
    font-size: 12px;
    font-family: Roboto;
    /* overflow-y: scroll; */
    margin: 0;
    padding: 0;
    color: black;
    scroll-behavior: smooth;
}

h1,
h2,
p {
    all: unset;
    /* Removes all styles */
    display: block;
    /* Ensures it behaves as a block element */
    font-size: inherit;
    /* Inherits the font size from the parent */
    font-weight: normal;
    /* Resets the bold weight typical of h1 */
    margin: 0;
    /* Removes any margin */
    padding: 0;
    /* Removes any padding */
    color: inherit;
    /* Inherits the color from the parent element */
    text-transform: none;
    /* Removes text transformations like uppercase */

}

.image-viewer {
    position: fixed;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.418);
    z-index: 999;
    display: none;
}

.image-viewer .image-viewer-container {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 80vw;
    height: 80vh;
}

.image-viewer .image-viewer-container img {
    object-fit: contain;
    width: 100%;
    height: 100%;
}

h1 {
    font-weight: bold;
    margin-bottom: 10px;
}

em {
    color: var(--highlight);
    font-style: normal;
    font-weight: bold;
}

.section {
    position: relative;
    width: 100%;
    min-height: 100vh;
    transition: 2s ease-in-out;
    padding: calc(var(--margin)*2) var(--margin);
}

.no-padding {
    padding: 0;
    width: 100% !important;
}

.section-background {
    position: absolute;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    background-color: rgba(0, 0, 0, 0.959);
    background-blend-mode: overlay;
}

.section-background img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    opacity: 0.2;
}

.middle-large-text {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 50vw;
    min-width: 300px;
    font-size: 3em;
}

.white {
    color: white;
}

.header-container {
    padding: calc(var(--margin) * 4) 0 calc(var(--margin)) 0;

}

.padding {
    margin-left: var(--margin);
}

.header-container>h1 {
    font-size: 2em;
    text-decoration: underline;
    color: #CC1616;
}

.header-container p {
    font-size: 1.5em;
    max-width: 800px;
}

.header-container img {
    width: 400px;
    height: auto;
    object-fit: contain;
}

#intro {
    background-color: white;
    color: black;
}

#past {
    background-color: white;
}

#present {
    background-color: white;
}

#future {
    background-color: white;
}

.header {
    position: fixed;
    width: 100vw;
    top: 0px;
    z-index: 15;
    transition: 0.2s;
}

.progress-bar {
    position: absolute;
    left: 50%;
    top: 60px;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.25);
    height: 1px;
    width: 400px;
}

.progress-bar-handle {
    position: absolute;
    width: 5px;
    height: 5px;
    border-radius: 2.5px;
    background-color: black;
    left: 0px;
    top: 50%;
    transform: translateY(-50%) translateX(calc(400px * var(--totalScroll)/100));
}


.title_logo {
    color: #CC1616;
    position: absolute;
    top: 10px;
    text-align: center;
    left: calc(var(--margin));
    transition: all 0.2s;
    font-size: 2vw;
    cursor: pointer;

}

.title_logo:hover {
    opacity: 25%;
}

.nav-container {
    transition: 1s;
    transform: translateY(calc(-100px + (max(var(--scroll), 50) - 50)/50 * 100px));
}

.title_center {
    width: 50vw;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.single-image-container {
    width: calc(50vw - var(--margin)*2);
    height: 500px;
}

.single-image-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.title_center>h1 {
    color: var(--highlight);
    font-size: 8vw;
    text-align: center;
}

.bot-left-aligned {
    font-size: 2em;
    position: absolute;
    width: 100%;
    bottom: 0;
    left: 0;
    padding-bottom: calc(var(--margin) * 2);
    text-align: center;
}

.header-center-container {
    width: 100%;
    display: flex;
    gap: 30px;
    justify-content: center;
    transition: 0.3s;
}

.header-center-container>.container-item {
    font-size: 2em;
    text-align: center;
    cursor: pointer;
    padding: 20px 20px;
    transition: text-decoration-color 300ms;
}

.header-center-container>.container-item:hover {
    text-decoration: underline;
}

.text-panel-container {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
}

.threeby {
    flex-wrap: wrap;
}

.threeby .text-panel {
    min-width: 300px;
    width: 33%;
    max-width: 600px;
    padding: calc(var(--margin)*4) 0;
}

.text-panel {
    width: calc(50vw - var(--margin)*2);
    min-width: 500px;
    padding: var(--margin);
    margin-bottom: var(--margin);
    align-self: flex-start;
}

.centered-text {
    text-align: center;
}

.text-panel>h1:nth-child(1) {
    margin-top: 0;
}

.text-panel>h1 {
    margin: var(--margin) 0;
    font-weight: bold;
    font-size: 2em;
    text-decoration: underline;
    color: #CC1616;
}

.text-panel>h2 {
    font-size: 1.5em;
    font-weight: normal;
    text-decoration: underline;
    margin-bottom: var(--margin);
}

.text-panel>p {
    font-size: 1.5em;
    margin-bottom: var(--margin);
}

.text-panel>.quote {
    font-size: 1.1em;
    color: var(--highlight);
    font-style: italic;
}

.text-panel-container.right {
    justify-content: flex-end;
}

.text-panel-container.left {
    justify-content: flex-start;
}

.text-panel-container.middle {
    justify-content: center;
}

.v-centered {
    align-items: center;
}

.walkthrough-top-container {
    height: 3000vh;
}

.walkthrough-container {
    /* width: calc(50vw - var(--margin) * 2); */
    width: 100%;
    max-width: 2560px;
    position: sticky;
    position: -webkit-sticky;
    /* Safari */
    top: calc(1px * var(--walkthroughStickyTop));
}


.walkthrough-dot-container {
    position: absolute;
    width: 100%;
    height: 100%;
}

.walkthrough-dot {
    position: absolute;
    height: 10px;
    width: 10px;
    left: 0;
    top: 0;
    border-radius: 50%;
    background-color: var(--highlight);
}

.walkthrough-container-b {
    display: flex;
    flex-direction: row;
    gap: var(--margin);

}

.walkthrough-map-container {
    position: relative;
    width: 50vw;
    margin: auto 0;
}

.walkthrough-map-container>img {
    width: 100%;
    height: auto;
}

.right-pane {
    height: 100%;
}

.walkthrough-metrics {
    margin-top: calc(var(--margin)/2);
    font-size: 1.25em;
    display: flex;
    gap: 10px;
}

.walkthrough-metric {
    padding: 10px;
    border: 1px solid var(--highlight);
    height: 120px;
}

.walkthrough-metric.large {
    width: 400px;
}

.walkthrough-metric.small {
    width: 120px;
}



.metric-title {
    font-weight: bold;
}


.metric-bar {
    position: relative;
    width: 100px;
    height: 20px;
}

.metric-bar .bar {
    position: absolute;
    height: 10px;
    width: 25%;
    margin: 10px 0;
    background-color: var(--highlight);
    z-index: 10;
}

.metric-bar .background-bar {
    position: absolute;
    width: 100%;
    height: 10px;
    margin: 10px 0;
    background-color: lightgrey;
}


.walkthrough-container-b>.image-gallery {
    width: 50vw;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;

    justify-content: flex-start;
    align-items: center;
    align-content: center;
    gap: calc(var(--margin) / 2);
}

.large-image>.large-image-container {
    width: 500px !important;
    height: 500px !important;
}

.large-image-item {
    width: 500px;
}

.large-image-item p {
    position: relative;
    font-size: 1em;
    margin: calc(var(--margin)/4) 0;
    width: 100%;
}

.large-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.3s;
    cursor: pointer;
}

.large-image-container>img:hover {
    transform: scale(105%, 105%);

}

.image-gallery>.image-item {
    position: relative;
    transition: 0.3s;
    cursor: pointer;
    width: 200px;

}

.image-container {
    width: 200px;
    height: 200px;
}

.image-item>.image-container>img:hover {
    transform: scale(110%, 110%);
}

.image-item>.image-container>img {
    object-fit: cover;
    width: 100%;
    height: 100%;
    transition: 0.3s;
}

.image-item p {
    position: relative;
    font-size: 1em;
    margin: calc(var(--margin)/4) 0;
    width: 100%;
}


.image-gallery {
    width: 100%;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: flex-start;
    gap: calc(var(--margin)/2);
}

.centered-gallery {
    justify-content: center;
    margin-bottom: calc(var(--margin)*2);
    flex-wrap: nowrap;
}

.gallery-three {
    width: 25vw !important;
    height: 25vw !important;
}

.gallery-three .image-container {
    width: 100%;
    height: 100%;
}

.gallery-three p {
    text-align: center;
}


.gallery-three>img {
    width: 100%;
    height: auto;
}














.interview-section {
    height: 100%;
    width: 100%;
}

.map-container {
    /* width: calc(50vw - var(--margin) * 2); */
    width: 40vw;
    max-width: 2560px;
    height: 100%;
    position: sticky;
    top: calc(1px * var(--interviewStickyTop));
    display: inline-block;
}


.map-image-container>img {
    width: 100%;
}


.dot-container {
    position: absolute;
    width: 100%;
    height: 100%;
}

.dot-container>.dot {
    position: absolute;
    height: 20px;
    width: 20px;
    left: 0;
    top: 0;
    z-index: 10;
    transform: translate(-50%, -50%);
    transition: 500ms;
    background-color: black;
    border-radius: 50%;
    cursor: pointer;
    box-sizing: border-box;
    border: 2px solid black;
}

.dot-container>.dot:hover {
    width: 40px;
    height: 40px;
}

.dot-container>.dot>img {
    width: 100%;
    height: 100%;
    position: absolute;
}

.p1 {
    background-color: rgb(181, 214, 192) !important;
}

.p2 {
    background-color: rgb(189, 228, 228) !important;
}

.p3 {
    background-color: rgb(193, 175, 209) !important;
}

.p4 {
    background-color: rgb(212, 190, 162) !important;
}

.p5 {
    background-color: rgb(221, 134, 207) !important;
}

.p6 {
    background-color: rgb(165, 240, 150) !important;
}

.p7 {
    background-color: rgb(133, 108, 241) !important;
}




.full-image-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.full-image-container img {
    height: 100%;
    width: 100%;
    object-fit: contain;
}


.section-interview {
    width: 100%;
    display: flex;
    justify-content: flex-end;
}

.section-interview>.interview-column {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
}

.interview {
    display: flex;
    width: calc(50vw - var(--margin));
    padding: var(--margin);
    align-items: center;
    align-content: center;
    justify-content: center;
    flex-wrap: wrap;
}

.interview>.text-panel-container {
    width: 600px;
}

.interview>.text-panel-container>.text-panel {
    margin: 0;
}

.interview>.text-panel-container>.text-panel>h1 {
    margin-bottom: calc(var(--margin)/2);
}

.interview>.interview-image-container {
    width: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.interview>.interview-image-container>.interview-image-container2 {
    /* Safari */
    width: 100px;
    height: 100px;
    background-color: black;
    border-radius: 50%;
    border: 3px solid black;
}


.interview>.interview-image-container>img {
    width: 100%;
    height: 100%;
}

.interview>h1 {

    font-size: 2em;
}

.interview>p {

    font-size: 1.25em;
}

.classa {
    margin-bottom: var(--margin);
    cursor: pointer;
    transition: 0.3s;
}

.classa img {
    transition: 0.3s;
}

.classa:hover img {
    transform: scale(110%);
}

.inline-image-container {
    position: relative;
    width: 100%;
    height: auto;
    margin-bottom: var(--margin);
}

.inline-image-container>img,
.inline-image-container>iframe {
    width: 100%;
    height: auto;
}

.inline-image-container>p {
    font-size: 1em;
    margin: 10px 0;
}

.slider-gallery-container {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.slider-gallery {
    position: relative;
    width: 100%;
}

.slider-gallery>img {
    width: 100%;
    height: 100%;
}

.slider-container {
    position: relative;
    /* Allows absolute positioning of the value display */
    display: flex;
    justify-content: center;
    align-items: center;
    margin: var(--margin);
    width: 20vw;
}

.value-display {
    position: absolute;
    top: -40px;
    /* Adjust as needed */
    background: var(--highlight);
    /* Black background */
    color: #fff;
    /* White text */
    padding: 5px 10px;
    font-size: 14px;
    /* Adjust font size as needed */
    white-space: nowrap;
    /* Prevent text wrapping */
}

input[type="range"] {
    -webkit-appearance: none;
    /* Remove default styling in WebKit browsers */
    width: 100%;
    /* Adjust width as needed */
    height: 1px;
    /* Adjust thickness as needed */
    background: #000;
    /* Black bar */
    border-radius: 5px;
    /* Rounded corners for the track */
    outline: none;
    /* Remove outline */
    opacity: 0.7;
    /* Slightly transparent */
    transition: opacity .15s ease-in-out;
    /* Smooth transition for opacity */
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    /* Remove default styling in WebKit browsers */
    width: 20px;
    /* Knob width */
    height: 20px;
    /* Knob height */
    background: var(--highlight);
    /* Black knob */
    border-radius: 50%;
    /* Circular knob */
    cursor: pointer;
    /* Pointer cursor on hover */
}

input[type="range"]:hover {
    opacity: 1;
    /* Full opacity on hover */
}

/* Full sized image scroller */
/* styles.css */

/* Reset default margins and paddings */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    height: 300vh;
    /* 3 sections, adjust as needed */
    position: relative;
    overflow-x: hidden;
    /* Prevent horizontal scrollbar */
}



.btn {
    position: absolute;
    transform: translateX(-50%);
    left: 50%;
    padding: calc(var(--margin)/4);
    border: 1px solid var(--highlight);
    color: var(--highlight);
    font-size: 1.25em;
    text-align: center;
    margin: auto;
    background-color: white;
    cursor: pointer;
    transition: 0.2s;
}

.btn:hover {
    background-color: var(--highlight);
    color: white;
}






.fullscreen {
    height: 150vh;
}

.hi {
    position: sticky;
    top: 0px;
}

.wipe-image-container {
    height: 100%;
    width: 100%;
    object-fit: contain;
    position: absolute;
    left: 0;
    top: 0;
    display: block;
}

/* .wipe-image-container:nth-last-child(1){
    display: block;
} */


.fullscreen-gallery-container {
    position: relative;
    width: 100vw;

}


.transect {
    position: relative;
    width: 100vw;
    height: 500vh !important;
}

.gallery-image-container {
    position: relative;
    height: 150vh;
    width: 100vw;
}



.g-image-container {
    height: 100vh;
    position: sticky;
    top: 0px;
    margin: 0 auto;
}

.g-image-container img {
    position: absolute;
    width: 100%;
    height: 100%;
    image-rendering: crisp-edges;
}

.wipe img:nth-child(2) {
    z-index: 10;
}

.wide {
    height: 100vh;
    width: 100vw;
    position: sticky;
    top: 0px;
}

.wide img {
    position: absolute;
    width: auto !important;
    object-fit: cover !important;
    height: 100%;
    image-rendering: crisp-edges;
}





.timeline-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.timeline-item {
    position: relative;
    width: 50%;
    padding: 20px;
}

.timeline-item.right {
    left: 50%;
    margin-left: -1px;
    border-left: 1px solid rgba(0, 0, 0, 0.25);
    /* Timeline line color */
}

.timeline-item.left {
    left: 0;

    border-right: 1px solid rgba(0, 0, 0, 0.25);
    /* Timeline line color */
}

.timeline-item .timeline-text-container {
    position: relative;
    background: #fff;
    padding: var(--margin);

}

.timeline-item.left .timeline-text-container {
    margin-left: auto;
    text-align: right;
}

.timeline-item.right .timeline-text-container {
    margin-right: auto;
    text-align: left;
}

.timeline-item h1 {
    font-size: 1.5em;
    margin: 0 0 10px 0;
    color: #000000;
}

.timeline-item p {
    margin: 0;
    color: #333;
    font-size: 1.25em;
    margin-bottom: calc(var(--margin)/2);
}

/* Connector line styling */
.timeline-item.left::before,
.timeline-item.right::before {
    content: '';
    position: absolute;
    top: 50%;
    right: 0;
    width: 10px;
    height: 10px;
    background: var(--highlight);
    border-radius: 50%;
    transform: translate(calc(50% + 1px), -50%);
}

.timeline-item.right::before {
    left: 0;
    transform: translate(calc(-50% - 1px), -50%);
}

.link:hover {
    cursor: pointer;
    opacity: 50%;
}


.overlay-data-container {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 10;
}

.overlay-data-point {
    position: absolute;
    transform: translate(-50%, -50%);
}

.overlay-data-dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: var(--highlight);
    transition: 0.3s;
    cursor: pointer;
    box-shadow: 2px 2px 2px rgba(87, 87, 87, 0.432);
}

.overlay-data-point:hover .data-popup-container {
    display: flex;
}

.overlay-data-dot:hover {
    transform: scale(125%);
    box-shadow: 3px 3px 2px rgba(87, 87, 87, 0.432);

}

.data-popup-container {
    position: absolute;
    bottom: 30px;
    left: -40px;
    width: 100px;
    background-color: white;
    border: 1px solid var(--highlight);
    padding: 5px;
    box-shadow: 2px 2px 0px rgba(87, 87, 87, 0.432);
    display: none;
    gap: 5px;
    flex-direction: column;
    z-index: 150;


}

.data-popup-content {
    position: relative;
    padding: 5px;

}

@media only screen and (max-width: 650px) {
    .title_logo {
        display: none;
    }

}

@media only screen and (max-width: 1220px),
(max-height: 950px) {

    .image-gallery>.image-item {
        width: 150px;
    }

    .image-item>.image-container {
        width: 150px;
        height: 150px;
    }

    .gallery-three .image-container {
        width: 100%;
        height: 100%;
    }

}