:root {
  --primary-color: #ffb000;
  --bright-color: #ff9500;
  --light-color: #ffd699;
  --medium-color: #ffcc66;
  --dark-color: #ffaa55;
  --pale-color: #ffbb44;
  --verylight-color: #ffe6cc;
}

* {
  box-sizing: border-box;
}

html {
  background: #000;
}

body {
  margin: 0;
  padding: 15px 20px;
  min-height: 99%;
  width: 100%;
  min-width: 550px;
  color: var(--primary-color);
  background: #000;
  font-family: cursor, monospace;
  overflow-x: hidden;
}

/* Outer CRT bezel/casing - reduced intensity */
body::before {
  content: "";
  position: fixed;
  top: -5%;
  left: -5%;
  width: 110%;
  height: 110%;
  background:
    radial-gradient(ellipse at center,
      transparent 0%,
      transparent 60%,
      rgba(0, 0, 0, 0.3) 80%,
      rgba(0, 0, 0, 0.6) 95%,
      rgba(0, 0, 0, 0.9) 100%
    );
  pointer-events: none;
  z-index: 2000;
}


/* Terminal container */
#terminal {
}

/* More dramatic screen flicker */
@keyframes flicker {
  0% {
    opacity: 0.95;
  }
  2% {
    opacity: 0.98;
  }
  4% {
    opacity: 1;
  }
  8% {
    opacity: 0.96;
  }
  10% {
    opacity: 1;
  }
  12% {
    opacity: 0.97;
  }
  16% {
    opacity: 1;
  }
  18% {
    opacity: 0.95;
  }
  20% {
    opacity: 1;
  }
  22% {
    opacity: 0.98;
  }
  30% {
    opacity: 1;
  }
  32% {
    opacity: 0.96;
  }
  35% {
    opacity: 1;
  }
  40% {
    opacity: 0.97;
  }
  45% {
    opacity: 1;
  }
  50% {
    opacity: 0.98;
  }
  55% {
    opacity: 1;
  }
  60% {
    opacity: 0.96;
  }
  70% {
    opacity: 1;
  }
  80% {
    opacity: 0.97;
  }
  90% {
    opacity: 1;
  }
  95% {
    opacity: 0.98;
  }
  100% {
    opacity: 1;
  }
}


::selection {
  color: #000000;
  background-color: var(--primary-color);
  text-shadow: none;
}
::-moz-selection {
  color: #000000;
  background-color: var(--primary-color);
  text-shadow: none;
}

textarea {
  left: -1000px;
  position: absolute;
}

b {
  font-weight: bold;
  text-decoration: underline;
  text-shadow:
    0 0 5px var(--bright-color),
    0 0 15px var(--bright-color),
    0 0 25px var(--bright-color);
}

/* Dramatic cursor with intense glow */
.cursor {
  font-size: 16px;
  color: var(--bright-color);
  background-color: var(--bright-color);
  position: relative;
  opacity: 1;
  height: 1em;
  width: 0.6em;
  max-width: 0.6em;
  transform: translateY(2px);
  overflow: hidden;
  display: inline-block;
  animation: blinker 1s linear infinite, glow 2s ease-in-out infinite alternate;
  box-shadow:
    0 0 15px var(--bright-color),
    0 0 30px var(--bright-color),
    0 0 50px var(--bright-color),
    0 0 80px var(--bright-color);
  vertical-align: baseline;
  margin-left: 2px;
}

@keyframes blinker {
  50% {
    opacity: 0;
  }
}

@keyframes glow {
  from {
    box-shadow:
      0 0 15px var(--bright-color),
      0 0 30px var(--bright-color),
      0 0 50px var(--bright-color),
      0 0 80px var(--bright-color);
  }
  to {
    box-shadow:
      0 0 20px var(--bright-color),
      0 0 40px var(--bright-color),
      0 0 70px var(--bright-color),
      0 0 100px var(--bright-color);
  }
}

#command {
  cursor: text;
  height: 50px;
  color: var(--bright-color);
}

#liner {
  line-height: 1.3em;
  margin-top: -2px;
  animation: show 0.5s ease forwards;
  animation-delay: 1.2s;
  opacity: 0;
}

#liner::before {
  color: var(--primary-color);
  content: "visitor@its.selfhostedby.me:~$";
}

#liner.password::before {
  content: "Password:";
}

