root{
  --menu-background-color:black;
  --menu-border-color:#666;
}

.main-nav {
/*
  background: #3092c0;
  background-image: -webkit-gradient(linear, to bottom, to top, color-stop(0%, #3298c8), color-stop(100%, #2e8cb8));
  background-image: -webkit-linear-gradient(to bottom, #3298c8, #2e8cb8);
  background-image: -moz-linear-gradient(to bottom, #3298c8, #2e8cb8);
  background-image: -o-linear-gradient(to bottom, #3298c8, #2e8cb8);
  background-image: linear-gradient(to bottom, #3298c8, #2e8cb8);
  -webkit-border-radius: 8px;
  -moz-border-radius: 8px;
  -ms-border-radius: 8px;
  -o-border-radius: 8px;
  border-radius: 8px;
  -webkit-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
  -moz-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
  */
  /*margin: 30px auto 10px auto;********/
  margin-top:15px;
}

.main-nav:after {
  clear: both;
  content: "\00a0";
  display: block;
  height: 0;
  font: 0px/0 serif;
  overflow: hidden;
}

.nav-brand {
  float: left;
  margin: 0;
}

.nav-brand a {
  display: block;
  padding: 0;/*10px 10px 10px 20px;*/
  color: #fff;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 22px;
  font-weight: normal;
  line-height: 29px;
  text-decoration: none;
}

.nav-brand img {
max-height:70px;
}

#main-menu {
  clear: both;
  -webkit-box-shadow: none;
  -moz-box-shadow: none;
  box-shadow: none;
  transition: all 0.25s;
}

@media (min-width: 768px) {
  #main-menu {
    float: right;
    clear: none;
    /*margin-top: 32px;*/
  }
}
@media (max-width: 768px) {
  .nav-brand img {
    max-width:265px;
  }
}

/* Mobile menu top separator */

#main-menu:before {
  content: '';
  display: block;
  height: 1px;
  font: 1px/1px sans-serif;
  overflow: hidden;
  background: #2e8cb8;
}

@media (min-width: 768px) {
  #main-menu:before {
    display: none;
  }
}
  #main-menu:before {
    display: none;
  }


/* Mobile menu toggle button */

.main-menu-btn {
  float: right;
  position: relative;
  display: inline-block;
  width: 40px; /********29px;***/
  height: 40px; /********29px;***/
  text-indent: 40px; /********29px;***/
  white-space: nowrap;
  overflow: hidden;
  cursor: pointer;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  transition: margin .5s;
  /*-webkit-transition: margin .5s;*/

}

header.minh .main-menu-btn {
    margin: 0 10px 10px 10px;
}

header.maxh .main-menu-btn {
    margin: 10px 10px 10px 10px;
}

/* hamburger icon */

.main-menu-btn-icon,
.main-menu-btn-icon:before,
.main-menu-btn-icon:after {
  position: absolute;
  top: 50%;
  left: 2px;
  height: 6px; /********2px;****/
  width: 38px;/******24px;*/
  background: #444; /******************#fff;*****/
  -webkit-transition: all 0.25s;
  transition: all 0.25s;
  border-radius: 50px;
}

.main-menu-btn-icon:before {
  content: '';
  top: -12px;  /*********-7px;*****/
  left: 0;
}

.main-menu-btn-icon:after {
  content: '';
  top: 12px; /***********7px;****/
  left: 0;
}


/* x icon */

#main-menu-state:checked ~ .main-menu-btn .main-menu-btn-icon {
  height: 0;
  background: transparent;
}

#main-menu-state:checked ~ .main-menu-btn .main-menu-btn-icon:before {
  top: 0;
  -webkit-transform: rotate(-45deg);
  transform: rotate(-45deg);
}

#main-menu-state:checked ~ .main-menu-btn .main-menu-btn-icon:after {
  top: 0;
  -webkit-transform: rotate(45deg);
  transform: rotate(45deg);
}


/* hide menu state checkbox (keep it visible to screen readers) */

#main-menu-state {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  border: 0;
  padding: 0;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
}


/* hide the menu in mobile view */

#main-menu-state:not(:checked) ~ #main-menu {
  display: none;
}

#main-menu-state:checked ~ #main-menu {
  display: block;
}

@media (min-width: 768px) {
  /* hide the button in desktop view */
  .main-menu-btn {
    position: absolute;
    top: -99999px;
  }
  /* always show the menu in desktop view */
  #main-menu-state:not(:checked) ~ #main-menu {
    display: block;
  }
}


/* apply the animations just in desktop view */

@media (min-width:768px) {
  /* prevent text rendering degrade during animation in Mac browsers */
  #main-menu {
    -webkit-font-smoothing: subpixel-antialiased;
  }
  /* show animation */
  #main-menu ul.show-animation {
    -webkit-animation: show-animation 0.2s;
    animation: show-animation 0.2s;
  }
  @-webkit-keyframes show-animation {
    0% {
      -webkit-transform: scale3d(0, 0, 1);
      opacity: 0;
    }
    60% {
      -webkit-transform: scale3d(1.05, 1.05, 1);
    }
    100% {
      -webkit-transform: scale3d(1, 1, 1);
      opacity: 1;
    }
  }
  @keyframes show-animation {
    0% {
      transform: scale3d(0, 0, 1);
      opacity: 0;
    }
    60% {
      transform: scale3d(1.05, 1.05, 1);
    }
    100% {
      transform: scale3d(1, 1, 1);
      opacity: 1;
    }
  }
  /* hide animation */
  #main-menu ul.hide-animation {
    -webkit-animation: hide-animation 0.2s;
    animation: hide-animation 0.2s;
  }
  @-webkit-keyframes hide-animation {
    0% {
      -webkit-transform: scale3d(1, 1, 1);
      opacity: 1;
    }
    100% {
      -webkit-transform: scale3d(0, 0, 1);
      opacity: 0;
    }
  }
  @keyframes hide-animation {
    0% {
      transform: scale3d(1, 1, 1);
      opacity: 1;
    }
    100% {
      transform: scale3d(0, 0, 1);
      opacity: 0;
    }
  }
}


#main-menu {width:auto;text-align:right;}
#main-menu>li>a {color:black;font-family:Montserrat,Arial;color:black;font-weight:bold;}
#main-menu>li.active>a{ color: #24a9a1;}

@media (min-width: 768px){#main-menu li{ background-color:transparent;}}

@media (max-width: 768px){
    #main-menu { margin-top: 60px;text-align:left;width:100%}
    /*
   .sm-jux>li { float: none !important;display:inline-block !important;margin-left: 5px !important;}

    .sm-jux a, .sm-jux a:hover, .sm-jux a:focus, .sm-jux a:active, .sm-jux a.highlighted {
        padding-top: 6px !important;
        padding-bottom: 6px !important;
    }
    */
     #main-menu li:first-child:{border-top:1px solid #666;}
     #main-menu li{display:block;border-bottom:1px solid #666; background-color:black;padding:20px 20px;}
     #main-menu li a{color:white;}
     #main-menu li.active a{color:#24a9a1;}

}
