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

:root {
  --background: transparent;
  --size: 1.4;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {

  position: absolute;
  padding: 0;
  overflow-x: hidden; /* Prevent horizontal scrolling */
  overflow-wrap: normal; /* Breaks long words to prevent overflow */
  max-width: 100vw; /* Limit width to viewport width */

  margin: 0;
  box-sizing: border-box;
  height: 100%;
  width: 100%;
  background-color: #121c26;
  background-image: radial-gradient(#2c3a4d, #041116), url("assets/noise.gif");
  background-repeat: no-repeat;
  background-size: cover;
  color: rgb(111, 163, 208);
  text-shadow:
      0 0 0.18ex rgb(154, 208, 250),
      0 0 0.18ex rgba(255, 255, 255, 0.8);

}

.noise {
  pointer-events: none;
  position: absolute;
  width: 100%;
  height: 100%;
  min-height: 100%;
  background-image: url("assets/noise.gif");
  background-repeat: no-repeat;
  background-size: cover;
  z-index: -1;
  opacity: .009;
}

.overlay {
  pointer-events: none;
  position: absolute;
  width: 100%;
  height: 100%;
  min-height: 100%;
  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;
  opacity: .4;
}

.overlay::before {
  content: "";
  pointer-events: none;
  position: absolute;
  display: block;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  min-height: 100%;
  background-image: linear-gradient(
      0deg,
      transparent 30%,
      rgba(32, 91, 128, 0.2) 2%,
      rgb(88, 183, 255) 3%,
      rgba(32, 88, 128, 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; }
}

.help {
  margin-top: 2rem;
  margin-bottom: 3rem;
  display: grid;
  grid-template-columns: max-content max-content;
  gap: 5px;
  grid-column-gap: 4rem;
  max-width: 900px;
}

.help .helpDescription {
  max-width: 600px;
  overflow-wrap: break-word;
  margin-bottom: 0.2rem;
}

.help .helpHeader {
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}

.help .helpMobileHeader {
    display: none;
}

.about {
  margin-top: 2rem;
  margin-bottom: 3rem;
  margin-right: 5rem;
  max-width: 900px;
}

/* Responsive adjustments */
@media (max-width: 900px) {
  .help {
    grid-template-columns: 1fr; /* Change to a single column layout */
  }
  .help .helpHeader {
    display: none; /* Hide the help header */
  }
  .help .helpMobileHeader {
    display: block; /* Show the mobile help header */
    text-transform: uppercase;
    margin-bottom: 1rem;
  }

  .about {
    margin-right: 1rem; /* Remove the right margin */
  }
}


#terminal {
  height: 100%;
  width: 100%;
  background-color: transparent;
  color: rgb(111, 163, 208);
  font-family: Inconsolata, monospace !important;
  font-size: 1.2rem;
  overflow: auto;
  overflow-wrap: normal; /* Breaks long words to prevent overflow */
  text-shadow:
          0 0 0.15ex rgb(255, 255, 255),
          0 0 0.58ex rgb(8, 163, 255);
  opacity: 0.8;
  padding-bottom: 3rem;
}

.terminal-type > input {
  color: #ffffff !important;
  text-shadow:
          0 0 0.15ex rgb(255, 255, 255),
          0 0 0.58ex rgb(8, 163, 255);
  caret-color: rgb(255, 108, 0);
}

.terminal-type > input::placeholder {
  color: #ffffff !important;
  opacity: 0.6;
  font-style: italic;
}

.terminal-type > input:focus::placeholder {
  opacity: 0 !important;
}

.terminal * {
  font-family: unset !important;
  font-size: unset;
}

.terminal-container {
}

.terminal-container > p {
}

.banner {
}

.terminal-command {
  color: #ffffff !important;
}

.terminal-error {
  color: #ff374f !important;
  text-shadow:
          0 0 0.18ex rgb(255, 64, 64),
          0 0 0.18ex rgb(255, 0, 0);
  opacity: 1 !important;
}

/* Responsive adjustments to avoid slide */
@media (max-width: 600px) {
  .terminal-type {
    display: grid !important;
  }

  .terminal-type > input {
    margin-top: 5px;
  }

  .terminal-command {
    overflow-wrap: break-word;
  }

  .terminal-error {
    overflow-wrap: break-word;
  }
}

input text {
  text-transform: lowercase;
}

.terminal a {
  color: #00aad0 !important;
  text-decoration: underline !important;
  text-underline-offset: 5px;
  font-weight: bold !important;
  text-shadow:
          0 0 0.12ex rgb(83, 176, 255),
          0 0 0.12ex rgb(0, 144, 255);
  opacity: 1 !important;
}

.terminal strong {
  color: #ff8b33;
  font-weight: bold;
  text-shadow:
          0 0 0.12ex rgb(255, 148, 78),
          0 0 0.12ex rgb(255, 119, 31);
  opacity: 1 !important;
}

.terminal em {
  color: rgb(178 219 255) !important;
  font-style: normal;
  font-weight: bold !important;
  text-shadow:
          0 0 0.14ex rgb(147, 211, 255),
          0 0 0.14ex rgb(113, 198, 255);
  opacity: 1.0 !important;
}

.quote {
  font-style: italic;
}

.blinking {
  animation: blinker 1s steps(1, start) infinite;
}

@keyframes blinker {
  0%, 50% {
    opacity: 1;
  }
  51%, 100% {
    opacity: 0;
  }
}

