$wgrey: #a8a8a8;
$wcode: #ededed;
$wgreen: #38a275;
$background-clr: #2e2e2e;
$wyellow: #ffb800;

* {
  box-sizing: border-box;
}

.cover {
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0px;
  background-color: white;
  z-index: -1;
}

.wrap-doc {
  .ywaves {
    width: 100%;
    position: relative;
    z-index: 0;

    img {
      position: absolute;
      width: 100%;
      bottom: 0;
    }
  }
}

.selected-link {
  color: $wyellow !important;
  font-weight: 400;
}

.doc-div {
  color: $background-clr;
  display: flex;
  flex-flow: row nowrap;
  width: 100%;

  .right-pad {
    height: 100vh;
    max-width: 200px;
    flex: 0 0 15%;
    padding: 40px 30px;
  }

  .sidebar {
    height: 100vh;
    position: sticky;
    top: 0;
    background-color: $background-clr;
    flex: 0 0 280px;
    color: white;
    padding: 0px 32px 40px 32px;
    margin-right: 20px;
    z-index: 1;

    .externals {
      text-align: center;

      .circle-btn {
        margin: 10px 10px 0px;
      }
    }

    section::-webkit-scrollbar {
      /* WebKit */
      width: 0;
      height: 0;
    }

    section {
      overflow-y: auto;
      height: calc(100vh - 160px);
      scrollbar-width: none;
    }

    .nav-title {
      margin-top: 40px;
      margin-bottom: 40px;
      display: inline-flex;
      align-items: center;
      justify-content: center;

      img {
        width: 32px;
        margin-right: 10px;
      }
    }

    .nav-group {
      margin-bottom: 20px;

      a {
        border: none;
        display: block;
        color: inherit;
        transition: color 0.3s;
      }

      a:hover {
        color: $wyellow;
        cursor: pointer;
      }

      ul {
        letter-spacing: 0.01em;
        margin-top: 0px;
        padding: 0 0 0 1em;

        li {
          list-style-type: none;
          font-size: 14px;
          color: rgb(218, 218, 218);
          padding: 6px 0;
          font-weight: 100;
        }
      }
    }
  }
}

.sidebar-btn {
  z-index: 50;
  position: fixed;
  bottom: 10px;
  right: 3%;
  padding: 15px;
  width: 50px;
  height: 50px;
}

.bg-arrow {
  width: 100%;
  height: 100%;
}

.doc-icon {
  background-image: url('/assets/menu.svg');
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}

.doc-div .main div {
  div {
    max-width: 100%;
    overflow-x: auto;
  }

  p img {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .doc-div {
    .right-pad {
      height: 100vh;
      max-width: 0px;
      flex: 0 0 15%;
      padding: 0px;
    }

    .main {
      width: 100%;
      padding: 40px 40px;
    }

    .sidebar {
      margin-right: 0px;
      position: fixed;

      .externals {
        padding: 5px 0px;
      }
    }

    .mob-sidebar {
      display: none;
    }
  }
}
