@import url('https://fonts.googleapis.com/css2?family=PT+Sans:ital,wght@0,400;0,700;1,400;1,700&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  list-style: none;
  text-decoration: none;
  font-family: "PT Sans", sans-serif;
  scroll-behavior: smooth;
}

body {
  background: #e8e1ea;
}

hr {
 height: 2px;
 width: 80%;
 text-align: center;
 border: 1px solid #eae0d5;
}

#nav {
  overflow: auto;
  position: fixed;
  width: 350px;
  height: 100%;
  background: #d1b3c4;
}

#navbar {
  width: 100%;
  height: 100%;
  background: #e3d8f1;
  padding: 30px 0px;
  border-right: 1px solid  #eae0d5;
}

#navbar header {
 color: #000;
  text-transform: none;
  font-weight: bold;
  font-size: 35px;
  text-align: center;
  margin-bottom: 30px;
}

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

#navbar ul li {
  padding: 15px;
}

#navbar ul li a {
 color: #000;
  display: block;
  font-size: 18px;
}

#navbar ul li:hover {
  background: #dabeca;
  border-left: 15px solid #bf8b85;
}

#navbar ul li:hover a {
  color: #000;
  font-weight: bold;
  font-size: 20px;
}

#main-doc #header-main {
 color: #000;
  font-size: 50px;
}

#main-doc {
  position: absolute;
  width: 100%;
  margin-left: 350px;
  padding: 40px;
  margin-bottom: 110px;
}


h2 {
  text-align: left;
  margin: 0px;
  padding: 0px 0px 10px 0px;
  font-weight: bold;
}

.main-section {
 width: 80%;
  margin: 20px;
  color: #000;
  line-height: 25px;
  border: 1px solid white;
  background-color: white;
  border-radius: 15px;
  padding: 30px;
 }

#main-doc .main-section p {
  margin-bottom: 20px;
  width: 80%;
  margin-left: 20px;
  font-size: 20px;
}

section li {
 list-style-type: square;
 font-size: 20px;
}

#list {
  display: block;
  list-style-type: disc;
  margin-block-start: 1em;
  margin-inline-end: 1em;
  margin-inline-start: 0px;
  margin-block-end: 0px;
  padding-inline-start: 70px;
}

.code {
  position: relative;
  width: 50%;
  padding: 10px 10px 10px 30px;
  margin-bottom: 20px;
  background: #dabeca;
  border-left: 15px solid #bf8b85;
  font-size: 18px;
}

.example {
  font-weight: bold;
}

table {
  border-collapse: collapse;
  width: 50%;
}

th, td {
  padding: 8px;
  text-align: left;
  border-bottom: 1px solid #000;
}

tr:hover {
  background-color: #bf8b85;
}

#top i {
 display: none;
}


/* MEDIA QUERY */
@media only screen and (max-width: 768px) {
 hr {
  width: 100%;
 }
 #nav {
  position: relative;
  width: 100%;
 }
 #navbar {
  padding: 0;
 }

 #main-doc {
  margin-left: 0;
  margin-bottom: 0;
 }

 h1 {
  text-align: center;
 }

 .main-section {
  width: 100%;
 }

 .code {
  width: 100%;
 }

 #top i {
  display: block;
  text-align: right;
  font-size: 25px;
  text-decoration: none;
  color: #bf8b85;
 }

 table {
  width: 100%;
 }
}