/*
*  Custom menu for project nabeat
*/
.hns-menu {
	/*font-family: Helvetica, Arial, Geneva, sans-serif;*/
	font-family: Consolas, Courier, monospace;
	letter-spacing: 0px;
	overflow: hidden;
	background-color: #fff;
	/* #99cc00; */
	border-bottom: 2px solid #99cc00;
	/* For WebKit implementations, provide inertia scrolling */
	-webkit-overflow-scrolling: touch;
	/* We don't want internal inline elements to wrap */
	white-space: nowrap;
	/* positioning context for advancers */
	position: relative;
}

.hns-menu__wrapper {
	position: relative;
	box-sizing: border-box;
}

@media only screen and (min-width: 451px) and (max-width: 1279px) {
	.hns-menu[data-overflowing="both"], .hns-menu[data-overflowing="left"] {
		margin-left: 2.5rem;
	}
}

@media only screen and (min-width: 1280px) {
	.hns-menu[data-overflowing="both"], .hns-menu[data-overflowing="left"] {
		margin-left: 2.5rem;
	}
}

.hns-menu a {
	/*font-family: Arial, Helvetica, sans-serif;*/
	font-family: Consolas, Courier, monospace;
	font-size: 1rem;
	font-weight: bold;
}

.ie9 .hns-menu {
	white-space: normal;
}

