:root {
  --green: #00ff66;
  --bg: #010101;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  height: 100vh;
  background-color: #000;
  color: var(--green);
  font-family: "Courier New", Courier, monospace;
  font-size: 18px;
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  padding: 10px;
}

#terminal {
  position: relative;
  width: 100%;
  height: 100%;
  background: transparent; /* removed frame/background */
  border: none; /* removed frame border */
  box-shadow: none;
  color: var(--green);
  text-shadow: none;
  padding: 0;
}

/* output area */
#output {
  white-space: pre-wrap;
  line-height: 1.45;
  margin-bottom: 5px;
}

/* input area */
#input-line {
  display: flex;
  align-items: center;
  gap: 5px;
}

.prompt {
  margin-right: 5px;
  user-select: none;
}

#input-wrapper {
  position: relative;
  width: 100%;
}

#user-input {
  background: transparent;
  border: none;
  outline: none;
  color: var(--green);
  width: 100%;
  font-family: inherit;
  font-size: inherit;
  caret-color: transparent;
}

#cursor {
  position: absolute;
  top: 0;
  height: 1.2em;
  width: 10px;
  background-color: var(--green);
  animation: blink 700ms steps(1) infinite;
}

#measure {
  position: absolute;
  left: -9999px;
  top: -9999px;
  font-family: inherit;
  font-size: inherit;
  white-space: pre;
}

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

.access-granted {
  color: var(--green);
}

.access-denied {
  color: #ff4b4b;
}
