/* Font Import */

@font-face {
    font-family: "TiltWrap";
    src: url(./fonts/TiltWrap.ttf);
}


@font-face {
    font-family: "Inter";
    src: url(./fonts/Inter.ttf);
}

@font-face {
    font-family: "Inter Italic";
    src: url(./fonts/Inter-Italic.ttf);
}

/* ------ */

* {
    margin: 0;
    padding: 0;
    font-family: "Inter";
    font-weight: 200;
}


html {
    background-color: #161616 !important;
    height: 100%;
}

body {
    margin: 0;
    min-height: 100%;
    overflow: auto;
    background-color: #161616 !important;
}

/* Navigation Bar */

header {
    width: 100%;
    z-index: 100001;
    position: absolute;
}

nav {
    top: 0;
    width: 100%;
    height: 8vh;
    background-color: #14124000;
    align-items: center;
    display: flex;
    justify-content: space-between;
}


.scd-logo {
    z-index: 100001;
    height: 35%;
}

.scd-logo img {
    height: auto;
    max-height: 100%;
    max-width: 100%;
    margin-left: 3rem;
}


.logo-spacer {
    flex: 1;
}

.mit-logo {
    position: relative;
    z-index: 100001;
    height: 2.5vh;
    margin-right: 3rem;
}

/* Scrollbar Customization */
::-webkit-scrollbar {
    width: 1rem;
}

::-webkit-scrollbar-track {
    background-color: #282828;
}

::-webkit-scrollbar-thumb {
    background-color: #85a3d4;
    /* border-radius: 6px; */
}

/* Background Tree Image */

.background-image {
    position: fixed;
    /* top: 0;
    right: -45vw; */
    inset: 0;
    /* width: 110%;
    height: 110vh; */
    background-image: url('../images/tree-background_HQ.png');
    background-color: transparent;
    background-repeat: no-repeat;
    background-size: 110% auto;
    /* background-position: -350% 48%; */
    background-position: calc(100% + 55vw) 48%;
    /* background-position: right bottom; */
    filter: grayscale(100%) contrast(1.05) brightness(1.05);
    transition: filter 2.0s ease-in-out;
    overflow: hidden;
    /* aspect-ratio: 5 / 3; */
    z-index: 100000;
    pointer-events: none;
}

/* .background-image img {
    width: 120%;
    height: auto;
    object-fit: contain;
    position: absolute;
    right: 0;
} */

.bg-colored .background-image {
    filter: none;
}

/* Scroll Animation Section */
.scroll-container {
    height: 100%;
    overflow-x: hidden;
    overflow-y: scroll;
    scroll-snap-type: y proximity;
}

