* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
    font-family: Arial, sans-serif;
    --column-width: 500px;
}

body {
    background-color: #fafafa;
}

/*WINDOW*/

.grid {
    padding: 1rem;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
    > div {
        position: relative;
        aspect-ratio: 1;
        background-image: linear-gradient(#8EA3D0, #E0E1E7);
        border: 1px solid #7f7f7f;
        align-content: end;
        transition: 0.5s ease-out;
    }
}

.background-wrapper {
    position: fixed;
    width: 100%;
    height: 100vh; /*fallback if no custom properties support*/
    height: calc(var(--vh, 1vh) * 100);
    overflow: hidden;
}

.sun {
    width: 25%;
    height: 25%;
    background-color: #FFFBDB;
    border: 1px solid #7f7f7f;
    margin-bottom: 12.5%;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 0 1rem white;
}

.deco-3, .deco-2 {
    position: absolute;
    width: 18%;
    height: 18%;
}

.deco-3 {
    top: 1rem;
    left: 1rem;
}

.deco-2 {
    bottom: 1rem;
    right: 1rem;
}

/*CLOUDS*/ 

.cloud-wrapper {
    top: 0;
    width: 100%;
    height: 100vh; /*fallback if no custom properties support*/
    height: calc(var(--vh, 1vh) * 100);
    position: absolute;
    pointer-events: none;
    overflow: hidden;
}

.cloud {
    position: absolute;
    animation: cloud-float 20s linear infinite;
    opacity: 0;
}


@keyframes cloud-float {
    0% {
        transform: translateX(200%);
        opacity: 1;
    }
    100% {
        transform: translateX(-100%);
        opacity: 1;
    }
}

/*WORDS*/

main {
    pointer-events: none;
    top: 0;
    position: absolute;
    display: grid;
    grid-template-columns: repeat(21, var(--column-width));
    /*overflow-y: hidden;*/
    overflow-x: auto;
    padding: 0 2rem;
    gap: 1rem;
}

.title-wrapper {
    height: calc(100vh - 6rem); /*fallback if no custom properties support*/
    height: calc((var(--vh, 1vh) * 100) - 6rem);
    padding-top: 2rem;
    grid-column: span 2;
    z-index: 11;
    pointer-events: none;
}

.credits-wrapper {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
}

.column-flex {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.row-flex {
    width: 100%;
    display: flex;
    justify-content: space-between;
}

h1 {
    margin: 0;
    font-size: 6rem;
    font-weight: 400;
    line-height: 130%;
    cursor: default;
    > span {
        pointer-events: all;
        border: 1px solid #7f7f7f;
        background-color: #fafafa;
        padding: 0 1rem;
        transition: 0.5s ease;
    }
    > span > span {
        color: transparent;
        text-shadow: 0 0 0.25rem rgba(0,0,0,0.75);
        transition: 0.5s ease;
    }
    > span > span:hover {
        text-shadow: 0 0 1rem rgba(0,0,0,0.75);
    }
}

a {
    color: transparent;
    text-shadow: 0 0 0 rgba(0,0,0,0.5);
    transition: 0.5s ease;
    text-decoration: none;
}

a:hover {
    text-shadow: 0 0 0.25rem rgba(0,0,0,0.75);
}

.column-wrapper {
    padding: 2rem 0;
    height: calc(100vh); /*fallback if no custom properties support*/
    height: calc((var(--vh, 1vh) * 100));
    z-index: 12;
    overflow-y: auto;
}

.block, .label {
    border: 1px solid #7f7f7f;
    background-color: #fafafa;
    pointer-events: all;
}

.block {
    margin-bottom: 1rem;
    padding: 1rem 1rem 0 1rem;
}

.iframe-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    padding-top: 25px;
    height: 0;
    overflow: hidden;
}

iframe {
    width: 100%;
    height: 100%;
    border: none;
    position: absolute;
    top: 0;
    left: 0;
}

.iframe-scale {
    transform: scale(0.425);
    transform-origin: 0 0;
    width: 235%;
    height: 235%;
}

.interview {
    display: grid;
    grid-template-columns: 1fr 6fr;
}

p, .iframe-wrapper, img {
    margin-bottom: 1rem;
}

figcaption, span.block {
    text-align: center;
    padding-bottom: 1rem;
}

.label {
    /*font-size: small;*/
    padding: 0.75rem;
    transform: translateY(1rem);
}

.scroll {
    position: fixed;
    width: 100%;
    z-index: 13;
    bottom: 0;
    padding: 2rem;
    pointer-events: none;
}

.scrollbar {
    position: absolute;
    bottom: 1rem;
    border: 1px solid #7f7f7f;
    background-color: #F1F0EE;
    height: 1.5rem;
    /* resize: horizontal;
    overflow: auto; */
}

@media (max-width: 1024px) {

    /*
    * {
        --column-width: 300px;
    }*/

    .grid {
        grid-template-columns: repeat(3, 1fr);
    }

    main {
        grid-template-columns: repeat(20, var(--column-width));
    }

    .title-wrapper {
        grid-column: span 1;
    }

    h1 {
        font-size: 3.5rem;
    }

    h1 > span {
        padding: 0 0.5rem;
    }
    
}
