/*  ids  */
#menu-button
{
	position: relative;
	display: block;
	float: right;
	width: 3.125rem;
	height: 3.125rem;
	margin: 0;
	padding: 0;
	border: 0;
	cursor: pointer;
	text-align: center;
	color: #707070;
	background: none;
	z-index: 999;
}
#menu-button .text
{
	position: absolute;
	overflow: hidden;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	clip: rect(0px, 0px, 0px, 0px);
}
#menu-button .bar
{
	position: absolute;
	display: block;
	width: 80%;
	height: 5%;
	top: 50%;
	margin-top: -5%;
	margin-left: 10%;
	border-radius: 1px;
	background: #707070;
	transition: all 0.3s ease-in-out 0s;
	transform: rotate(0def);
}
#menu-button .bar:nth-child(2)
{
	margin-top: -25%;
}
#menu-button .bar:nth-child(4)
{
	margin-top: 15%;
}
#menu-button:hover .bar:nth-child(3)
{
	margin-left: 15%;
}
#menu-button.opened .bar:nth-child(2)
{
	margin-top: -5%;
	transform: rotate(-45deg);
}
#menu-button.opened .bar:nth-child(3)
{
	opacity: 0;
}
#menu-button.opened .bar:nth-child(4)
{
	margin-top: -5%;
	transform: rotate(45deg);
}
#menu-button.opened .bar
{
	background: #FFFFFF;
}


#mainmenu
{
	position: absolute;
	display: block;
	overflow-x: hidden;
	overflow-y: hidden;
	width: 25rem;
	max-height: 0;
	top: 0;
	right: 0;
	font-size: 1rem;
	transition: max-height .5s ease 0;
	-webkit-transition: max-height .5s ease;
	box-sizing: border-box;
	background: #707070;
	z-index: 1;
	box-shadow: 0 0 10px rgba(0, 0, 0, .5);
}
#mainmenu.opened
{
	max-height: 20rem;
}

#mainmenu li:first-child { margin-top: 8rem; }
#mainmenu li:last-child { margin-bottom: 2rem; }

#mainmenu li
{
	display: block;
	text-align: right;
	float: none;
	padding: 0;
	margin: 0 2rem;
}
#mainmenu li:not(:last-child)
{
	border-bottom: 2px solid rgba(255, 255, 255, .5);
	padding-bottom: .75rem;
	margin-bottom: .75rem;
}
#mainmenu a
{
	color: #FFFFFF;
	text-transform: uppercase;
}

@media only screen and (max-width: 40rem) {
	
	#mainmenu { width: 100%; }
	
}