/* Adobe Fonts */
@import url("https://use.typekit.net/xqn7bif.css");

/* VARIABLES */
:root {
    --main-color: #ffcc00;
    --alt-color: #7c11df;
    --black: #000;
    
    --header-font: 'minion-pro-display', serif;
    --text-font:'minion-pro', serif;

    --relative-size: calc(1dvh + 1dvw);
    --text-size-h1: calc(var(--relative-size) * 3);
    --text-size-h2: calc(var(--relative-size) * 1);
}

/* PAGE STYLE */
* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    color: var(--main-color);
    font-family: var(--text-font);
    text-align: center;
    scroll-behavior: smooth;

    /* ensuring no scrollbar shows up on firefox */
    scrollbar-width: none;
}

::selection {
    background: var(--alt-color);
}

::-webkit-scrollbar {
    display: none;
}

body {
    background: var(--black);
    overflow-x: hidden;
}

.fade {
    position: fixed;
    left: 0;
    height: 25%;
    width: 100vw;
    pointer-events: none;
}

.fade.top {
    top: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0) 100%);
}

.fade.bot {
    bottom: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0) 100%);
}

h1 {
    font-family: var(--header-font);
    font-weight: bold;
    font-style: italic;
    text-transform: uppercase;
    font-size: var(--text-size-h1);
    letter-spacing: calc(var(--text-size-h1) * 0.05);
}

h2 {
    font-family: var(--header-font);
    font-weight: bold;
    text-transform: uppercase;
    font-size: var(--text-size-h2);
    letter-spacing: calc(var(--text-size-h2) * 1.5);
}

p {
    font-size: clamp(1.2rem, var(--relative-size), 6rem);
    margin: var(--relative-size) 0;
}

.slides-container {
    margin: 0 auto;
    height: 100dvh;
    width: 100%;
    overflow-y: scroll;
    overflow-x: hidden;
    scroll-snap-type: y mandatory;
    -ms-scroll-snap-type: y mandatory;
}

.slide {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    position: relative;
    height: 100dvh;
    width: 100%;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    background-image: url("../media/BackgroundPattern.webp");
    background-size: 1500px;
    background-repeat: repeat;
}

#virtual-mirror h2 {
    margin-top: calc(var(--text-size-h2) * -0.8);
    margin-left: calc(var(--text-size-h2) * 2);
}

.slide-content {
    max-width: 50%;
    z-index: 2;
}

.separator {
    height: calc(var(--text-size-h2) * 0.15);
    min-height: 0.1dvh;
    width: 60%;
    background: var(--alt-color);
}

.studio-logo {
    max-height: 20%;
    max-width: 45%;
    margin: var(--relative-size) 0;
}

.studio-logo.wide {
    max-width: 150%;
}

#vm-logo {
    max-height: 15%;
    max-width: 80%;
}

#gontzelor-logo {
    max-height: 30%;
    margin-bottom: calc(var(--relative-size) * -1);
}

#flare-logo {
    max-height: 15%;
}

.scroll-arrow-root {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    position: fixed;
    left: 50%;
    width: calc(var(--relative-size) * 4);
    transform: translateX(-50%);
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    cursor: pointer;
    border: none;
}

.scroll-arrow-root.down {
    bottom: calc(var(--relative-size) * 2);
}

.scroll-arrow-root.up {
    top: calc(var(--relative-size) * 2);
    transform: translateX(-50%) rotate(180deg);
}

.scroll-arrow-section {
    position: absolute;
    bottom: 0;
    width: 100%;

    animation-name: bounce-up-down;
    animation-duration: 1s;
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
    animation-direction: alternate;
}

.scroll-arrow-section.top {
    bottom: calc(var(--relative-size) * 1.5);
    animation-delay: 0.625s;
    opacity: 0.5;
}

.scroll-arrow-section.mid {
    bottom: calc(var(--relative-size) * 0.75);
    animation-delay: 0.39s;
    opacity: 0.75;
}

#footer-website {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: 0 calc(var(--relative-size) * 2);
    z-index: 3;
}

#footer-website p {
    font-size: calc(var(--relative-size) * 0.5);
}

/* ANIMATION DEFINITIONS */

@keyframes bounce-up-down {
    from { transform: translateY(0); }
    to { transform: translateY(calc(var(--relative-size) * 0.25)); }
}

/* MOBILE OVERRIDES */
/* `pointer: coarse` is for when the user uses touch input, presumably mobile device */
/* `max-height: 600px` should be taller than most phones in landscape, but shorter than most pc screens */
@media (orientation: landscape) and (pointer: coarse) and (max-height: 600px) {
    p {
        font-size: clamp(1rem, var(--relative-size), 2rem);
    }

    .scroll-arrow-root {
        right: calc(var(--relative-size) * 2);
        left: auto;
        transform: none;
    }

    .scroll-arrow-root.up {
        transform: rotate(180deg);
    }
}

@media (orientation: portrait) or (pointer: coarse) {
    .slide-content {
        max-width: 80%;
        z-index: 2;
    }

    .separator {
        width: 80%;
    }

    #footer-website {
        flex-direction: column;
    }

    #footer-website p {
        font-size: calc(var(--relative-size) * 0.9);
    }
}