/*!
 * Start Bootstrap - Simple Sidebar HTML Template (http://startbootstrap.com)
 * Code licensed under the Apache License v2.0.
 * For details, see http://www.apache.org/licenses/LICENSE-2.0.
 */

/* Toggle Styles */

#wrapper {
  padding-left: 0;
  /*-webkit-transition: all 0.5s ease;
  -moz-transition: all 0.5s ease;
  -o-transition: all 0.5s ease;
  transition: all 0.5s ease;*/

  -webkit-transition: all 0.5s cubic-bezier(0.42, 0.0, 0.58, 1.0); /*ease*/
  -moz-transition: all 0.5s cubic-bezier(0.42, 0.0, 0.58, 1.0);
  -o-transition: all 0.5s cubic-bezier(0.42, 0.0, 0.58, 1.0);
  transition: all 0.5s cubic-bezier(0.42, 0.0, 0.58, 1.0);
}

#wrapper.toggled {
  /* Set to 0 if offcanvas menu should appear on top, otherwise 250px */
  padding-left: 0px;
}

#sidebar-wrapper {
  z-index: 1000;
  position: fixed;
  left: 250px;
  width: 0;
  height: 100%;
  margin-left: -250px;
  overflow-y: auto;
  overflow-x: hidden;
  background: #686669;
  -webkit-transition: all 0.5s cubic-bezier(0.42, 0.0, 0.58, 1.0); /*ease*/
  -moz-transition: all 0.5s cubic-bezier(0.42, 0.0, 0.58, 1.0);
  -o-transition: all 0.5s cubic-bezier(0.42, 0.0, 0.58, 1.0);
  transition: all 0.5s cubic-bezier(0.42, 0.0, 0.58, 1.0);

  box-shadow: 0px 0px 8px #000; /* This is the right hand side shadow for the offcanvas menu. Gives it more depth. */
}
#sidebar-wrapper > .sidebar-nav {
  height: 100%;
}
#sidebar-wrapper > .sidebar-nav > .sidebar-footer > div {
  position: absolute; bottom: 0px; width: 100%;
}
#sidebar-wrapper > .sidebar-nav > .sidebar-footer > div > a {
  font-size: large;
}

#wrapper.toggled #sidebar-wrapper {
  width: 250px;
}

#page-content-wrapper {
  width: 100%;
  padding: 15px;
  padding-top: 72px;
}

#wrapper.toggled #page-content-wrapper {
  position: absolute;
  margin-right: -250px;
}

/* Sidebar Styles */

.sidebar-nav {
  position: absolute;
  top: 0;
  width: 250px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sidebar-nav li {
  text-indent: 20px;
  line-height: 40px;
}

.sidebar-nav li a {
  display: block;
  text-decoration: none;
  color: #FFF ;
}

.sidebar-nav li a:hover {
  text-decoration: none;
  color: #fff;
  background: rgba(255,255,255,0.2);
}

.sidebar-nav li a:active,
.sidebar-nav li a:focus {
  text-decoration: none;
}
.sidebar-nav li a.active {
  background: rgba(255,255,255,0.2);
}

.sidebar-nav > .sidebar-brand {
  height: 65px;
  font-size: 18px;
  line-height: 60px;
}

.sidebar-nav > .sidebar-brand a {
  color: #999999;
}

.sidebar-nav > .sidebar-brand a:hover {
  color: #fff;
  background: none;
}

.sidebar-nav .dropdown-menu li a {
  color: #888;
}
.sidebar-nav .dropdown-menu li a:hover {
  color: #000;
}
.sidebar-nav li hr {
  margin-right: 20px; margin-left: 20px;
}

/** This is for the sm class */
@media(min-width:768px) {
  #wrapper {
    /* Set to 0 if offcanvas menu should appear on top, otherwise 250px */
    padding-left: 0px;
  }

  #wrapper.toggled {
    padding-left: 0;
  }

  #sidebar-wrapper {
    width: 250px;
  }

  #wrapper.toggled #sidebar-wrapper {
    width: 0;
  }

  #page-content-wrapper {
    padding: 20px;
  }

  #wrapper.toggled #page-content-wrapper {
    position: relative;
    margin-right: 0;
  }
}

/* The following was added to fix the offcanvas menu on screen widths md and lg */
@media (min-width: 992px) {
  .container {
    width: 720px; /* 970px*/
  }
  #wrapper {
    padding-left: 0px;
  }
  #sidebar-wrapper {
    width: 250px;
  }
  #wrapper.toggled #sidebar-wrapper {
    width: 250px;
  }
  #wrapper.toggled #page-content-wrapper {
    margin-right: -250px;
  }
  #page-content-wrapper {
    padding-left: 250px;
  }
}
@media (min-width: 1200px) {
  .container {
    width: 920px; /* 1170px */
  }
}
