@font-face {
    font-family: 'ByteBounce';
    src: url('fonts/ByteBounce.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

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

body {
    font-family: 'ByteBounce', monospace;
    background-color: #000;
    color: #00ff00;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    line-height: 1;
}

body::before {
    content: '';
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    background-image: repeating-linear-gradient(
            to bottom,
            rgba(0, 255, 0, 0.1) 0px,
            rgba(0, 255, 0, 0.1) 1px,
            transparent 1px,
            transparent 4px
    );
    pointer-events: none;
    z-index: 0;
    animation: flicker 3s infinite;
}

h1, #loader, #random-publicinformation, .terminal-output, #loader-wrapper {
    text-shadow: 0 0 2px #00ff00, 0 0 3px #00ff00;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1 !important;
}

@keyframes flicker {
    0%, 19%, 21%, 23%, 25%, 54%, 56%, 100% { opacity: 1; }
    20%, 24%, 55% { opacity: 0.4; }
}

#random-publicinformation {
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: anywhere;
    max-width: 100%;
    display: block;
}

#loader-wrapper {
    display: block;
    font-size: 1.2rem;
}

.terminal-output {
    font-size: 2rem;
    animation: flicker 2s infinite;
    white-space: pre;
}

.encrypted-line {
    opacity: 0.5;
    font-style: italic;
    color: #00aa00;
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: anywhere;
    max-width: 100%;
    display: block;
}

.terminal-window {
    font-family: monospace;
    background-color: #000;
    color: #00FF00;
    border: 2px solid #00FF00;
    padding: 1rem;
    padding-bottom: 3rem;
    white-space: pre-wrap;
    overflow: hidden;
    flex: 1;
    position: relative;
    box-sizing: border-box;
}

html, body {
    height: 100dvh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

#loader-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-family: monospace;
    color: #00ff00;
    text-shadow: 0 0 2px #00ff00, 0 0 3px #00ff00;
}

@keyframes typewriter {
    from { width: 0 }
    to { width: 100% }
}

.nato-key-override {
    font-weight: bold;
    color: orange !important;
    text-shadow: none !important;
    font-family: monospace;
    white-space: nowrap;
    overflow: hidden;
    display: inline-block;
    width: 16ch;
    animation: typewriter 2s steps(16, end) infinite alternate;
}


#number-shadow-canvas {
  z-index: 1;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  background: transparent;
  pointer-events: none;
}
