* {
  margin: 0;
  padding: 0;
}

/* From: https://anderse.wordpress.com/2014/04/18/css-and-javascript-retro-terminal-emulator-demo/ */
/**
 * AnderShell - Just a small CSS demo
 *
 * Copyright (c) 2011-2013, Anders Evenrud <andersevenrud@gmail.com>
 * All rights reserved.
 * 
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are met: 
 * 
 * 1. Redistributions of source code must retain the above copyright notice, this
 *    list of conditions and the following disclaimer. 
 * 2. Redistributions in binary form must reproduce the above copyright notice,
 *    this list of conditions and the following disclaimer in the documentation
 *    and/or other materials provided with the distribution. 
 * 
 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
 * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
 * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 */
/* With simplifications and modifications by Robert Bottomley. */
.crt-bezel {
  display: inline-block;
  position: relative;
  margin: 0;
  box-shadow: inset 0 0 1px 0.66667em #000;
  border-radius: 1.33333em;
  background: #1D1D1D;
  overflow: hidden;
  font-size: clamp(6px, 1.5vw, 20px);
  line-height: 1.33333;
  width: 100%;
}
.crt-bezel:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  background: linear-gradient(135deg, rgba(149, 149, 149, 0.5) 0%, rgba(13, 13, 13, 0.55) 19%, rgba(1, 1, 1, 0.64) 50%, rgba(10, 10, 10, 0.69) 69%, rgba(51, 51, 51, 0.73) 84%, rgba(22, 22, 22, 0.76) 93%, rgba(27, 27, 27, 0.78) 100%);
  opacity: 0.5;
}
.crt-bezel:after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  background-color: #ddd;
  opacity: 0.1;
}

.crt {
  position: relative;
  margin: 1.66667em;
  border-radius: 1.33333em;
  box-shadow: 0 0 1px 3px rgba(10, 10, 10, 0.7);
  background: #141414;
  overflow: hidden;
  z-index: 3;
}
.crt:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  box-shadow: inset 0 0 5px 5px rgba(255, 255, 255, 0.1);
  border-radius: 1.33333em;
  background: radial-gradient(ellipse at center, rgba(255, 176, 0, 0.1) 0%, rgba(255, 255, 255, 0) 100%);
  z-index: -1;
}

.crt-scan-area {
  /* width: 80ch; */
  width: 90%;
  height: 31.99992em;
  margin: 2.66667em;
  overflow-y: hidden;
  white-space: pre-wrap;
  font-family: monospace;
  color: #ffb000;
  text-shadow: 0 0 1px rgba(255, 176, 0, 0.8);
  display: flex;
  flex-direction: column-reverse;
}
.crt-scan-area em {
  color: #141414;
  background-color: #ffb000;
  font-style: normal;
}
