/* Epic font moment
  --------------------------------------------- */

@font-face {
    font-family: 'DotGothic16';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url(/assets/font/DotGothic16Regular.woff2) format('woff2');
}

@font-face {
    font-family: 'Ucka';
    src: url(/assets/font/Ucka-Regular.woff2) format('woff2');
}

@font-face {
    font-family: 'StudioManagerDotFont1';
    src: url(/assets/font/StudioManagerDotFont1.woff2) format('woff2');
}

@font-face {
    font-family: 'ModernPixelRound';
    src: url(/assets/font/ModernPixelRound.woff2) format('woff2');
}

/* Parallax base styles
  --------------------------------------------- */

.parallax {
    height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-perspective: 1px;
    perspective: 1px;
}

.parallax_layer {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.parallax_layer_base {
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

.parallax_layer_back {
    -webkit-transform: translateZ(-1px);
    transform: translateZ(-1px) scale(2);
}


/* default styles & parallax
  --------------------------------------------- */

* {
    margin: 0;
    padding: 0;
    color: #fff;
    &::selection {
        background-color: rgba(0, 0, 0, 0.5);
        text-shadow: #ddd 2px 4px 16px;
    }
}

body {
    background-color: #000;
}

.parallax {
    font-size: 200%;
}

/* add some padding to force scrollbars */
.parallax_layer {
    padding: 10vh 0;
}

.parallax_layer_back {
    background-image: url("/assets/img/bg1.jpeg");
    background-image: linear-gradient(180deg, rgba(0, 0, 0, 0) 80%, rgba(0, 0, 0, 1)), url("/assets/img/bg1.jpeg");
    background-size: cover;
    background-position: center;
    filter: brightness(80%);
    animation: 15s linear 0s infinite running brightness-pulse;
}

@keyframes brightness-pulse {
    0% {
        filter: brightness(60%);
    }

    10% {
        filter: brightness(70%);
    }

    20% {
        filter: brightness(100%);
    }

    40% {
        filter: brightness(60%);
    }

    50% {
        filter: brightness(80%);
    }

    100% {
        filter: brightness(60%);
    }
}

/* title grid
  --------------------------------------------- */

.title-container {
    display: grid;
    gap: 1rem;
    grid-template-columns: 1fr;
}

@media screen and (min-width: 900px) {
    .title-container {
        grid-template-columns: 1fr 1fr 1fr;
    }
}

.title {
    place-self: center;
    max-height: 30vh;
    max-width: 100%;
    filter: drop-shadow(2px 2px 2px #000);
}

.nav-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    max-height: 30vh;
}

.nav-link {
    place-self: center;
    font-family: 'DotGothic16', sans-serif;
    text-transform: lowercase;
    text-decoration-thickness: 0.03em;
    text-decoration-color: #ccc;
    margin-bottom: 0.4em;
}

a {
    filter: drop-shadow(2px 2px 1px #000);
    transition: 1s;
}

a:hover {
    filter: drop-shadow(2px 2px 1px #000) drop-shadow(4px 8px 16px #eee);
    transition: 0.1s;
}

/* main page grid
  --------------------------------------------- */

.page-grid {
    display: grid;
    grid-template-columns: 1fr 3fr 1fr;
}

.main-content {
    grid-column: 2 / span 1;
    padding: 10vh 0;
    font-family: 'StudioManagerDotFont1', sans-serif;
    font-size: 0.8em;
    line-height: 0.875;
    font-weight: 400;
    filter: drop-shadow(2px 2px 1px #000);
}

.teaser-content {
    text-align: center;
}

.teaser-text {
    font-family: 'Ucka', sans-serif;
    margin: 1em 0;
    line-height: 1.5;
}

.application-text {
    font-size: 0.6em;
    margin: 1em 0;
}

.breathing-effect {
    margin: 0 0.8em;
    /* 9chars * 0.2em * 0.5 */
    animation: 10s ease-in-out 0s infinite running breathing-pulse;
}

@keyframes breathing-pulse {
    0% {
        margin: 0 0.9em;
        letter-spacing: 0.0em;
    }

    10% {
        margin: 0 0.9em;
        letter-spacing: 0.0em;
    }

    50% {
        margin: 0 0em;
        letter-spacing: 0.2em;
    }

    60% {
        margin: 0 0em;
        letter-spacing: 0.2em;
    }

    100% {
        margin: 0 0.9em;
        letter-spacing: 0.0em;
    }
}

.rhythm-effect {
    animation: 2.5s linear 0s infinite alternate rhythm-pulse;
}

@keyframes rhythm-pulse {
    0% {
        filter: none;
    }

    100% {
        filter: drop-shadow(4px 8px 8px #ddd);
    }
}