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

html {
  min-height: 100%;
}

/* beginning of stuff I added */

/* ability to use whitespace respecting box for ascii graphics -ch */
/* wrap at edge of screen -ch */
#box-wrap {
  white-space: pre-wrap;
}

#box {
  white-space: pre;
}

/* makes text sharp when selecting it */
::selection {
  background: rgba(32, 128, 32, 0.8);
  text-shadow: none;
}


/***********/
/* backups */

/*
::selection {
  background: #0080FF;
  text-shadow: none;
}
*/


/* end of stuff I added */



body {
  box-sizing: border-box;
  height: 100%;
  background-color: #000000;
  background-image: radial-gradient(#11581e, #041607),
    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: rgba(128, 255, 128, 0.8);
  text-shadow: 0 0 1ex rgba(51, 255, 51, 1), 0 0 2px rgba(255, 255, 255, 0.8);
}

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

.overlay {
  pointer-events: none;
  position: fixed;
  width: 100%;
  height: 100vh;
  top: 0;
  left: 0;
  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%,
    rgba(32, 128, 32, 0.2) 2%,
    rgba(32, 128, 32, 0.8) 3%,
    rgba(32, 128, 32, 0.2) 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;
  }
}

/* if the below is called it seems to prevent text selection with mouse */
.terminal {
  box-sizing: inherit;
  position: absolute;
  height: 100%;
  width: 1000px;
  max-width: 100%;
  padding: 4rem;
  text-transform: uppercase;
}

.output {
  color: rgba(128, 255, 128, 0.8);
  text-shadow: 0 0 1px rgba(51, 255, 51, 0.4), 0 0 2px rgba(255, 255, 255, 0.8);
}

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

/*
.input {
  color: rgba(192, 255, 192, 0.8);
  text-shadow:
      0 0 1px rgba(51, 255, 51, 0.4),
      0 0 2px rgba(255, 255, 255, 0.8);
}

.input::before {
  content: "$ ";
}
*/

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

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

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

/* Site header */
#site-header {
  text-align: center;
  margin: 2rem auto 1rem;
  font-size: 1.5rem;
  letter-spacing: 0.1em;
}

/* SVG wireframe tunnel styling */
#wireframe-tunnel {
  width: 90%;
  max-width: 800px;
  height: auto;
  display: block;
  margin: 2rem auto;
  filter: drop-shadow(0 0 3px rgba(51, 255, 51, 1))
          drop-shadow(0 0 8px rgba(51, 255, 51, 0.6));
  animation: wireframe-pulse 4s ease-in-out infinite;
}

#wireframe-tunnel line,
#wireframe-tunnel polygon,
#wireframe-tunnel rect {
  filter: drop-shadow(0 0 2px rgba(128, 255, 128, 0.8));
}

/* Wireframe pulse animation */
@keyframes wireframe-pulse {
  0%, 100% {
    filter: drop-shadow(0 0 3px rgba(51, 255, 51, 1))
            drop-shadow(0 0 8px rgba(51, 255, 51, 0.6));
    opacity: 1;
  }
  50% {
    filter: drop-shadow(0 0 5px rgba(51, 255, 51, 1))
            drop-shadow(0 0 12px rgba(51, 255, 51, 0.8));
    opacity: 0.95;
  }
}

/* Click to copy addresses */
.copy-address {
  cursor: pointer;
  color: rgba(128, 255, 128, 0.6);
  text-shadow: 0 0 1ex rgba(51, 255, 51, 0.7), 0 0 2px rgba(255, 255, 255, 0.6);
}

.copy-address:hover {
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 0 2ex rgba(51, 255, 51, 1), 0 0 4px rgba(255, 255, 255, 1);
}
