/*
 * Sidebar
 */

.sidebar {
  background-color: rgba(0,0,0,0.6);
  width: 200px;
  position: relative;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 100; /* Behind the navbar */
  padding: 48px 0 0; /* Height of navbar */
  box-shadow: inset -1px 0 0 rgba(0, 0, 0, .1);
  transition: 0.5s;
}

.sidebar-sticky {
  position: relative;
  top: 0;
  height: calc(100vh - 48px);
  padding-top: .5rem;
  overflow-x: hidden;
  overflow-y: visible; /* Scrollable contents if viewport is shorter than content. */
}

@supports ((position: -webkit-sticky) or (position: sticky)) {
  .sidebar-sticky {
    position: -webkit-sticky;
    position: sticky;
  }
}

.sidebar .nav-link {
  font-weight: 500;
  color: #999;
  margin-right: 4px;
}

.nav-link:hover, .nav-link:active{
  color: white;
}


.sidebar a {
  text-decoration: none;
  color: white;
}

.sidebar .nav-link:hover,
.sidebar .nav-link.active {
  color: white;
}

.sidebar-heading {
  font-size: .75rem;
  text-transform: uppercase;
}

.sidebar .closebtn {
  position: absolute;
  top: 0;
  right: 25px;
  font-size: 36px;
  margin-left: 50px;
}

.openbtn {
  margin-bottom: 10px;
  font-size: 20px;
  cursor: pointer;
  background-color: black;
  color: white;
  padding: 10px 15px;
  border: 1px solid black;
  border-radius: 5px;
  display: none;
}

@media screen and (max-width: 1050px) {
  .sidebar{
    width: 0px;
  }
}
