#menu_button:hover {
  cursor: pointer;
}

#menu_burger {
  position: relative;
  margin-left: 0px;
  -webkit-transition: margin-left 0.2s ease;
  -moz-transition: margin-left 0.2s ease;
  -ms-transition: margin-left 0.2s ease;
  transition: margin-left 0.2s ease;
}
#menu_burger .menu-nav {
  position: absolute;
  z-index: 400;
  width: auto;
  padding: 20px;
}
#menu_burger.other-page .menu-box {
  color: #fff;
}
#menu_burger .menu-box {
  text-decoration: none;
  position: relative;
  top: -5px;
  left: -10px;
  text-align: center;
  color: #692345;
  text-transform: uppercase;
}
#menu_burger .fad {
  font-size: 32px;
  display: block;
}

#sidebar-wrapper {
  z-index: 1000;
  left: 320px;
  width: 0;
  height: 100%;
  margin-left: -320px;
  overflow-y: auto;
  overflow-x: hidden;
  background: #692345;
  -webkit-transition: all 0.2s ease;
  -moz-transition: all 0.2s ease;
  -o-transition: all 0.2s ease;
  transition: all 0.2s ease;
}

#sidebar-wrapper::-webkit-scrollbar {
  display: none;
}

/*-------------------------------*/
/*     Sidebar nav styles        */
/*-------------------------------*/

#menu li {
  position: relative;
  line-height: 20px;
  display: inline-block;
  width: 100%;
  font-size: 0;
}
#menu li:hover:before,
#menu li.open:hover:before {
  width: 100%;
  -webkit-transition: width 0.2s ease;
  -moz-transition: width 0.2s ease;
  -ms-transition: width 0.2s ease;
  transition: width 0.2s ease;
}

#menu li a {
  display: inline-block;
  color: #fff;
  text-decoration: none;
  padding: 10px 15px 10px 30px;
  font-size: 20px;
}
#menu li a.hasChildren {
  padding: 10px 0px 10px 10px;
}
#menu li a.menu_expand {
  padding: 10px 0px 10px 0px;
}
#menu li a.noChildrenBlock {
  padding: 10px 0px 10px 10px;
}
#menu li {
  border-bottom: 3px solid rgba(255, 255, 255, 0);
}
#menu > li:hover {
  -webkit-transition: border-bottom 0.8s ease;
  -moz-transition: border-bottom 0.8s ease;
  -ms-transition: border-bottom 0.8s ease;
  transition: border-bottom 0.8s ease;
  border-bottom: 3px solid #aed7d8;
}

#menu li a:hover,
#menu li a:active,
#menu li a:focus,
#menu li.open a:hover,
#menu li.open a:active,
#menu li.open a:focus {
  color: #fff;
  text-decoration: none;
  background-color: transparent;
}

#sidebar-wrapper.toggled {
  padding-left: 340px;
}
#sidebar-wrapper.toggled ul#menu {
  left: 10px;
  top: 40px;
}
#menu_burger.toggled {
  margin-left: 340px;
  -webkit-transition: margin-left 0.2s ease;
  -moz-transition: margin-left 0.2s ease;
  -ms-transition: margin-left 0.2s ease;
  transition: margin-left 0.2s ease;
}
ul#menu ul {
  display: none;
}
a.close-nav {
  top: 10px;
  left: 300px;
  position: absolute;
  font-size: 26px;
  color: #fff;
  cursor: pointer;
}

@-webkit-keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@-webkit-keyframes slideUp {
  from {
    height: 0;
  }
  to {
    height: 100%;
  }
}
@keyframes slideUp {
  from {
    height: 0;
  }
  to {
    height: 100%;
  }
}
@keyframes growDown {
  0% {
    transform: scaleY(0);
  }
  80% {
    transform: scaleY(1.1);
  }
  100% {
    transform: scaleY(1);
  }
}

