/**
 * Name: Menu
 * Description: Defines style for the main menu
 *
 * Components: .menu - The menu
 *             .menu-wrap - The menu wrapper
 *
 * Sub-objects:
 * .menu__base-link - The base menu toggle link <a>
 * .menu__base-menu - The base menu <ul>
 * .menu__sub-menu - The nested sub menu <ul>
 *
 * Other:
 * .menu-hidden - Applied to the page <body> to hide the menu
 *
========================================================================== */

.menu-wrap {
	z-index: 1;
	position: absolute;
	opacity: 0;
	width: 100%;
	-webkit-transition: opacity 1s;
	transition: opacity 1s;
}
.show-menu .menu-wrap {
	opacity: 1;
}
.show-menu .page {
	border-top: 1px solid #e9e9e9;
	border-left: 1px solid #e9e9e9;
}


.menu {
	position: relative;
	height: 100%;
	overflow-y: auto;
	overflow-x: hidden;
}
/* Remove default list style */
.menu,
.menu ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

/* Hide anchors */
.menu-panel .anchor {
	display: none;
}

/**
 * Menu panel (wrapper)
========================================================================== */
.menu-panel {
	position: fixed;
	width: 12em;
	height: 100%;
	top: 3.25em;
	left: 0;
	background: #efefef;
	width: 15em;
	padding: 0 0 70px 0; /* account for 38px top toolbar + 32px menu title */
	-webkit-transition: all 0.25s ease;
	-moz-transition: all 0.25s ease;
	-ms-transition: all 0.25s ease;
	transition: all 0.25s ease;
}

/**
 * Menu title
========================================================================== */
.menu-title {
	margin: 0;
	padding: 0 .5em;
	text-decoration: none;
	font-size: 1.125em;
	font-weight: 600;
	line-height: 32px;
	color: #b4b4b4;
	background: #444;
}

/* Shared menu link styles
========================================================================== */
.menu a {
	display: block;
	padding: 0.5em;
	text-decoration: none;
	font-family: "Open Sans", sans-serif;
	font-size: 1em;
	color: #3d3d3d;
}

/* Top level menu toggle links
========================================================================== */
.menu__base-link {
	font-size: 1em;
	font-weight: 700;
	background: #efefef;
	border-bottom: 2px solid #ccc;
}
.menu__base-link:first-child {
}
.menu__base-link:hover,
.menu__base-link:active {
	background: #c8c8c8;
}

/* 2nd level, actual menu items
========================================================================== */
.menu__base-menu > li > a {
	background: #ddd;
}
.menu__base-menu > li > a:hover,
.menu__base-menu > li > a:active {
	background: #c8c8c8;
}

/* 2nd level, fade transition
========================================================================== */
.menu__base-menu {
	transition: opacity .2s ease;
	overflow: hidden;
	opacity: 1;
	height: auto;
}
.menu__base-menu--hidden {
	opacity: 0;
	height: 0;
}

/* 3rd level, sub menu items
========================================================================== */
.menu__sub-menu > li > a {
	padding-left: 1rem;
	background: #d1d1d1;
}
.menu__sub-menu > li > a:hover,
.menu__sub-menu > li > a:active {
	background: #c8c8c8;
}

/**
 * Menu +/- icons
========================================================================== */
.menu [class*="icon-"] {
	float: right;
	line-height: 1.5em;
}

/**
 * Menu controls - expand all / collapse all
========================================================================== */
.menu__controls {
	padding: 0 0 0 .25em;
	color: #ccc;
	text-align: center;
}
.menu__controls a {
	padding: .25em;
	font-size: .8em;
	display: inline-block;
	color: #1e7bed;
}



/* Menu Button */
.menu-button {
	position: fixed;
	z-index: 1000;
	top: 0;
	left: 0;
	margin: 0;
	padding: 0;
	width: 3.25rem;
	height: 3.25rem;
	border: none;
	font-size: 3rem;
	color: #333;
	background: transparent;
	-webkit-transition: -webkit-transform 0.3s;
	transition: transform 0.3s;
}
.menu-button:hover {
	opacity: 0.6;
}




.user-menu {
	background: #eee;
}
.user-menu h4 {
	display: inline-block;
	width: 12.5em;
	margin: 0 0 0 2.5em;
	padding: 0 0 0 0.5em;
	font-size: 1em;
	line-height: 3.25em;
	color: #d2d2d2;
}
.user-menu h4 a {
	color: #333;
}
.user-menu .icon-user {
	position: absolute;
	top: .15em;
	left: .15em;
	color: #dcdcdc;
	font-size: 2.5em;
	cursor: default;
}
.user-menu div {
	float: right;
	padding-right: 1em;
	display: inline-block;
	line-height: 3.25em;
	color: #fff;
}
.user-menu div a {
	font-size: 1.75em;
	color: #333;
}
