/* 
Theme Name: Khalid Shafar responsive
Description: Khalid Shafar responsive theme
Version: 1.0
Author: Andy
*/

/* General styles                                   */
/* ------------------------------------------------ */
body {
	margin: 0;
	background: #ffffff;
	min-width: 400px;
}

html, body {
	height: 100%;
}

html, body, p, li, ul, dd, td {
	color: #6d6f71;
	font: 1.0em 'Open Sans', arial, verdana, helvetica, sans-serif;
}

img a, a img {
	border: 0;
}

td {
	vertical-align: top;
}

a {
	color: #999;
	text-decoration: underline;
	outline: none;
}
  
a:hover {
	color: #000; 
}

ul { 
	margin: 8px 0 18px 18px;
	padding: 0;
}

li {
	padding-left: 4px;
	line-height: 160%;
	padding-bottom: 6px;
}

h1, h1 a, h2, h2 a, h3, h3 a {
	line-height: 120%;
	color: #474745;
	text-transform: uppercase;
	font-weight: 300;
}

h1, h1 a {
	font-size: 17px;
	margin-top: 0;
}

h2, h2 a {
	font-size: 16px;
}

h3, h3 a {
	font-size: 15px;
}

hr {
	height: 1px;
	clear: both;
	display:inline-block;
	border: 0;
	width: 100%;
	background: #bbbbbb;
	color: #bbbbbb;
	margin: 60px 0 60px 0;
}
  
#wrapper, #header-wrapper {
	width: 920px;
	padding: 0 10px;
	margin: 0 auto;
	background: #fff;
}

#header-wrapper {
	width: 98%;
}


#wrapper {
	height: 100%;
}

#header-container {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	z-index: 9999;
	min-width: 400px;
}


/* Header                                           */
/* ------------------------------------------------ */
#header {
	overflow: hidden;
	border-bottom: 1px solid #bbbbbb;
	height: 38px;
}

.header-inner {
	text-align: center;
}

#logo {
	float: right;
}


/* Navbar                                           */
/* ------------------------------------------------ */
#navbar, #subnavbar, #subnavbar-responsive {
	margin: 0 auto;
}


#navbar ul, #subnavbar ul, #subnavbar-responsive ul, .bottom-menu ul {
	margin: 0 auto;
	list-style-type: none;
}

#navbar ul li, #subnavbar ul li, #subnavbar-responsive ul li, .bottom-menu ul li {
	background: none;
	font-size: 11px;
	letter-spacing: 0.5px;
	float: left;
	text-transform: uppercase;
	line-height: 38px;
	padding: 0;
}

#navbar ul li a, #subnavbar ul li a, #subnavbar-responsive ul li a, .bottom-menu ul li a {
	color: #808285;
	padding: 0 18px;
	text-decoration: none;
	border-right: 1px solid #959699;
}

#navbar ul li a:hover, #subnavbar ul li a:hover, #subnavbar-responsive ul li a:hover, .bottom-menu ul li a:hover {
	color: #231f20;
}

#navbar ul li.current_page_item a, #navbar ul li.current-page-ancestor a, #subnavbar ul li.current_page_item a, #subnavbar-responsive ul li.current_page_item a, .bottom-menu ul li.current_page_item a {
	color: #231f20;
	font-weight: bold;
}

#navbar ul li:first-child a, #subnavbar ul li:first-child a, #subnavbar-responsive ul li:first-child a, .bottom-menu ul li:first-child a {
	padding-left: 0;
}

#navbar ul li:last-child a, #subnavbar ul li:last-child a, #subnavbar-responsive ul li:last-child a, .bottom-menu ul li:last-child a {
	border-right: 0;
	padding-right: 0;
}

.bottom-menu {
	height: 40px;
	border-top: 1px solid #bcbec0;
	border-bottom: 1px solid #bcbec0;
	margin: 0 auto;
	clear: both;
}

.bottom-menu ul li.current-menu-item {
	display: none;
}

.navbar-inner {
	float: left;
}

#subnavbar, #subnavbar-responsive {
	overflow: hidden;
	border-bottom: 1px solid #bbbbbb;
}

#subnavbar ul li a, #subnavbar-responsive ul li a {
	border-right: 0;
}


.anchor-link {
	display: none;
	float: left;
	height: 38px;
	line-height: 25px;
	background: url(images/menu.gif) bottom left no-repeat;
	text-transform: uppercase;
}