@keyframes show {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Enhanced text glow */
p {
  display: block;
  line-height: 1.3em;
  margin: 0;
  overflow: hidden;
  white-space: nowrap;
  letter-spacing: 0.05em;
  animation: typing 0.5s steps(30, end);
  text-shadow:
    0 0 5px var(--bright-color),
    0 0 12px var(--bright-color),
    0 0 20px var(--bright-color);
  position: relative;
}

.no-animation {
  animation: typing 0 steps(30, end);
}

.margin {
  margin-left: 20px;
}

@keyframes typing {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

.index {
  color: var(--light-color);
  text-shadow:
    0 0 5px var(--light-color),
    0 0 12px var(--light-color),
    0 0 20px var(--light-color);
}

.color2 {
  color: var(--medium-color);
  text-shadow:
    0 0 5px var(--medium-color),
    0 0 12px var(--medium-color),
    0 0 20px var(--medium-color);
}

.command {
  color: var(--bright-color);
  text-shadow:
    0 0 7px var(--bright-color),
    0 0 15px var(--bright-color),
    0 0 25px var(--bright-color),
    0 0 40px var(--bright-color);
  font-weight: bold;
}

.error {
  color: var(--pale-color);
  text-shadow:
    0 0 5px var(--pale-color),
    0 0 12px var(--pale-color),
    0 0 20px var(--pale-color);
}

.white {
  color: var(--verylight-color);
  text-shadow:
    0 0 5px var(--verylight-color),
    0 0 12px var(--verylight-color),
    0 0 20px var(--verylight-color);
}

.inherit,
a {
  color: var(--dark-color);
  text-shadow:
    0 0 5px var(--dark-color),
    0 0 12px var(--dark-color),
    0 0 20px var(--dark-color);
}

a {
  text-decoration: inherit;
  transition: all 0.1s ease;
}

a:hover {
  background: var(--bright-color);
  color: #000000;
  box-shadow:
    0 0 15px var(--bright-color),
    0 0 30px var(--bright-color),
    0 0 50px var(--bright-color);
  text-shadow: none;
}

a:focus {
  outline: 0;
}

/* Strong chromatic aberration effect */
p, #liner::before, #command, b {
  text-shadow:
    -2px 0 0 rgba(255, 0, 0, 0.5),
    2px 0 0 rgba(0, 255, 255, 0.5),
    0 0 5px var(--bright-color),
    0 0 12px var(--bright-color),
    0 0 20px var(--bright-color);
}

/* Cursor should not have chromatic aberration - keep it solid */
.cursor {
  text-shadow: none !important;
}

.command {
  text-shadow:
    -2px 0 0 rgba(255, 0, 0, 0.6),
    2px 0 0 rgba(0, 255, 255, 0.6),
    0 0 7px var(--bright-color),
    0 0 15px var(--bright-color),
    0 0 25px var(--bright-color),
    0 0 40px var(--bright-color);
}

.index {
  text-shadow:
    -1.5px 0 0 rgba(255, 0, 0, 0.4),
    1.5px 0 0 rgba(0, 255, 255, 0.4),
    0 0 5px var(--light-color),
    0 0 12px var(--light-color),
    0 0 20px var(--light-color);
}

.color2 {
  text-shadow:
    -1.5px 0 0 rgba(255, 0, 0, 0.4),
    1.5px 0 0 rgba(0, 255, 255, 0.4),
    0 0 5px var(--medium-color),
    0 0 12px var(--medium-color),
    0 0 20px var(--medium-color);
}

/* Screen burn-in effect (subtle overlay) */
body > #terminal {
  background:
    linear-gradient(transparent 0%, rgba(0, 0, 0, 0.05) 50%, transparent 100%),
    linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.05) 50%, transparent 100%);
}

/* ===== GLITCH EFFECT STYLES ===== */
.buzz_wrapper {
  position: relative;
  width: 100%;
  margin: 0;
  background-color: #000;
  overflow: visible;
  padding: 0;
}

.scanline {
  width: 100%;
  display: block;
  background: #000;
  height: 4px;
  position: relative;
  z-index: 3;
  margin-bottom: 5px;
  opacity: 0.1;
}

