
/*mobile-menu*/
/* header */
#header{
	height:auto;
}

/* reset absolute elements to static */
.topbar-widget,
#site-logo,
#site-description,
#main-nav{
	position:static;
}
.topbar-widget .widget,
.topbar-widget .rss{
	margin:1.5em 0;
	float:none;
	display:inline-block;
	vertical-align:top;
}
.topbar-widget ul{
	float:none;
	margin-bottom:0;
}

/* site logo */
#site-logo{
	max-width:210px;
	margin-top:20px;
	line-height:1.4em;
	font-size:1.55em;
}

.mobile-button{
	background:#eaeaea;
	border-radius:5px;
	width:32px;
	height:30px;
	display:block;
	position:absolute;
	right:0;
	top:14px;
	cursor:pointer;
	z-index:99;
}
.mobile-button:before{
	content:"\f0c9";
	font:normal 21px/1em 'themify_theme_icons';
	color:#000;
	position:absolute;
	top:50%;
	left:50%;
	margin:-.5em 0 0 -.5em;
	width:1em;
	height:1em;
	text-align:center;
}

/* MOBILE NAV BUTTON
================================================ */
#headerwrap nav{
	position:relative;
}

/* main nav */
#main-nav{
	clear:both;
	position:absolute;
	top:0;
	right:0;
	left:auto;
	bottom:auto;
	width:220px;
	z-index:1000;
	padding:5px 0;
	background:#fff;
	border:solid 1px #999;
	display:none; /* visibility will be toggled with jquery */
	box-shadow:1px 2px 12px rgba(0,0,0,.2);
	margin-top:50px;
	max-height:70vh;
	overflow:auto;
	-webkit-overflow-scrolling:touch;
}
#main-nav li{
	clear:both;
	float:none;
	display:block;
	padding:0;
	margin:0;
}
#main-nav a,
#main-nav ul a{
	font:inherit;
	text-transform:inherit;
	background:none;
	width:auto;
	display:block;
	padding:6px 15px;
	margin:0;
	color:#666;
	border:none;
	text-shadow:none;
	box-shadow:none;
}
#main-nav a:hover,
#main-nav ul a:hover{
	background:rgba(0,0,0,.05);
	color:#000;
}

/* dropdown */
#main-nav ul{
	position:static;
	display:block;
	margin:0;
	padding:0;
	background:none;
	border:none;
	border-radius:0;
	box-shadow:none;
}
#main-nav ul a{
	padding-left:30px;
}

/* searchform */
#header #searchform{
	left:auto;
	right:0;
	top:10px;
	text-align:right;
}
#header #searchform #s{
	width:45px;
	transition:all 0.5s ease;
}
#headerwrap #searchform #s:focus,
#headerwrap #searchform #s:hover{
	width:160px;
	outline:0;
}
#main-nav .child-arrow{
	display:none !important;
}