/*
Theme Name: NCDO
Author: Studio Joyo
*/

/*
General page layout, structure and style
========================================
*/
html {
	background: white;
	font: normal 68.75%/1.5em Verdana, Helvetica, Arial, sans-serif;
}

body {
	margin: 0;
	padding: 0 0 15px;
}

#body {
	margin: auto;
	padding: 0;
	width: 960px;
}

#page {
	background: url(images/sidebar.gif) repeat-y right;
	overflow: hidden;
	padding-bottom: 50px;
	_zoom: 1;
}

#content {
	display: inline;
	float: left;
	_margin-right: -4px;
	padding: 0 24px 0 12px; /* these values are used throughout the CSS! */
	width: 684px;
}

#sidebar {
	margin-left: 720px;
	_margin-left: auto;
	_width: 240px;
}



/*
Tag defaults
========================================
*/

p {
	margin: 0 0 1em;
}

a {
	color: #61298a;
	text-decoration: none;
}
	a:hover {
		text-decoration: underline;
	}

ul {
	list-style-type: square;
}



/*
Header levels
----------------------------------------
Specify the same properties for all levels for when a different header class
is applied to a header tag.
*/

h2, .h-chapter {
	font: bold 176% "Meta-Bold", Helvetica, Arial, sans-serif;
	font-size-adjust: 0.53;
	margin: 0 -24px 20px -12px; /* see #content padding */
	padding: 3px 12px 4px;
}

h3, .h-section {
	border: 0;
	font: bold 176% "Meta-Bold", Helvetica, Arial, sans-serif;
	font-size-adjust: 0.53;
	height: auto;
	margin: 18px 0;
	padding: 0;
}

h4, .h-sub {
	border: 0;
	font: bold 116% Verdana, Helvetica, Arial, sans-serif;
	height: auto; 
	margin: 1em 0 2px;
	padding: 0;
}

h5, .h-overview, .widgettitle {
	border: 0;
	font: bold 123% Helvetica, Arial, sans-serif;
	height: auto;
	margin: 0 0 20px;
	padding: 16px 12px;
}
	#sidebar .h-overview, #sidebar .widgettitle {
		background: #bed13d;
		color: white;
		margin: 0;
	}

	a h5:before, a .h-overview:before {
		content: url(images/link.png);
		margin-right: 4px;
	}

h2 a, .h-chapter a, h5 a, .h-overview a {
	color: white;
}
	h2 a:hover, .h-chapter a:hover, h5 a:hover, .h-overview a:hover {
		text-decoration: underline;
	}


/* Header mix-in */
.overview {
	margin-bottom: 0;
}



/*
More classes
----------------------------------------
*/

.more-link {
	background: #bed13d;
	bottom: -23px; 
	color: white;
	float: right;
	height: 18px;
	font-weight: bold;
	right: 0;
	padding: 2px 8px;
	position: absolute; /* needs a positioned parent! */
}
	.more-link:hover {
		background: #61298a;
	}

.chapter-overview {
	list-style: none;
	margin: 0 -16px 0 -14px;
	overflow: hidden;
	padding: 0;
	_zoom: 1;
}
	.chapter-overview a {
		color: inherit;
		text-decoration: none;
	}
		.chapter-overview a:hover p {
			text-decoration: underline;
		}

	.chapter-overview li {
		_display: inline;
		float: left;
		height: 172px;
		margin: 0 0 10px 6px;
		width: 345px;
	}
		.chapter-overview img {
			border-right: 7px solid;
			float: right;
			margin-left: 4px;
			margin-top: 8px;
		}
		.chapter-overview p {
			font-size: 138%;
			line-height: 1.2em;
			margin: 8px;
		}


.section-overview {
	color: inherit;
	list-style: none;
	margin-left: -12px;
	padding: 0;
}
	.section-overview li.section {
		border-bottom: 1px solid;
		border-top: 1px solid;
		margin: 30px 0;
		position: relative; /* for the .more-link */
		*zoom: 1;
	}
		/* contain the floated image without hiding the .more-link */
		.section-overview li.section:after {
		    content: ".";
		    display: block;
		    height: 0;
		    clear: both;
		    visibility: hidden;
		}
	
		.section-overview img {
			float: left;
			margin-right: 8px;
		} 

