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

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

pre {
    font-family: 'Share Tech Mono', monospace;
    :   font-size: 1em;
}

body {
    background: #1c2128;
    color: #edece1;
    font-family: 'Share Tech Mono', monospace;
    font-size: 1em;
    height: 100vh;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-y: auto;
    overflow-x: hidden;
}

a,
a:visited {
    text-decoration: underline;
    color: #edece1;
}

pre, p, .left-jastified {
    width: 100%;
    text-align: left;
}

body::before,
body::after {
    content: "";
    flex: 1 0 40px;
}

.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    z-index: 1;
    position: relative;
    --background: #2a313c;
    background: #1c2128;
    border: solid #0ff 3px;
    width: 600px;
    max-width: calc(
    100vw - /* border= */ 10px - /* padding= */ 16px - /* bleed= */ 80px
    );
    padding: 8px 16px;
}

.background {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: -1;

    background:
    linear-gradient(to right, rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 12px 12px;
}

li {
    list-style: none;
    margin: 8px 0px;
}

h2 {
    color: #4c7c7c;
    font-size: 1em;
    width: 100%;
    text-align: left;
    margin: 8px 0px;
}



h1.glitch {
    overflow: visible;
    position: relative;
    font-size: 2em;
    animation: flicker 6s infinite;
}

@keyframes flicker {
    0%, 100% { opacity: 1; }
    84.4% { opacity: 1; }
    84.5% { opacity: 0.5; }
    84.8% { opacity: 0.1; }
    85.0% { opacity: 1; }
    85.2% { opacity: 0.2; }
    85.5% { opacity: 0.8; }
}

h1.glitch::before,
h1.glitch::after {
    content: attr(data-text);
    position: absolute;
    left: 0;
    width: 100%;
    overflow: visible;
}

h1.glitch::before {
    color: #f0f;
    z-index: -1;
    animation: glitch-burst-cyan 6s ease-in-out infinite;
}

h1.glitch::after {
    color: #0ff;
    z-index: -2;
    animation: glitch-burst 6s ease-in-out infinite;
}

@keyframes glitch-burst {
    0%, 85%, 100% {
        transform: translate(0, 0);
        clip-path: inset(0 0 100% 0);
    }

    86%, 93% {
        transform: translate(-2px, 2px);
        clip-path: inset(20% 0 60% 0);
    }

    94% {
        transform: translate(-1px, 1px);
        clip-path: inset(40% 0 40% 0);
    }

    95% {
        transform: translate(0, 0);
        clip-path: inset(0 0 100% 0);
    }

    96%,
    100% {
        transform: none;
        clip-path: inset(0 0 100% 0);
    }
}

@keyframes glitch-burst-cyan {
    0%, 85%, 100% {
        transform: translate(0, 0);
        clip-path: inset(0 0 100% 0);
    }


    86%, 93% {
        transform: translate(1px, 2px);
        clip-path: inset(20% 0 40% 0);
    }

    94% {
        transform: translate(1px, 1px);
        clip-path: inset(40% 0 40% 0);
    }

    95% {
        transform: translate(0, 0);
        clip-path: inset(0 0 100% 0);
    }

    96%,
    100% {
        transform: none;
        clip-path: inset(0 0 100% 0);
    }
}

@keyframes blink {
    0%, 50% {
        opacity: 1;
    }
    50.01%, 100% {
        opacity: 0;
    }
}

.blink {
    animation: blink 1s infinite steps(1, start);
}

#cell_name {
    display: none;
}

@media only screen and (min-width: 1000px) {
    #cell_name {
        display: block;
        position: absolute;
        right: 10px;
        background-color: #486366;
        color: #BEC8C9;
        padding: 4px;
        border-radius: 0 0 4px 4px;
    }
}
