﻿/*
 * Navigataur: A pure CSS responsive navigation menu
 * Author: Mike King (@micjamking)
 */
/*
 	Notes:
 
 	- Media queries should be edited in both style sections if you require 
	  a different breakpoint for your navigation.
	  
	- Toggle class & menu anchor tags in list items have box-sizing: border-box 
	  style property to allow padding inside the container without conflicting with layout.	

*/
/*--------------------------------
 Functional Styles (Required)
---------------------------------*/
/* Tim Pietrusky advanced checkbox hack (Android <= 4.1.2) */
body {
	-webkit-animation: bugfix infinite 1s;
}
@-webkit-keyframes bugfix { from {padding:0;} to {padding:0;} }
.header {
	position: relative;
	direction: rtl;
	text-align: right;
}
#toggle, .toggle {
	display: none;
}
.menu {
	margin: 0px;
	direction: rtl;
}
.menu > li {
	list-style: none;
	float: right;
	color: black;
	font-family: 'GK Bold',Arial;
	font-weight:normal;
	font-size: 0.9em;
	text-align: right;
	padding:0px 0px 0px 10px;
}
/* Nicolas Gallagher micro clearfix */
.clearfix:before, .clearfix:after {
	display: table;
	content: "";
}
.clearfix:after {
	clear: both;
}
@media only screen and (max-width: 768px){
.menu {
	display: none;
	opacity: 0;
	width: 100%;
	position: absolute;
	right: 0px;
	z-index: 99999;
}
.menu > li {
	display: block;
	width: 100%;
	margin: 0;
}
.menu > li > a {
	display: block;
	width: 100%;
	text-decoration: none;
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	box-sizing: border-box;
}
.toggle {
	display: block;
	position: relative;
	cursor: pointer;
	-webkit-touch-callout: none;
	-webkit-user-select: none;
	user-select: none;
	z-index: 1000;
}
#toggle:checked ~ .menu { display: block; opacity: 1;}
}
/*--------------------------------
 Presentation Styles (Editable)
---------------------------------*/
.nav {
	display: block;
	float: left;
	width: auto;
	margin-top: 5px;
	background: none;
}
.menu {
	width: 100%;
	margin-right: 0;
}
.nav, .menu, .menu > li, .menu > li > a {
	height: 100%;
}
.menu > li > a {
	display: block;
	padding: 10px;
	text-decoration: none;
	font-weight: normal;
	font-size: 1em;
	line-height: 1;
	color: #8dc53e;
	text-transform: uppercase;
}
.menu > li > a:hover, .menu > li > a:focus {
	border-bottom:0px solid #3399cc;
	color: #64961d;
	padding: 10px;
}


.menu > li:last-child > a {
	padding-left: 0px !important;
}

.toggle {
	z-index: 2;
	margin: 0 auto;

}



@media only screen and (max-width: 768px){
.nav {
	display: block;
	border-bottom: 0px;
	width:100%;
}
.menu {
	background: #f1f1f1;
}
.menu, .menu > li, .menu > li > a {
	height: auto;
	border-bottom:1px solid #e8e7e7;
}
.menu > li > a {
	padding: 15px 15px;
	color: black;
	border-bottom: 0px;
	text-align: right;
}
.menu > li > a:hover, .menu > li > a:focus {
	background: #eeeeee;
	box-shadow: inset 5px 0px #a5ce2f;
	padding: 15px 15px 15px 25px;
	text-align: right;
}
.toggle:after {
	content: 'الاقسام';
	display: block;
	width: 100%;
	margin: 0 auto;
	padding: 1%;
	background: #aad135;
	-webkit-border-radius: 0px;
	border-radius: 0px;
	text-align: center;
	font-size: 0.9em;
	color: #ffffff;
	-webkit-transition: all 0.5s linear;
	-moz-transition: all 0.5s linear;
	-o-transition: all 0.5s linear;
	transition: all 0.5s linear;
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	box-sizing: border-box;
	font-size:16px;
	font-family: 'GK Bold',Arial;
	font-weight:normal;
}
.toggle:hover:after {
	background: #8db627;
}
#toggle:checked + .toggle:after {
	content: 'الاقسام';
	font-size:16px;
	font-family: 'GK Bold',Arial;
	font-weight:normal;
}
}
@media only screen and (max-width: 479px){
.header > h1 {
	text-align: center;
}
.header > h1, .nav,      {
	float: right !important;
	border: none;
}
.nav {
	display: block;
	border-bottom: 0px;
}
.toggle:after {
	text-align: center;
	width: 100%;
	content: 'الاقسام';
	display: block;
	margin: 1px 0;
	padding: 10px 50;
	background: #8db627;
	-webkit-border-radius: 0px;
	border-radius: 0px;
	text-align: center;
	font-size: 16px;
	color: #FFFFFF;
	-webkit-transition: all 0.5s linear;
	-moz-transition: all 0.5s linear;
	-o-transition: all 0.5s linear;
	transition: all 0.5s linear;
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	box-sizing: border-box;
}
}
