@import url("https://fonts.googleapis.com/css2?family=Cairo&family=Inconsolata:wght@300&family=Source+Sans+Pro:wght@300;900&display=swap");

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  font-family: "Source Sans Pro", sans-serif;
}

#navbar header {
  font-weight: 900;
  font-size: 1.3em;
  margin: 20px;
}

#navbar {
  position: fixed;
  min-width: 200px;
  top: 0px;
  left: 0px;
  height: 100%;
  border-right: solid;
  border-color: rgba(0, 0, 0, 0.4);
}

#navbar ul {
  height: 88%;
  padding: 0;
  overflow-y: auto;
  overflow-x: hidden;
}

#navbar li {
  color: rgba(0, 0, 0, 0.4);
  border-top: 1px solid;
  list-style: none;
  position: relative;
  width: 100%;
}

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

#navbar a:hover {
  background-color: rgb(68, 68, 68);
  color: white;
  font-size: 1.2em;
  padding: 15px 30px;
  transition: 0.3s;
}

#main-doc {
  position: absolute;
  margin-left: 280px;
  padding: 10px 0 20px 0;
  margin-bottom: 110px;
}

.main-section header {
  font-size: 2em;
  font-weight: 900;
  font-family: "Cairo", sans-serif;
}

.main-section article {
  font-size: 1.2em;
  margin: 20px;
}

.main-section .big::first-letter {
  font-size: 2em;
  float: left;
  padding-right: 10px;
  text-shadow: 2px 2px 4px black;
}

.main-section code {
  display: block;
  text-align: left;
  white-space: pre-line;
  position: relative;
  word-break: normal;
  word-wrap: normal;
  line-height: 2;
  background-color: #d6d3d3;
  padding: 15px;
  border-radius: 5px;
}

@media screen and (max-width: 850px) {
  .main-section article {
    font-size: 1em;
    margin: 10px;
  }
  .main-section header {
    font-size: 1.5em;
    font-weight: 900;
    font-family: "Cairo", sans-serif;
  }
  #navbar {
    background-color: white;
    position: absolute;
    top: 0;
    padding: 0;
    margin: 0;
    width: 100%;
    max-height: 275px;
    border: none;
    z-index: 1;
    border-bottom: 2px solid;
  }
  #main-doc {
    position: relative;
    margin-left: 0px;
    margin-top: 270px;
  }
  #navbar a:hover {
    padding: 10px 30px;
  }
  
}
