@font-face {
    font-family: "Roboto";
    src: url("/assets/fonts/Roboto-Regular.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: "Silkscreen";
    src: url("/assets/fonts/Silkscreen-Regular.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: "Unfair";
    src: url("/assets/fonts/Unfair Style2Rough.ttf") format("truetype");
    font-weight: bold;
    font-style: normal;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Roboto", sans-serif;
}

a {
    text-decoration: none;
    color: #ff9b00;
    font-weight: bold;
    transition:
        color 0.3s ease,
        text-shadow 0.3s ease;
}

a:hover,
a:focus {
    color: #ffbf5b;
    text-shadow: 0 0 5px rgb(255 162 23);
}

.background {
    opacity: 0.1;
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: 50% 0;
    /* background-image: url("/assets/images/bg.webp"); */
}

.text-center {
    text-align: center;
}

.headline {
    text-align: center;
    font-family: "Silkscreen", sans-serif;
    font-size: 3rem;
    line-height: 3rem;
    color: #ff9b00;
    letter-spacing: 3px;
    margin: 5% 0 5% 0;
}

.button {
    appearance: none;
    background-color: transparent;
    border: none;
    cursor: pointer;
    outline: none;
    padding: 0;
    margin: 0;
    font-family: inherit;
    font-size: inherit;
    color: inherit;
    text-decoration: none;
    text-transform: none;
    line-height: normal;
    overflow: visible;
}

body {
    background-color: rgb(0 0 0);
    color: rgba(200, 200, 200, 1);
    font-size: 1rem;
    font-family: system-ui;
    overflow: auto;
}

.spacer {
    flex-grow: 1;
}

.header,
.title {
    margin: 25px 0 35px 0;
    color: rgba(255, 255, 255, 1);
    font-weight: bold;
    font-size: 1.2rem;
    letter-spacing: 0.05rem;
    white-space: pre-line;
}

.title {
    color: #ff9b00;
}

.text {
    margin: 10px 0 20px 0;
    /* white-space: pre-line; */
}

.wrapper {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    height: 100vh;
    width: 100vw;
}

.twitch-player {
    flex: 60%;
}

.copyright {
    position: absolute;
    bottom: 0;
    right: 0;
    font-size: 10px;
    padding: 15px;
    opacity: 0.4;
    text-transform: uppercase;
    font-family: "Silkscreen", sans-serif;
}

#twitch-placeholder {
    display: none;
    width: 100%;
    max-width: 960px;
    aspect-ratio: 16 / 9;
    position: relative;
    color: #fff;
    text-align: center;
    overflow: hidden;
    border-radius: 10px;
    /* cursor: pointer; */
    transition: transform 0.3s ease-in-out;
}

#twitch-placeholder.activated {
    width: 70%;
    flex: 50%;
}

.twitch-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    border-radius: 12px;
}

.warning-wrapper {
    background: rgba(0, 0, 0, 0.9);
    padding: 15px;
    position: absolute;
    bottom: 8%;
    left: 0;
    right: 0;
}

nav {
    display: flex;
    flex-wrap: wrap;
    column-gap: 4rem;
    row-gap: 2rem;
    width: 80%;
    justify-content: center;
    position: relative;
    bottom: 20%;
}

nav > .button {
    position: relative;
    place-content: center;
    text-transform: uppercase;
    font-weight: 300;
    transition:
        opacity 0.5s ease-in-out,
        filter 0.5s ease-in-out,
        transform 0.5s ease-in-out;
}

nav > .button.active {
    animation: fadeToLife 0.5s ease-in-out forwards;
}

nav > .button.inactive {
    animation: fadeToGray 0.5s ease-in-out forwards;
}

.icon {
    width: 64px;
    height: 64px;
}

.button-group {
    transition:
        transform 0.5s ease-in-out,
        color 0.3s ease,
        text-shadow 0.3s ease;
    color: #ff9b00;
}

