@keyframes flicker {
    0%,to {
        opacity: .55
    }

    50% {
        opacity: .6
    }
}

@keyframes rotateVoid {
    0% {
        transform: rotate(0deg)
    }

    to {
        transform: rotate(360deg)
    }
}

@keyframes pulse {
    0%,to {
        opacity: 1;
        transform: scale(1)
    }

    50% {
        opacity: .4;
        transform: scale(1.2);
        box-shadow: 0 0 10px #a9d0f5
    }
}

@keyframes pulseLink {
    0%,to {
        opacity: 1;
        transform: scale(1)
    }

    50% {
        opacity: .4;
        transform: scale(1.2)
    }
}

@keyframes pulse-red {
    0%,to {
        opacity: 1;
        transform: scale(1)
    }

    50% {
        opacity: .2;
        transform: scale(1.4)
    }
}

@keyframes alarm {
    0%,to {
        box-shadow: 0 0 5px red
    }

    50% {
        box-shadow: 0 0 30px red;
        background: rgba(255,0,0,.1)
    }
}

@keyframes redAlertFlash {
    0%,to {
        background-color: rgba(255,0,0,.1)
    }

    50% {
        background-color: rgba(255,0,0,.3)
    }
}

@keyframes redAlertBG {
    0% {
        background-color: #000
    }

    to {
        background-color: #600
    }
}

@keyframes shipRotate {
    0% {
        transform: rotate(0deg) scale(1.2)
    }

    to {
        transform: rotate(15deg) scale(1)
    }
}

body {
    font-family: "Courier New",Courier,monospace;
    color: #f9f9f9;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    overflow-x: hidden;
    background-color: #000
}

.transparent-layer::-webkit-scrollbar,::-webkit-scrollbar {
    display: none
}

body::before {
    content: "";
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background-image: url(https://64.media.tumblr.com/9d41e600c483d4e41b16e6cb5e0838cb/678e15796c322da2-68/s250x400/c3a5a574e12151ea939ebe404806e4e3a55bf71f.webp);
    background-repeat: repeat;
    animation: rotateVoid 800s linear infinite;
    z-index: -1;
    opacity: .6
}

body::after {
    content: "";
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle,transparent 40%,rgba(0,0,0,.8) 90%,#000 100%);
    z-index: 0
}

#scanlines,.shooting-star,body::after {
    position: fixed;
    pointer-events: none
}

.shooting-star {
    width: 2px;
    height: 2px;
    background: #fff;
    border-radius: 50%;
    z-index: 1;
    box-shadow: 0 0 0 4px rgba(255,255,255,.1),0 0 0 8px rgba(255,255,255,.1),20px 0 20px 5px rgba(255,255,255,.5);
    transition: transform linear
}

#scanlines {
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(18,16,16,0) 50%,rgba(0,0,0,.2) 50%),linear-gradient(90deg,rgba(255,0,0,.03),rgba(0,255,0,.01),rgba(0,0,255,.03));
    background-size: 100% 4px,3px 100%;
    z-index: 100;
    opacity: .6;
    animation: flicker .15s infinite
}

#container {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 20px auto;
    background-color: rgba(40,44,52,.95);
    border: 2px solid #71797e;
    box-shadow: 0 0 15px rgba(0,0,0,.8)
}

header {
    border-bottom: 2px solid #71797e;
    text-align: center
}

.header-image {
    width: 100%;
    height: auto;
    display: block
}

.site-title {
    padding: 20px;
    background-color: #2e3436;
    margin: 0;
    font-size: 1.5em;
    letter-spacing: 3px;
    text-transform: uppercase
}

#main-flex {
    display: flex;
    flex-wrap: wrap
}

nav {
    flex: 1;
    min-width: 200px;
    padding: 20px;
    background-color: rgba(113,121,126,.1);
    border-right: 1px solid #71797e
}

.site-title,h2,nav h3 {
    color: #a9d0f5
}

nav h3 {
    border-bottom: 1px solid #a9d0f5;
    padding-bottom: 5px
}

nav ul {
    list-style: none;
    padding: 0
}

nav ul li {
    margin-bottom: 10px
}

