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

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  height: 100%;
  overflow-anchor: none;
  overflow: hidden;
  background: #000;
  font-family: monospace;
  font-size: medium;
}

#frame {
  position: fixed;
  inset: 4vh;
  border-radius: 0px;
  box-sizing: border-box;
  outline: 2px solid #c9a44c;
  outline-offset: -2px;
}

/* draw the border separately */
#frame::before {
  box-shadow: 0 0 0.5px rgba(201,164,76,0.6);
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 0px;
  border: 2px solid #c9a44c;
  pointer-events: none;
  /* anti-aliasing helpers */
  transform: translateZ(0);
}


#terminal {
  height: 100%;
  background: #1c1c1c;
  color: #e6d8a3;
  display: flex;
  flex-direction: column;
  padding: 16px;
  box-sizing: border-box;
}

/* HEADER */
#header {
  flex-shrink: 0;
}

#banner {
  margin: 0;
  color: #bfae78;
  line-height: 1.1;
}

/* VIEWPORT */
#viewport {
  overflow-anchor: none;
  flex: 1;
  overflow-y: auto;
  padding-top: 12px;

  scrollbar-width: none;
  -ms-overflow-style: none;
}

#viewport::-webkit-scrollbar {
  display: none;
}

/* OUTPUT */
#output div {
  line-height: 1.4;
  opacity: 0.9;
}

#output div.old {
  opacity: 0.55;
}

/* INPUT */
.input-line {
  display: flex;
  align-items: center;
  margin-top: 4px;
}

.prompt {
  margin-right: 8px;
  white-space: nowrap;
}

/* PS1 COLORS */
.ps-user {
  color: #e6c384;
}

.ps-path {
  color: #7aa2f7;
}

#cursor {
  animation: blink 1s steps(1) infinite;
}

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

#hidden-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
