@import 'https://fonts.googleapis.com/css?family=Inconsolata';

/* --- Color Variables --- */
:root {
    /* Background Colors */
    --bg-dark: #1a1a1a; /* Dark background color */
    --bg-gradient-start: #695D75; /* Start color for radial gradient */
    --bg-gradient-end: #2b2b2b; /* End color for radial gradient */

    /* Text and Effects */
    --text-main: rgba(150, 90, 117, 0.8); /* Main text color (muted purple) */
    --text-shadow-light: rgba(220, 220, 220, 0.8); /* Light shadow/glow for text */
    --text-shadow-dark: rgba(105, 93, 117, 1); /* Dark shadow/glow for text (usually the same color as the text, but solid) */
    
    /* Overlay Scan Lines */
    --scan-line-light: rgba(90, 60, 100, 0.2); /* Light scan line */
    --scan-line-dark: rgba(90, 60, 100, 0.8); /* Dark scan line (This determines the main color of the scanning line. A darker value will make the line more prominent.) */

    /* Links and Error Code */
    --link-color: #b3b3b3; /* Color for links and error code (A light color will make links stand out, a dark color will make them blend in) */
}

/* --- Main Styles (Don't need to edit unless changing layout/structure) --- */
html {
  min-height: 100%;
}

body {
  box-sizing: border-box;
  height: 100%;
  background-color: var(--bg-dark);
  background-image: radial-gradient(var(--bg-gradient-start), var(--bg-gradient-end)), url("https://media.giphy.com/media/oEI9uBYSzLpBK/giphy.gif");
  background-repeat: no-repeat;
  background-size: cover;
  font-family: 'Inconsolata', Helvetica, sans-serif;
  font-size: 1.5rem;
  color: var(--text-main);
  text-shadow:
      0 0 1ex var(--text-shadow-dark),
      0 0 2px var(--text-shadow-light);
}

.noise {
  pointer-events: none;
  position: absolute;
  width: 100%;
  height: 100%;
  background-image: url("https://media.giphy.com/media/oEI9uBYSzLpBK/giphy.gif");
  background-repeat: no-repeat;
  background-size: cover;
  z-index: -1;
  opacity: .02;
}

.overlay {
  pointer-events: none;
  position: absolute;
  width: 100%;
  height: 100%;
  background:
      repeating-linear-gradient(
      180deg,
      rgba(0, 0, 0, 0) 0,
      rgba(0, 0, 0, 0.3) 50%,
      rgba(0, 0, 0, 0) 100%);
  background-size: auto 4px;
  z-index: 1;
}

.overlay::before {
  content: "";
  pointer-events: none;
  position: absolute;
  display: block;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(
      0deg,
      transparent 0%,
      var(--scan-line-light) 2%,
      var(--scan-line-dark) 3%,
      var(--scan-line-light) 3%,
      transparent 100%);
  background-repeat: no-repeat;
  animation: scan 7.5s linear 0s infinite;
}

@keyframes scan {
  0%        { background-position: 0 -100vh; }
  35%, 100% { background-position: 0 100vh; }
}

.terminal {
  box-sizing: inherit;
  position: absolute;
  height: 100%;
  width: 1000px;
  max-width: 100%;
  padding: 4rem;
  text-transform: uppercase;
}

.output {
  color: var(--text-main);
  text-shadow:
      0 0 1px var(--text-shadow-dark),
      0 0 2px var(--text-shadow-light);
}

.output::before {
  content: "> ";
}

a {
  color: var(--link-color);
  text-decoration: none;
}

a::before {
  content: "[";
}

a::after {
  content: "]";
}

.errorcode {
  color: var(--link-color);
}
