html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
  font-size: 20px;
  background-image: url(images1.jpg);
  background-repeat: no-repeat;
  background-size: cover;
  display: flex;
  flex-direction: column;
}

section {
  margin-top: 40px;
}

#navbar {
  background-color: #56aee9;
  width: 100%;
  border-bottom: 1px solid;
}

#navbar li {
  color: black;
  border-top: 1px solid black;
  list-style: none;
}

#navbar a {
  display: block;
  padding: 10px 30px;
  color: whitesmoke;
  text-decoration: none;
  cursor: pointer;
  font-size: 18px;
  transition: text-indent 0.3s ease-in-out;
}

#navbar a:hover {
  font-weight: 500;
  text-indent: 5px;
}

p {
  margin: 10px;
}

ol {
  margin-left: 30px;
}

#main-doc {
  margin: 0 auto;
}

header {
  color: black;
  margin: 10px;
  text-align: center;
  font-size: 1.8em;
  font-weight: 500;
}

code {
  display: block;
  text-align: left;
  white-space: pre;
  word-break: normal;
  word-wrap: normal;
  line-height: 1.5;
  background-color: white;
  padding: 0 15px;
  margin: 5px;
  border-radius: 5px;
}

footer {
  padding: 30px;
  text-align: center;
}

@media only screen and (min-width: 500px) {
  body {
    flex-direction: row;
  }

  #navbar {
    width: 300px;
    height: 100%;
    position: fixed;
    resize: horizontal;
    overflow-x: scroll;
  }

  #main-doc {
    margin: 0 20px;
    margin-left: 350px;
  }
}

@media (max-width: 815px) {
  body {
    color: white;
  }
}
