@import url('https://fonts.googleapis.com/css2?family=Share+Tech+Mono&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: #000;
  color: #33ff33;
  font-family: 'Share Tech Mono', 'Courier New', monospace;
  font-size: 22px;
  line-height: 1.6;
  padding: 2rem;
  min-height: 100vh;
}

#main {
  display: flex;
  gap: 3rem;
  max-width: 1300px;
  margin: 0 auto;
  height: calc(100vh - 4rem);
  overflow: hidden;
}

#terminal {
  flex: 0 0 auto;
  overflow-y: auto;
  min-height: 0;
}

#detail {
  flex: 1;
  border-left: 1px solid transparent;
  padding-left: 2rem;
  transition: border-color 0.5s ease;
  overflow-y: auto;
  min-height: 0;
}

#detail.visible {
  border-left-color: #33ff33;
}

.selected {
  background-color: #33ff33;
  color: #000;
  cursor: pointer;
}

.selected a {
  color: #000;
}

.line {
  white-space: pre-wrap;
  min-height: 1.6em;
}

.caret {
  display: inline-block;
  width: 0.6em;
  height: 1.1em;
  background-color: #33ff33;
  vertical-align: text-bottom;
  animation: blink 1s step-end infinite;
}

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

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

#terminal .nav-link {
  text-decoration: none;
}

a:hover {
  color: #aaffaa;
}

.spacer {
  height: 1rem;
}

/* Firefox */
#terminal, #detail {
  scrollbar-color: #33ff33 #000;
  scrollbar-width: thin;
}

/* Chrome/Safari/Edge */
#terminal::-webkit-scrollbar,
#detail::-webkit-scrollbar {
  width: 6px;
}

#terminal::-webkit-scrollbar-track,
#detail::-webkit-scrollbar-track {
  background: #000;
}

#terminal::-webkit-scrollbar-thumb,
#detail::-webkit-scrollbar-thumb {
  background: #33ff33;
}
