@font-face {
  font-family: "JetBrains Mono";
  src: url("../fonts/JetBrainsMono-Medium.woff2");
}

:root {
  --font: "JetBrains Mono";
  --background: #0d1117;
  --foreground: #4078c0;
  --red: #bd2c00;
  --green: #6cc644;
  --orange: #c9510c;
  --branch: 1px solid #333333;
}

html {
  font-size: 15px;
  overflow: hidden;
}

body {
  background: var(--background);
  width: 100vw;
  height: 100vh;
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.prompt {
  font-family: var(--font);
  color: var(--foreground);
}

.prompt ~ .prompt {
  padding: 1.5rem 0 0.3125rem;
}

span {
  color: var(--red);
}

h1 {
  display: inline;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: normal;
  color: var(--green);
  cursor: pointer;
}

.tree > ul {
  margin: 0;
  padding-left: 1rem;
}

ul {
  list-style: none;
  padding-left: 2.5rem;
}

li {
  position: relative;
}

li.hideChildren > ul {
  display: none;
}

li::before,
li::after {
  content: "";
  position: absolute;
  left: -0.75rem;
}

li::before {
  border-top: var(--branch);
  top: 0.75rem;
  width: 0.5rem;
}

li::after {
  border-left: var(--branch);
  height: 100%;
  top: 0.25rem;
}

li:last-child::after {
  height: 0.5rem;
}

a {
  font-family: var(--font);
  font-size: 1rem;
  color: var(--foreground);
  text-decoration: none;
  outline: none;
}

a:hover,
a:focus {
  color: var(--background);
  background: var(--orange);
}

form h1 {
  padding-left: 0.125rem;
}

/* You can fill the textarea above/below (?) the Viewport */
#search {
  font-family: var(--font);
  font-size: 1rem;
  color: var(--foreground);
  background-color: var(--background);
  border: none;
  outline: none;
  position: absolute;
  width: 50vw;
  height: 50vh;
  word-break: break-all;
  resize: none;
}
