*,
*::before,
*::after {
    box-sizing:border-box;
    margin: 0px;
    /*scrollbar-width: none;*/
}

body {
    background-image: url(bg_glitch_003.gif);
    backdrop-filter: blur(2px);
    font-family: 'Syne Mono';
}

.back {
    width: 100vw;
    height: 100vh;
}

.container {
    width: 80%;
    max-width: 600px;
    min-height: 100cw;
    background: whitesmoke;
    box-shadow: 0px 10px 16px rgba(0, 0, 0, 0.6);
}

.level {
    width: 100%;
    height: max-content;
    padding: 10%;
    text-shadow: 0px 0px 4px;
}

.level, .container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

q {
    quotes: "«" "»";
}

.return {
    color: whitesmoke;
    font-size: 4rem;
    line-height: 4rem;
    padding: 1rem;
    position: fixed;
    text-decoration: none;
    text-shadow: 0px 0px 8px whitesmoke;
    z-index: 999;
}

/* CRYPTIC-001 */

.c001-numbers, .c001-hex {
    color: rgba( 255, 0, 0, 0.5);
}

.c001-binary {
    color: rgba(0, 0, 255, 0.5);
}

.c001-ascii {
    color: rgba(0, 255, 0, 0.5);
}

.c001-hide {
    position: relative;
    top: 0px;
    left: 0px;
    transform: none;
    text-align: center;
    color: transparent;
}

@keyframes c001-font-size {
    99% {font-size: 1rem;}
    100% {font-size: 4rem;}
}

.c001-numbers, .c001-binary, .c001-hex, .c001-ascii {
    animation-name: c001-font-size;
    animation-iteration-count: infinite;
    animation-timing-function: steps(2);
}

.c001-numbers {
    animation-duration: 6s;
}

.c001-binary {
    animation-duration: 6.3s;
}

.c001-hex {
    animation-duration: 4.1s;
}

.c001-ascii {
    animation-duration: 8.5s;
}

@keyframes c001-text {
    0% {
        color: transparent;
        transform: translate(-5%, -50%);
    }

    50% {
        color: rgba(0, 0, 0, 0.4);
    }

    100% {
        color: transparent;
        transform: translate(-52%, -50%);
    }
}

.c001-text {
    animation: alternate c001-text 600s ease-in-out infinite;
}

/* CRYPTIC-002 */

.c002 {
    color: rgba(0, 0, 0, 0.7);
    top: 0px;
    left: 0px;
}

.c002-text-a {
    position: relative;
    transform: none;
}

.c002-text-b {
    transform: rotateX(180deg);
}

.c002-text-c {
    transform: rotateZ(180deg);
}

.c002-sign {
    position: relative;
    transform: none;
    text-align: right;
    padding: 5%;
    width: 80%;
    margin: auto;
    transform: translateY(-50%);
    line-height: 0;
}

.c002-sign-b {
    transform: rotateZ(180deg) translateX(-87%);
}

@keyframes c002-encrypt-a {
    0% {
        scale: 0;
    }

    100% {
        scale: 1;
    }
}

.c002 {
    animation: forwards c002-encrypt-a 1s linear;
}

@keyframes c002-encrypt-b {
    0% {
        letter-spacing: 1rem;
    }
}

.c002-text-b {
    animation: forwards c002-encrypt-b 1s linear;
}

/* ANIMATIONS */