    @import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@700&display=swap');

    * { margin: 0; padding: 0; box-sizing: border-box; }
    body {
      font-family: 'Orbitron', sans-serif;
      background-color: #000;
      color: #0f0;
      line-height: 1.6;
      overflow-x: hidden;
    }
    #matrix-canvas {
      position: fixed;
      top: 0; left: 0;
      width: 100%; height: 100%;
      z-index: 0;
    }
    .container {
      max-width: 1000px;
      margin: auto;
      padding: 60px 20px;
      position: relative;
      z-index: 2;
    }
    header { display: none; text-align: center; }
    header h1 {
      font-size: 3.5rem;
      color: #0f0;
      text-shadow: 0 0 12px #0f0, 0 0 4px #0f0;
      margin-bottom: 16px;
    }
    header p {
      font-size: 1.4rem;
      color: #caffca;
      text-shadow: 0 0 4px rgba(0, 255, 0, 0.4);
    }
    #bootScreen {
      position: fixed;
      top: 0; left: 0;
      width: 100%; height: 100%;
      background-color: black;
      color: #0f0;
      display: flex;
      align-items: center;
      justify-content: center;
      font-family: monospace;
      font-size: 6rem;
      font-weight: bold;
      z-index: 1000;
      text-align: center;
      flex-direction: column;
      text-shadow: 0 0 12px #0f0;
    }
    #mainContent { display: none; }
    #taskbar {
      position: fixed;
      bottom: 0;
      width: 100%;
      height: 100px;
      background-color: #000;
      border-top: 1px solid #0f0;
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 0 40px;
      z-index: 999;
    }
    .taskbar-left {
      display: flex;
      align-items: center;
      gap: 20px;
    }
    .start-menu-button {
      background-color: #0f0;
      color: #000;
      font-weight: bold;
      padding: 24px 40px;
      border: none;
      cursor: pointer;
      font-family: monospace;
      text-shadow: 0 0 3px #000;
      font-size: 2rem;
    }
    .taskbar-tasks {
      display: flex;
      gap: 12px;
    }
    .taskbar-task {
      background-color: #111;
      color: #0f0;
      padding: 12px 24px;
      border: 1px solid #0f0;
      cursor: pointer;
      font-family: monospace;
    }
    #startMenu {
      display: none;
      position: fixed;
      bottom: 110px;
      left: 20px;
      background-color: #000;
      color: #0f0;
      border: 2px solid #0f0;
      padding: 40px;
      font-family: monospace;
      font-size: 2.4rem;
      z-index: 1001;
      box-shadow: 0 0 12px #0f0;
    }
    
    #terminalWindow {
      display: none;
      position: absolute;
      top: 120px;
      left: 100px;
      width: 700px;
      height: 450px;
      background-color: #111;
      color: #0f0;
      border: 2px solid #0f0;
      font-family: monospace;
      font-size: 1.6rem;
      z-index: 1002;
      box-shadow: 0 0 12px #0f0;
    }
    .terminalHeader {
  background-color: #0f0;
  color: #000;
  padding: 16px;
  cursor: move;
  font-weight: bold;
  display: flex;
  justify-content: space-between;
  align-items: center;
  touch-action: none; /* ← Better mobile dragging support */
}
    
    .terminal-title {
  flex-grow: 1;
  text-align: center;
  font-weight: bold;
  font-size: 1.8rem;
}

    .terminal-buttons {
      display: flex;
      gap: 8px;
    }
    .terminal-button {
  width: 36px;
  height: 36px;
  font-size: 1.8rem;
  font-weight: bold;
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  padding: 0;
}

.minimize-button {
  background-color: #ff0;
}

.close-button {
  background-color: #f00;
}
    #terminalContent { padding: 24px; }
    .terminal-version {
      color: #0f0;
      font-family: monospace;
      font-size: 1.6rem;
      margin-left: auto;
    }
    @keyframes fadeOut {
      from { opacity: 1; }
      to { opacity: 0; }
    }
    @media screen and (max-width: 768px) {
      #bootScreen { font-size: 3rem; }
      #startMenu { font-size: 1.4rem; padding: 16px; }
    }
    

