/*  
Theme Name: Kane Street Synagogue's Theme
Theme URI: http://kanestreet.org/
Description: A WP theme designed specially for Kane Street Synagogue's website.
Version: 1.0
Author: Aaron Hodge Silver
Author URI: http://springthistle.com/
*/

body {
	margin: 0;
	background-color: #67999a;
	font-family: tahoma;
	font-size: 12px;
	color: #000;
	line-height: 20px;
}

a {
	color: #346667;
}

a:hover {
	text-decoration: none;
}
span.gc-cs-link { color: #000; text-decoration: none; }

img {
	border: none;
}

img.brd {
	padding: 4px;
	border: 1px solid #ccc;
}

.clr { clear: both; height: 0px; }

h2 {
	color: #cd3333;
	font-size: 24px;
	margin-top: 10px;
	font-weight: normal;
}

h3 {
	color: #cd3333;
	font-size: 18px;
	margin-top: 10px;
	font-weight: normal;
}

hr {
	border: none;
	border-top: 2px solid #ddd;
	margin: 20px 0;
	background: none;
	height: 1px;
}

form {
	display: inline;
}

.link {
	background-repeat: no-repeat;
	padding: 2px 0 2px 20px;
}
.pdf { background-image: url('images/icon-pdf.gif'); }
.doc { background-image: url('images/icon-doc.gif'); }
.xls { background-image: url('images/icon-xls.gif'); }
.arrowup { background-image: url('images/icon-uparrow.jpg'); }



/*/////////// STRUCTURAL STYLES //////////////////////////////////*/
#container {
	width: 930px;
	margin: 0 auto 20px auto;
	background: #fff; 
}

#topmenu {
	border-top: 1px solid #154849;
	border-bottom: 1px solid #154849;
	height: 35px;
	background-color: #CC9933;
	position: relative;
	z-index: 100;
}

#photo {
	height: 150px;
}

#container2 {
	border-top: 10px solid #fff;
	background-color: #fff;
}

/*/////////// HEADER //////////////////////////////////*/

#header {
	height: 99px;
	background-image: url('images/header.jpg');
	background-repeat: no-repeat;
}

#header h1, #header h2 {
	display: none;
}

#contactbox {
	font-size: 12px;
	font-family: verdana;
	width: 195px;
	float: right;
	line-height: 14px;
	color: #fff;
	padding-top: 40px;
}

#contactbox a, #contactbox a:visited {
	color: #fff;
}

#contactbox span.gc-cs-link { color: #fff; text-decoration: none; }

#home-photo, #stainedglass-photo {
	background: url('images/stainedglass.jpg');
	height: 223px;
}
#home-photo { display: none;  }


/*/////////// HOME PAGE //////////////////////////////////*/

#container-home, #home2015 {
	background-image: none;
	background-color: #fff;
	border-top: 1px solid #fff;
	padding-top: 10px;
}

.home #stainedglass-photo { display: none;  }
.home #home-photo { display: block;  }

.home .column { float: left; margin-right: 2%; padding-left: 1%; }
.home .column.twothirds-column { width: 65%; }
.home .column.onethird-column {  width: 29%;  }
.home .column.half-column { width: 48%; }
.home .column.last { margin-right: 0; }


/*/////////// SIDEBAR //////////////////////////////////*/

#sidebar {
	width: 200px;
	float: left;
	padding-top: 20px;
}

#sidebar ul {
	margin: 0;
	padding: 0 0 0 20px;
}

#sidebar ul li {
	list-style-type: none;
	margin-bottom: 5px;
	font-weight: bold;
}

#sidebar hr {
	border-top: 1px solid #ddd;
	border-bottom: 1px solid #fff;
}

#sidebar h3 {
	margin: 10px 0 10px 10px;
	font-size: 14px;
	font-family: arial;
	color: #999;
}

#sidebar .current_page_item a {
	color: #333;
	text-decoration: none;
}


/*/////////// CALENDAR //////////////////////////////////*/

#content-wide {
	border-top: 1px solid #fff;
	padding: 20px 0 20px 30px;
	background: none;
	background-color: #fff;
}

/*/////////// CONTENT //////////////////////////////////*/


#content {
	width: 655px;
	float: right;
	padding: 0 65px 50px 5px;
}

#content img {
	float: right;
	margin: 0 0 20px 10px;
	border: 1px solid #ccc;
	padding: 3px;
	max-width: 98%;
}

#content img.alignleft {
	float: left;
	margin: 0 10px 20px 0;
}

#content img.iffimage {
	width: 175px;
}

