html {
    height: 100vh;
}

body {
    font-family: "Funnel Sans";
    color: var(--font-color);
    perspective: 100vw;
    height: 100%;
    display: flex;
    justify-content: center;
    position: relative;
}

.card {
    max-width: 1000px;
    max-height: 500px;
    width: 90vw;
    height: 95vh;

    position: absolute;
    transform-style: preserve-3d;

    transition: cubic-bezier(0.63, 0.21, 0.2, 1) all 600ms;

    margin-top: 10%;
}

.front,
.back {
    position: absolute;
    box-sizing: border-box;

    width: 100%;
    height: 100%;
    overflow: hidden;
    backface-visibility: hidden;
    cursor: pointer;
    user-select: none;

    box-shadow: inset 0px 0px 40px 0px rgba(var(--shadow), 0.3), 0px 0px 20px 0px rgba(var(--shadow), 0.1);
    outline: 1px solid rgb(var(--shadow), 0.08);
    background: linear-gradient(225deg, var(--gradient));
    border-radius: 50px;

    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;

}

.background-video video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: -1;
    transform: translate(-50%, -50%);
    filter: blur(2px);
    opacity: 0.02;
}

.back {
    padding: 100px;
    transform: rotateY(180deg);
}

.card.flipped {
    transform: rotateY(180deg);
}

.card h1 {
    font-weight: 900;
    font-size: 4em;
    letter-spacing: 1.2dvw;
}

.card p {
    font-weight: 100;
    font-size: 1.2em;
    letter-spacing: 0.3dvw;
}

.lines {
    position: absolute;
    opacity: 0.08;
    width: 500px;
    user-select: none;
    -webkit-user-drag: none;
    fill: var(--font-color)
}

.lines.v1 {
    top: 20px;
    right: -100px;
}

.lines.v2 {
    transform: rotate(180deg);
    top: -20px;
    left: -100px;
}

.footer {
    position: absolute;
    color: var(--font-color);
    bottom: 10px;
    text-decoration: none;
}

@media screen and (max-width: 1000px) {
    .card {
        height: 60vh;
    }
}

@media screen and (max-width: 800px) {
    .card {
        height: 40vh;
        margin-top: 30%;
    }
}

@media screen and (max-width: 600px) {
    .card {
        height: 30vh;
    }

    .card h1 {
        font-size: 3em;
    }

    .lines {
        width: 300px;
    }

    .lines.v1 {
        top: 0px;
        right: -50px;
    }

    .lines.v2 {
        top: 0px;
        left: -50px;
    }

    .back {
        padding: 40px;
    }

    .back p {
        font-size: 0.8em;
        /* width: fit-content; */
    }
}