a.anchor-link {
	color: #231f20;
	text-decoration: none;
	font-size: 12px;
}

/* Homepage                                         */
/* ------------------------------------------------ */
#header-home {
	width: 100%;
	height: 42px;
	text-align: center;
	position: absolute;
	background: #fff;
	top: 0;
	left: 0;
	z-index: 99;
}

#wrapper-home {
	height: 100%;
	width: 100%;
	overflow: hidden;
	position: relative;
	text-align: center;
}

#wrapper-home img {
	height: 100%;
	width: auto;
}

#wrapper-home div {
	width: 100%;
	height: 100%;
	background-repeat: no-repeat;
}

#home01 {
	background-image: url(images/khalid-shafar-homepage01.jpg);
	background-size: contain;
	background-position: center;
}

#home02 {
	background-image: url(images/khalid-shafar-homepage02.jpg);
	background-size: cover;
	background-position: 70% 10%;
}

#home03 {
	background-image: url(images/khalid-shafar-homepage03.jpg);
	background-size: contain;
	background-position: center;
}

#home04 {
	background-image: url(images/khalid-shafar-homepage04.jpg);
	background-size: cover;
	background-position: 46% 70%;
}

#home05 {
	background-image: url(images/khalid-shafar-homepage05.jpg);
	background-size: cover;
	background-position: center;
}

#home06 {
	background-image: url(images/khalid-shafar-homepage06.jpg);
	background-size: contain;
	background-position: center bottom;
}

#home07 {
	background-image: url(images/khalid-shafar-homepage07.jpg);
	background-size: cover;
	background-position: center top;
}

/* Content                                          */
/* ------------------------------------------------ */
#content {
	padding: 0 6% 25px 6%;
}

.ie8 #content {
	position: relative; /* IE8 and below - keep the designs next/prev controls in the right place */
}

#content, #content p, content li {
	line-height: 160%;
	font-size: 12px;
}

#content-slider {
	width: 868px;
	margin: 0 auto;
}

#content-inner {
	width: 768px;
	margin: 0 auto;
}

#content-inner {
	height: 100%;
}

#content-hoverboxes { /* content hoverboxes pages have a double-line header, so more padding */
	padding-top: 170px;
	max-width: 840px;
	width: 840px;
	margin: 0 auto;
}

#content-inner {
	padding-top: 140px;  /* content inner pages have a double-line header, so more padding */
}

#content-inner img {
	max-width: 100%;
	height: auto;
}

/*
#test2 {
	height: 500px;
	margin-top: -250px;
	position: absolute;
	top: 50%;
	left: 0;
	width: 100%;
}
*/

/* vertically center slider */
#slider-wrapper-outer {
	height: 540px; /* if this height is changed ensure to also change the heights in jquery.bxslider.css to match */
	margin-top: -250px;
	position: absolute;
	top: 50%;
	left: 0;
	width: 100%;
}

.box-wrapper {
	width: 29%;
	margin: 2%;
	width: 240px;
	height: 240px;
	margin: 19px;
	float: left;
}

.box {
	border: 1px solid #c8c9cb;
	position: relative;
}

.box img {
	width: 100%;
	height: auto;
	display: block;
}


.box:hover {
	border: 1px solid #999;
}

.box-label {
	-moz-opacity: 0; 
	filter: alpha(opacity=0); 
	opacity: 0;
	position: absolute;
	height: 100%;
	width: 100%;
	top: 0;
	text-align: center;
	overflow: hidden;
	z-index: 99;
	background: #fff;
	-webkit-transition: all 0.4s ease-in-out;
	-moz-transition: all 0.4s ease-in-out;
	-o-transition: all 0.4s ease-in-out;
	-ms-transition: all 0.4s ease-in-out;
	transition: all 0.4s ease-in-out;
}

.box-label span {
	display: table;
	height: 100%;
	width: 92%;
	padding: 0 4% 0 4%;
	background: #fff;
}

.box-label p {
	position: relative;
	margin: 0;
	vertical-align: middle;
	display: table-cell;
	text-transform: uppercase;
}

.box-label a {
	text-decoration: none;
	color: #9d6f71;
	font-size: 15px;
}

.box-label  img {
	padding: 5px 0;
	height: auto;
	width: auto;
	margin: 0 auto;
	margin-top: 20px;
}

.box-label:hover {
	-moz-opacity: 1; 
	filter: alpha(opacity=100);
	opacity: 1;
}

.spacer {
	height: 120px;
	clear: both;
}

