@font-face {
  font-family: "IBM VGA";
  font-weight: normal;
  src: url("WebPlus_IBM_VGA_8x16.woff") format("woff");
  font-display: swap;
}

* {
  font-family: "IBM VGA";
  box-sizing: border-box;
  font-size: 22px;
}

html {
  height: 100%;
}

body {
  margin: 0;
  padding: 16px 16px 100px;
  min-height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  background-color: #252525;
  color: #e0e0e0;
  overflow-x: hidden;
}

main {
  visibility: hidden;
  max-width: 100%;
}

pre {
  margin: 0;
}

a {
  color: #e0e0e0;
  text-decoration: none;
}

*:focus {
  outline: 0;
}

*::-moz-focus-inner {
  border: 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* dorren.io */

.accent {
  color: rgb(187, 0, 0);
}

#iplist {
  margin-top: 1em;
}

#nav {
  margin-top: 1em;
}

#nav a {
  color: rgb(187, 0, 0);
}

#nav a:hover {
  text-decoration: underline;
}

#network {
  margin-top: 1em;
}

#network-graph,
#temp-graph {
  display: block;
  width: 590px;
  height: 48px;
  margin-top: 4px;
}

#temp {
  margin-top: 1em;
}

.cursor {
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

/* jordi.dorren.io */

code {
  display: inline-block;
}

code:focus {
  border: none;
}

button {
  position: absolute;
  bottom: 0;
  right: 0;
  display: flex;
  gap: 4px;
  justify-content: center;
  align-items: center;
  padding: 4px 8px;
  border: none;
  background-color: #bb0000;
  color: white;
  cursor: pointer;
  border-radius: 4px;
}

button:hover {
  background-color: #8a0000;
}

#output-wrapper {
  margin-top: 16px;
  padding: 8px;
  background-color: black;
  border-radius: 4px;
}

.hljs-comment {
  opacity: 0.4;
  color: #e0e0e0;
}

.hljs-string,
.hljs-number {
  color: #bb0000 !important;
}

.hljs-keyword {
  color: green;
}

.hljs-title {
  color: #6699cc;
}

.function_ {
  color: #cc8800;
}

/* CRT effect */

@keyframes crt-sweep {
  0%   { transform: translateY(-100%); }
  100% { transform: translateY(100vh); }
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 200px;
  pointer-events: none;
  z-index: 10;
  background: linear-gradient(
    to bottom,
    transparent,
    rgba(255, 255, 255, 0.015) 25%,
    rgba(255, 255, 255, 0.03) 50%,
    rgba(255, 255, 255, 0.015) 75%,
    transparent
  );
  animation: crt-sweep 8s linear infinite;
}

body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 10;
  background:
    repeating-linear-gradient(
      to bottom,
      transparent,
      transparent 1px,
      rgba(0, 0, 0, 0.3) 1px,
      rgba(0, 0, 0, 0.3) 2px
    ),
    radial-gradient(
      ellipse at center,
      transparent 60%,
      rgba(0, 0, 0, 0.4) 100%
    );
}

/* Character hover cursor */

#char-cursor {
  position: fixed;
  pointer-events: none;
  z-index: 5;
  color: #e0e0e0;
  display: none;
}

.crt-cursor-active pre,
.crt-cursor-active code {
  cursor: none;
}

.crt-cursor-active .cursor {
  visibility: hidden;
}
