@import url(./Reset.css);

* {
  color: var(--font-on-black);
  font-family: var(--font-sans);
}

body {
  font-family: "roboto";
  background-color: #151515;
}

a {
  text-decoration: none;
  color: inherit;
}

a:hover {
  color: var(--primary-color);
  /* color: rgb(94, 94, 218); */
}

.flex-column {
  flex-flow: column;
}

/* navigation bar */

.header {
  display: flex;
  flex-flow: row wrap;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0px 1px 2px 1px rgb(211, 211, 211);
  padding: 1.5rem 2rem;
  font-weight: bold;
}

.logo {
  height: 3rem;
  margin-left: 2.5rem;
}

.navbar > ul {
  display: flex;
  gap: 1rem;
  margin-right: 3rem;
}

.navbar li {
  list-style: none;
}

/* documentation */

.documentation {
  display: flex;
  /* outline: red solid 1px; */
  margin: 3rem 5rem;
  color: var(--font-color);
}

/* Sidebar */

.sidebar {
  padding-top: 1rem;
  padding-left: 2rem;
  justify-self: center;
  width: 15%;
  min-width: 8rem;
}

.sidebar .list-topic {
  margin-bottom: 0.8rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgb(148, 148, 148);
}

.sidebar li {
  list-style: none;
  margin-bottom: 1rem;
}

/* Main content */

.main-content {
  padding: 1rem;
  padding-left: 2rem;
  margin-left: 1rem;
  width: 70%;
}

.main-content p {
  line-height: 1.7rem;
}

/* Content */

.content-head {
  margin-bottom: 1rem;
}

.content-warp {
  margin-top: 3rem;
  margin-bottom: 7rem;
}

.divider {
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgb(148, 148, 148);
}

.example {
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
  padding: 2rem;
  background: #f5f7f9;
  border-radius: 8px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem; 
  overflow-x: scroll;
}
.code-example {
  /* margin-top: 1rem; */
  width: 100%;
  height: 100%;
}
iframe {
  width: 100%;
  margin-top: 3rem;
  margin-bottom: 1rem;
}

.footer {
  display: flex;
  justify-content: center;
  border: red solid;
}

.footer i {
  font-size: 30px;
  margin-right: 1rem;
}

@media screen and (max-width: 768px) {
  .main-content {
    width: 100%;
    padding: 0rem;
    padding-left: 0rem;
    margin-left: 0rem;
  }
  .logo {
    margin-left: 0rem;
  }
  .documentation {
    flex-direction: column;
    margin: 2rem 3rem;
  }
  .sidebar {
    max-height: 20vh;
    overflow-y: scroll;
    width: auto;
    padding-top: 0rem;
    padding-left: 0rem;
  }
  .example{
    justify-content: center;
  }
}

@media screen and (max-width: 500px) {
  .example{
    justify-content: flex-start;
  }
}

/*Scrollbar design*/
::-webkit-scrollbar {
  width: 10px;
}

/* Track */
::-webkit-scrollbar-track {
  background: #f1f1f1;
}

/* Handle */
::-webkit-scrollbar-thumb {
  background: #888;
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
  background: #555;
}

.highlight {
  color: var(--hover-grey);
  text-decoration: none;
}
