/*
 * Made by Anoop Krishnan
 * 10th of March 2020
 * AEMBASE
 */

 #menu a {
	text-decoration: none;
	color: #232323;
	transition: color 0.3s ease;
}

#menu a:hover {
	color: #367588;
	text-decoration: none;
}

#menuToggle {
	display: inline-block;
	position: relative;
	right: 0;
	text-align: right;
	z-index: 1;
	-webkit-user-select: none;
	user-select: none;
}

#menuToggle input {
	display: block;
	width: 85px;
	height: 25px;
	position: absolute;
	top: 7px;
	left: -5px;
	cursor: pointer;
	opacity: 0;
	/* hide this */
	z-index: 2;
	/* and place it over the hamburger */
	-webkit-touch-callout: none;
}


/*
  * Make this absolute positioned
  * at the top left of the screen
  */

#menu {
	position: fixed;
	left: 0;
	top: 112px;
	width: 33.33337%;
	height: calc(100vh - 112px);
	margin: 0;
	padding: 50px;
	text-align: left;
	overflow: auto;
	background: #fff;
	list-style-type: none;
	-webkit-font-smoothing: antialiased;
	/* to stop flickering of text in safari */
	z-index: 7878;
	transform-origin: 0% 0%;
	transform: translate(-100%, 0);
	transition: transform 0.5s cubic-bezier(0.77, 0.2, 0.05, 1.0);
}

#menu li {
	padding: 10px 0;
	font-size: 22px;
}

#menu li a {
	text-decoration: none;
}


/*
  * And let's slide it in from the left
  */

#menuToggle input:checked~ul {
	transform: none;
}

.toggle-wrap {
	z-index: 1;
	margin-top: 10px;
	float: right;
}

.toggle {
	display: flex;
	margin: 0;
	padding: 0;
	border: 0 none;
	background: transparent;
	line-height: 1;
	cursor: pointer;
	color: #000;
	-webkit-transition: all 0.35s cubic-bezier(0.32, 0.01, 0, 1);
	-moz-transition: all 0.35s cubic-bezier(0.32, 0.01, 0, 1);
	-o-transition: all 0.35s cubic-bezier(0.32, 0.01, 0, 1);
	transition: all 0.35s cubic-bezier(0.32, 0.01, 0, 1);
}


/*
ICON MENU
*/

.icon {
	position: relative;
	width: 24px;
	margin: 6px 10px 0 0;
	height: 2px;
	background: currentColor;
	transition: transform 0.3s
}

.icon::after {
	content: '';
	display: block;
	top: 5px;
	right: 0;
	width: 50%;
	height: 2px;
	background: currentColor;
	position: absolute;
	transition: transform 0.3s
}


/*close*/

.icon-close {
	-moz-transform: rotate(45deg);
	-o-transform: rotate(45deg);
	-ms-transform: rotate(45deg);
	-webkit-transform: rotate(45deg);
	transform: rotate(45deg);
	width: 18px;
	margin-top: 8px;
}

.icon-close:after {
	top: 0;
	width: 100%;
	-moz-transform: rotate(-90deg);
	-o-transform: rotate(-90deg);
	-ms-transform: rotate(-90deg);
	-webkit-transform: rotate(-90deg);
	transform: rotate(-90deg);
}

.header .hover {
	color: #367588;
	fill: #367588;
}
@media screen and (max-device-width: 768px) {
	#menu {
		position: fixed;
		left: 0;
		top: 40px;
		width: 100%;
		height: calc(100vh);
		margin: 0;
		padding: 50px;
		text-align: left;
		background: #fff;
		list-style-type: none;
		-webkit-font-smoothing: antialiased;
		/* to stop flickering of text in safari */
		z-index: -666;
		transform-origin: 0% -100%;
		transform: translate(0, -100%);
		transition: transform 0.5s cubic-bezier(1, 0.2, 0.5, 1.0);
	}
}


/* iPhone X landscape*/
@media only screen 
and (min-device-width : 375px) 
and (max-device-width : 812px) 
and (orientation : landscape) {
	#menu {
		top: 0;
		width: 100%;
		height: calc(100vh);
		margin-top: 30px;
		/* to stop flickering of text in safari */
		z-index: -666;
		transform-origin: 0% -100%;
		transform: translate(0, -100%);
	}
}

/* Pixel 2 XL  Landscape */
@media only screen 
and (min-device-width: 411px) 
and (max-device-width: 823px) 
and (orientation: landscape) {
	#menu {
		top: 0;
		width: 100%;
		height: calc(100vh);
		margin-top: 30px;
		/* to stop flickering of text in safari */
		z-index: -666;
		transform-origin: 0% -100%;
		transform: translate(0, -100%);
	}
}

/* iPhones 5/SE  Landscape */
@media only screen 
and (min-device-width: 320px) 
and (max-device-width: 568px) 
and (orientation: landscape) {
	#menu {
		top: -10px;
		width: 100%;
		height: calc(100vh);
		margin-top: 30px;
		/* to stop flickering of text in safari */
		z-index: -666;
		transform-origin: 0% -100%;
		transform: translate(0, -100%);
	}
	
}