.buzz_wrapper > .text > span {
  position: absolute;
  -webkit-filter: blur(1px);
  filter: blur(1px);
  font-size: inherit;
  font-family: inherit;
  font-weight: inherit;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.buzz_wrapper > .text > span:nth-child(1) {
  color: var(--pale-color);
  margin-left: -2px;
  -webkit-filter: blur(2px);
  filter: blur(2px);
  opacity: 0.3;
}

.buzz_wrapper > .text > span:nth-child(2) {
  color: var(--medium-color);
  margin-left: 2px;
  -webkit-filter: blur(2px);
  filter: blur(2px);
  opacity: 0.3;
}

.buzz_wrapper > .text > span:nth-child(3) {
  color: var(--dark-color);
  -webkit-filter: blur(1px);
  filter: blur(1px);
  opacity: 0.3;
}

.buzz_wrapper > .text > span:nth-child(4) {
  color: #fff;
  -webkit-filter: blur(1px);
  filter: blur(1px);
  text-shadow: 0 0 50px rgba(255, 255, 255, 0.4);
}

.buzz_wrapper > .text > span:nth-child(5) {
  color: rgba(255, 255, 255, 0.4);
  -webkit-filter: blur(15px);
  filter: blur(15px);
}

.buzz_wrapper > .text > span {
  -webkit-animation: blur 20ms infinite; /* jerk 30ms infinite */
  animation: blur 20ms infinite; /* jerk 30ms infinite */
}

@-webkit-keyframes blur {
  0% {
    -webkit-filter: blur(1px);
    opacity: 0.8;
  }
  50% {
    -webkit-filter: blur(1px);
    opacity: 1;
  }
  100% {
    -webkit-filter: blur(1px);
    opacity: 0.8;
  }
}

@keyframes blur {
  0% {
    filter: blur(1px);
    opacity: 0.8;
  }
  50% {
    filter: blur(1px);
    opacity: 1;
  }
  100% {
    filter: blur(1px);
    opacity: 0.8;
  }
}

@-webkit-keyframes jerk {
  50% {
    left: 0.3px;
  }
  51% {
    left: 0;
  }
}

@keyframes jerk {
  50% {
    left: 0.3px;
  }
  51% {
    left: 0;
  }
}

@-webkit-keyframes jerkup {
  50% {
    top: 1px;
  }
  51% {
    top: 0;
  }
}

@keyframes jerkup {
  50% {
    top: 1px;
  }
  51% {
    top: 0;
  }
}

.buzz_wrapper > .text > span:nth-child(3) {
  /* -webkit-animation: jerkblue 0.5s infinite; */
  /* animation: jerkblue 0.5s infinite; */
}

@-webkit-keyframes jerkblue {
  0% {
    left: 0;
  }
  30% {
    left: 0;
  }
  31% {
    left: 10px;
  }
  32% {
    left: 0;
  }
  98% {
    left: 0;
  }
  100% {
    left: 10px;
  }
}

@keyframes jerkblue {
  0% {
    left: 0;
  }
  30% {
    left: 0;
  }
  31% {
    left: 10px;
  }
  32% {
    left: 0;
  }
  98% {
    left: 0;
  }
  100% {
    left: 10px;
  }
}

.buzz_wrapper > .text > span:nth-child(2) {
  /* -webkit-animation: jerkgreen 0.5s infinite; */
  /* animation: jerkgreen 0.5s infinite; */
}

@-webkit-keyframes jerkgreen {
  0% {
    left: 0;
  }
  30% {
    left: 0;
  }
  31% {
    left: -10px;
  }
  32% {
    left: 0;
  }
  98% {
    left: 0;
  }
  100% {
    left: -10px;
  }
}

@keyframes jerkgreen {
  0% {
    left: 0;
  }
  30% {
    left: 0;
  }
  31% {
    left: -10px;
  }
  32% {
    left: 0;
  }
  98% {
    left: 0;
  }
  100% {
    left: -10px;
  }
}

.buzz_wrapper .text {
  /* -webkit-animation: jerkwhole 2s infinite; */
  /* animation: jerkwhole 2s infinite; */
  position: relative;
}

@-webkit-keyframes jerkwhole {
  30% {
  }
  40% {
    opacity: 1;
    top: 0;
    left: 0;
    -webkit-transform: scale(1, 1);
    -webkit-transform: skew(0, 0);
  }
  41% {
    opacity: 0.8;
    top: 0px;
    left: -100px;
    -webkit-transform: scale(1, 1.2);
    -webkit-transform: skew(50deg, 0);
  }
  42% {
    opacity: 0.8;
    top: 0px;
    left: 100px;
    -webkit-transform: scale(1, 1.2);
    -webkit-transform: skew(-80deg, 0);
  }
  43% {
    opacity: 1;
    top: 0;
    left: 0;
    -webkit-transform: scale(1, 1);
    -webkit-transform: skew(0, 0);
  }
  65% {
  }
}

@keyframes jerkwhole {
  30% {
  }
  40% {
    opacity: 1;
    top: 0;
    left: 0;
    transform: scale(1, 1);
    transform: skew(0, 0);
  }
  41% {
    opacity: 0.8;
    top: 0px;
    left: -100px;
    transform: scale(1, 1.2);
    transform: skew(50deg, 0);
  }
  42% {
    opacity: 0.8;
    top: 0px;
    left: 100px;
    transform: scale(1, 1.2);
    transform: skew(-80deg, 0);
  }
  43% {
    opacity: 1;
    top: 0;
    left: 0;
    transform: scale(1, 1);
    transform: skew(0, 0);
  }
  65% {
  }
}