.spacer-short {
	height: 40px;
	clear: both;
}

.anchor {
	clear: both;
	position: relative;
	top: -135px;
	height: 1px;
	display: block;
}

#closebutton {
	position: absolute;
	top: 0;
	right: 3%;
	z-index: 999;
}


#closelink:hover {
	cursor: pointer;
}


#presstales {
	overflow: hidden;
}

#presstales a:active, #presstales a:focus {
	/*border: 0;*/
	outline: none;
}

.presstalethumb {
	width: 21%;
	margin: 2%;
	float: left;
}

.presstalethumb img {
	width: auto;
	height: 100%;
	vertical-align: top;
	border: 1px solid #fff;
}

.presstalethumb img:hover {
	border: 1px solid #b2b1b1;
}

.presstale-single {
	margin: 30px auto 130px auto;
	text-align: center;
}


/* Footer                                           */
/* ------------------------------------------------ */
#footer {
	font-size: 0.8em;
	margin-top: 60px;
	margin-bottom: 60px;
	line-height: 38px;
	text-transform: uppercase;
	clear: both;
	max-width: 900px;
}

/* 
#footer ul li a {
	padding: 0 15px 0 10px;
}
*/


#footer span {
	padding: 0 15px;
}

#copyright {
	margin: 0 auto;
	max-width: 900px;
	margin-bottom: 10px;
	line-height: 38px;
	text-transform: uppercase;
}

#copyright, #copyright a, #copyright p {
	font-size: 10px;
	color: #bbb;
	
}

.scrollup {
	width:40px;
	height:40px;
	/* opacity:0.3; */
	position:fixed;
	bottom:20px;
	right:10px;
	display:none;
	text-indent:-9999px;
	background: url('images/top.gif') no-repeat;
}

.clearfix {
	clear: both;
}


ol.cf-ol {
	list-style-type: none;
}


/* WP Common Styles */

ol.commentlist {
	margin:0;
	padding:0;
	}

.commentlist li {
	list-style:none;
	margin-bottom:14px;
	}

.commentlist cite {
	padding: 7px;
	display:block;
	font-style:normal;
	background:url(http://www.yoursite.com/images/bg_comments2_cite.gif);
	border-top:1px solid #d6e4c1;
	border-bottom:1px solid #779d42;
	color:#596e3b;
	}	

.commentlist a:link, .commentlist a:visited {
	color:#596e3b;
	}

.commentlist a:hover, .commentlist a:active {
	color:#8ec343;
	}

.commentlist cite img {
	padding:1px;
	border:1px solid #aab59a;
	float:left;
	margin-right:9px;
	}

.commentlist .author {
	font: small-caps bold 1.2em Georgia, "Times New Roman", Times, serif;
	text-decoration:underline;
	}

.commentlist .time {
	background: url(http://www.yoursite.com/images/bg_clock.gif) no-repeat 1px;
	padding-left:13px;
	}

.commenttext {
	background: #9bc561 url(http://www.yoursite.com/images/bg_comments2_text.jpg) repeat-x bottom;
	border-top:1px solid #c5f386;
	padding: 0 20px 10px 20px;
	color:#fafcf6;
	}

.editLink {
   text-align: center;
   padding: 5px 0 15px 0;
}
.editLink a, a.editLink {
   background: #e0e0e0;
   color: #777777;
   font-size: 10px; 
   border: 1px solid #999999;
   text-decoration: none;
   padding: 3px 5px;
}
.editLink a:hover, a.editLink:hover {
   background: #eeeeee;
   border: 1px solid #333333;
   color: #000000;
}
.postmetadata {
   color: #999;
   font-size: 10px;
   margin: 2px 0;
}

img.aligncenter {
   display: block;
   text-align: center;
   margin: 0 auto;
}
img.alignright {
   text-align: right;
   display: block;
   float: right;
   margin: 10px 0px 5px 15px;
}
img.alignleft {
   text-align: left;
   display: block;
   float: left;
   margin: 10px 20px 5px 0px;
}
.wp-caption-text,.wp-caption-dd {
   margin: 0;
   font-weight: bold;
   font-size: smaller;
   text-align: center;
}
.wp-caption {
   margin-right: 5px;
}
.more-link {
   display:block;
}
.linklove {
   display:none;
}
.aligncenter,
dl.aligncenter {
	display: block;
	margin-left: auto;
	margin-right: auto;
}
.alignleft {
	float: left;
}
.alignright {
	float: right;
}