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

html {
  width: 100%;
  height: 100%;
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
}

body,
input,
textarea,
button {
  background-color: black;
  color: white;
  font-family: monospace;
  font-size: 16px;
}

body {
  height: 100vh;
  width: 100vw;
  overflow: hidden;
  display: flex;
}

#terminal {
  width: 100vw;
  height: 100vh;
  padding: 10px;
  padding-bottom: 60px;
  display: flex;
  flex-direction: column;
  overflow-y: scroll;
  white-space: pre-wrap;
  flex-shrink: 0;
  scroll-behavior: smooth;
}

#terminal:focus {
  outline: none;
}

.input-line {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  width: 100%;
  overflow: hidden;
  flex-shrink: 0;
}

.prompt {
  color: lightgreen;
  margin-right: 5px;
  white-space: nowrap;
}

.input-field {
  background: none;
  border: none;
  outline: none;
  color: white;
  font-size: inherit;
  font-family: inherit;
  width: 100%;
}

.nano-editor {
  width: 100vw;
  height: 100vh;
  background-color: black;
  color: white;
  font-size: 16px;
  font-family: monospace;
  border: none;
  padding: 10px;
  outline: none;
}

.nano-save-button {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  background: none;
  border: none;
  color: lightgreen;
  font-size: 18px;
  cursor: pointer;
}

.terminal-output {
  word-break: break-word;
}

.matrix-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  display: block;
  background: black;
  z-index: 2147483647;
  pointer-events: auto;
}

@media (orientation: landscape) {
  .matrix-canvas {
    width: 100dvw;
    height: 100dvh;
  }
}

@supports (height: 100svh) {
  .matrix-canvas {
    width: 100svw;
    height: 100svh;
  }
}
