/* FONTS */
@font-face {
    font-family: 'Facile Sans';
    src: url('../fonts/facile_sans/FacileSans.woff2') format('woff2'),
        url('../fonts/facile_sans/FacileSans.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* STYLING */
body {
    max-width: 100vw;
    overflow-x: hidden;
}

main {
    padding-top: 63px;
}

.hero {
    height: 800px;
    display: flex;
    align-items: center;
    overflow: hidden;
    border-bottom: #101038 10px solid;
}

.hero .matrix {
    height: 863px;
    margin-top: -63px;
    background-color: #101038;
    overflow: hidden;
    position: absolute;
    z-index: -1;
    animation: heroHeight 2s ease-in;
}

.hero .matrix #Matrix {
    width: 100vw;
    height: 100vh;
    overflow: hidden;
}

.hero .wordmark {
    animation: fadeIn 3s ease-in;
    user-select: none;
}

.hero .wordmark h1 {
    color: #fff;
    font-family: 'Facile Sans', 'Trebuchet MS';
}

.hero .character {
    width: auto;
    height: auto;
    min-width: 730px;
    max-width: 55%;
    animation: popUp 3.5s ease-in;
    transform: translateY(6%);
}

.section_two {
    height: 600px;
    background-color: #101038;
}

@media (min-width: 800px) {
    .hero .wordmark {
        margin-left: 8vw;
    }

    .hero .wordmark h1 {
        font-size: calc(100px + 5vw);
        vertical-align: top;
    }

    .hero .wordmark h1 span {
        font-size: calc(150px + 5vw);
    }

    .hero .wordmark h1 .top-align {
        vertical-align: top;
        line-height: calc(126px + 5vw);
    }

    .hero .wordmark .studios {
        margin-left: calc(110px + 3vw);
        margin-top: calc(-50px - 1vw);
    }

    .hero .character {
        /* transform: scale(0.8); */
        position: absolute;
        right: -3vw;
        z-index: -1;
    }
}

@media (max-width: 1500px) {
    .hero {
        height: 700px;
    }

    .hero .matrix {
        height: 763px;
    }
}

@media (max-width: 1170px) {
    .hero .character {
        right: -8vw;
    }
}

@media (max-width: 1000px) {
    .hero .wordmark {
        margin-left: 3vw;
    }
}

@media (max-width: 940px) {
    .hero {
        height: 600px;
    }

    .hero .character {
        right: -18vw;
    }
}

@media (max-width: 799px) {
    .hero {
        height: 400px;
        justify-items: center;
    }

    .hero .wordmark {
        margin-left: 0;
    }

    .hero .wordmark h1 {
        width: 100vw;
        font-size: calc(60px + 7vw);
        line-height: calc(60px + 3.5vw);
        text-align: center;
    }

    .hero .wordmark h1 span {
        font-size: calc(110px + 7vw);
    }

    .hero .character {
        display: none;
    }
}

@media (max-width: 430px) {
    .hero {
        justify-items: center;
    }

    .hero .wordmark h1 {
        width: 100vw;
        font-size: calc(60px + 5vw);
        line-height: calc(60px + 1.5vw);
        text-align: center;
    }

    .hero .wordmark h1 span {
        font-size: calc(110px + 5vw);
    }
}

/* ANIMATIONS */
@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    90% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

@keyframes popUp {
    0% {
        transform: translateY(110%);
    }
    75% {
        transform: translateY(110%);
    }
    90% {
        transform: translateY(-5%);
    }
    100% {
        transform: translateY(6%);
    }
}