@font-face {
    font-family: 'Genos';
    src: url(../font/Genos/Genos-Light.woff2);
}

*,
*::after,
*::before {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    scroll-behavior: smooth;
}

:root {
    --bar-width: 50px;
    --bar-height: 5px;
    --hamburger-gap: 9px;
    --hamburger-margin: 30px;
    --animation-timing: 300ms ease-in-out;
    --hamburger-height: calc(var(--bar-height) * 3 + var(--hamburger-gap) * 2);
    --background-color: hsl(283, 14%, 10%);
    --cubeSize: 14rem;
    --halfCube: calc((var(--cubeSize)) / 2);
}

@media (max-width: 1486px) {
    :root {
        --cubeSize: 13rem;
    }
}

@media (max-width: 900px) {
    :root {
        --cubeSize: 9rem;
    }

    label.welcome {
        font-size: 3em;
    }
}

@media (max-width: 725px) {
    label.welcome {
        font-size: 2em;
    }

    :root {
        --cubeSize: 6rem;
    }
}

@media (max-width: 564px) {
    label.welcome {
        display: none;
    }

    label.welcome2 {
        display: block;
        font-size: 3em;
        line-height: 85px;
        padding: 0 20px;
        z-index: 1;
    }
}

@media (max-width: 391px) {
    label.welcome2 {
        font-size: 1.7em;
    }
}

@media (max-width: 303px) {
    label.welcome2 {
        display: none;
    }
}

p {
    font-size: 1.2em;
}

div.was p {
    padding: 1rem;
    max-width: 70ch;
    min-width: 20ch;
    text-align: center;
}

.wrapper {
    display: inline-flex;
    margin-left: 1rem;
    -ms-user-select: none;
    -moz-user-select: none;
    -webkit-user-select: none;
    user-select: none;
    font-family: 'Genos';
}

div.static {
    align-content: center;
    text-align: center;
    font-size: 2em;
    margin-left: 1rem;
    color: #5ed3db;
    z-index: 2;
    height: 2rem;
    line-height: 2rem;
    position: relative;
}

div.dynamic {
    align-content: center;
    text-align: right;
    height: 2rem;
    line-height: 2rem;
    overflow: hidden;
}

div.dyn_2 {
    text-align: left;
    margin-left: 1rem;
}

div.dynamic li {
    list-style: none;
    position: relative;
    font-size: 2em;
    top: 0;
    animation: slide 25s steps(5) infinite;
    display: block;
}

div.dynamic li span {
    position: relative;
}

div.dynamic li span:after {
    content: "";
    left: 0;
    position: absolute;
    height: 72%;
    width: 100%;
    border-left: 5px solid rgb(255, 207, 225);
    animation: typing 5s infinite cubic-bezier(.59, 0, .41, 1);
    background: var(--background-color);
}

div.dyn_2 li span:after {
    content: "";
    left: 0;
    position: absolute;
    height: 72%;
    width: 100%;
    border-left: 5px solid rgb(255, 207, 225);
    animation: typing_2 5s infinite cubic-bezier(.59, 0, .41, 1);
    background: var(--background-color);
}

@media (max-width: 755px) {
    .wrapper {
        display: block;
        align-content: center;
    }

    .wrapper * {
        margin: 0 auto;
        text-align: center;
    }

    .dynamic li {
        line-height: 2rem;
        height: 2rem;
    }

    .dynamic li span {
        padding-bottom: 5px;
    }
}

@keyframes slide {
    100% {
        top: -10rem;
    }
}

@keyframes typing {
    0%, 95%, 100% {
        left: 0;
        border-left: 0px solid rgba(255, 207, 225, 0);
    }
    10%, 90% {
        border-left: 5px solid rgb(255, 207, 225);
    }
    50% {
        left: 100%;
        margin-left: 10px;
    }
}

@keyframes typing_2 {
    0%, 20%, 75%, 100% {
        left: 0;
        border-left: 0px solid rgba(255, 207, 225, 0);
    }
    25%, 75% {
        border-left: 5px solid rgb(255, 207, 225);
    }
    50% {
        left: 100%;
        margin-left: 10px;
    }
}

section {
    position: relative;
    width: 100%;
    height: fit-content;
    padding-block: 5rem;
    padding-inline: 2rem;
    margin-block: 3rem;
    text-align: center;
    line-height: 2em;
    letter-spacing: -.05em;
    word-spacing: .5em;
}