/* Wrapper for chapter navigation */
.page-title {
	position: relative;
}
	.page-title .h-chapter {
		padding-right: 368px; /* normal padding + nav-sections width */
	} 



/*
Header
========================================
*/

#header {
	position: relative;
	z-index: 1;
}

#headerimg {
	height: 82px;
	padding-bottom: 3px;
	text-indent: -2000px;
}	
	#headerimg h1 {
		margin: 0;
	}
		#headerimg h1 a {
			background: url(images/header.png) no-repeat;
			display: block;
			height: 65px;
		}



/*
Footer
========================================
*/

#footer {
	background: #61298a;
}
	#footer ul {
		background: white;
		color: #61298a;
		list-style: none;
		margin: 0;
		padding: 0;
	}		
		#footer .book {
			background: #bed13d;
			margin-left: 40%;
			padding-left: 30%;
			position: relative;
		}

		#footer li {
			border-left: 1px solid;
			display: inline;
			float: none;
			text-align: right;
			padding: 0 1ex;
		}
			#footer li:first-child {
				border-left: 0;
			}
			
			#footer .book li {
				border-width: 2px;
				color: white;
			}
				#footer .book a {
					display: inline-block;
					color: white;
					font-weight: bold;
				}
				#footer .book-icon {
					bottom: -15px;
					position: absolute;
					right: 0;
				}



/*
Sidebar widgets
========================================
*/

ul.widgets {
	list-style: none;
	margin: 0;
	padding: 0;
}
	#translation_bar a {
		display: inline-block;
		margin: 8px;
	}



/*
Homepage
========================================
*/

#home {
	color: #61298a;
	font-size: 116%;
	margin-bottom: 32px;
	position: relative;
	*zoom: 1; /* :before/:after for IE */
}
	/* Needed to prevent the header's top margin from collapsing and the image
	from overflowing. I'd normally use overflow, but I can't now, because of the
	.more-link that extends below. */ 
	#home:before, #home:after {
		clear: both;
		content: ' ';
		display: block;
		height: 0;
		visibility: hidden;
	}
	
	#home h2 {
		color: #61298a;
	}



/*
Old Kubrick Template CSS
========================================
*/

.commentlist li ul li {
	font-size: 1em;
}

.commentlist li {
	font-weight: bold;
}

.commentlist li .avatar { 
	float: right;
	border: 1px solid #eee;
	padding: 2px;
	background: #fff;
}

.commentlist cite, .commentlist cite a {
	font-weight: bold;
	font-style: normal;
	font-size: 1.1em;
}

.commentlist p {
	font-weight: normal;
	line-height: 1.5em;
	text-transform: none;
}

.commentmetadata {
	font-weight: normal;
}

small, .nocomments, .postmetadata, blockquote {
	color: #777;
}

#wp-calendar #prev a, #wp-calendar #next a {
	font-size: 9pt;
}

#wp-calendar a {
	text-decoration: none;
}

#wp-calendar caption {
	font: bold 1.3em 'Lucida Grande', Verdana, Arial, Sans-Serif;
	text-align: center;
}

#wp-calendar th {
	font-style: normal;
	text-transform: capitalize;
}
/* End Typography & Colors */



/* Begin Structure */
.post {
	margin: 0 0 40px;
}

.post hr {
	display: block;
}

.smallattachment {
	text-align: center;
	float: left;
	width: 128px;
	margin: 5px 5px 5px 0px;
}

.attachment {
	text-align: center;
	margin: 5px 0px;
}

.postmetadata {
	clear: both;
	padding-top: 5px;
}

.clear {
	clear: both;
}
/* End Structure */



/* Begin Images */
p img {
	padding: 0;
	max-width: 100%;
}

/*	Using 'class="alignright"' on an image will (who would've
	thought?!) align the image to the right. And using 'class="centered',
	will of course center the image. This is much better than using
	align="center", being much more futureproof (and valid) */

img.centered {
	display: block;
	margin-left: auto;
	margin-right: auto;
}

img.alignright {
	padding: 4px;
	margin: 0 0 2px 7px;
	display: inline;
}

img.alignleft {
	padding: 4px;
	margin: 0 7px 2px 0;
	display: inline;
}

.alignright {
	float: right;
}

.alignleft {
	float: left;
}
/* End Images */



