/* --------------------------------

Main components

-------------------------------- */
.cd-main-content {
  /* set a min-height and a z-index to be sure that the main element completely covers the lateral menu */
  /*min-height: 100%;*/
  position: relative;
  z-index: 2;

  /* Force Hardware Acceleration in WebKit */
  -webkit-transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  -webkit-transition-property: -webkit-transform;
  -moz-transition-property: -moz-transform;
  transition-property: transform;
  -webkit-transition-duration: 0.4s;
  -moz-transition-duration: 0.4s;
  transition-duration: 0.4s;
}

.cd-main-content.lateral-menu-is-open {
  /* translate to show the lateral menu - all content needs to be put in the .cd-main-content to translate*/
  -webkit-transform: translateX(260px);
  -moz-transform: translateX(260px);
  -ms-transform: translateX(260px);
  -o-transform: translateX(260px);
  transform: translateX(260px);
}

@media only screen and (min-width: 768px) {
  .cd-main-content {}
}

#header {
  position: relative;
  z-index: 3;
  top: 0;
  left: 0;
  /* Force Hardware Acceleration in WebKit */
  -webkit-transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  -webkit-transition-property: -webkit-transform;
  -moz-transition-property: -moz-transform;
  transition-property: transform;
  -webkit-transition-duration: 0.4s;
  -moz-transition-duration: 0.4s;
  transition-duration: 0.4s;
}

#header.lateral-menu-is-open {
  /* translate to show the lateral menu */
  -webkit-transform: translateX(260px);
  -moz-transform: translateX(260px);
  -ms-transform: translateX(260px);
  -o-transform: translateX(260px);
  transform: translateX(260px);
}

#header.is-fixed {
  position: fixed;
}

@media only screen and (min-width: 768px) {
  #header {
    display: flex;
    align-items: center;
  }
}

#menu {
  position: fixed;
  height: 100%;
  left: 0;
  top: 0;
  visibility: hidden;
  /* the secondary navigation is covered by the main element */
  z-index: 999;
  width: 260px;
  background-color: #f0f0f0;
  overflow-y: auto;
  /* Force Hardware Acceleration in WebKit */
  -webkit-transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  -webkit-transition: -webkit-transform .4s 0s, visibility 0s .4s;
  -moz-transition: -moz-transform .4s 0s, visibility 0s .4s;
  transition: transform .4s 0s, visibility 0s .4s;
  /* this creates the subtle slide in animation of the navigation */
  -webkit-transform: translateX(-80px);
  -moz-transform: translateX(-80px);
  -ms-transform: translateX(-80px);
  -o-transform: translateX(-80px);
  transform: translateX(-80px);
  text-align: left;
  padding-bottom: 56px;
}

#menu .cd-navigation {
  /*margin: 10px 0 16px;*/
}

#menu .sub-menu {
  padding: 0 0 20px 0;
  display: none;
}

#menu a {
  display: block;
  line-height: 56px;
  padding: 0 16px 0 20px;
  color: #3f3f3f;
  background-color: #fff;
  font-size: 22px;
  border-bottom: 1px #e0e0e0 solid;
}

#menu ul.sub-menu li a {
  font-size: 20px;
  letter-spacing: -1px;
  background: #f6f6f6;
}

#menu a.current {
  background-color: #404040;
  color: #fff;
  line-height: 90px;
  font-size: 30px
}

#menu .site {
  bottom: 0;
  position: relative;
  width: 100%;
}

#menu .site a {
  background-color: #ed145b;
  padding: 0 20px;
  color: #fff;
}

#menu .site a i {
  font-size: 30px;
  position: relative;
  top: 6px;
  margin-right: 5px;
}

.no-touch #menu a:hover {}

@media only screen and (min-width: 768px) {
  #menu .cd-navigation {
    margin: 20px 0;
  }
}

#menu.lateral-menu-is-open {
  -webkit-transform: translateX(0);
  -moz-transform: translateX(0);
  -ms-transform: translateX(0);
  -o-transform: translateX(0);
  transform: translateX(0);
  visibility: visible;
  -webkit-transition: -webkit-transform .4s 0s, visibility 0s 0s;
  -moz-transition: -moz-transform .4s 0s, visibility 0s 0s;
  transition: transform .4s 0s, visibility 0s 0s;
  /* smooth the scrolling on touch devices - webkit browsers */
  -webkit-overflow-scrolling: touch;
}

/* style menu items which have a submenu  */
#menu .item-has-children>a {
  position: relative;
  font-weight: normal;
  /* this is the right arrow to show that the item has a submenu  */
}

#menu .item-has-children>a::after {
  content: '';
  display: block;
  height: 11px;
  width: 8px;
  position: absolute;
  top: 50%;
  bottom: auto;
  -webkit-transform: translateY(-50%);
  -moz-transform: translateY(-50%);
  -ms-transform: translateY(-50%);
  -o-transform: translateY(-50%);
  transform: translateY(-50%);
  right: 1em;
  background: url("../img/cd-arrow.svg") no-repeat center center;
  background-size: 8px 11px;
  -webkit-transition-property: -webkit-transform;
  -moz-transition-property: -moz-transform;
  transition-property: transform;
  -webkit-transition-duration: 0.2s;
  -moz-transition-duration: 0.2s;
  transition-duration: 0.2s;
}

#menu .item-has-children>a.submenu-open::after {
  -webkit-transform: translateY(-50%) rotate(90deg);
  -moz-transform: translateY(-50%) rotate(90deg);
  -ms-transform: translateY(-50%) rotate(90deg);
  -o-transform: translateY(-50%) rotate(90deg);
  transform: translateY(-50%) rotate(90deg);
}