@font-face {
    font-family: "Quicksand";
    src: url("./fonts/Quicksand.ttf") format("opentype");
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: "Puffet";
    src: url("./fonts/Puffet.ttf") format("opentype");
    font-style: normal;
}

:root {
    --background-color: rgba(47, 47, 47);
    --primary-color: rgba(31, 31, 31);
    --secondary-color: rgba(63, 63, 63);
    --tertiary-color: rgba(15, 15, 15);
    --accent-color: rgba(255, 255, 255);

    --paragraph-font: "Quicksand", sans-serif;
    --heading-font: "Puffet", sans-serif;
}

* {
    font-smooth: always;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    box-sizing: border-box;
}

body {
    background-color: var(--background-color);
    color: var(--accent-color);
    font-family: var(--paragraph-font);
    margin: 0;
    padding: 0;
    max-width: 100%;
    overflow-x: hidden;
    position: absolute;
    top: 0;
    left: 0;
    min-width: 100vw;
    min-height: 100vh;
    z-index: 0;
    overflow: hidden;
}

a {
    color: var(--accent-color);
}

.pageBackgroundPattern {
    --blooks-transform: translate(-50%, -50%) rotate(15deg);
    /* position: fixed;
    width: 200%;
    height: 200%;
    top: 50%;
    left: 50%;
    background-size: 100px;
    background-position: -100px -100px;
    background-image: url("./background.svg");
    opacity: 0.05;
    filter: brightness(100);
    transform: translate(-50%, -50%) rotate(15deg);
    z-index: -2;
    pointer-events: none; */
    position: absolute;
    width: 200%;
    height: 200%;
    top: 50%;
    left: 50%;
    background-size: 100px;
    background-position: -100px -100px;
    background-image: url("./background.svg");
    opacity: 0.05;
    -webkit-transform: var(--blooks-transform);
    transform: var(--blooks-transform);
    -webkit-filter: brightness(100);
    filter: brightness(100);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    pointer-events: none;
    overflow: hidden;
}

.pageBackgroundGradient {
    --gradient-stops: rgba(0, 0, 0, 0.33) 0%, rgba(0, 0, 0, 0.15) 50%, rgba(0, 0, 0, 0.05) 100%;

    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: -webkit-linear-gradient(140deg, var(--gradient-stops));
    background: linear-gradient(140deg, var(--gradient-stops));
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
}

.tosLink {
    position: fixed;
    right: 14px;
    bottom: 10px;
    font-size: 12px;
    line-height: 1;
    opacity: 0.7;
    text-decoration: none;
    z-index: 20;
}

.tosLink:hover {
    opacity: 1;
    text-decoration: underline;
}

.heroSection {
    height: 100vh;
}

.heroContainer {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    margin: 0 auto;
    gap: 1vh;
}

.heroLeft {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    width: 40%;
    height: 100%;
    padding: 0 2vh;
    margin: 0 auto;
}

.heroTitle {
    font-family: var(--heading-font);
    font-size: 20vh;
    line-height: 1;
}

.heroText {
    font-size: 4vh;
}

#type-animation {
    display: inline-block;
    min-width: 11ch;
}

.heroButtons {
    display: flex;
    flex-direction: column;
    margin-top: 5vh;
    gap: 1vh;
}

.heroButton {
    padding: 1vh 4vh;
    font-size: 7vh;
    width: 100%;
}

.heroRight {
    width: 45%;
    height: 100%;
}

.zoeyPlatform {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.zoeyImage {
    position: absolute;
    width: 100%;
    margin-top: -7%;
    display: flex;
    justify-content: center;
    user-select: none;
    z-index: 2;
    filter: drop-shadow(0 0 1vh rgba(0, 0, 0, 0.5));
}

.zoeyImage>img {
    width: 63%;
}

.body {
    position: absolute;
    z-index: 4;
    overflow: hidden !important;
}

.eyes {
    position: absolute;
    z-index: 3;
    overflow: hidden;
    will-change: transform;
}

.sclera {
    position: absolute;
    z-index: 2;
    overflow: hidden;
}

.platform {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    z-index: 1;
}

.platformTop {
    position: absolute;
    width: 40%;
    height: 15%;
    margin-top: 50%;
    background: linear-gradient(180deg, #1f1f1f 50%, #000 100%);
    border-radius: 50% / 100% 100% 0 0;
    z-index: 1;
}

.platformBottom {
    position: absolute;
    width: 40%;
    height: 40%;
    bottom: 0;
    background: linear-gradient(180deg, #0f0f0f 10%, #1f1f1f 100%);
    border-radius: 50% / 0;
}

.heroArrowContainer {
    position: relative;
    top: -60px;
    text-align: center;
    width: 100%;
    background: none;
    border: none;
    transition: opacity 0.2s;
}

.heroArrowContainer>i {
    font-size: 30px;
}

.mobileHero {
    display: none;
    position: absolute;
    background: linear-gradient(180deg, #0f0f0f 10%, #1f1f1f 100%);
    border-radius: 10% 10% 0 0;
    width: 100%;
    height: 75%;
    bottom: 0;
}

.mobileZoeyImage {
    display: none;
    justify-content: center;
    align-items: center;
    position: relative;
    width: 100%;
    top: -67px;
}

.mobileHead {
    display: none;
    width: 200px;
    z-index: -2;
    position: absolute;
}

.mobilePaws {
    display: none;
    position: absolute;
    width: 200px;
    z-index: 0;
}

.clearButton {
    font-size: 20px;
    width: fit-content;
    padding: 5px 10px;
    margin: 5px 0;
    border-radius: 7px;
    cursor: pointer;
    border: 2px solid var(--accent-color);
    background: rgba(255, 255, 255, 0.1);
    transition: background-color 0.2s, color 0.2s, opacity 0.2s;
    text-decoration: none;
    text-align: center;
    user-select: none;
}

.clearButton:hover {
    background-color: var(--accent-color);
    color: var(--primary-color);
}

.clearButton:active {
    opacity: 0.7;
}

.clearButton.heroButton {
    width: 100%;
    font-size: 7vh;
    padding: 1vh 4vh;
}

@media (max-width: 1000px) {
    .heroContainer {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        flex-wrap: wrap;
    }

    .heroLeft {
        width: 100%;
        padding: unset;
        align-items: center;
        text-align: center;
        z-index: 1;
    }

    .heroTitle {
        font-size: 9.5vh;
    }

    .heroText {
        margin-top: 1vh;
        font-size: 2.4vh;
    }

    .heroButtons {
        width: 100%;
        margin-top: 3vh;
    }

    .clearButton.heroButton {
        width: 80%;
        margin: 0 auto;
        font-size: 5vh;
        padding: 1vh 2vh;
    }

    .heroRight {
        display: none;
    }

    .mobileHero {
        display: block;
    }

    .mobileZoeyImage {
        display: flex;
    }

    .mobileHead {
        display: block;
    }

    .mobilePaws {
        display: block;
    }
}