#main_menu ul, #footer_menu ul  {
	margin: 0;
	padding: 25px 0;
}

#footer_menu ul {
	padding: 0px 0;
	margin: 0;
}


#navigation {
	background-color: #6176a399;
	align-items: center;
	display: flex;
	flex-direction: column;
	height: 100vh;
	justify-content: space-between;
	padding: 20px 15px;
	position: fixed;
	width: 270px;
	z-index: 10000;
	transition: all 500ms;
	top: 0;

	background-size: cover;
	background-position: center;
	background-blend-mode: luminosity;
}

#navigation:before {
	background-color: #ffff;
	content: '';
	height: 100%;
	width: 100%;
	position: absolute;
	box-shadow: 1px 1px 5px #9e9e9e69;
	top:0;
}

#navigation #logo {
	max-width: 150px;
	width: 80%;
}


#main_menu li, #footer_menu li, #mobile_main_menu li {
	list-style: none;
	position: relative;
}

#main_menu ul {
	margin-left: 0;
	padding-left: 0;
}

#footer_menu li a {
	color: #fff;
	float: right;

}

#main_menu li a, #footer_menu li a, #mobile_main_menu li a {

	display: table;
	font-size: 1.2rem;
	font-weight: 500;
	letter-spacing: 1px;
	position: relative;
	padding: 10px 0px;
	text-transform: uppercase;
	text-decoration: none;
	background-position: bottom;
	background-size: 1px 0px;
	background-repeat: repeat-x;
	transition: all 300ms;
}

#main_menu li a:after {
	background-color: var(--highlight);
	content: '';
	display: inline-block;
	height: 1px;
	position: absolute;
	width: 0%;
	left: 0;
	bottom: 0;

	transition: all 500ms;
}
#main_menu li a:hover:after, #main_menu li.current-menu-item a:after {
	width: 100%;
}


#footer_menu li a {
	font-size: 1rem;
	padding: 13px 0;
}

#footer_menu li a:hover, #main_menu li a:hover {
	color: var(--highlight);
}

#navigation > div {
	position: relative;
	width: 100%;
	z-index: 100;
}


#mobile_main_menu ul {
	padding: 10px 0;
}

#mobile_main_menu li a {
	color: #fff;
	padding: 10px 10px;
	text-align: center;
}

li.current-menu-item a {
	color: var(--highlight);
}

#close {
	display: none;
}

header {
	display: none
}

header #logo{
	display: none;
	width: 200px;
}

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

	header #logo {
		display: block;
	}

	.menubar {
		background-color: #fff;
		z-index: 1111;
		padding: 1rem;
		position: fixed;
		right: 10px;
		top: 40px;
	}

	header {
		display: block;
		height: 80px;
	}

	#logo img {
		height: 60px;
		width: initial;
	}
	#navigation #logo {
		text-align: center;
	 }

	.menubar span {
		background-color: var(--primary);
		display: block;
		height: 3px;
		margin: 5px 0;
		width: 30px;
		transition: transform 300ms;
	}

	.open .menubar span:nth-child(1) {
		transform: rotate(45deg);
		transform-origin: center;
		margin-top: 15px;
	}
	.open .menubar span:nth-child(2) {
		display: none;
	}
	.open .menubar span:nth-child(3) {
		transform: rotate(-45deg);
		transform-origin: center;
		margin-top: -8px;
	}

	#navigation {
		align-items: center;
		background-color: #fff;
		display: flex;
		height: 100vh;
		justify-content: center;
		padding: 0 100px;
		position: fixed;
		right: calc(-100vw - 241px);
		width: calc(100vw - 241px);
		z-index: 10000;
		transition: all 500ms;
		top: 0;
	}

	#navigation.open {
		border-left: 1px solid var(--primary);
		right: 0;
	}

	#menu div {
		height: 106px;
		width: 185px;
	}

	.menubar {
		top: 10px;
	}

	header {
		padding: 0.5rem 1rem;
		background: #fff;
	}

	#navigation, #navigation.open {
		border-left: 0px;
		padding: 0 50px;
		width: 100%;
		position: fixed;
		top: 0;
	}

	#menu.open {
		left: initial;
		right: 0vw;
	}
	#main_menu li a, #footer_menu li a, #mobile_main_menu li a{
		margin-left: auto;
		margin-right: auto;
		text-align: center;
		float: none;
	}

	#navigation.open #close {
		display: block;
		position: fixed;
		top: 45px;
		left: calc(100vw - 50px);
	}

	#close span{
		background-color: var(--secondary);
		display: block;
		height: 2px;
		width: 30px;
	}

	#close span:first-child {
		transform-origin: top;
		transform: rotate(45deg);
		margin-left: 2px;
		position: absolute;
	}

	#close span:last-child {
		transform-origin: top;
		transform: rotate(-45deg);
	}

}

@media screen and (max-width: 768px) {
	#main_menu li a, #footer_menu li a, #mobile_main_menu li a, footer p {
		margin-left: auto;
		margin-right: auto;
		text-align: center;
		float: none;
	}
}