#content .caption {
	float: right;
	text-align: center;
	color: #999;
	margin: 0 10px 0 10px;
	border: 1px solid #ccc;
	padding: 3px 3px 0 3px;
	line-height: 12px;
	font-size: 10px;
}


#content img.edit {
	border: none;
	float: none;
	margin: 0;
	padding: 0;
}

#content .caption img {
	margin: 0 0 8px 0;
	border: none;
	padding: 0;
	float: none;
	display: block;
}

.big, #content .big img {
	width: 250px;
}

.link {
	background-repeat: no-repeat;
	padding: 2px 0 2px 20px;
}
.pdf { background-image: url('images/icon-pdf.gif'); }
/*.doc { background-image: url('/images/icon-doc.gif'); }
.zip { background-image: url('/images/icon-zip.gif'); }
.ppt { background-image: url('/images/icon-ppt.gif'); }
.htm { background-image: url('/images/icon-htm.gif'); }*/

.large_button { font-size: 14px !important;}


/*/////////// FOOTER //////////////////////////////////*/

#footer {
	clear: both;
	background-color: #CC9933;
	border-top: 1px solid #fff;
	padding: 9px;
	color: #000;
	font-size: 10px;
	font-family: verdana;
	height: 20px;
}

#footer a, #footer a:visited {
	color: #000;
}

#footer input {
	background-color: #fff;
	border: none;
	color: #999;
	font-size: 10px;
	font-family: verdana;
	padding: 4px;
}

#footer input[type="submit"] { padding: 3px; }

#footer ul, #footer div.menu-main-navigation-container {
	margin: 0;
	padding: 0;
	display: inline;
}

#footer ul li {
	list-style-type: none;
	display: inline;
	padding: 0 8px;
	border-left: 1px solid #000;
}

#credits {
	text-align: center;
	color: #fff;
	padding-top: 15px;
	font-size: 11px;
	background: #67999a;
}

#credits a, #credits a:visited {
	color: #fff;
}

/*////////// DROPDOWN MENU //////////*/

#mainnav, #mainnav ul { /* all lists */
	padding: 0;
	margin: 0;
	list-style-type: none;
	line-height: 1;
}

#mainnav a {
	display: block;
	text-decoration: none;
	color: #000;
	/* width: 10em; */
}

#mainnav li { /* all list items */
	float: left;
	/*width: 7.8em;  width needed or else Opera goes nuts */
	font-size: 12px;
	font-weight: normal;
}

#mainnav li a { /* all list links */
	border-left: 1px solid #154849;
	padding: 12px 30px 11px 30px;
	margin: 0;
}

#mainnav li a:hover,
#mainnav li.current-menu-ancestor > a,
#mainnav li.current-page-ancestor > a,
#mainnav li.current-menu-item > a  {
	background-color: #F0E68C;
}

#mainnav li ul { /* second-level lists */
	position: absolute;
	width: 210px;
	border: none;
	font-family: tahoma;
	margin: 0;
	padding: 0;
	background-color: #F0E68C;
	left: -999em; /* using left instead of display to hide menus because display: none isn't read by screen readers */
}

#mainnav li ul ul { /* third-and-above-level lists */
	margin: -1em 0 0 10em;
}

#mainnav li ul li { /* second-level list items */
	padding: 0;
	font-size: 12px;
	width: 210px;
	border: none; /* to negate the default border on top level items */
	margin: 0;
}

#mainnav li ul li a { /* second-level links */
	background-color: none;
	padding: 8px 0 8px 15px;
	border: none;
	margin: 0;
}

#mainnav li ul li a:hover {
	background-color: #fff;
}

#mainnav li:hover ul ul, #mainnav li.sfhover ul ul {
	left: -999em;
}

#mainnav li:hover ul, #mainnav li li:hover ul, #mainnav li.sfhover ul, #mainnav li li.sfhover ul { /* lists nested under hovered list items */
	left: auto;
}

/* donate button */

#mainnav li:last-child > ul > li:first-child {
	border-bottom: 1px solid #999;
	padding: 0; 
}
#mainnav li:last-child > ul > li:first-child > a {
	display: block;
	text-indent: -3000px;
	height: 50px;
	background-image: url('/wp-content/themes/kanestreet/images/donate-button.png');
	background-repeat: no-repeat;
	background-position: center;
	padding: 12px 0 13px 0;
}

/* ---------------------------------------------------------------------- 
  Staff styles
---------------------------------------------------------------------- */

