/* Navbar and Menu */

.fixed {position: fixed;}

#barheader, #menu {
	font-family: 'Glory', sans-serif;
}

#barheader {
	display: -moz-flex;
	display: -webkit-flex;
	display: -ms-flex;
	display: flex;
	justify-content: center;
	align-items: center;
	background-color: #17A1A0;
	cursor: default;
	font-weight: 400;
	font-size: 1.2em;
	height: 2em;
	left: 0;
	letter-spacing: 0.25em;
	line-height: 2em;
	margin: 0;
	position: fixed;
	text-transform: uppercase;
	top: 0;
	width: 100%;
	z-index: 10000;

}

#barheader .barlogo {
	flex: 0 0 auto;
	/* Don't allow logo to grow or shrink */
	margin-right: auto;
	display: flex;
	align-items: baseline;
	/* Align items at the baseline */
	font-family: Glory, sans-serif;
	font-size: 0.8em;
	letter-spacing: 0.1em;
	padding: 0 1.5em;
	color: #ffffff;
	line-height: 1;
	/* Ensure text and SVG are aligned properly */
}

#barheader .barlogo svg {
	width: 1.35em;
	/* Adjust size relative to the text */
	height: auto;
	/* Maintain aspect ratio */
	vertical-align: bottom;
	/* Align SVG with the text at the bottom */
	fill: white;
	margin-right: 0.1em;
}

#barheader nav {
	display: -moz-flex;
	display: -webkit-flex;
	display: -ms-flex;
	display: flex;
	-moz-justify-content: -moz-flex-end;
	-webkit-justify-content: -webkit-flex-end;
	-ms-justify-content: -ms-flex-end;
	justify-content: flex-end;
	-moz-flex-grow: 1;
	-webkit-flex-grow: 1;
	-ms-flex-grow: 1;
	flex-grow: 1;
	height: inherit;
	line-height: inherit;
}

#barheader nav a {
	border: 0;
	display: block;
	font-size: 0.8em;
	height: inherit;
	line-height: inherit;
	padding: 0 0.75em;
	position: relative;
	letter-spacing: 0.1em;
}

#barheader nav a:last-child {
	padding-right: 1.5em;
}

#barheader nav a[href="#menu"] {
	padding-right: 3.325em !important;
}

#barheader nav a[href="#menu"]:before, #barheader nav a[href="#menu"]:after {
	background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='32' viewBox='0 0 24 32' preserveAspectRatio='none'%3E%3Cstyle%3Eline %7B stroke-width: 2px%3B stroke: %23ffffff%3B %7D%3C/style%3E%3Cline x1='0' y1='11' x2='24' y2='11' /%3E%3Cline x1='0' y1='21' x2='24' y2='21' /%3E%3Cline x1='0' y1='16' x2='24' y2='16' /%3E%3C/svg%3E");
	background-position: center;
	background-repeat: no-repeat;
	background-size: 24px 32px;
	content: '';
	display: block;
	height: 100%;
	position: absolute;
	right: 1.5em;
	top: 0;
	width: 24px;
}

#barheader nav a[href="#menu"]:after {
	-moz-transition: opacity 0.2s ease-in-out;
	-webkit-transition: opacity 0.2s ease-in-out;
	-ms-transition: opacity 0.2s ease-in-out;
	transition: opacity 0.2s ease-in-out;
	background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='32' viewBox='0 0 24 32' preserveAspectRatio='none'%3E%3Cstyle%3Eline %7B stroke-width: 2px%3B stroke: %239bf1ff%3B %7D%3C/style%3E%3Cline x1='0' y1='11' x2='24' y2='11' /%3E%3Cline x1='0' y1='21' x2='24' y2='21' /%3E%3Cline x1='0' y1='16' x2='24' y2='16' /%3E%3C/svg%3E");
	opacity: 0;
	z-index: 1;
}

#barheader nav a[href="#menu"]:hover:after, #barheader nav a[href="#menu"]:active:after {
	opacity: 1;
}

#barheader nav a[href="#menu"]:last-child {
	padding-right: 3.875em !important;
}

#barheader nav a[href="#menu"]:last-child:before, #barheader nav a[href="#menu"]:last-child:after {
	right: 2em;
}

@media screen and (max-width: 1680px) {
	#barheader nav a[href="#menu"] {
		padding-right: 3.75em !important;
	}
	#barheader nav a[href="#menu"]:last-child {
		padding-right: 4.25em !important;
	}
}

@media screen and (max-width: 1280px) {
	#barheader nav a[href="#menu"] {
		padding-right: 4em !important;
	}
	#barheader nav a[href="#menu"]:last-child {
		padding-right: 4.5em !important;
	}
}

@media screen and (max-width: 736px) {

	#barheader .barlogo {
		padding: 0 1em;
	}
	#barheader nav a {
		padding: 0 0.5em;
	}
	#barheader nav a:last-child {
		padding-right: 1em;
	}
	#barheader nav a[href="#menu"] {
		padding-right: 3.25em !important;
	}
	#barheader nav a[href="#menu"]:before, #barheader nav a[href="#menu"]:after {
		right: 0.75em;
	}
	#barheader nav a[href="#menu"]:last-child {
		padding-right: 4em !important;
	}
	#barheader nav a[href="#menu"]:last-child:before, #barheader nav a[href="#menu"]:last-child:after {
		right: 1.5em;
	}
}

@media screen and (max-width: 480px) {
	
	#barheader .barlogo span {
		display: none;
	}
	#barheader nav a[href="#menu"] {
		overflow: hidden;
		padding-right: 0 !important;
		text-indent: 5em;
		white-space: nowrap;
		width: 5em;
	}
	#barheader nav a[href="#menu"]:before, #barheader nav a[href="#menu"]:after {
		right: 0;
		width: inherit;
	}
	#barheader nav a[href="#menu"]:last-child:before, #barheader nav a[href="#menu"]:last-child:after {
		width: 4em;
		right: 0;
	}
}

