/*Core Defaults*/
body {
  margin: 0;
  padding: 0;
  background: #232323;
  color: #cdcdcd;
  font-family: "Avenir Next", "Avenir", sans-serif;
  font-weight: bolder;
}

ul {
  padding: 0;
}

label {
  width: 100%;
  display: inline-block;
}

a {
  text-decoration: none;
  color: #cdcdcd;
  width: 100%;
  display: inline-block;
  transition: color 0.3s ease;
}

a:hover {
  color: #399BF3;
}

/*Style for Menu Button*/
#menuToggle {
  position: relative;
  top: 50px;
  margin-left: 50px;
}

#menuToggle input {
  display: block;
  width: 40px;
  height: 40px;
  position: absolute;
  cursor: pointer;
  opacity: 0;
  z-index: 2;
  -webkit-touch-callout: none;
}

#menuToggle input:checked ~ ul {
  transform: none;
}

/*The following code dictates how the individual spans make up the button animation*/
#menuToggle span.hamburger {
  display: block;
  width: 33px;
  height: 4px;
  margin-bottom: 5px;
  position: relative;
  background: #ffffff;
  border-radius: 3px;
  z-index: 1;
  transform-origin: 4px 0px;
  transition: transform 0.5s cubic-bezier(0.77,0.2,0.05,1.0),
              background 0.5s cubic-bezier(0.77,0.2,0.05,1.0),
              opacity 0.55s ease;
}

#menuToggle span.hamburger:first-child {
  transform-origin: 0% 0%;
}

#menuToggle span.hamburger:nth-last-child(2) {
  transform-origin: 0% 100%;
}

#menuToggle input:checked ~ span.hamburger {
  opacity: 1;
  transform: rotate(45deg) translate(-2px, -1px);
  background: #232323;
}

#menuToggle input:checked ~ span.hamburger:nth-last-child(3) {
  opacity: 0;
  transform: rotate(0deg) scale(0.2, 0.2);
}

#menuToggle input:checked ~ span.hamburger:nth-last-child(2) {
  transform: rotate(-45deg) translate(0, -1px);
}

/*Style for menu slideout*/

#menu {
  position: absolute;
  top: 0;
  left: 0;
  width: 400px;
  min-height: 100vh;
  margin: -100px 0 0 -50px;
  padding-top: 200px;
  background: #ffffff;
  list-style-type: none;
  -webkit-font-smoothing: antialiased;
  transform: translateX(-100%);
  transition: transform 1s;
}

#menu li {
  font-size: 1.3rem;
  list-style: none;
  padding: 10px 0 10px 25px;
}

#menu input[type=checkbox]:checked + label + ul {
  max-height: 100%;
}

/*Style for the dropdowns and sub-lists*/

.group-list {
  background: #000000;
}

.group-list a, .group-list label {
  background: #252525;
  box-shadow: inset 0 -1px #373737;
}

.group-list a:focus, .group-list a:hover, .group-list label:focus, .group-list label:hover {
  background: #131313;
}

.sub-group-list a, .sub-group-list label {
  background: #353535;
  box-shadow: inset 0 -1px #474747;
}

.sub-group-list a:focus, .sub-group-list a:hover, .sub-group-list label:focus, .sub-group-list label:hover {
  background: #232323;
}

.sub-sub-group-list a, .sub-sub-group-list label {
  background: #454545;
  box-shadow: inset 0 -1px #575757;
}

.sub-sub-group-list a:focus, .sub-sub-group-list a:hover, .sub-sub-group-list label:focus, .sub-sub-group-list label:hover {
  background: #333333;
}

.group-list, .sub-group-list, .sub-sub-group-list {
  height: auto;
  max-height: 0;
  overflow: hidden;
  -webkit-transition: max-height .5s ease-in-out;
  transition: max-height .5s ease-in-out;
}

/*Style and animation for the angle braket span*/

label > span {
  float: right;
  -webkit-transition: -webkit-transform .5s ease;
  transition: transform .5s ease;
  margin-right: 20px;
  transform-origin: center center;
}

#menu input[type=checkbox]:checked + label > span {
  -webkit-transform: rotate(90deg);
  -ms-transform: rotate(90deg);
  transform: rotate(90deg);
}

/*Media Query for mobile devices*/

@media screen and (max-width: 768px) {
  #menu {
    padding-top: 150px;
    width: 100vw;
  }

}