a,nav a {
    text-decoration: none
}

nav a,nav h3 {
    font-size: .9em
}

nav a:hover {
    text-shadow: 0 0 5px #a9d0f5
}

main {
    flex: 3;
    min-width: 300px;
    padding: 30px;
    background-color: rgba(20,20,20,.4)
}

.post {
    border-left: 3px solid #71797e;
    padding-left: 15px;
    margin-bottom: 40px
}

.post-date,footer {
    font-size: .8em;
    color: #71797e
}

h2 {
    margin-top: 5px
}

footer {
    text-align: center;
    padding: 10px;
    font-size: .7em;
    border-top: 1px solid #71797e
}

@media (max-width:600px) {
    nav {
        border-right: none;
        border-bottom: 1px solid #71797e
    }
}

.status-box {
    background: rgba(0,0,0,.3);
    border: 1px solid #71797e;
    padding: 10px;
    margin-top: 20px;
    font-size: .8em
}

.status-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 5px
}

.indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #a9d0f5;
    box-shadow: 0 0 5px #a9d0f5;
    animation: pulse 2s infinite
}

.emergency-active .indicator {
    background-color: red!important;
    box-shadow: 0 0 15px red!important;
    animation: pulse-red .5s infinite!important
}

.status-text {
    font-weight: 700;
    text-transform: uppercase
}

a {
    transition: all .3s ease;
    border-bottom: 1px solid transparent
}

.status-text,a,a:link {
    color: #a9d0f5
}

a:visited {
    color: #71797e
}

a:hover {
    color: #f9f9f9;
    text-shadow: 0 0 8px #a9d0f5;
    border-bottom: 1px solid #a9d0f5;
    cursor: crosshair;
    animation: pulseLink 2s infinite ease-in-out
}

a:active {
    color: #fff;
    background-color: rgba(169,208,245,.2)
}

nav a,nav a:visited {
    color: #a9d0f5!important
}

nav a:hover {
    color: #f9f9f9;
    animation: pulseLink 1.5s infinite ease-in-out
}

.red-alert {
    animation: alarm 1s infinite!important;
    color: red!important;
    border-color: red!important
}

.destruct-interface {
    margin-top: 20px;
    padding: 10px;
    border: 1px dashed red;
    text-align: center
}

#arm-button {
    background: #71797e;
    color: #000;
    border: 0;
    padding: 10px;
    font-family: "Courier New",Courier,monospace;
    font-weight: 700;
    cursor: pointer;
    width: 100%
}

#arm-button:hover {
    background: red;
    color: #fff;
    box-shadow: 0 0 10px red
}

.emergency-active {
    animation: redAlertFlash 1s infinite!important
}

#countdown-display {
    color: red;
    font-size: 1.2em;
    font-weight: 700;
    margin-top: 10px;
    letter-spacing: 2px
}

#atabook-frame,#content-frame {
    width: 100%;
    height: 700px;
    border: 0;
    display: block
}

body.transparent-layer {
    background: 0 0!important;
    background-image: none!important;
    animation: none!important
}

.transparent-layer #glitch-overlay,.transparent-layer #scanlines,.transparent-layer #vignette,body.transparent-layer::after,body.transparent-layer::before {
    display: none!important
}

.transparent-layer #container {
    background: 0 0!important;
    border: 0!important;
    box-shadow: none!important;
    margin: 0!important;
    padding: 0!important;
    width: 100%!important
}

.transparent-layer {
    -ms-overflow-style: none
}

body.emergency-active {
    animation: redAlertBG .5s infinite alternate!important
}

#content-frame {
    height: 100%;
    border: 0!important;
    background: 0 0
}

#container {
    transition: opacity .8s ease-in-out;
    opacity: 1
}

.hud-hidden {
    opacity: 0!important;
    pointer-events: none
}

.star-drift::before {
    animation: shipRotate 4s ease-out!important
}

.blog-frame-wrapper {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative
}

#main-frame {
    width: 100%;
    height: calc(100% + 150px);
    position: absolute;
    top: -80px;
    border: 0;
    background: 0 0
}

@media (max-width:600px) {
    #scanlines {
        display: none
    }
}