/* Begin Lists */

.postmetadata ul, .postmetadata li {
	display: inline;
	list-style: none;
}

/* End Entry Lists */



/* Begin Form Elements */
#sidebar .widget_search {
	background: #bed13d;
	border-bottom: 1px solid white;
	border-top: 1px solid white;
	padding: 5px 0;
}
	#sidebar .widget_search:first-child {
		border-top: 0;
		padding-top: 0;
	}

#sidebar #searchform {
	overflow: hidden;
	padding: 0 8px;
	_zoom: 1;
}

#sidebar #searchform #s {
	background: #f1f5d6;
	border: 1px solid white;
	float: left;
	padding: 3px;
	width: 68%;
}

#sidebar #searchsubmit {
	background: #d3e07d;
	border: 1px solid white;
	color: white;
	float: right;
	font-size: inherit;
	font-weight: bold;
	padding: 3px;
	*padding: 2px 0; /* the button's already big in IE6/7 */
	width: 25%;
}
	#sidebar #searchsubmit:active {
		background: #61298a;
	}
	

.entry form { /* This is mainly for password protected posts, makes them look better. */
	text-align:center;
}

select {
	width: 130px;
}

#commentform input {
	width: 170px;
	padding: 2px;
	margin: 5px 5px 1px 0;
}

#commentform {
	margin: 5px 10px 0 0;
}
#commentform textarea {
	width: 100%;
	padding: 2px;
}
#respond:after {
		content: "."; 
	    display: block; 
	    height: 0; 
	    clear: both; 
	    visibility: hidden;
}
#commentform #submit {
	margin: 0 0 5px auto;
	float: right;
}
/* End Form Elements */



/* Begin Comments*/
.alt {
	margin: 0;
	padding: 10px;
}

.commentlist {
	padding: 0;
	text-align: justify;
}

.commentlist li {
	margin: 15px 0 10px;
	padding: 5px 5px 10px 10px;
	list-style: none;

}
.commentlist li ul li { 
	margin-right: -5px;
	margin-left: 10px;
}

.commentlist p {
	margin: 10px 5px 10px 0;
}
.children { padding: 0; }

#commentform p {
	margin: 5px 0;
}

.nocomments {
	text-align: center;
	margin: 0;
	padding: 0;
}

.commentmetadata {
	margin: 0;
	display: block;
}
/* End Comments */


/* Begin Calendar */
#wp-calendar {
	empty-cells: show;
	margin: 10px auto 0;
	width: 155px;
}

#wp-calendar #next a {
	padding-right: 10px;
	text-align: right;
}

#wp-calendar #prev a {
	padding-left: 10px;
	text-align: left;
}

#wp-calendar a {
	display: block;
}

#wp-calendar caption {
	text-align: center;
	width: 100%;
}

#wp-calendar td {
	padding: 3px 0;
	text-align: center;
}

#wp-calendar td.pad:hover { /* Doesn't work in IE */
	background-color: #fff; }
/* End Calendar */



/* Begin Various Tags & Classes */
blockquote {
	margin: 15px 30px 0 10px;
	padding-left: 20px;
	border-left: 5px solid #ddd;
}

blockquote cite {
	margin: 5px 0 0;
	display: block;
}

.center {
	text-align: center;
}

.hidden {
	display: none;
}
	
.screen-reader-text {
     position: absolute;
     left: -1000em;
}

hr {
	display: none;
}

a img {
	border: none;
}

.navigation {
	display: block;
	text-align: center;
	margin-top: 10px;
	margin-bottom: 60px;
}
/* End Various Tags & Classes*/



/* Captions */
.aligncenter,
div.aligncenter {
	display: block;
	margin-left: auto;
	margin-right: auto;
}

.wp-caption {
	border: 1px solid #ddd;
	text-align: center;
	background-color: #f3f3f3;
	padding-top: 4px;
	margin: 10px;
	-moz-border-radius: 3px;
	-khtml-border-radius: 3px;
	-webkit-border-radius: 3px;
	border-radius: 3px;
}

.wp-caption img {
	margin: 0;
	padding: 0;
	border: 0 none;
}

.wp-caption p.wp-caption-text {
	font-size: 11px;
	line-height: 17px;
	padding: 0 4px 5px;
	margin: 0;
}
/* End captions */