.hns-menu__contents {
	position: relative; @media only screen and (max-width: 450px) {
	.hns-menu__contents {
	display: block;
}

}
@media only screen and (min-width: 450px) {
	.hns-menu__contents {
		display: flex;
	}
}

}
.hns-menu__contents>*:not (:last-child ) {
	background-image: linear-gradient(#99cc00, #FF6600),
		linear-gradient(#99cc00, #FF6600);
	background-size: 1px 100%;
	background-position: 100% 0, 100% 0;
	background-repeat: no-repeat;
}

.ie9 .hns-menu__contents>*:not (:last-child ) {
	padding: 5px 0px;
}

.hns-menu__link, .hns-menu__trigger {
	text-decoration: none;
	color: #663300;
	display: -webkit-inline-box;
	display: -ms-inline-flexbox;
	display: inline-flex;
	-webkit-box-align: center;
	-ms-flex-align: center;
	align-items: center;
	height: 2.5rem;
	min-height: 2.5rem;
	padding: 0 10px;
}

@media only screen and (max-width: 450px) {
	.hns-menu__link, .hns-menu__trigger {
		border-bottom: solid 1px;
		display: none;
	}
	.hns-menu.opened .hns-menu__link, .hns-menu.opened .hns-menu__trigger {
		display: flex;
	}
}

.hns-menu__link .hns-menu__link, .hns-menu__trigger .hns-menu__link,
	.hns-menu__link .hns-menu__trigger, .hns-menu__trigger .hns-menu__trigger
	{
	padding-left: 0px;
}

@media only screen and (max-width: 450px) {
	.hns-menu__link .hns-menu__link, .hns-menu__trigger .hns-menu__link,
		.hns-menu__link .hns-menu__trigger, .hns-menu__trigger .hns-menu__trigger
		{
		border-bottom: none;
	}
}

.hns-menu__link:hover, .hns-menu__trigger:hover, .hns-menu__link:focus,
	.hns-menu__trigger:focus {
	text-decoration: none;
	color: white;
	background-color: #FF6600;
}

.hns-menu__link[aria-selected="true"], [aria-selected="true"].hns-menu__trigger
	{
	background-color: #FF6600;
	color: white;
}

.hns-menu__link i, .hns-menu__trigger i {
	padding: 0 3px;
	width: 25px;
}

.hns-menu__link__icon {
	padding: 0 3px;
	width: 25px;
}

.hns-menu__trigger {
	display: none;
}

@media only screen and (max-width: 450px) {
	.hns-menu__trigger {
		display: flex;
	}
}

.hns-menu__sub-menu {
	position: relative;
	display: inline-block;
}

.hns-menu__sub-menu-empty {
	position: relative;
	display: inline-block;
}

.hns-menu__sub-menu:hover {
	background: #FF6600;
}

.hns-menu__sub-menu:hover>a {
	color: white;
}

@media only screen and (max-width: 450px) {
	.hns-menu__sub-menu {
		display: none;
	}
	.hns-menu.opened .hns-menu__sub-menu {
		display: block;
	}
}

.hns-menu__sub-menu__content {
	display: none;
	background-color: #99cc00;
	min-width: 160px;
	white-space: normal;
	box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
	z-index: 999;
}

@media only screen and (min-width: 451px) and (max-width: 1279px) {
	.hns-menu__sub-menu__content {
		position: fixed;
	}
}

@media only screen and (min-width: 1280px) {
	.hns-menu__sub-menu__content {
		position: fixed;
	}
}

.hns-menu__sub-menu:hover .hns-menu__sub-menu__content {
	display: block;
}

.hns-menu__sub-menu__content>* {
	display: block;
}

.hns-menu__sub-menu__content a {
	display: flex;
	align-items: center;
	font-size: 1rem;
	font-weight: bold;
	padding: 10px 10px;
	color: white;
	background-image: linear-gradient(to right, #663300, #99cc00);
	background-size: 100% 1px;
	background-position: bottom;
	background-repeat: no-repeat;
}

.hns-menu__sub-menu__content a:hover {
	color: white;
	background: #FF6600;
	text-decoration: none;
}

.hns-menu__last-item {
	position: relative;
	display: inline-block;
}

.hns-menu__last-item__space {
	width: 300px;
	visibility: hidden;
}

@media only screen and (max-width: 450px) {
	.hns-menu__last-item {
		display: none;
	}
	.hns-menu.opened .hns-menu__last-item {
		display: inline-block;
	}
}

.hns-menu__advancer {
	width: 2.5rem;
	/* Reset the button */
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	background: #99cc00;
	padding: 0;
	border: 0;
	/* Now style it as needed */
	position: absolute;
	top: 0;
	bottom: 0;
	/* Set the buttons invisible by default */
	opacity: 0;
	visibility: hidden;
	display: none;
	-webkit-transition: opacity .3s;
	transition: opacity .3s;
}

.hns-menu__advancer:focus {
	outline: 0;
}

.hns-menu__advancer:hover {
	cursor: pointer;
}

@media only screen and (min-width: 451px) and (max-width: 1279px) {
	.hns-menu__advancer__left {
		left: 0px;
	}
	[data-overflowing="both"] ~ .hns-menu__advancer__left, [data-overflowing="left"] 
		~ .hns-menu__advancer__left {
		opacity: 1;
		visibility: visible;
		display: flex;
		align-items: center;
	}
	.hns-menu__advancer__right {
		right: 0px;
	}
	[data-overflowing="both"] ~ .hns-menu__advancer__right, [data-overflowing="right"] 
		~ .hns-menu__advancer__right {
		opacity: 1;
		visibility: visible;
		display: flex;
		align-items: center;
	}
}

@media only screen and (min-width: 1280px) {
	.hns-menu__advancer__left {
		left: 0px;
	}
	[data-overflowing="both"] ~ .hns-menu__advancer__left, [data-overflowing="left"] 
		~ .hns-menu__advancer__left {
		opacity: 1;
		visibility: visible;
		display: flex;
		align-items: center;
	}
	.hns-menu__advancer__right {
		right: 0px;
	}
	[data-overflowing="both"] ~ .hns-menu__advancer__right, [data-overflowing="right"] 
		~ .hns-menu__advancer__right {
		opacity: 1;
		visibility: visible;
		display: flex;
		align-items: center;
	}
}

.ie9 .hns-menu__advancer {
	display: none;
}

.hns-menu__advancer__icon {
	width: 1.5rem;
	height: 1.5rem;
	fill: #663300;
}