:root {
  --bg: #0b0e14;
  --text: #e6e6e6;
  --user: #7dcfff;
  --path: #98c379;
  --symbol: #e6e6e6;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Source Code Pro", "JetBrains Mono", "Fira Code", monospace;
}

#intro {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 2rem;
  font-weight: bold;
  z-index: 1000;
  transition: top 0.5s ease-out;
}

#intro.top {
  top: 20px;
  transform: translate(-50%, 0);
  font-size: 1.2rem;
}

#main {
  transition: opacity 0.5s ease-in;
}

.user { color: var(--user); }
.directory { color: var(--path); }
.domain { color: var(--user); }



/* THEMES */
body[data-theme="green"] {
  color: #00ff00;
}

body[data-theme="white"] {
  color: #f5f5f5;
}

body[data-theme="amber"] {
  color: #ffbf00;
}

/* Errors & accents */
.error { 
  color: #ff5555;
  font-weight: 500;
}

.teal { color: #4ec9b0; }
.yellow { color: #dcdcaa; }
.blue { color: #569cd6; }
.purple { color: #c586c0; }
.pink { color: #ce9178; }
.grey { 
  color: #858585; 
  opacity: 0.8;
}
.tick {
  margin: 0 0.3rem;
  opacity: 0.7;
}

html, body {
  height: 100%;
  margin: 0;
}

.terminal {
  min-height: 100vh;
  padding: 1rem;
  line-height: 1.6;
}

#commandLines {
  margin-bottom: 1rem;
}

.line {
  margin-bottom: 1.5rem;
}

.command-sep {
  margin: 0 0 0.5rem 0;
  padding: 0;
  font-size: 0.95em;
  opacity: 0.9;
}

.command-text {
  color: inherit;
  font-weight: 500;
}

.command-output {
  margin: 0.5rem 0 0 0;
  padding: 0;
  list-style: none;
}

.command-output li {
  margin: 0.4rem 0;
  padding: 0;
}

.output-line {
  margin: 0;
  padding: 0;
  white-space: pre-wrap;
  word-wrap: break-word;
  font-family: inherit;
}

.image-container {
  margin: 0.5rem 0;
  padding: 0;
  display: block;
  text-align: center;
}

.image-container img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 8px;
}

/* Better spacing for specific command outputs */
.command-output.help li {
  margin: 0.3rem 0;
}

.command-output.ls {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.5rem 2rem;
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0 0;
  align-items: start;
}

.command-output.ls li {
  margin: 0;
  padding: 0.2rem 0;
  white-space: nowrap;
  font-family: monospace;
  overflow: visible;
  min-width: 0;
}

.command-output.ls pre {
  white-space: pre;
  margin: 0;
  padding: 0;
  display: inline;
  font-family: inherit;
  word-break: keep-all;
}

/* Responsive: 2 columns on smaller screens */
@media (max-width: 768px) {
  .command-output.ls {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem 1rem;
  }
}

/* Single column on very small screens */
@media (max-width: 480px) {
  .command-output.ls {
    grid-template-columns: 1fr;
    gap: 0.3rem;
  }
  
  .command-output.ls li {
    white-space: normal;
  }
}

.command-output.Projects li {
  margin: 0.5rem 0;
  line-height: 1.5;
}

.prompt {
  margin-top: 1rem;
  display: flex;
  align-items: center;
  gap: 4px;
}

.prompt input {
  flex: 1;
  min-height: 1.6em;
  font-size: 1em;
  background: transparent;
  border: none;
  color: inherit;
  outline: none;
  caret-color: currentColor;
}



a {
  color: inherit;         /* Same color as current theme */
  text-decoration: none;  /* Remove underline */
  cursor: pointer;        /* Optional, looks clickable */
}

a:hover {
  text-decoration: underline; /* Optional for hover effect */
}

.caret {
  display: inline-block;
  width: 8px;
  height: 16px;
  background: currentColor;
  animation: blink 1s steps(2) infinite;
}

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

[data-theme="green"] { color: #00ff00; }
[data-theme="amber"] { color: #ffbf00; }


#app {
  font-family: 'Source Code Pro', sans-serif;
  font-size: 14px;
  font-weight: bold;
  height: 100%;
  width: 100%;
  line-height: 1.35rem;
}

/* Responsive rules preserved */
@media (max-width: 599px) {
  #app { font-size: 2.8vw; }
}

@media (min-width: 950px) {
  #app { font-size: 2.7vw; }
}

@media (min-width: 1000px) {
    #app {
        font-size: 16px;
        padding: 1rem;
    }
}

@media (min-width: 1400px) {
  #app {
    font-size: 16px;
    padding: 1rem;
  }
}

.dark-mode {
  background: #303446;
  color: #c6d0f5;
}

.light-mode {
  background: smoke-gray;
  color: #4c4f69;
}
