:root {
    --background: #050505;
    --terminal: #080808;
    --terminal-secondary: #0d0d0d;
  
    --text: #f5f5f5;
    --dim: #8a8a8a;
    --accent: #f5f5f5;
    --border: #292929;
    --danger: #ff5f5f;
  
    --font:
      "SFMono-Regular",
      "SF Mono",
      "Cascadia Code",
      "Roboto Mono",
      "Liberation Mono",
      Menlo,
      monospace;
  }
  
  
  * {
    box-sizing: border-box;
  }
  
  
  html,
  body {
    margin: 0;
    min-height: 100%;
    background: var(--background);
  }
  
  
  body {
    min-height: 100vh;
  
    display: flex;
    justify-content: center;
    align-items: center;
  
    padding: 32px;
  
    font-family: var(--font);
    color: var(--text);
  
    overflow: hidden;
  }
  
  
  /* subtle background grid */
  
  body::before {
    content: "";
  
    position: fixed;
    inset: 0;
  
    pointer-events: none;
  
    background-image:
      linear-gradient(
        rgba(255,255,255,0.015) 1px,
        transparent 1px
      ),
      linear-gradient(
        90deg,
        rgba(255,255,255,0.015) 1px,
        transparent 1px
      );
  
    background-size: 40px 40px;
  }
  
  
  /* CRT scanline */
  
  body::after {
    content: "";
  
    position: fixed;
    inset: 0;
  
    pointer-events: none;
  
    background:
      repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(255,255,255,0.012) 3px
      );
  }
  
  
  .terminal {
    position: relative;
  
    width: min(1100px, 100%);
    height: min(760px, 88vh);
  
    display: flex;
    flex-direction: column;
  
    background: var(--terminal);
  
    border: 1px solid var(--border);
    border-radius: 12px;
  
    box-shadow:
      0 30px 100px rgba(0,0,0,0.65),
      0 0 0 1px rgba(255,255,255,0.02);
  
    overflow: hidden;
  }
  
  
  /* HEADER */
  
  .terminal-header {
    height: 46px;
    min-height: 46px;
  
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
  
    padding: 0 15px;
  
    background: var(--terminal-secondary);
  
    border-bottom: 1px solid var(--border);
  
    font-size: 12px;
  }
  
  
  .window-controls {
    display: flex;
    gap: 7px;
  }
  
  
  .dot {
    width: 10px;
    height: 10px;
  
    border-radius: 50%;
  
    background: #343934;
  }
  
  
  .terminal-title {
    color: var(--dim);
  }
  
  
  
  
  /* BODY */
  
  .terminal-body {
    flex: 1;
  
    padding: 26px;
  
    overflow-y: auto;
  
    scroll-behavior: smooth;
  }
  
  
  .output {
    white-space: pre-wrap;
    line-height: 1.6;
    font-size: 14px;
  }
  
  
  .output-line {
    margin: 0 0 5px;
  }
  
  
  .accent {
    color: var(--accent);
  }
  
  
  .dim {
    color: var(--dim);
  }
  
  
  .error {
    color: var(--danger);
  }
  
  
  .command-history {
    color: var(--text);
    margin-top: 18px;
  }
  
  
  .command-history .prompt-text {
    color: var(--accent);
  }
  
  
  /* INPUT */
  
  .command-line {
    display: flex;
    align-items: center;
  
    margin-top: 15px;
  
    font-size: 14px;
  }
  
  
  .prompt {
    color: var(--accent);
  
    white-space: nowrap;
  
    margin-right: 10px;
  }
  
  
  #command-input {
    flex: 1;
  
    min-width: 0;
  
    border: none;
    outline: none;
  
    background: transparent;
  
    color: var(--text);
  
    caret-color: var(--accent);
  
    font: inherit;
  }
  
  
  .cursor {
    width: 8px;
    height: 16px;
  
    margin-left: 2px;
  
    background: var(--accent);
  
    animation: blink 1s step-end infinite;
  
    display: none;
  }
  
  
  @keyframes blink {
    50% {
      opacity: 0;
    }
  }
  
  
  /* LINKS */
  
  a {
    color: var(--accent);
  
    text-decoration: none;
  }
  
  
  a:hover {
    text-decoration: underline;
  }
  
  
  /* SCROLLBAR */
  
  .terminal-body::-webkit-scrollbar {
    width: 8px;
  }
  
  
  .terminal-body::-webkit-scrollbar-track {
    background: transparent;
  }
  
  
  .terminal-body::-webkit-scrollbar-thumb {
    background: #262c26;
    border-radius: 100px;
  }
  
  
  /* MOBILE */
  
  @media (max-width: 700px) {
  
    body {
      padding: 0;
    }
  
    .terminal {
      width: 100vw;
      height: 100vh;
  
      border-radius: 0;
      border: none;
    }
  
    .terminal-body {
      padding: 18px;
    }
  
    .terminal-header {
      grid-template-columns: 1fr auto;
    }
  
    .terminal-title {
      display: none;
    }
  
    .output,
    .command-line {
      font-size: 12px;
    }
  
  }

  /* ============================================================
   COLOR THEMES
   ============================================================ */

body.theme-rainbow .output-line,
body.theme-rainbow .prompt,
body.theme-rainbow .prompt-text,
body.theme-rainbow .terminal-title,
body.theme-rainbow a,
body.theme-rainbow .accent {
  background: linear-gradient(
    90deg,
    #ff4d4d,
    #ff9f43,
    #ffe66d,
    #5cff8d,
    #4da3ff,
    #9b59ff,
    #ff5fb7,
    #ff4d4d
  );

  background-size: 400% 100%;

  -webkit-background-clip: text;
  background-clip: text;

  color: transparent !important;

  animation: rainbowShift 5s linear infinite;
}

body.theme-rainbow #command-input {
  color: #ffffff;
  caret-color: #ffffff;
}

@keyframes rainbowShift {
  0% {
    background-position: 0% 50%;
  }

  100% {
    background-position: 400% 50%;
  }
}


/* GitHub repo entries */

.repo-entry {
  margin: 18px 0;
  line-height: 1.6;
}

.repo-description {
  color: var(--dim);
}

.repo-meta {
  color: var(--dim);
  font-size: 12px;
}