@font-face {
    font-family: 'kawederegular';
    src: url('fonts/kawede-regular-webfont.woff2') format('woff2'),
         url('fonts/kawede-regular-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: "Public Sans", "Helvetica Neue", Helvetica, sans-serif;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
}

html {
    overflow: hidden;
}

body {
    padding: 1.5rem;
    display: flex;
    flex-wrap: nowrap;
    flex-direction: row;
    background-color: #FCF7F5;
    overflow-x: scroll;
    gap: 3rem;
    width: 100%;
    transition: all 500ms;
}

@keyframes loaded {
    0% {
        opacity: 0;
    }
    75% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

/* ––––––––––– TEXT ––––––––––––– */

h1 {
    font-family: 'Helvetica Neue';
    font-style: normal;
    font-weight: 800;
    font-size: 40px;
    line-height: 48px;
    color: #FFFFFF;
}

/* ––––––––––– TOPBAR ––––––––––––– */

#topbar {
    font-size: 1rem;
    display: flex;
    justify-content: space-between;

    width: 100vw;
    padding: 3rem 4rem;

    position: fixed;
    top: 0;
    left: 0;

    z-index: 100;
    opacity: 0;
    animation: loaded 4s forwards;
}

.logo {
    color: #90796F;
    opacity: 0.5;
    width: 1.5em;
    height: 1.5em;
}

.wordmark {
    font-family: 'kawederegular';
    font-style: normal;
    font-weight: 400;
    font-size: 1.5em;
    line-height: 1.5em;
    
    text-transform: uppercase;
    
    color: #90796F;
    opacity: 0.5;
}

/* ––––––––––– NAV ––––––––––––– */

nav {
    font-size: 1rem;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: center;
    padding: 1em;
    gap: 1em;
    isolation: isolate;
    
    position: fixed;
    width: 21em;
    height: 5em;
    left: calc(50% - 21em/2);
    bottom: 1rem;
    
    background: rgba(20, 10, 31, 0.6);
    background-blend-mode: multiply;
    box-shadow: 0px 1.5em 1.25em -1em rgba(39, 20, 12, 0.2), inset 0em 0.25em 1em -2px rgba(255, 255, 255, 0.24);
    backdrop-filter: blur(0.75em);
    -webkit-backdrop-filter: blur(0.75em);
    
    border-radius: 1.25em;

    z-index: 100;
    opacity: 0;
    animation: loaded 5s forwards;
}

.nav-item {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    
    width: 1.5em;
    height: 1.5em;
    
    border-radius: 0.325em;
    
    z-index: 2;
    font-family: 'kawederegular';
    font-style: normal;
    font-weight: 400;
    font-size: 2em;
    line-height: 1.5em;
    text-decoration: none;
    
    color: #FCF7F5;
    transition: color 300ms ease-in-out;
}

.nav-item svg {
    fill: #FCF7F5;
    transition: fill 300ms ease-in-out;
    width: 0.75em;
    height: 0.75em;
}

.nav-item:hover {    
    background: rgba(255, 255, 255, 0.1);
}

.nav-item:focus-visible {    
    box-shadow: 0px 0px 0.5em 0.25em rgba(255, 255, 255, 0.24);
    outline: 1px solid rgba(255, 255, 255, 0.40);
    color: rgba(255, 255, 255);
}

.nav-item-active {    
    color: #27140C;
}

.nav-item-active svg {    
    fill: #27140C;
}

#nav-slider {    
    position: absolute;
    width: 3em;
    height: 3em;
    left: 1em;
    top: 1em;
    
    background: #FCF7F5;
    border-radius: 0.75em;

    transition: left 500ms ease-in-out;
}

#scroll-left {
    position: absolute;
    top: -2rem;
    color: #27140C;
    display: flex;
    opacity: 0.8;
    transition: opacity 500ms;
}

@keyframes scroller {
    0% {
        transform: translateX(0) rotate(-90deg);
        opacity: 0;
    }
    25% {
        transform: translateX(12px) rotate(-90deg);
        opacity: 1;
    }
    100% {
        transform: translateX(12px) rotate(-90deg);
        opacity: 1;
    }
}

#scroll-left img {
    transform: rotate(-90deg);
    animation: scroller 2000ms ease-in-out infinite;
}

/* ––––––––––– MAIN ––––––––––– */

iframe {
    flex-shrink: 0;
    width: calc(100vw - 3rem);
    height: calc(100vh - 3rem);
    border-radius: 1.5rem;
    overflow: hidden;
    border: none;
    
    background: rgba(39, 20, 12, 0.02);
    background-blend-mode: multiply;
    scroll-snap-align: center;
}


@media only screen and (max-width: 1000px) {

    body {
        padding: 1rem;
    }

    #topbar {
        font-size: 0.75rem;
        padding: 1rem 2rem;
        position: absolute;
    }

    nav {
        font-size: 0.75rem;
        bottom: 0.5rem;
    }

    iframe {
        width: calc(100vw - 2rem);
        height: calc(100vh - 4rem);
        margin-top: 2rem;
        border-radius: 1rem;
    }
}

@media only screen and (max-width: 1000px) {

    iframe {
        width: calc(100vw - 2rem);
        height: calc(100vh - 4rem);
    }

}