.panel {
    /* height: 100vh;  */
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    scroll-snap-align: start;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.panel.hidden {
    opacity: 1;
    transform: none;
}

/* animating inner wrapper instead */
.reveal {
    transition: opacity .35s ease, transform .35s ease;
}

.panel.hidden .reveal {
    opacity: 0;
    transform: translateY(10vh);
}


/* Container and Text */

.container {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100vh;
    width: 100vw;
    z-index: 2;
}

.title {
    height: auto;
    width: 100vw;
    z-index: 10;
}


.title-text {
    font-family: "TiltWrap";
    font-size: 3.75rem;
    max-width: 100%;
    margin-top: 45vh;
    padding-left: 10vw;
    padding-right: 10vw;
    color: #ffffff;
    text-align: left;
    z-index: 10;
    white-space: nowrap;
}



.sub-questions {
    font-family: 'Inter';
    font-size: 1rem;
    color: #ffffff;
}

.text-1 {
    font-family: 'Inter';
    margin-top: 15vh;
    padding: 0% 2%;
    font-size: 1.08rem;
    color: #ffffff;
    z-index: 20;
    width: 100vw;
    text-align: center;
}



.description-text {
    margin-top: 50vh;
    z-index: 10;
    margin-left: 10vw;
    width: 30vw;
    padding: 5% 2%;
    font-size: 0.9rem;
    line-height: 1.2rem;
    color: #ffffff;
}



/* Animation FadeIN/FadeOUT */
@keyframes fadeOut {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}


.text-fade-out {
    animation-name: fadeOut;
    animation-delay: 1s;
    animation-duration: 5s;
    animation-timing-function: ease-in-out;
    animation-fill-mode: forwards;
    /* opacity: 0%; */
}

.text-fade-in {
    animation-name: fadeIn;
    animation-delay: 1s;
    animation-duration: 5s;
    animation-timing-function: ease-in-out;
    animation-fill-mode: backwards;
}

/* Bold and Links Styling */
.text-bold {
    font-weight: 400;
}

.text-bold-white {
    font-family: 'Inter';
    font-weight: 200;

    color: #ffffff;
}


.biennale-button {
    display: inline-block;
    width: fit-content;
    padding: 0.8rem 1.5rem;
    margin-top: 2vh;
    border-radius: 2rem;
    border: 0.1rem solid white;
    background-color: transparent;
    color: white;
    font-size: 0.8rem;
    font-family: 'Inter', sans-serif;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
    margin-left: 12vw;
    transition: all 0.3s ease;
}

.reveal a:nth-of-type(2) .biennale-button::before {
    content: "▶";
    margin-right: 0.5rem;
    font-size: 0.7rem;
    display: inline-block;
    transform: translateY(-1px);
}

.biennale-button:hover {
    background-color: white;
    color: rgba(0, 0, 0);
    font-weight: 400;
}


/* Credits */
.credits-wrapper {
    display: flex;
    margin-top: 50vh;
    padding-bottom: 2vh;
    padding: 5% 2%;
    flex-direction: row;
    justify-items: start;
    /* justify-content: center; */
    gap: 4vw;
    margin-left: 10vw;
    max-width: 55vw;
    z-index: 100;
    color: white;
}

.credits-left {
    display: flex;
    flex-direction: column;
    gap: 5vh;
    flex: 1;
    min-width: 30vw;
}

.credits-right {
    display: flex;
    flex-direction: column;
    gap: 5vh;
    flex: 1;
    max-width: 20vw;
}


.support-logos {
    margin-top: 2vh;
    width: 2vw
}


.support-logos img {
    max-height: 3vh;
    width: auto;
    height: auto;
    object-fit: contain;
}



.credits-section {
    color: #ffffff;
}

.credits-subtitle {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1vh;
}

.credits-text {
    font-size: 0.8rem;
    line-height: 1.4;
}

.text-bold-white {
    font-weight: bold;
    color: white;
}




/* Defaults */

h1 {
    font-size: 1.3vw;
    padding: 10px 10px;
}

p {
    font-size: 0.63vw;
    padding: 3px 10px;
}

a {
    color: white;
    font-weight: 400;
    /* text-decoration: none; */
}



/* Screen Responsiveness */

/* large desktops */
@media (min-width: 1920px) {
    .title-text {
        font-size: clamp(4.5rem, 5vw, 7rem);
    }

    .sub-questions {
        font-size: clamp(1.1rem, 1.25vw, 1.8rem);
    }

    .description-text {
        font-size: clamp(0.9rem, 0.75vw, 1.4rem);
        line-height: 1.5;
    }

    .credits-subtitle {
        font-size: clamp(1.5rem, 1.1vw, 2rem);
    }

    .credits-text {
        font-size: clamp(0.8rem, 0.65vw, 1.2rem);
    }

    .biennale-button {
        font-size: clamp(0.85rem, 0.65vw, 1.2rem);
    }
}

/* laptops */
/* All desktop screens */
@media (min-width: 1280px) {
    .title-text {
        font-size: 3.75rem;
    }

    .sub-questions {
        font-size: 1rem;
    }

    .description-text {
        font-size: 0.9rem;
        line-height: 1.5;
    }

    .credits-subtitle {
        font-size: 1.5rem;
    }

    .credits-text {
        font-size: 0.8rem;
    }

    .biennale-button {
        font-size: 0.85rem;
    }
}

/* tablets */
@media (min-width: 767px) and (max-width: 1279px) {
    .background-image {
        top: -15vh;
        right: -40vw;
        background-position: left;
        background-size: cover;
        opacity: 0.8;
    }


    .title {
        margin-top: 30vh;
    }

    .title-text {
        font-size: 4.2rem;
    }

    .sub-questions {
        font-size: 1.5rem;
    }

    .description-text {
        font-size: 1.2rem;
        line-height: 1.5;
        width: 45vw
    }

    .credits-wrapper {
        max-width: 80vw;
    }

    .credits-subtitle {
        font-size: 1.1rem;
    }

    .credits-text {
        font-size: 1.1rem;
    }

    .biennale-button {
        font-size: 1.2rem;
    }
}

/* phones under 767px */
@media (max-width: 767px) {
    .background-image {
        top: -25vh;
        right: -20vw;
        /* width: 100vw;
        height: 100vh; */
        background-position: left;
        background-size: cover;
        opacity: 0.8;
    }

    .title {
        padding-top: 45vh;
    }

    .title-text {
        font-size: 3rem;
        white-space: normal;
        margin-top: 0;
    }

    /* wrap only on small screens */
    .sub-questions {
        font-size: 1rem;
        width: 60vw
    }

    .description-text {
        font-size: 0.9rem;
        line-height: 1.5;
        width: 75vw;
        margin-top: 20vh;
    }

    /* make one column */
    .credits-wrapper {
        flex-direction: column;
        flex-wrap: nowrap;
        gap: 3vh;
        margin-left: 6vw;
        max-width: 80vw;
        margin-top: 20vh;
    }

    .credits-subtitle {
        font-size: 1rem;
    }

    .credits-text {
        font-size: 0.85rem;
    }

    .credits-left,
    .credits-right {
        min-width: 0;
        max-width: 100%;
    }

    .support-logos {
        grid-template-columns: 1fr;
        justify-items: start;
        row-gap: 1rem;
    }

    .support-logos img {
        max-width: 55vw
    }

    .biennale-button {
        font-size: 0.85rem;
    }

    ::-webkit-scrollbar-track {
        background-color: #1919196f;
    }

}

/* phones under 380px */
@media (max-width: 380px) {

    .background-image {
        top: -10vh;
        right: -20vw;
        /* width: 100vw;
        height: 100vh; */
        background-position: left;
        background-size: cover;
        opacity: 0.7;
    }

    .title {
        padding-top: 45vh;
    }

    .title-text {
        font-size: 3rem;
    }

    .sub-questions {
        font-size: 0.9rem;
        width: 55vw
    }

    .description-text {
        font-size: 0.85rem;
        width: 75vw
    }

    .credits-text {
        font-size: 0.8rem;
    }
}