.button-group a {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.button-group:hover,
.button-group:focus {
    transform: scale(1.2);
    color: #ffbf5b;
    text-shadow: 0 0 5px rgb(255 162 23);
}

.button-group p {
    /* display: none; */
    text-decoration: none;
    font-weight: bold;
    margin-top: 10px;
    text-transform: uppercase;
    font-family: "Silkscreen", sans-serif;
    font-size: 1.3rem;
    line-height: 1.3rem;
    height: 1.3rem;
}

.footer-line {
    margin-top: 35px;
    margin-bottom: 35px;
    width: 80vw;
    opacity: 0.2;
    margin-left: auto;
    margin-right: auto;
}

hr {
    opacity: 0.2;
}

.imprint-start {
    position: absolute;
    bottom: 1%;
    left: 0;
    margin: 0 auto 25px auto;
    width: fit-content;
    text-align: center;
    filter: drop-shadow(1px 1px 5px #000);
}

.imprint {
    position: relative;
    bottom: 1%;
    left: 0;
    margin: 0 auto 25px auto;
    width: fit-content;
    text-align: center;
    filter: drop-shadow(1px 1px 5px #000);
}

.imprint a {
    text-transform: uppercase;
    font-family: "Silkscreen", sans-serif;
    font-weight: bold;
    font-size: 1.3rem;
    line-height: 2rem;
}

.imprint-start a {
    margin: 20px 20px;
    text-transform: uppercase;
    font-family: "Silkscreen", sans-serif;
    font-weight: bold;
    font-size: 1.3rem;
    line-height: 2rem;
}

@media (min-width: 500px) {
    .imprint-start {
        right: 0;
    }
}

.data-consent {
    width: 70vw;
}

.data-consent h1,
.data-consent h2 {
    text-align: center;
    color: #ff9b00;
}

.data-consent h1:not(:first-of-type) {
    margin-top: 50px;
}

.data-consent p {
    margin: 15px auto;
}

.imprint-start .header {
    font-size: 1.3rem;
    padding: 0;
}

.imprint-start .body {
    font-size: 1rem;
    text-align: left;
}

.imprint-dedicated {
    margin: 0 auto;
    width: fit-content;
    padding: 25px;
    text-align: center;
    filter: drop-shadow(1px 1px 5px #000);
}

.imprint-dedicated .header {
    font-size: 1.3rem;
}

.imprint-dedicated .body {
    font-size: 1rem;
    text-align: left;
}

/* --------------------------------------- */
/* HELPER */
.noselect {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

@property --eyelid {
    syntax: "<percentage>";
    inherits: false;
    initial-value: 0%;
}
@property --eyelid2 {
    syntax: "<percentage>";
    inherits: false;
    initial-value: 0%;
}
.eyes {
    width: 250px;
    padding-block: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    margin: 0 auto;

    div {
        position: relative;
        width: 90px;
        aspect-ratio: 1;
        background: white;
        border-radius: 50%;
        overflow: hidden;
        display: flex;
        align-items: center;
        justify-content: center;
        &:before,
        &:after {
            content: "";
            position: absolute;
            width: 116%;
            height: 165%;
            left: 50%;
            animation: eyelid 5s ease-in-out infinite;
            z-index: 1;
        }
        &:before {
            top: 0;
            border-radius: 0% 0% 40% 40%;
            transform: translateY(var(--eyelid)) translateX(-50%);
            border-bottom: 40px solid black;
        }
        &:after {
            bottom: 0;
            border-radius: 40% 40% 0% 0%;
            transform: translateY(var(--eyelid2)) translateX(-50%);
            border-top: 40px solid black;
        }
        i {
            position: absolute;
            width: 60px;
            aspect-ratio: inherit;
            background: black;
            border-radius: inherit;
        }
    }
}

@media screen and (max-width: 424px) {
    .joschi,
    .roboti {
        height: 25%;
    }

    .imprint-start .body,
    .imprint-dedicated .body {
        font-size: 0.9rem;
    }

    .wrapper {
        justify-content: center;
    }

    nav {
        bottom: auto;
        /* justify-content: space-around; */
    }

    .button-group a p {
        display: none;
    }
}
