@import url('https://fonts.googleapis.com/css2?family=Poiret+One&display=swap');



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

html,
body {
    background: linear-gradient(to bottom, #292256 0%, #8446cf 70%, #a871d6 100%);
    font: 2rem "Poiret One", Arial;
    height: 100svh;
    display: flex;
    justify-content: center;
}

code {
    background-color: rgba(255, 255, 255, 0.1);
    padding-inline: 0.3rem;
    border-radius: 4px;
    color: #f0c674;

    &>span {
        color: #fff;
    }
}

h1 {
    font-size: 5rem;
}

#title {
    font-family: monospace;
    font-size: 1.4rem;
    text-align: center;
}

#container {
    display: flex;
    flex-direction: column;
    gap: 5vh;
    align-items: center;
    justify-content: center;
    color: white;
}

#codeContainer {
    display: flex;
    justify-content: center;
    align-items: center;

    &>* {
        width: max-content;
    }

    &>h1 {
        text-shadow: 0 0 10px #fff;
        animation: blink 4.8s infinite both;
        margin: 0;
        padding: 0;
    }

    .zero {
        position: relative;

        &>h1 {
            margin: 0 auto;
            opacity: 0.1;
        }

        &>.OLetter {
            width: 4.5rem;
            aspect-ratio: 1 / 1;
            border: 0.35rem solid rgba(255, 255, 255, 0.1);
            border-radius: 50%;
        }

        &>.box {
            width: 100%;
            aspect-ratio: 1 / 1;
            position: absolute;
            overflow: hidden;
            transform: rotateZ(270deg) scale(1.05);
            top: 0;
            left: 0;
        }
    }

    &>.zero:nth-child(2)>.box {
        left: -5px;
        transform: rotateX(-180deg) rotateY(180deg) rotateZ(270deg) scale(1.05);
    }
}

.box span {
    animation: loader 4.8s infinite both;
    display: block;
    height: 100%;
    position: absolute;
    width: 100%;
}

.box span:nth-child(1) {
    animation-delay: 0.2s;
}

.box span:nth-child(2) {
    animation-delay: 0.4s;
}

.box span:nth-child(3) {
    animation-delay: 0.6s;
}

.box span:nth-child(4) {
    animation-delay: 0.8s;
}

.box span:nth-child(5) {
    animation-delay: 1s;
}

.box span:nth-child(6) {
    animation-delay: 1.2s;
}

.box span::after {
    background: #fff;
    border-radius: 50%;
    content: "";
    left: 50%;
    padding: 6px;
    position: absolute;
    top: 0;
    transform: translateX(-50%);
}

@keyframes loader {
    0% {
        opacity: 0;
        transform: rotate(180deg);
        animation-timing-function: ease-out;
    }

    5% {
        opacity: 1;
        transform: rotate(300deg);
        animation-timing-function: linear;
    }

    30% {
        transform: rotate(420deg);
        animation-timing-function: ease-in-out;
    }

    35% {
        transform: rotate(625deg);
        animation-timing-function: linear;
    }

    70% {
        transform: rotate(800deg);
        animation-timing-function: ease-out;
        opacity: 1;
    }

    75% {
        opacity: 0;
        transform: rotate(900deg);
        animation-timing-function: ease-out;
    }

    76% {
        opacity: 0;
        transform: rotate(900deg);
    }

    100% {
        opacity: 0;
        transform: rotate(900deg);
    }
}

@keyframes blink {

    0%,
    50%,
    100% {
        opacity: 0.2;
    }

    25%,
    75% {
        opacity: 1;
    }
}

#message {
    padding: 0.3rem;
    border-radius: 4px;
    max-width: 70%;
}

p {
    margin-inline: auto;
    margin-block: 0.2rem;
    font-family: monospace;
    font-size: 0.3em;
    text-align: center;

    &>span {
        color: #f0c674;
        font-weight: bold;
    }
}

p a {
    color: #f0c674;
    font-weight: bold;
}

@media only screen and (max-width: 600px) {
    p {
        font-size: .5rem;
    }

    .zero>.OLetter {
        border-width: .25rem !important;
        width: 70px !important;
    }

    h1 {
        font-size: 85px;
    }

    #title {
        font-size: 1rem;
        line-height: 1.5;
    }

    #message {
        max-width: 90%;
    }

    .box span::after {
        padding: 5px;
    }

    #container {
        gap: 3.5vh;
    }
}