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

body {
  margin: 0;
  padding: 2vw;
  padding-top: 3.5rem;
  background-color: #000;
  color: #fff;
  font-family: "Courier New", Consolas, Monaco, Menlo, monospace;
  font-size: clamp(14px, 4vw, 18px);
  line-height: 1.3;
  text-align: justify;
  overflow-wrap: break-word;
}

.page-content {
  visibility: hidden;
}

body.loaded .page-content {
  visibility: visible;
}

body.command-hidden {
  padding-top: 2vw;
}

.command-line {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  padding: 1rem 2vw;
  z-index: 1000;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.prompt {
  color: #0ff;
  margin-top: 0.1rem;
}

#command-input {
  flex: 1;
  background: transparent;
  border: none;
  color: #fff;
  font-family: "Courier New", Consolas, Monaco, Menlo, monospace;
  font-size: inherit;
  outline: none;
  caret-color: #fff;
  resize: none;
  overflow: hidden;
  word-wrap: break-word;
}

#command-input::placeholder {
  color: #555;
}

#command-input:focus::placeholder {
  color: transparent;
}

p {
  margin: 0 0 0.5rem 0;
}

small {
  font-size: inherit;
  opacity: 0.7;
  display: inline-block;
}

small::before {
  content: "// ";
  color: #777;
}

h1,
h2,
h3 {
  margin: 1rem 0 0.5rem 0;
  font-weight: normal;
  font-size: clamp(14px, 4vw, 18px);
  line-height: 1.3;
  text-transform: uppercase;
  color: #0ff;
  cursor: pointer;
  position: relative;
  padding-left: 1.2em;
}

h1::before,
h2::before,
h3::before {
  content: ">";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%) rotate(0deg);
  transform-origin: center;
  color: #0ff;
  display: inline-block;
}

h1.open::before,
h2.open::before,
h3.open::before {
  transform: translateY(-50%) rotate(90deg);
}

.section-content {
  margin-left: 0;
}

/* Download link styles */
a[download] {
  color: #0ff;
  text-decoration: none;
  border: 1px solid #333;
  padding: 0.1rem 0.3rem;
  background: #111;
  font-family: inherit;
  font-size: inherit;
  display: inline-block;
  margin-right: 0.3rem;
  margin-bottom: 0.15rem;
}

.file-size {
  color: #888;
  font-size: inherit;
  margin-left: 0.2rem;
  display: inline-block;
}