@media (min-width: 1024px) {
  nav .navbar {
    display: none;
  }
  #burger_menu {
    display: none;
  }
  nav {
    background: #fff;
    border-bottom: 6px solid #aed7d8;
    display: flex;
    align-items: center;
    position: relative;
  }
  ul#menu {
    width: 100%;
    text-align: center;
    float: none;
    margin: 0;
    padding: 0;
    list-style: none;
    display: block;
    font-size: 0;
    background: #fff;
  }
  ul#menu,
  ul#menu li,
  ul#menu ul {
    list-style: none !important;
    list-style-image: none !important;
  }
  ul#menu .topItem {
    display: inline-block;
    float: none !important;
    line-height: 20px;
    text-align: center;
  }
  ul#menu .topItem::before {
    content: "";
    display: block;
    width: auto;
    position: absolute;
    top: 17px;
    left: 0px;
    border-left: 2px solid #aed7d8;
    height: 20px;
  }
  ul#menu .topItem:first-child:before {
    border-left: 0px;
  }
  /* ul#menu .topItem::after {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        height: 1px;
        background: #fff;
        content: '';
        opacity: 0;
        -webkit-transition: height 0.3s, opacity 0.3s, -webkit-transform 0.3s;
        -moz-transition: height 0.3s, opacity 0.3s, -moz-transform 0.3s;
        transition: height 0.3s, opacity 0.3s, transform 0.3s;
        -webkit-transform: translateY(-17px);
        -moz-transform: translateY(-17px);
        transform: translateY(-17px);
    }
    ul#menu .topItem:hover::after,
    ul#menu .topItem:focus::after {
        height: 5px;
        opacity: 1;
        -webkit-transform: translateY(-8px);
        -moz-transform: translateY(-8px);
        transform: translateY(-8px);
    }
    nav ul#menu .topItem:hover::after,
    nav ul#menu .topItem:focus::after {
        height: 2px;
    } */
  ul#menu li {
    /*height: 40px;*/
    line-height: 2px;
    text-align: left;
    position: relative;
    text-decoration: none;
    display: block;
    /*top: 37px;*/
  }
  ul#menu li a {
    font-size: 18px;
    /*height: 30px;*/
    margin: 0px 0px;
    color: #692345;
    padding: 17px 10px;
    text-decoration: none;
    display: block;
    font-family: "Open Sans", sans-serif;
  }
  ul#menu li a:hover {
    color: #692345;
  }
  ul#menu li.home a {
    padding-left: 0;
  }
  ul#menu ul {
    display: none;
    position: absolute;
    margin: 0px;
    z-index: 300;
    white-space: nowrap;
    padding: 0px;
    font-size: 0;
    perspective: 1000px;
  }
  ul#menu ul li {
    display: block;
  }
  ul#menu li:hover > ul {
    display: block;
    animation: growDown 300ms ease-in-out forwards;
    transform-origin: top center;
  }
  
  ul#menu ul {
    text-align: left;
    z-index: 200 !important;
  }
  ul#menu ul ul {
    margin-left: 100%;
    top: 0px !important;
    position: absolute;
  }
  ul#menu ul:hover ul{
    background: #f2f2f2;
  }
  ul#menu .subItem a {
    display: block;
    padding: 20px 15px;
    border: 0;
    transition: 0.3s;
    text-overflow: ellipsis;
  }
  ul#menu .subItem a:hover {
    background: #aed7d8;
  }
  ul#menu ul {
    background-color: #fff;
  }
  #menu li {
    width: auto;
    border: 0;
  }
  #menu li:hover {
    border: 0;
  }
  #menu_burger .menu-nav {
    display: none;
  }
  ul#menu > li:nth-child(4) > ul {
    width: 730px;
  }
  ul#menu > li:nth-child(4) > ul > li {
    width: 365px;
    float: left;
  }
  ul#menu li:nth-child(4) ul:hover li:nth-child(8) > ul{
    background: #e6e6e6;
    right: 360px;
  }
  ul#menu li:nth-child(4) ul:hover li:nth-child(10) > ul{
    background: #e6e6e6;
    right: 360px;
  }
  ul#menu > li:nth-child(5) > ul {
    width: 720px;
    right: -40px;
  }
  ul#menu > li:nth-child(5) > ul > li {
    width: 360px;
    float: left;
  }
  ul#menu > li:nth-child(6) > ul {
    right: 0;
  }
}
@media (max-width: 1024px) {
  #main-menu.fullscreen {
    display: none;
  }
  #menu {
    position: absolute;
    top: 0;
    width: 320px;
    margin: 0;
    padding: 0;
    list-style: none;
  }
}
