div {
  display: flex;
}

/* Nav */

nav {
  border-right: 2px solid lightgrey;
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  min-width: 215px;
  width: 25%;
  background: white;
}

nav>header {
  font-size: 2.3rem;
  font-family: Verdana, Geneva, Tahoma, sans-serif;
  padding: 12px 14px;
  border-bottom: 1px solid lightgrey;
}

nav li {
  border-bottom: 1px solid lightgrey;
  width: 100%;
}

nav a {
  color: #a00;
  font-size: 1.5rem;
  font-family: Verdana, Geneva, Tahoma, sans-serif;
  text-decoration: none;
  width: 100%;
  display: block;
  padding: 12px 14px;
}

/* Main */

main {
  display: flex;
  flex-direction: column;
  margin: 25px auto;
  flex: 1;
  align-items: start;
  position: relative;
  top: 0;
  right: 0;
  padding-inline: 40px;
  margin-left: 25%;
  z-index: -1;
}

h1 {
  font-size: 4rem;
  font-family: Verdana, Geneva, Tahoma, sans-serif;
  line-height: 1.5em;
  text-align: center;
  width: 100%;
}

img[alt="standardJS"] {
  width: 200px;
}

/* Section */

section {
  scroll-margin-top: 200px;
}

section header {
  color: #a00;
  cursor: pointer;
  text-decoration: underline;
  font-size: 2.8rem;
  font-family: Verdana, Geneva, Tahoma, sans-serif;
  font-weight: bold;
  line-height: 1.5em;
  margin-block: 24px;
}

section p,
section li,
section i {
  font-size: 17px;
  font-family: Arial, Helvetica, sans-serif;
  line-height: 2.8rem;
  margin-block: 14px;
  display: block;
}

section ul {
  margin-block: 14px;
  padding-left: 35px;
}

section li {
  display: list-item;
}

code,
.block {
  font-size: 17px;
  font-family: monospace;
  background-color: black;
  color: #d8d8d8;
  border-radius: 4px;
  padding: 1.6px 5.2px;
}

.block {
  display: block;
  padding: 12px 14px;
}

code span {
  color: #A8FF60;
}

section a {
  color: #a00;
}

@media (max-width: 992px) {
  div {
    flex-direction: column;
  }

  nav {
    position: sticky;
    width: 100%;
    height: 200px;
    overflow-y: scroll;
    border-bottom: 2px solid lightgrey;
  }

  main {
    margin-left: 0;
  }
}
