@import url("https://fonts.googleapis.com/css2?family=Ubuntu&display=swap");
@import url("/components/main.css");
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Ubuntu", sans-serif;
  scroll-behavior: smooth;
  scroll-margin-block: 5rem;
}
body {
  background-color: rgb(249, 250, 243);
}
:root {
  --primary-color: rgb(185, 185, 185);
  --secondary-color: #272424;
  --supplementary-color: rgb(149, 149, 165);
}
header {
  z-index: 1;
  position: fixed;
  background-color: var(--primary-color);
  width: 100%;
  top: 0;
  padding: 1rem;
  height: 5rem;
}
.header-items {
  display: flex;
  justify-content: space-between;
}
.header-items .lib-name {
  font-size: 32px;
  font-weight: 600;
}
.header-items .header-left {
  margin-left: 4rem;
  cursor: pointer;
}
.header-items .header-right {
  margin-right: 4rem;
}
.header-items .header-right span {
  margin-left: 2rem;
}
.sidebar {
  z-index: 1;
  top: 0;
  position: fixed;
  left: 0;
  width: 250px;
  margin-top: 5rem;
  padding-top: 30px;
  padding-bottom: 7rem;
  background-color: var(--secondary-color);
  overflow-y: auto;
  height: 100%;
  /* transform: translate(-250px); uncomment for mobile view only*/
  transition: 0.3s;
  transition-property: left;
}
.library-name {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.sidebar .library-name h3 {
  color: white;
  margin-bottom: 2rem;
  font-size: 32px;
}
.sidebar .library-name h3 > span {
  background-color: var(--supplementary-color);
  color: black;
  margin: 0rem;
  padding: 5px;
}
.sidebar a {
  color: white;
  display: block;
  width: 100%;
  line-height: 4rem;
  text-decoration: none;
  padding-left: 4rem;
  box-sizing: border-box;
  transition: 0.5s;
  transition-property: background;
  font-size: 22px;
  font-weight: 600;
}
.sidebar a:hover {
  background: var(--supplementary-color);
}
.sidebar ul li {
  padding-left: 0.8rem;
}
.sidebar ul li a {
  font-size: 16px;
}
#check {
  display: none;
}
#check:checked ~ .sidebar {
  left: -250px;
}
.library-content {
  width: (100% -250px);
  margin-top: 5rem;
  padding: 3rem;
  margin-left: 250px;
  margin-right: 80px;
  height: 100vh;
}
#check:checked ~ .library-content {
  margin-left: 60px;
}
.library-content .library-components {
  display: flex;
  flex-direction: column;
}
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  /* background-color: black; */
}
::-webkit-scrollbar-thumb {
  background-color: rgb(153, 153, 153);
  /* border-radius: 2rem; */
}
* {
  scrollbar-width: bold;
  scrollbar-color: rgb(153, 153, 153) black;
}
.gist {
  width: 100%;
  height: 190px;
  overflow: scroll;
  margin: 1rem 0rem;
}
@media screen and (max-width: 780px) {
  .sidebar {
    transform: translate(-250px);
  }
  .library-content {
    margin-left: 0px;
    margin-right: 0px;
  }
  #check:checked ~ .sidebar {
    left: 210px;
  }
  #check:checked ~ .library-content {
    margin-left: 0px;
  }
  .library-content .library-components {
    margin-left: 0;
  }
  .header-items .lib-name {
    font-size: 20px;
    font-weight: bold;
  }
  .header-items .header-right {
    display: flex;
  }
}
