body,
html {
  width: 100%;
  height: 100%;
}

body {
  background-color: #000;
  font-size: 1.4em;
  font-family: sans-serif;
  color: #b2cca8;
  display: flex;
  margin: 0;
  padding: 0;
  align-items: center;
  justify-content: center;
}
#info {
  position: absolute;
  bottom: 0;
  right: 0;
  padding: 0.5em;
}

#crt {
  position: relative;
  z-index: 10;
  background: #7b8e78;
  width: 1280px;
  height: 900px;
  max-width: 1280px;
  max-height: 1024px;
  border-radius: 1em;
  box-shadow: inset 0.25em 0.25em 2px rgba(255, 255, 255, 0.4), inset -0.25em -0.25em 2px rgba(0, 0, 0, 0.4);
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
  font-size: 1.4em;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  perspective: 1000;
}

#screen {
  position: relative;
  z-index: 20;
  width: calc(100% - 3em);
  height: calc(100% - 3em);
  margin-top: 1.5em;
  margin-left: 1.5em;
  background: #000;
  border-radius: 1em;
  overflow: hidden;
  box-shadow: 0 0 1px 3px rgba(10, 10, 10, 0.7);
}
#screen::before {
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  content: "";
  z-index: 70;
  box-shadow: inset 0 0 1em 0.5em rgba(255, 255, 255, 0.08);
  border-radius: 1em;
}
#screen::after {
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  content: "";
  z-index: 60;
  opacity: 0.1;
  background: linear-gradient(rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.2));
}

#wrapper {
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  transform-origin: 50% 50%;
  transform: skewX(0.5deg);
  animation: pulse 5s linear infinite;
}
#wrapper::before {
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  content: "";
  z-index: 31;
  background: radial-gradient(ellipse at center, rgba(0, 30, 30, 0) 0%, rgba(0, 30, 30, 0.5) 100%);
  pointer-events: none;
}
#wrapper::after {
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  content: "";
  z-index: 32;
  opacity: 0.5;
  background: radial-gradient(ellipse at center, #00ff77 0%, rgba(0, 255, 119, 0) 100%);
  pointer-events: none;
  animation: glow 2s linear infinite;
}

#interlace {
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 21;
  opacity: 0.25;
  background: linear-gradient(#888 50%, #000 50%);
  background-size: 100% 4px;
  background-repeat: repeat-y;
}

#envelope {
  position: absolute;
  left: .2em;
  top: .2em;
  right: .2em;
  bottom: .2em;
  z-index: 40;
  border-radius: 0.5em;
  background: rgba(0, 0, 0, 0.25);
  animation: skew 5s linear infinite;
}

#scanline {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1em;
  opacity: 0.1;
  background: linear-gradient(to bottom, transparent 0%, rgb(255, 250, 250) 50%, rgb(100, 255, 100) 50%, transparent 100%);
  animation: scanline 1.25s linear infinite;
}

#terminal {
  position: relative;
  width: 80%;
  height: 80%;
  z-index: 2000;
  padding:10%;
}

#terminal textarea {
  display: block;
  background: transparent;
  width: 100%;
  height: 100%;
  border: 0 none;
  outline: 0 none;
  box-sizing: border-box;
  margin: 0;
  overflow: hidden;
  padding: 1em;
  font-family: "monofont";
  line-height: 1.25;
  white-space: pre-wrap;
    z-index: 2001;
    position:relative;
    color:#b2cca8;
    font-size:1em;
}
#terminal textarea::placeholder {
    color:#b2cca8;
}

    #terminal input {
        background:transparent;
        border:none;
        text-shadow: 0 0 5px #33ff33;
        min-height:300px;
}

@keyframes scanline {
  0% {
    top: 0;
  }
  100% {
    top: 100%;
  }
}
@keyframes skew {
  0% {
    transform: skewX(0.5deg);
  }
  8% {
    transform: skewX(1deg) scale(1.0001);
  }
  15% {
    transform: skewX(0.6deg) skewY(-0.05deg);
  }
  30% {
    transform: skewX(0.6deg);
  }
  100% {
    transform: skewX(0.1deg);
  }
}
@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.005);
  }
  100% {
    transform: scale(1);
  }
}
@keyframes blur {
  50% {
    color: #00e449;
    text-shadow: 2px 0 2px rgba(255, 255, 255, 0.8);
  }
}
@keyframes glow {
  50% {
    transform: scale(1.2);
  }
}

@media (max-width: 1280px) {
  #crt {
    width: 90vw;
    height: 90vh;
    font-size: 1.2em;
  }
}

button {
  background: black;
  border: 1px solid #33ff33;
  color: #33ff33;
  padding: 5px 10px;
  cursor: pointer;
  text-shadow: 0 0 5px #33ff33;
  z-index: 2002;
  position: relative;
  opacity:0.6;
  border-radius:2px;
  font-size:.5em;
  text-align:center;
  margin-top:20%;
  display: block;
  justify-self: center;
}

button:hover {
  background: #33ff33;
  color: black;
}

#status-msg {
  margin-top: 20px;
  font-size: .5em;
  text-shadow: 0 0 5px #33ff33;
  padding: 20px;
  text-align: center;
}
pre {
    text-align:center;
    white-space: break-spaces;
    width:90%;
    margin-left:5%;
}