/* hide menu state checkbox (keep it visible to screen readers) */
.main-menu-btn {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 50px;
  text-indent: 50px;
  white-space: nowrap;
  overflow: hidden;
  cursor: pointer;
  -webkit-tap-highlight-color: rgba(0,0,0,0);
  float: right;
  margin: 10px 5% 0 0;
}

/* hamburger icon */
.main-menu-btn-icon, .main-menu-btn-icon:before, .main-menu-btn-icon:after {
  position: absolute;
  top: 50%;
  left: 2px;
  height: 10px;
  width: 50px;
  background: #FFF;
  -webkit-transition: all 0.25s;
  transition: all 0.25s;
}

.main-menu-btn-icon:before {
  content: '';
  top: -15px;
  left: 0;
}

.main-menu-btn-icon:after {
  content: '';
  top: 15px;
  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;
}

.non-mobile-link {
	float: right !important;
}

.mobile-link {
	display: none !important;
}

/*********
 * BREAK 1266PX
 *********/
@media only screen and (max-width: 1266px) {
	
	.non-mobile-link {
		display: none !important;
	}
	
	.mobile-link {
		display: block !important;
	}
	
	.homepage-block-row-1 .block-container,
	.homepage-block-row-2 .block-container {
		margin-bottom: 2em;
	}
	
	#main-menu-state:checked ~ #main-menu li.menu-spacer {
		display: none;
	}
	
	#main-menu-state:checked ~ #main-menu {
		background-color: #000;
		width: 100%;
		padding: 0 0 10px 0;
		border-top: 1px solid #FFF;
		height: 400px;
		overflow-y: auto;
		margin-left: 0;
	}
	
	#main-menu-state:checked ~ #main-menu > li {
		padding: 5px;
		border-bottom: 1px solid #272C30;
		float: none !important;
	}
	
	#main-menu-state:checked ~ #main-menu a {
		font-size: 1.5em;
	}
	
	#main-menu-state:checked ~ #main-menu .top-nav-dropdown-menu > ul {
		background-color: #FFF;
		border-radius: 5px;
		margin: 5px;
		padding: 10px;
		font-size: 0.75em;
	}
	
	#main-menu-state:checked ~ #main-menu .top-nav-dropdown-menu > ul > li {
		padding: 5px;
	}
	
	#main-menu-state:checked ~ #main-menu .top-nav-dropdown-menu > ul > li > a {
		color: #000;
	}
	
	
}

@media only screen and (min-width: 1266px) {
  /* 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;
  }
  
  /* Switch to desktop layout
  -----------------------------------------------
     These transform the menu tree from
     collapsible to desktop (navbar + dropdowns)
  -----------------------------------------------*/
  /* start... (it's not recommended editing these rules) */
  .sm-vhmml ul{position:absolute;width:12em;}
  .sm-vhmml li{float:left;}
  .sm-vhmml.sm-rtl li{float:right;}
  .sm-vhmml ul li,.sm-vhmml.sm-rtl ul li,.sm-vhmml.sm-vertical li{float:none;}
  .sm-vhmml a{white-space:nowrap;}
  .sm-vhmml ul a,.sm-vhmml.sm-vertical a{white-space:normal;}
  .sm-vhmml .sm-nowrap > li > a,.sm-vhmml .sm-nowrap > li > :not(ul) a{white-space:nowrap;}
  /* ...end */


  /* Your rules to style the menu in desktop view here... */
  .sm-vhmml .top-nav-dropdown-menu > ul {
		background-color: #FFF;
		border-radius: 5px;
		margin: 10px 5px !important;
		padding: 10px;
		font-size: .95em;
	}
	
	.sm-vhmml .top-nav-dropdown-menu > ul > li:hover {
		background-color: #F7F7F7;
		border-radius: 4px;
	}
	
	.sm-vhmml .top-nav-dropdown-menu > ul > li > a {
		color: #000;
		padding: 5px;
	}
  
}

/*********
 * BREAK 1080px
 *********/
 @media only screen and (max-width: 1078px) {
 	
 	.fund-container {
 		text-align: center;
 	}
 	
 	.fund-container .fund-container-left {
		float: none;
	}
	
	.fund-container .fund-container-left img {
		padding-right: 0px;
	}
	
 }

/*********
 * BREAK 736px
 *********/
 @media only screen and (max-width: 736px) {
 	
 	#main-menu-state:checked ~ #main-menu {
		height: 270px;
	}
 
 }
 
 /*********
 * BREAK 360px
 *********/
 @media only screen and (max-width: 360px) {
 
 	#main-menu-state:checked ~ #main-menu {
		height: 400px;
	}
 }