@media screen and (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  max-width: 1200px;
  color: #4d4e53;
  font-family: "Open Sans", "Arial", sans-serif;
  font-size: 0.96em;
  line-height: 1.5;
  background-color: #fff;
}

a {
  color: inherit;
}

header {
  color: black;
  font-size: 1.8em;
}

#navbar {
  display: none;
}

#navbar header {
  text-align: center;
  margin: 10px;
}

#navbar ul {
  list-style-type: none;
  padding: 0;
  height: 80%;
  overflow-y: scroll;
}

#navbar li {
  border-bottom: 1px solid black;
}

#navbar li:first-child {
  border-top: 1px solid black;
}

#navbar a {
  display: block;
  text-decoration: none;
  color: inherit;
  padding: 10px 30px;
  cursor: pointer;
}

#navbar a:hover,
#navbar a:focus {
  text-decoration: underline;
}

code {
  background-color: #f7f7f7;
  display: inline-block;
  padding: 15px;
  margin: 10px 0;
  line-height: 2;
  border-radius: 5px;
}

@media screen and (min-width: 768px) {
  #navbar {
    display: block;
    width: 300px;
    height: 100%;
    border-right: 1px solid rgba(0, 22, 22, 0.4);
    position: fixed;
    top: 0;
    left: 0;
  }

  #main-doc {
    margin-left: 300px;
    padding: 20px;
  }
}
