﻿/*Strip the ul of padding and list styling*/
.menu-wrap {
	width: 100%;
	height: 50px;
	position: absolute;
	bottom: 0px;
	right: 0px;
}

.menu-wrap ul {
	list-style-type: none;
	margin:0 !important;
	padding:0;
	position: absolute;
	right: 0px;
	z-index: 1000;
}

/*Create a horizontal list with spacing*/
.menu-wrap li {
	display: inline-block;
	float: left;
	margin: 0px !important;
	background: #fff;
	z-index: 1000;
}

/*Style for menu links*/
.menu-wrap li a {
	display: block;
	min-width: 100px;
	height: 50px;
	padding: 0 1.0rem 0 1.0rem;
	text-align: center;
	line-height: 50px;
	font-size: 1.5rem;
	color: #222;
	text-decoration: none;
	text-transform: uppercase;
	white-space: nowrap;
}

/*Hover state for top level links*/
.menu-wrap li:hover a {
	background: #F3F3F3;
}

/*Style for dropdown links*/
li:hover ul a {
	font-size: 1.5rem;
	color: #222;
	height: 50px;
	line-height: 50px;
	text-transform: uppercase;
}

/*Hover state for dropdown links*/
.menu-wrap li:hover ul a:hover {
	background: #F3F3F3;
	color: #CCC;
}

/*Hide dropdown links until they are needed*/
.menu-wrap li ul {
	display: none;
	right: auto;
}

/*Make dropdown links vertical*/
.menu-wrap li ul li {
	display: block;
	float: none;
}
/*align right last dropdaown */
.menu-wrap ul li:last-child ul {
	right: 0px;
}

/*Prevent text wrapping*/
.menu-wrap li ul li a {
	width: auto;
	min-width: 180px;
	padding: 0 20px;
}

/*Display the dropdown on hover*/
.menu-wrap 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: #222;
	text-align: center;
	padding: 10px 0;
	display: none;
}

.show-menu:after {
    position: absolute;
    right: .25em;
    top: -20px;
    content: "\2261";
    font: 3.0em sans-serif;
}

/*Hide checkbox*/
#show-menu {
    display: none !important;
}

/*Show menu when invisible checkbox is checked*/
#show-menu:checked ~ #menu {
    display: block;
}


/*Responsive Styles*/

@media screen and (max-width : 1050px) {
	/*Make dropdown links appear inline*/
	.menu-wrap ul {
		width: 100%;
		position: absolute;
		display: none;
		top: 50px;
		z-index: 1000;
	}
	/*Create vertical spacing*/
	.menu-wrap li {
		margin-bottom: 1px;
	}
	/*Make all menu links full width*/
	.menu-wrap ul li, li a {
		width: 100%;
	}
	.menu-wrap li a {
		padding: 0px;
	}
	.menu-wrap ul li ul {
		position: static;
	}
	/*Display 'show menu' link*/
	.show-menu {
		display:block;
	}
	/*Show sub pages on mobiles*/
	.hidden {
		display: block !important;
	}
}

@media screen and (max-width : 680px) {
	.show-menu:after {
	    top: -10px;
	}
}

@media screen and (max-width : 550px) {
	.menu-wrap {
		height: auto;
	}
	.show-menu:after {
	    top: -130px;
	}
	.menu-wrap ul {
		top: 0px;
	}
}
