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

.overlay {
  pointer-events: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  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: 5;
  margin: 0;
}

.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(255, 255, 255, 0.2) 2%,
    rgba(255, 255, 255, 0.8) 3%,
    rgba(255, 255, 255, 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;
  }
}

figure {
  position: relative;
}

div.shard {
  position: absolute;
  z-index: 2;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  margin-top: 0;
}

.shard img {
  display: none;
}

.image-shards {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  margin-top: 0;
}

.image-shard {
  position: absolute;
  background-repeat: no-repeat;
  opacity: 0.95;
  pointer-events: none;
  margin: 0;
}

.image-shard.base-shard {
  z-index: 1;
  margin: 0;
}

.image-shard.flicker-shard {
  z-index: 10;
  margin: 0;
}

.output-container {
  overflow-x: auto;
}

#output .output {
  min-width: 64ch;
  white-space: pre-wrap;
  word-wrap: break-word;
  word-break: break-all;
}

#output .output span {
  word-break: break-word;
}

#output .output.error {
  color: #ff6b6b;
}

.prompt {
  color: #4ecdc4;
  font-weight: bold;
}
#input-line {
  display: flex;
  align-items: center;
}

#command-input {
  background: transparent;
  border: none;
  color: inherit;
  flex: 1;
  font: inherit;
  height: calc(var(--line-height));
  outline: none;
  padding: 0 calc(1ch);
  width: auto;
}

* + * {
  margin-top: 0;
}

iframe {
  display: block;
  width: 100%;
  object-fit: contain;
  overflow: hidden;
  height: calc(var(--line-height) * 40);
}

.clickable-command,
a:link,
a:visited {
  color: #4ecdc4;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: rgba(78, 205, 196, 0.5);
  transition:
    color 0.2s ease,
    text-decoration-color 0.2s ease;
}

.clickable-command:hover,
a:hover {
  color: #26a69a;
  text-decoration-color: rgba(38, 166, 154, 0.8);
}
