/*@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@400;700&display=swap');*/

@font-face {
    font-family: 'Caveat';
    src: url('assets/fonts/Caveat-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Caveat';
    src: url('assets/fonts/Caveat-Bold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

:root {
    /*____ Color ____*/
    --primary-color: #fff; /* Background */
    --secondary-color: #011627; /* Text */
    --tertiary-color: #ea0000; /* Highlights */
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -moz-osx-font-smoothing: antialiased;
    -webkit-font-smoothing: antialiased;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    height: 100%;
}

body {
    background: var(--primary-color);
    color: var(--secondary-color);
    background:
            linear-gradient(5deg, rgba(240,240,240,1), rgba(0,0,0,0)),
            linear-gradient(184deg, rgba(255,255,255,1), rgba(0,0,0,0)),
            url(assets/media/noise.svg);
}

.selectDisable {
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -o-user-select: none;
    user-select: none;
}


h1, h2, a, p {
    font-family: "Caveat", cursive;
    font-optical-sizing: auto;
    font-size: 1.5rem;
    line-height: 1.5;
    letter-spacing: 0.1rem;
    text-transform: none;
    color: var(--secondary-color);
}

h1 {
    font-weight: 700;
    font-size: 2rem;
}

h2 {
    font-weight: 400;
}

a {
    font-weight: 400;
    text-decoration: none;
    color: var(--secondary-color);
}

p {
    font-weight: 400;
}

body {
    min-height: 100%;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

#gameContainer {
    display: none;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    flex-direction: column;
}

iframe {
    max-width: 100%;
    max-height: 100%;
}

#loadGameContainerButton {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
    color: var(--secondary-color);
}

header {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    margin-top: 2rem;
}

header div {
    display: flex;
    flex-direction: row;
    gap: 1rem;
}

#Banner {
    display: block;
    width: auto;
    height: 13rem;
}

#Banner img, #Banner source {
    width: 100%;
    height: 100%;
    object-fit: cover; /* skaliert das Bild, um den Container zu füllen */
}

/* aLine hover animation */
a.aLine:hover {
    color: var( --tertiary-color);
    position: relative;
}

a.aLine:hover::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var( --tertiary-color);
    animation: line-anim 0.5s forwards;
}

@keyframes line-anim {
    0% {
        width: 0;
    }

    100% {
        width: 100%;
    }
}

/* button hover animation */

.parentScribbleContainer {
    margin-top: 2rem;
}

.button {
    display: inline-block;
    color: var(--secondary-color);
    font-size: 30px;
    line-height: 1;
    font-weight: 700;
    text-align: center;
    -webkit-transition: all .5s;
    transition: all .5s;
    cursor: pointer;
}

.button:hover {
    color: var(--secondary-color);
}

.button.scribble {
    padding: 18px 20px 30px 33px;
}

.scribbleContainer {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}

.scribbleContainer svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.scribbleContainer .scribblePath {
    fill: none;
    stroke: var(--tertiary-color);
    stroke-width: 3;
    stroke-dasharray: 2000px 2000px;
    stroke-dashoffset: 400px;
    transition: stroke .5s;
}

.scribbleContainer:hover .scribblePath {
    stroke: var(--tertiary-color);
    animation: dashoffset 3s linear forwards;
}

@keyframes dashoffset {
    from {
        stroke-dashoffset: 400px;
    }
    to {
        stroke-dashoffset: 4400px;
    }
}

/* tilted-text */
.tilted-text span {
    display: inline-block;
    transform: rotate(calc(var(--tilt-angle) * 1deg));
}

.tilted-text {
    display: inline-block;
}

.tilted-text span.space {
    display: inline;
    transform: none;
}

/* Add the wiggle animation on hover */
.button:hover .tilted-text span {
    animation: wiggle 0.8s infinite ease-in-out;
}

@keyframes wiggle {
    0%, 100% {
        transform: rotate(calc(var(--tilt-angle) * 1deg));
    }
    50% {
        transform: rotate(calc(var(--tilt-angle) * -1deg));
    }
}