.staff_item { border-bottom: 1px solid #ddd; margin-bottom: 25px; padding-bottom: 20px; }
.staff_info { width: 25%; float: left; margin-right: 2%; }
.has-post-thumbnail .staff_content { width: 70%; float: left; }
.staff_item h3 { margin: 0 0 5px 0; }
.staff_item h4 { margin: 0; font-size: 16px; font-weight: normal; }
.staff_item h4 a { color: #000; text-decoration: none; }
.staff_item h4 a:hover { text-decoration: underline; color: #666; }
#content .staff_info img { float: none; width: 100%; padding: 0; margin: 0 0 10px 0; }

#content .staff_directory .staff_info { width: 8%; }
.staff_directory .staff_item { padding-bottom: 10px; margin-bottom: 10px; }
.staff_directory .staff_item h3 { font-size: 13px; font-weight: bold; color: #333; line-height: 16px; }
.staff_directory .staff_item h4 { font-size: 12px; line-height: 13px; }

body.single-staff .staff_item { border: none; }

/* ---------------------------------------------------------------------- 
  Mobile header
---------------------------------------------------------------------- */
#mobile-header {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	background: url('images/mobile-header.jpg') no-repeat #356768 0 6px;
	background-size: 82%;
	z-index: 9999;
	padding: 10px 0;
}
#mobile-overlay {
	display: none;
	background: url('images/overlay-bg.png') repeat;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 9999;
}
a#mobile-logo {
	color: #ffffff;
	font-size: 18px;
	font-weight: 700;
	line-height: 28px;
	margin-left: 0px;
	text-indent: -2000px;
	display: block;
	width: 300px;
	float: left;
}
a#mobile-nav-btn {
	display: inline-block;
	float: right;
	line-height: 28px;
	padding: 0;
	position: relative;
	z-index: 10001;
	cursor: pointer;
	background: none !important;
	margin-right: 20px;
}
#mobile-nav-btn img {
	display: inline-block;
	vertical-align: middle;
}
#mobile-nav {
	display: none;
	background: #222;
	position: absolute;
	top: 48px;
	left: 0;
	z-index: 10000;
	width: 100%;
	overflow-y: auto;
}
#mobile-nav ul {
	margin-left:0;
	padding-left: 0;
}
#mobile-nav li {
	width: auto;
	display: block;
	border-bottom: 1px solid #666;
}
#mobile-nav li a {
	display: block;
	font-size: 18px;
	color: #eee;
	font-weight: 700;
	padding: 11px 10px;
	letter-spacing: 1px;
	text-decoration: none;
}
#mobile-nav li li {
	border-top: 1px solid #666;
	border-bottom: none;
}

#mobile-nav .sub-menu li a {
	font-size: 16px;
	padding: 8px 10px 8px 25px;
}
#mobile-nav li a:hover, 
#mobile-nav li.current-menu-item a {
	color: #fff;
	background: #444;
}

#mobile-header #contactbox {
	float: none;
	font-size: 12px;
	width: 99%;
	padding: 0 0 1% 1%;
	background: #356768;
}

@media only screen and (max-width: 900px) {

}

@media only screen and (max-width: 767px) {
	#mobile-header { background-size: 52%; }
	#mobile-header {display: block; }
	div#wpadminbar, #header, #topmenu, #stainedglass-photo { display: none; }
	#container { width: 100%; }
	#sidebar { width: 23%; }
	#content { width: 74%; padding-right: 2%; padding-left: 0; }
	#footer { text-align: center; }
	#footer ul, #footer span { display: none; }
	
	.home .column.onethird-column, .home .column.twothirds-column { padding: 0 4%; width: 92%; float: none; }
}

@media only screen and (max-width: 600px) {
	#sidebar { width: 100%; background: #f6f6f6; padding-top: 0; }
	#sidebar ul { margin: 8px 0; padding: 0; }
	#sidebar ul li { display: inline; margin-left: 5px; line-height: 2.4em; }
	#sidebar ul li a { border: 1px solid #ddd; padding: 4px 6px; text-decoration: none; white-space: nowrap;}
	#sidebar .current_page_item a { background: #fff; }
	#content { width: 94%; padding: 0 3%; }	
	
	.home .column.half-column { width: 100%; padding: 0; float: none; }
	.home h3 { border-top: 2px solid #ddd; padding-top: 15px; }
	.home #text-5 h3 { border: none; padding-top: 0;}
	.home #home-photo { display: none; }

@media only screen and (max-width: 479px) {
	#mobile-header { background-size: 82%; }
	#footer { height: auto; }
	#footer input[type="text"] { width: 75%; font-size: 15px; padding: 2%; }
	#footer input[type="submit"] { width: 5%; font-size: 15px; padding: 2% 5% 2% 3%; }
	#credits span { display: block; }
	#credits span.sep { display: none; }
	html { margin-top: 46px !important; }
	* html body { margin-top: 46px !important; }
	
	#content img { float: none; clear: both; display: block; margin: 5px auto; }
}