.main-nav {
}

.main-nav:after {
  clear: both;
  content: "\00a0";
  display: block;
  height: 0;
  font: 0px/0 serif;
  overflow: hidden;
}

.nav {
    padding: 0;
    clear: both;
    border: 0;
    -webkit-box-shadow: none;
    -moz-box-shadow: none;
    box-shadow: none;
}

.sm {
    z-index: 1010;
}

.sm-clean a, .sm-clean a:hover, .sm-clean a:focus, .sm-clean a:active, .sm-clean a.highlighted {
    padding: 10px 6px;
	padding-right: 10px;
  }

.sm-clean a, 
.sm-clean a:hover, 
.sm-clean a:focus, 
.sm-clean a:active,
.sm-clean a.highlighted {
    padding: 10px 6px;
	/*padding-right: 6px;*/
  }

.sm-clean a.has-submenu {
	padding-right: 40px !important;
}
	
@media (min-width: 900px) {
  .sm-clean li {
	margin-left: 6px;
	margin-right: 6px;
  }
  
  .sm-clean li:first-child, .sm-clean > li:first-child > a {
	/*margin-left: 0;
	padding-left: 0;*/
  }  
 }
 
.sm ul {
	padding-left: 0;	
}
 
 
/* Mobile menu toggle button */

.main-menu-btn {
  float: right;;
  /* margin: 5px 150px; */
  position: relative;
  display: inline-block;
  width: 29px;
  height: 29px;
  text-indent: 29px;
  white-space: nowrap;
  overflow: hidden;
  cursor: pointer;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

.sm-menuopen {
	/*background-color: rgba(0, 0, 0, 0.8);*/
	overflow-y: scroll;
	background-color: black;
}

@media all and (min-width: 800px) {
	.sm-clean {
		padding: 0;
		left: 0;
	}	

	.sm-menuopen {
		background-color: initial;
		width: 100%;
	}
	
	.sm-clean a.has-submenu {
		padding-right: 24px !important;
	}
}

/* hamburger icon */

.main-menu-btn-icon,
.main-menu-btn-icon:before,
.main-menu-btn-icon:after {
  position: absolute;
  top: 50%;
  left: 2px;
  height: 2px;
  width: 24px;
  background: white;
  -webkit-transition: all 0.25s;
  transition: all 0.25s;
}

.main-menu-btn-icon:before {
  content: '';
  top: -7px;
  left: 0;
}

.main-menu-btn-icon:after {
  content: '';
  top: 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)~.moduletable .nav {
  display: none;
}

#main-menu-state:checked~.moduletable .nav {
  display: block;
}

@media (min-width: 800px) {
  /* 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)~.moduletable .nav {
    display: block;
  }
}
