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

html {
  background-color: black;
}

html,
body {
  height: 100%;
  overflow: hidden;
  color: #e0e0e0;
  font-family: "Consolas", "Monaco", "Courier New", monospace;
  font-size: 16px;
  margin: 0;
  padding: 0;
}

#matrix-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  display: block;
}

#terminal-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  max-width: 800px;
  height: 70%;
  max-height: 600px;
  background-color: rgba(0, 0, 0, 0.8);
  border: 1px solid #5f33ff;
  box-shadow: 0 0 15px rgba(95, 51, 255, 0.5);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 10px;
  z-index: 1;
}

#terminal-output {
  flex-grow: 1;
  overflow-y: auto;
  white-space: pre-wrap;
  word-wrap: break-word;
  margin-bottom: 10px;
  font-size: 0.9em;
}

.output-line {
  margin-bottom: 5px;
}
.command-line {
  color: #bbb;
}
.error-line {
  color: #ff6b6b;
}

.input-line {
  display: flex;
  align-items: center;
}

.prompt {
  color: #d4ff33;
  margin-right: 8px;
  font-weight: bold;
}

#terminal-input {
  flex-grow: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #e0e0e0;
  font-family: inherit;
  font-size: 1em;
  caret-color: #5f33ff;
}

#terminal-output::-webkit-scrollbar {
  width: 8px;
}

#terminal-output::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.3);
}

#terminal-output::-webkit-scrollbar-thumb {
  background-color: #d4ff33;
  border-radius: 4px;
  border: 2px solid transparent;
  background-clip: content-box;
}
