/* docsite main contett */

.doc-container {
  display: flex;
  justify-content: center;
  margin: 6rem 6rem 0 6rem;
  position: relative;
}

.sidebar {
  position: sticky;
  top: 6rem;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  flex: 0.2;
  justify-content: flex-start;
  flex-direction: column;
  height: 80vh;
  transition: all 0.5s;
  overflow-y: scroll;
  overflow-x: hidden;
}

.nav {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  padding: 1rem 2rem 0rem;
  background-color: var(--bg-color);
  height: 7rem;
}

.sidebar::-webkit-scrollbar {
  width: 0.5rem;
}
.sidebar::-webkit-scrollbar-track {
  box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.3);
}
.sidebar::-webkit-scrollbar-thumb {
  background-color: darkgrey;
  outline: 1px solid slategrey;
}

.sidebar > div {
  padding: 0.5rem;
  cursor: pointer;
}

.sidebar > div:hover,
.sidebar > div:focus {
  color: var(--primary-color);
}

.main-content {
  display: flex;
  flex: 0.8;
  justify-content: flex-start;
  align-items: start;
  flex-direction: column;
  margin: 0 10%;
}

.main-content p {
  text-align: justify;
}

.code-box {
  margin: 2rem 0rem;
}

.colors-container div {
  width: 100px;
  height: 100px;
  padding: 10px;
}

.grid-item > img {
  height: 10rem;
  object-fit: cover;
}
@media only screen and (max-width: 768px) {
  .sidebar {
    display: none;
  }
  .main-content {
    margin: 0rem;
  }
  .doc-container {
    display: flex;
    justify-content: center;
    margin: 6rem 0rem 1rem;
    position: relative;
  }
}
