/* =============================================================================
   HTML5 CSS Reset Minified - Eric Meyer
   ========================================================================== */

* {
    box-sizing: border-box;
}

html, body, div, span, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, abbr, address, cite, code, del, dfn, em, img, ins, kbd, q, samp, small, strong, sub, sup, var, b, i, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, figcaption, figure, footer, header, hgroup, menu, nav, section, summary, time, mark, audio, video {
    margin: 0;
    padding: 0;
    border: 0;
    outline: 0;
    font-size: 100%;
    vertical-align: baseline;
    background: transparent
}

body {
    line-height: 1
}

article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section {
    display: block
}

nav ul {
    list-style: none
}

blockquote, q {
    quotes: none
}

blockquote:before, blockquote:after, q:before, q:after {
    content: none
}

a {
    margin: 0;
    padding: 0;
    font-size: 100%;
    vertical-align: baseline;
    background: transparent;
    text-decoration: none
}

mark {
    background-color: #ff9;
    color: #000;
    font-style: italic;
    font-weight: bold
}

del {
    text-decoration: line-through
}

abbr[title], dfn[title] {
    border-bottom: 1px dotted;
    cursor: help
}

table {
    border-collapse: collapse;
    border-spacing: 0
}

hr {
    display: block;
    height: 1px;
    border: 0;
    border-top: 1px solid #ccc;
    margin: 1em 0;
    padding: 0
}

input, select {
    vertical-align: middle
}

li {
    list-style: none
}


/* =============================================================================
   Inspired by https://codepen.io/lbebber/pen/XJRdrV - edited
   ========================================================================== */

html, body {
    width: 100%;
    height: 100%;
    font-family: "VT323", monospace, -apple-system, BlinkMacSystemFont, "Roboto", "SF UI Text","Helvetica Neue",Helvetica,Arial,sans-serif;
    font-size: 1.5rem;

    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

@keyframes flicker {
    0% {
        opacity: 0.24627;
    }
    5% {
        opacity: 0.41714;
    }
    10% {
        opacity: 0.85247;
    }
    15% {
        opacity: 0.68138;
    }
    20% {
        opacity: 0.27866;
    }
    25% {
        opacity: 0.29768;
    }
    30% {
        opacity: 0.43493;
    }
    35% {
        opacity: 0.81245;
    }
    40% {
        opacity: 0.1211;
    }
    45% {
        opacity: 0.39763;
    }
    50% {
        opacity: 0.48664;
    }
    55% {
        opacity: 0.26146;
    }
    60% {
        opacity: 0.64862;
    }
    65% {
        opacity: 0.44624;
    }
    70% {
        opacity: 0.35033;
    }
    75% {
        opacity: 0.68312;
    }
    80% {
        opacity: 0.21705;
    }
    85% {
        opacity: 0.5741;
    }
    90% {
        opacity: 0.09239;
    }
    95% {
        opacity: 0.62517;
    }
    100% {
        opacity: 0.98237;
    }
}

.container {
    background: #121010;
    color: #65ff65;

    position: relative;
    overflow: hidden;
}

.inner {
    backdrop-filter: brightness(.8);
}

.inner .inner2 {
    max-width: 1150px;
    margin: 0 auto;
    display: grid;
    align-content: center;

    padding: 5rem 1rem 1rem;
}

p {
    font-size: 1.3rem;
}

.container::after {
    content: " ";
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: rgba(18, 16, 16, 0.1);
    opacity: 0;
    z-index: 2;
    pointer-events: none;
}

.container::before {
    content: " ";
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: linear-gradient(
            rgba(18, 16, 16, 0) 50%,
            rgba(0, 0, 0, 0.25) 50%),
    linear-gradient(90deg,
            rgba(255, 0, 0, 0.06),
            rgba(0, 255, 0, 0.02),
            rgba(0, 0, 255, 0.06));
    z-index: 2;
    background-size: 100% 4px, 6px 100%;
    pointer-events: none;
}

.container::after {
    animation: flicker 0.15s infinite;
}

@keyframes turn-on {
    0% {
        transform: scale(1, 0.8) translate3d(0, 0, 0);
        -webkit-filter: brightness(30);
        filter: brightness(30);
        opacity: 1;
    }
    3.5% {
        transform: scale(1, 0.8) translate3d(0, 100%, 0);
    }
    3.6% {
        transform: scale(1, 0.8) translate3d(0, -100%, 0);
        opacity: 1;
    }
    9% {
        transform: scale(1.3, 0.6) translate3d(0, 100%, 0);
        -webkit-filter: brightness(30);
        filter: brightness(30);
        opacity: 0;
    }
    11% {
        transform: scale(1, 1) translate3d(0, 0, 0);
        -webkit-filter: contrast(0) brightness(0);
        filter: contrast(0) brightness(0);
        opacity: 0;
    }
    100% {
        transform: scale(1, 1) translate3d(0, 0, 0);
        -webkit-filter: contrast(1) brightness(1.2) saturate(1.3);
        filter: contrast(1) brightness(1.2) saturate(1.3);
        opacity: 1;
    }
}

@keyframes turn-off {
    0% {
        transform: scale(1, 1.3) translate3d(0, 0, 0);
        -webkit-filter: brightness(1);
        filter: brightness(1);
        opacity: 1;
    }
    60% {
        transform: scale(1.3, 0.001) translate3d(0, 0, 0);
        -webkit-filter: brightness(10);
        filter: brightness(10);
    }
    100% {
        animation-timing-function: cubic-bezier(0.755, 0.05, 0.855, 0.06);
        transform: scale(0, 0.0001) translate3d(0, 0, 0);
        -webkit-filter: brightness(50);
        filter: brightness(50);
    }
}

.screen {
    width: 100%;
    height: 100%;
    border: none;
}
iframe {
    width: 100%;
    height: 100%;
    border: none;
}
.screen {
    animation: turn-on 2s linear, turn-off 0.55s cubic-bezier(0.23, 1, 0.32, 1) 7s;
    animation-fill-mode: forwards;
}

@keyframes overlay-anim {
    0% {
        visibility: hidden;
    }
    20% {
        visibility: hidden;
    }
    21% {
        visibility: visible;
    }
    100% {
        visibility: hidden;
    }
}

.overlay {
    color: #00FF00;
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 4rem;
    visibility: hidden;
    pointer-events: none;
}

.container .overlay {
    animation: overlay-anim 5s linear;
    animation-fill-mode: forwards;
}

.inner {
    position: fixed;
    inset: 0;
    z-index: 10;
}