/******* MAIN NAV *******/
.top-nav {
    background-color: #FFF;
    float: right;
    font-family: 'Montserrat';
    font-size: .8em;
	/*font-weight: 800;*/
    margin-top: 20px;
}
/*Strip the ul of padding and list styling*/
.top-nav ul {
	list-style-type:none;
	margin:0;
	padding:0;
	/*position: absolute;*/
}

/*Create a horizontal list with spacing*/
.top-nav li {
	display:inline-block;
	float: left;
	padding: 8px;
}

/*Style for menu links*/
.top-nav li a {
	display:block;
	color: #666;
	font-weight: 100;
	text-decoration: none;
}

.top-nav ul li.active {
    background-color: #FFCC00;
    color: #666;
}

/***REMOVE HOVER EFFECT FOR MOBILE - CAUSES DOUBLE TAP***/
.top-nav ul li :after {
	content: '';
	display: block;
	margin: auto;
	height: 3px;
	width: 0px;
	background: transparent;
	transition: width .5s ease, background-color .5s ease;
	position:relative;
	top:6px;
}
.top-nav ul li :hover:after {
	width: 100%;
	background: #FFCC00;
}


.hidden { 
  visibility: hidden; /* hides sub-menu */
  opacity: 0;
  transform: translateY(-2em);
  z-index: -1;
  transition: all 0.3s ease-in-out 0s, visibility 0s linear 0.3s, z-index 0s linear 0.01s;
}

.top-nav li:hover .hidden {
	visibility: visible; /* shows sub-menu */
	margin-top: 8px;
	opacity: 1;
	z-index: 1;
	transform: translateY(0%);
	transition-delay: 0s, 0s, 0.3s; /* this removes the transition delay so the menu will be visible while the other styles transition */
}

/*Hover state for top level links
li:hover a {
	background: #FFCC00;
}*/

/*Style for dropdown links*/
li:hover ul a {
	background: #f3f3f3;
	color: #2f3036;
}

/*Hover state for dropdown links
li:hover ul a:hover {
	background: #19c589;
	color: #fff;
}*/

/*Hide dropdown links until they are needed*/
.top-nav li ul {
	visibility: hidden;
	position: absolute;
}

/*Make dropdown links vertical*/
.top-nav li ul li {
	background-color: #F3F3F3;
	display: block;
	float: none;
}

/*Prevent text wrapping*/
li ul li a {
	width: auto;
	min-width: 120px;
	padding: 0 20px;
}

/*Display the dropdown on hover*/
.top-nav ul li a:hover + .hidden, .hidden:hover {
	display: block;
}


/*Style 'show menu' label button and hide it by default*/
.show-menu {
	text-decoration: none;
	color: #fff;
	background: #FFCC00;
	text-align: center;
	margin: 10px 20px 0 0;
	padding: 8px 8px;
	display: none;
	position: absolute;
	top: 0;
	right: 0;
}

/*Hide checkbox*/
input[type=checkbox]{
    display: none;
}

/*Show menu when invisible checkbox is checked*/
input[type=checkbox]:checked ~ #menu{
    display: block;
}

/*Responsive Styles*/

@media screen and (max-width : 800px){

.top-nav {
	margin-top: 5px;
	width: 100%;/*Makes dropdown appear*/
}
.top-nav ul {
	position: absolute;
	display: none;
	width: 100%;
	}
.top-nav li ul {
    position: relative;
}
/*Make all menu links full width*/
ul li, li a {
	width: 100%;
}
.top-nav li {
	background: #F3F3F3;
	font-size: 1.1em;
	padding: 12px;
	text-align: center;
}
/*Display 'show menu' link*/
.show-menu {
	display:block;
}

}