section::after {
    content: '';
    position: absolute;
    z-index: -1;
    inset: 0;
    transform: skewY(-2deg);
    transition: .3s;
    background-image: linear-gradient(45deg, rgb(63, 47, 63), #477b8b, rgb(46, 24, 46));
    box-shadow: 0 0 1rem 0 rgb(124, 75, 112);
}

section p {
    text-shadow: 2px 2px rgba(22, 22, 22, 0.918);
    font-weight: 200;
}

.cuby {
    width: 100%;
    height: 30rem;
    margin: 0 auto;
    position: relative;
    align-items: center;
    padding-top: 2rem;
    width: 100%;
}

.cuby::before {
    content: '';
    position: absolute;
    display: flex;
    width: 100%;
    min-height: 125%;
    height: auto;
    height: 1svh;
    transform: translateY(-9rem);
    background-image: linear-gradient(45deg, rgba(245, 139, 240, 0.247), 10%, var(--background-color), 90%, rgb(139, 215, 245));
    z-index: -2;
    overflow-y: hidden;
}

.textbox-left {
    display: inline-flex;
    position: absolute;
    height: 20vh;
    width: 50%;
    left: 0;
    flex-direction: column;
    align-items: center;
    text-align: center;
    justify-content: center;
    vertical-align: top;
}

.textbox-left p {
    display: block;
    max-width: 50ch;
    margin-top: 2rem;
    margin-inline: 2rem;
}

div.container3d {
    width: 50%;
    height: 20rem;
    right: 0;
    position: absolute;
    align-items: center;
    justify-content: center;
    display: inline-flex;
    perspective: 30rem;
    perspective-origin: 50% calc(50% - 11rem);
    pointer-events: none;
    vertical-align: top;
}

.scene {
    position: relative;
    transform-style: preserve-3d;
    animation: spin 12.5s infinite cubic-bezier(.59, 0, .41, 1);
}

@keyframes spin {
    0%, 100% {}
    50% {
        transform: rotateY(-360deg) rotateX(360deg);
    }
}

.cube {
    height: var(--cubeSize);
    width: var(--cubeSize);
    position: absolute;
    transform-style: preserve-3d;
    transform: translate(-50%, -50%);
}

.cube .left,
.cube .right,
.cube .front,
.cube .back,
.cube .top,
.cube .bottom {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(114, 80, 116, 0.507);
    box-shadow: 0 0 calc(var(--cubeSize) / 5) #000a inset;
}

.cube .front {
    transform: translateZ(var(--halfCube));
}

.cube .right {
    transform: rotateY(90deg) translateZ(var(--halfCube));
}

.cube .back {
    transform: rotateY(180deg) translateZ(var(--halfCube));
}

.cube .left {
    transform: rotateY(270deg) translateZ(var(--halfCube));
}

.cube .top {
    transform: translateY(-50%) rotateX(90deg);
}

.cube .bottom {
    transform: translateY(50%) rotateX(270deg);
}

.site-container {
    position: relative;
    min-height: 100vh;
    height: fit-content;
    padding-bottom: 100px;
}

footer {
    height: 100px;
    width: 100%;
    position: absolute;
    background-image: linear-gradient(var(--background-color), color-mix(in srgb, var(--background-color) 90%, rgb(255, 83, 246)));
    bottom: 0;
    display: block;
    font-family: 'Genos';
    text-decoration: none;
    border-top: 2px solid color-mix(in srgb, var(--background-color) 90%, white);
    text-shadow: 0 0 .7em color-mix(in srgb, rgb(34, 112, 143) 70%, white);
    box-shadow: 0 0 1rem 0.1rem color-mix(in srgb, var(--background-color) 30%, rgb(255, 83, 246));
    overflow-y: hidden;
}

footer ul {
    text-align: center;
    margin-bottom: 20px;
}

footer ul li {
    line-height: 20px;
    padding: 10px;
    text-align: center;
    text-decoration: none;
    list-style: none;
}

footer ul li a {
    color: white;
    text-decoration: none;
    font-size: 1.4em;
    font-weight: 1000;
    display: inline-block;
    text-transform: uppercase;
}

.footer_img {
    height: 90px;
    margin: 0;
    position: absolute;
    padding-top: 1em;
    padding-left: 1em;
    line-height: 80px;
    pointer-events: painted;
}

@media (max-width: 400px) {
    #up {
        display: none;
    }

    footer ul li {
        display: block;
        right: 1rem;
        width: 20ch;
        margin: 1rem auto;
    }
}

@media (max-width: 286px) {
    footer ul li {
        float: right;
    }
}