@media screen and (max-width: 320px) {
		#menu ul.links>li>a {
		font-size: 0.6em !important;
	}
}

#menu {
	-moz-transition: -moz-transform 0.35s ease, opacity 0.35s ease, visibility 0.35s;
	-webkit-transition: -webkit-transform 0.35s ease, opacity 0.35s ease, visibility 0.35s;
	-ms-transition: -ms-transform 0.35s ease, opacity 0.35s ease, visibility 0.35s;
	transition: transform 0.35s ease, opacity 0.35s ease, visibility 0.35s;
	-moz-align-items: center;
	-webkit-align-items: center;
	-ms-align-items: center;
	align-items: center;
	display: -moz-flex;
	display: -webkit-flex;
	display: -ms-flex;
	display: flex;
	-moz-justify-content: center;
	-webkit-justify-content: center;
	-ms-justify-content: center;
	justify-content: center;
	pointer-events: none;
	background: rgba(23, 161, 160, 0.9);
	box-shadow: none;
	height: 100%;
	left: 0;
	opacity: 0;
	overflow: hidden;
	padding: 3em 2em;
	position: fixed;
	top: 0;
	visibility: hidden;
	width: 100%;
	z-index: 10002;
}

#menu .inner {
	-moz-transition: -moz-transform 0.35s ease-out, opacity 0.35s ease, visibility 0.35s;
	-webkit-transition: -webkit-transform 0.35s ease-out, opacity 0.35s ease, visibility 0.35s;
	-ms-transition: -ms-transform 0.35s ease-out, opacity 0.35s ease, visibility 0.35s;
	transition: transform 0.35s ease-out, opacity 0.35s ease, visibility 0.35s;
	-moz-transform: rotateX(20deg);
	-webkit-transform: rotateX(20deg);
	-ms-transform: rotateX(20deg);
	transform: rotateX(20deg);
	-webkit-overflow-scrolling: touch;
	max-width: 100%;
	max-height: 100vh;
	opacity: 0;
	overflow: auto;
	text-align: center;
	visibility: hidden;
	width: 18em;
}

#menu .inner > :first-child {
	margin-top: 2em;
}

#menu .inner > :last-child {
	margin-bottom: 3em;
}

#menu ul {
	margin: 0 0 1em 0;
}

#menu ul.links {
	list-style: none;
	padding: 0;
	text-align: center;
}

#menu ul.links > li {
	padding: 0;
}

#menu ul.links > li > a:not(.button) {
	border: 0;
	border-top: solid 1px rgba(163, 60, 135, 0.9);
	display: inline-block;
	font-size: 1em;
	font-weight: 600;
	letter-spacing: 0.25em;
	line-height: 4em;
	text-decoration: none;
	text-transform: uppercase;
		width: 100%;
			/* Ensure the link takes full width of its container */
}

#menu ul.links > li > .button {
	display: inline-block;
	margin: 0.5em 0 0 0;
}

#menu ul.links > li:first-child > a:not(.button) {
	border-top: 0 !important;
}

#menu .close {
	-moz-transition: color 0.2s ease-in-out;
	-webkit-transition: color 0.2s ease-in-out;
	-ms-transition: color 0.2s ease-in-out;
	transition: color 0.2s ease-in-out;
	-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
	border: 0;
	cursor: pointer;
	display: block;
	height: 4em;
	line-height: 4em;
	overflow: hidden;
	padding-right: 1.25em;
	position: absolute;
	right: 0;
	text-align: right;
	text-indent: 8em;
	top: 0;
	white-space: nowrap;
	width: 8em;
}

#menu .close:before, #menu .close:after {
	-moz-transition: opacity 0.2s ease-in-out;
	-webkit-transition: opacity 0.2s ease-in-out;
	-ms-transition: opacity 0.2s ease-in-out;
	transition: opacity 0.2s ease-in-out;
	background-position: center;
	background-repeat: no-repeat;
	content: '';
	display: block;
	height: 4em;
	position: absolute;
	right: 0;
	top: 0;
	width: 4em;
}

#menu .close:before {
	background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' width='20px' height='20px' viewBox='0 0 20 20' zoomAndPan='disable'%3E%3Cstyle%3Eline %7B stroke: %23ffffff%3B stroke-width: 2%3B %7D%3C/style%3E%3Cline x1='0' y1='0' x2='20' y2='20' /%3E%3Cline x1='20' y1='0' x2='0' y2='20' /%3E%3C/svg%3E");
}

#menu .close:after {
	background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' width='20px' height='20px' viewBox='0 0 20 20' zoomAndPan='disable'%3E%3Cstyle%3Eline %7B stroke: %239bf1ff%3B stroke-width: 2%3B %7D%3C/style%3E%3Cline x1='0' y1='0' x2='20' y2='20' /%3E%3Cline x1='20' y1='0' x2='0' y2='20' /%3E%3C/svg%3E");
	opacity: 0;
}

#menu .close:hover:after, #menu .close:active:after {
	opacity: 1;
}

body.is-ie #menu {
	background: rgba(23, 161, 160, 0.975);
}

body.is-menu-visible #menu {
	pointer-events: auto;
	opacity: 1;
	visibility: visible;
}

body.is-menu-visible #menu .inner {
	-moz-transform: none;
	-webkit-transform: none;
	-ms-transform: none;
	transform: none;
	opacity: 1;
	visibility: visible;
}
