body {
  margin: 0;
  padding: 0;
  background-color: #111;
  font-family: 'Courier New', Courier, monospace;
  color: #33ff33;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

.terminal-window {
  width: 70%;
  background-color: #000;
  border-radius: 8px;
  box-shadow: 0 0 20px #000;
  display: flex;
  flex-direction: column;
  max-height: 90vh;
}

.terminal-content {
  padding: 1.2rem;
  font-size: 1.1rem;
  line-height: 1.6;
  height: 65vh;
  overflow-y: auto;
}

.title-bar {
  display: flex;
  align-items: center;
  padding: 0.4rem;
  background-color: #222;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin-right: 6px;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .terminal-window {
    width: 90%;
  }
}

@media (max-width: 600px) {
  .terminal-window {
    width: 95%;
    font-size: 0.85rem;
  }

  .terminal-content {
    font-size: 1rem;
    height: calc(1.5em * 18); /* Shorter height for small screens */
  }

  .title-bar {
    padding: 0.3rem;
  }

  .dot {
    width: 10px;
    margin-right: 4px;
  }
}

@media (max-width: 480px) and (orientation: portrait) {
  .terminal-window {
    width: 95%;
    max-width: 95%;
  }

  .terminal-content {
    font-size: 1.05rem;
    height: calc(1.6em * 16); /* shorter height, fewer lines */
    padding: 1rem;
  }

  .mobile-message {
    font-size: 1rem;
    padding: 0.8rem 1rem;
  }

  .dot {
    width: 10px;
    height: 10px;
  }
}

.title-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.3rem 0.6rem;
  background-color: #222;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
  color: #aaa;
  font-size: 0.95rem;
}

.title-text {
  font-weight: bold;
  font-family: 'Courier New', Courier, monospace;
}

.window-controls {
  display: flex;
  gap: 0.4rem;
}

.window-controls .btn {
  background: #444;
  color: #eee;
  border: none;
  border-radius: 2px;
  width: 28px;
  height: 24px;
  font-size: 1rem;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s;
}

.window-controls .btn:hover {
  background: #666;
}

.window-controls .close:hover {
  background-color: #aa0000;
}

.window-controls .minimize:hover {
  background-color: #444477;
}

.window-controls .maximize:hover {
  background-color: #007700;
}

.window-controls button {
  background: none;
  border: none;
  padding: 0.25rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.window-controls svg {
  stroke: #ccc;
  width: 14px;
  height: 14px;
}

.window-controls button:hover svg {
  stroke: #fff;
}

.maximize-btn {
  color: #aaa;
  font-size: 1.2rem;
  cursor: pointer;
  margin-left: auto;
  margin-right: 0.5rem;
  transition: color 0.2s;
}

.maximize-btn:hover {
  color: #fff;
}

.terminal-window.fullscreen {
  width: 98vw !important;
  height: 95vh !important;
}

.terminal-window.fullscreen .terminal-content {
  height: calc(95vh - 4rem) !important; /* adjust based on padding/title bar */
  font-size: 1.15rem;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin-right: 6px;
}

.dot.red { background-color: #ff5f56; }
.dot.yellow { background-color: #ffbd2e; }
.dot.green { background-color: #27c93f; }

/* .prompt-line {
  display: flex;
  white-space: pre-wrap;
} */

.motd {
  color: #33ff33;
  font-family: monospace;
  white-space: pre-wrap;
}

.mobile-message {
  background-color: #000;
  color: #00cc66;
  font-size: 0.95rem;
  font-style: italic;
  padding: 0.8rem 1.2rem;
  border-top: 1px solid #222;
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
}

#user-input {
  outline: none;
  white-space: pre;
  min-width: 1ch;
  font-family: monospace;
  font-size: inherit;
  color: inherit;
}

#terminal-output {
  margin-top: 1rem;
/*  font-family: monospace;
  font-size: 0.9rem;
  line-height: 1.4;
  white-space: pre-wrap;
  word-wrap: break-word;
  color: #ccc; */
}

.ls-folder {
  color: #00d0ff; /* cyan */
  font-weight: bold;
}

.ls-file {
  color: #cccccc;
}

.ls-script {
  color: #00ff00; /* green */
}

.ls-log {
  color: #ffaa00; /* orange */
}

.ls-pdf {
  color: #ff5555; /* reddish */
}

.blinking-cursor {
  width: 10px;
  background-color: #33ff33;
  margin-left: 4px;
  animation: blink 1s step-start infinite;
}

@keyframes blink {
  50% { background-color: transparent; }
}

@media (max-width: 768px) {
  .terminal-window {
    width: 90%;
  }
}
.chicken {
  position: absolute;
  font-size: 2rem;
  z-index: 100;
  top: 50%;
  left: -50px;
  animation: wander 20s linear infinite;
  transform: scaleX(1);
}

.graffiti-message {
  font-family: monospace;
  color: #33ff33;
  background-color: #111;
  padding: 2px;
  display: block;
}

@keyframes wander {
  0% {
    top: 60%;
    left: -50px;
    transform: scaleX(1); /* facing right */
  }
  50% {
    top: 62%;
    left: calc(100% + 50px);
    transform: scaleX(1);
  }
  50.0001% {
    transform: scaleX(-1); /* flip to face left */
  }
  100% {
    top: 64%;
    left: -50px;
    transform: scaleX(-1);
  }
}

.footer {
  color: #33ff33;
  font-family: monospace;
  text-align: center;
  margin-top: 1rem;
}

.footer a {
  color: #33ff33;
  text-decoration: underline;
}