@keyframes blink {
  50% { opacity: 0; }
}

.terminal-prompt {
  font-family: monospace;
  font-size: 1.6rem;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
}

.terminal-prefix-block {
  flex-shrink: 0;
}


.typed-output-wrapper {
  flex: 1;
  white-space: pre-wrap;
  word-break: break-word;
}


.terminal-prefix {
  font-weight: bold;
  color: #0f0;
}


.terminalContent {
  padding: 24px;
  overflow-y: auto;
  max-height: 100%;
}

.terminal-pre {
  font-family: monospace;
  font-size: 1.6rem;
  white-space: pre-wrap;
  word-break: break-word;
  color: #0f0;
  margin: 0;
  padding: 0;
}

.terminal-prefix {
  font-weight: bold;
  color: #2d9368;
  display: inline;
}

.terminal-colon {
  font-weight: bold;
  color: #fff;
  display: inline;
}

.typed-output {
  display: inline;
  white-space: pre-wrap;
  word-break: break-word;
  font-family: monospace;
  font-size: 1.6rem;
  color: #fff;
}


.terminal-cursor {
  display: inline-block;
  width: 0.65ch;
  height: 1em;
  background-color: #fff;
  animation: terminal-blink 1s steps(1) infinite;
  vertical-align: middle; /* <-- change this from bottom to middle */
  line-height: 1;
}

.start-menu-button:hover {
  background-color: #0b0; /* Slightly deeper green */
  color: #000;
  box-shadow: 0 0 6px #0f0;
}

.taskbar-task:hover {
  background-color: #0b0;
  color: #000;
  box-shadow: 0 0 6px #0f0;
}

#startMenu ul li span {
  display: flex;
  align-items: center;
  padding: 12px 24px;          /* ✅ Equal spacing on left & right */
  border-radius: 6px;
  white-space: nowrap;
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
  text-align: left;          /* ✅ ← right here */
}


#startMenu ul li {
  padding: 12px 0;
  cursor: pointer;
  position: relative;
  list-style: none;
}


#startMenu > ul > li:hover > span {
  background-color: rgba(0, 255, 0, 0.2);
  box-shadow: 0 0 10px #0f0;
}


.terminal-username {
    color: #2d9368;
  font-weight: bold;
  font-family: monospace;
}

.terminal-at {
  color: #2d9368;
}

.terminal-host {
  color: #fff;
}


.terminal-button span {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none; /* ensures the <span> doesn't steal the tap event */
}

/* Animation keyframes */
@keyframes minimizeTerminal {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(0.8); opacity: 0; }
}

@keyframes restoreTerminal {
  0% { transform: scale(0.8); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes terminal-blink {
  0% { opacity: 1; }
  50% { opacity: 0; }
  100% { opacity: 1; }
}


/* Apply animation class */
.terminal-minimizing {
  animation: minimizeTerminal 0.3s ease forwards;
}

.terminal-restoring {
  animation: restoreTerminal 0.3s ease forwards;
}

.has-submenu {
  position: relative;
}

.has-submenu > .submenu {
  display: none;
  position: absolute;
  bottom: 0;
  left: 100%;
  background-color: #000;
  border: 2px solid #0f0;
  padding: 20px;
  font-size: 2rem;
  font-family: monospace;
  box-shadow: 0 0 12px #0f0;
  z-index: 1002;
}

.has-submenu:hover > .submenu {
  display: block;
}

.submenu li {
  list-style: none;
  margin-bottom: 12px;
  cursor: pointer;
}

.submenu li span {
  display: flex;
  align-items: center;
  padding: 12px 24px;
  border-radius: 6px;
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.submenu li:hover span {
  background-color: rgba(0, 255, 0, 0.2);
  box-shadow: 0 0 10px #0f0;
}

