body {
  margin: 0;
  --white: #fff;
  --black: #000;
  --color-4: #00ff9f;
  --color-3: #00b8ff;
  --color-2: #001eff;
  --color-1: #bd00ff;
  --header-height: 0rem;
  --sticky-height: 5rem;
  --focus-color: #d600ff;
  --arrows-move-delay: 300ms;
  --arrows-gap: 0.5rem;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 0rem;
  align-items: center;
  font-size: 1.5rem;
  background-color: var(--white);
  font-family: sans-serif;
}

html {
  scroll-behavior: smooth;
}

#bg-binary {
  top: 0;
  left: 0;
  position: fixed;
  width: 100vw;
  height: 100vh;
  opacity: 0.05;
  z-index: -100;
  overflow: hidden;
  font-family: monospace;
  word-wrap: break-word;
}

.bg-texture {
  top: 0;
  left: 0;
  position: fixed;
  width: 100vw;
  height: 100vh;
  opacity: 0.5;
  background-image: url("dark-matter.png");
  z-index: -1;
}

.squeeze {
  max-width: 600px;
}

* {
  box-sizing: border-box;
}

.nodisplay {
  display: none !important;
}

.flex-fill {
  flex: 1 1;
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
}

h1,
h2,
h3 {
  font-family: "Nova Mono", sans-serif, monospace;
  margin: 0;
}

p,
ul {
  margin: 0;
  padding: 0;
}

p {
  font-size: 1.25rem;
}

ul {
  list-style-type: none;
}

.section ul {
  padding: 1rem;
  border: 4px solid var(--black);
  color: var(--black);
}

.section:focus-within ul {
  color: var(--black);
  background-color: var(--white);
}

.main {
  position: relative;
  margin: 0rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  background-color: var(--black);
  padding-top: calc(var(--sticky-height) + 2.5rem);
  box-shadow: 0 0 15px 5px lightgray;
}

.section {
  position: relative;
  z-index: 2;
  cursor: default;
  padding: 1rem;
  background-color: var(--white);
  color: var(--black);
  box-shadow:
    0 0 0 3px var(--black),
    0 0 0 4px rgb(230, 230, 230);
}

div.section {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

h2.section {
  display: flex;
  justify-content: space-between;
}

a {
  text-decoration: none;
  color: var(--black);
}

h2:focus-within > a {
  color: var(--white);
}

.section:focus-within {
  border: none;
  outline: none;
  color: var(--white);
  background-color: var(--focus-color);
  box-shadow:
    0 0 0 3px var(--focus-color),
    0 0 0 4px var(--focus-color);
}

p.section:focus {
  background-color: var(--white);
  color: var(--black);
}

header {
  position: fixed;
  top: 0;
  height: var(--header-height);
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

nav {
  width: 100%;
}

.horizontal-list {
  width: 100%;
  display: flex;
}

.horizontal-list li {
  flex: 1;
  display: flex;
  justify-content: center;
}

.nav-link {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.nav-link i {
  font-size: 2rem;
}

.sticky {
  width: min(calc(600px), calc(100vw - 2rem));
  z-index: 4;
  height: var(--sticky-height);
  position: fixed;
  top: 1rem;
}

@media only screen and (max-width: 500px) {
  .sticky {
    font-size: 2rem;
  }
  .focus-arrows {
    display: none;
  }
}

@media only screen and (max-width: 350px) {
  .sticky {
    font-size: 1.5rem;
  }
}

.sticky::before {
  z-index: 3;
  content: "";
  width: min(calc(600px), calc(100vw - 2rem));
  border-left: 4px solid rgb(230, 230, 230);
  border-right: 4px solid rgb(230, 230, 230);
  position: fixed;
  top: 0;
  height: calc(1rem - 4px);
  background-color: black;
  translate: calc(-1rem - 4px) 0;
}

.filler {
  height: 50vh;
}

.focus-arrows {
  position: absolute;
  display: flex;
  gap: 1.5rem;
  transition: top 250ms ease;
  transition-delay: calc(
    var(--arrows-move-delay) * sin(calc(var(--arrow-num) * 22.5deg))
  );
  z-index: calc(-1 - var(--arrow-num));
  font-size: 2rem;
}

.focus-arrows .separator {
  width: calc(600px + var(--arrow-num) * 2 * var(--arrows-gap));
}

.focus-arrow {
  animation: Bouncy 1000ms ease 0s infinite forwards;
}

.focus-arrow.right {
  --bouncy-direction: 1;
}

.focus-arrow.left {
  --bouncy-direction: -1;
}

@keyframes Bouncy {
  0% {
    translate: 0 0;
  }
  50% {
    translate: calc(10px * var(--arrow-num) * var(--bouncy-direction)) 0;
  }
  100% {
    translate: 0 0;
  }
}

.glowy {
  position: absolute;
  width: 4px;
  height: 8rem;
  z-index: 1;
  background-color: var(--focus-color);
  transition: all 501ms ease;
}
