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

html, body {
  height: 100%;
  overflow: hidden;
}

body {
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  line-height: 1.5;
  background: #1a1600;
  color: #ffb000;
}

.terminal {
  height: 100vh;
  width: 100vw;
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.terminal__output {
  flex: 1;
  white-space: pre-wrap;
  word-break: break-all;
}

.terminal__input-line {
  display: flex;
  align-items: center;
  position: sticky;
  bottom: 0;
  background: inherit;
  padding: 4px 0;
}

.terminal__prompt {
  white-space: nowrap;
  user-select: none;
  flex-shrink: 0;
}

.terminal__input {
  background: transparent;
  border: none;
  outline: none;
  color: inherit;
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  width: 100%;
  caret-color: transparent;
}

.terminal__cursor {
  display: inline-block;
  width: 8px;
  height: 16px;
  background: currentColor;
  animation: blink 1s step-end infinite;
  flex-shrink: 0;
  vertical-align: middle;
}

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(128, 128, 128, 0.4);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(128, 128, 128, 0.6);
}

* {
  scrollbar-width: thin;
  scrollbar-color: rgba(128, 128, 128, 0.4) transparent;
}
