/* =INITIAL 
   v2.1, by Faruk Ates - www.kurafire.net
   Addendum by Robert Nyman - www.robertnyman.com */

/* Neutralize styling: 
   Elements we want to clean out entirely: */
html, body, form, fieldset {
	margin: 0;
	padding: 0;
}
/* Neutralize styling: 
   Elements with a vertical margin: */
h1, h2, h3, h4, h5, h6, p, pre,
blockquote, ul, ol, dl, address {
	margin: 0.5em 0;
	padding: 0;
}
p {
	padding: 0.3em 0;
}

/* Apply left margin:
   Only to the few elements that need it: */
li, dd, blockquote {
   	margin-left: 1em;
}
ul, li {
	margin: 0;
	padding: 0;
}
a img, img a {
	border: none;
}
/* End Initial */
.clear:after {
    content: "."; 
    display: block; 
    height: 0; 
    clear: both; 
    visibility: hidden;
}
.clearboth {
	clear: both;
    overflow: hidden;
    width: 0;
    height: 0;
}
.console {
	margin-bottom: 7px;
	margin-top: 3px
}
blockquote {
    font-weight: bold;
    font-style: italic;
}

/*-------------------------------------------------------------------

Page layout

--------------------------------------------------------------------*/

body {
	background-color: #FFF;
	font-family: "Lucida Grande", "Trebuchet MS", "Tahoma", "Helvetica", "Arial", sans-serif;
	font-size: medium;
	color: #333;
	text-align: center;	
	line-height: 130%;
	background-image: url(../images/bodygrad.jpg);
	background-repeat: repeat-x;
	background-position: 0 -120px;
}
#page {
	text-align: left;
	width: 960px;
	padding: 0;
	padding-top: 10px;
	margin: 0 auto;	
	position: relative;
	font-size: 90%;	
	background-repeat: no-repeat;
	padding-bottom: 20px;
}
#main {
	padding: 8px 15px;
	padding-top: 0;
	float: left;
}
#content {
	float: left;
	width: 640px;
	padding-right: 10px;
	overflow: auto;
}
#sidewrap {
	float: right;
	width: 272px;
	background-image: url(../images/sidebg.jpg);
	background-repeat: no-repeat;
	background-position: bottom left;
	padding: 0;
	margin-top: 28px;
	position: relative;
	left: 10px;
}
#sidebar {
	background-image: url(../images/sidebg.jpg);
	background-repeat: no-repeat;
	position: relative;
	top: -15px;
	width: 100%;
}
a, a:link {
	color: #2673FF;
	background-color: transparent;
}
a:hover {
	color: #FF3649;
}
h1, h2, h3 {
	font-family: Georgia, "Times New Roman", Times, serif;
	color: #FF3649;
}
#header ul, #footer ul {
	list-style: none;
	padding-left: 40px;	
}
#header li, #footer li {
	display: inline;
}
#header ul a, #footer ul a {
	display: block;
	padding-left: 15px;
	background-image: url(../images/vertbullet.gif);
	background-repeat: no-repeat;
	background-position: 0% 50%;
	float: left;
	padding-right: 40px;
	font-family: Georgia, "Times New Roman", Times, serif;
	font-weight: bold;
	text-decoration: none;
}


/*--------------------------------------------------------------

Header styles

---------------------------------------------------------------*/
#header {
	height: 160px;
	position: relative;
	overflow: hidden;
	background-image: url(../images/banner.png);
	background-repeat: no-repeat;
}
#header img {
	margin-top: 25px;
	margin-left: 40px;
}
#header p {
	color: #888;
	font-weight: bold;
	font-family: Georgia, "Times New Roman", Times, serif;
	width: 350px;
	padding-left: 20px;
	padding-top: 20px;
	float: right;
}
#header ul {
	position: absolute;
	bottom: 20px;
	left: 0;
}
#header p#feed-button {
	text-align: right;
	padding: 0 20px 0 0;
	margin: 0;
	position: absolute;
	bottom: 18px;
	right: 0;
}

/*--------------------------------------------------------------

Content styles

---------------------------------------------------------------*/ 
#content h1, #content h2 {
	font-size: 140%;
	/*background-image:url(../images/headingbg.gif);*/
	background-image:url(../images/headingbg_min.gif);
	background-repeat: no-repeat;
	background-position: top left;
	padding: 5px 5px 2px 20px;
}
#content h1 a, #content h2 a {
	text-decoration: none;
}
div.post {
	padding-bottom: 20px;	
}
div.search-results-content div.post {
	clear: both;
}
#content div.ddsg-wrapper h2 {
	background: none;
	padding-bottom: 0;
}
#content div.ddsg-wrapper ul {
	padding-left: 40px;
}
#content div.ddsg-wrapper p {
	visibility: hidden;
}
#content ul, #sidebar li ul {
	list-style: none;
	padding: 5px 10px 5px 18px;
	line-height: 1.6em;
	background-image: none;
	display: block;
}
#content li, #sidebar li ul li {
	background-image: url(../images/bullet_red.gif);
	background-repeat: no-repeat;
	background-position: 0 9px;
	padding-left: 12px;
	position: relative;
}
.more-link {
   font-style: italic;
   text-align: right;
   font-size: 80%;
   padding: 5px 15px;
   padding-top: 2px;
}
li.tutorial-section {
	padding-bottom: 10px;
	display: block;
}
#content h2#the-site {
	margin-top: 30px;
}
#bottom-ad {
	padding: 10px;
	padding-top: 20px;
	padding-bottom: 5px;
}
#books {
	text-align: center;
}
#books img {
	padding: 4px;
	background-color: #FFF;
	border: 1px solid #EEE;
	border-bottom: 1px solid #CCC;
	border-right: 1px solid #CCC;
	margin: 4px;
}
#bookshelf li {
	padding-bottom: 10px;
}
#bookshelf span {
	font-style: italic;
	font-size: 80%;
	color: #709F2C;
}
#content .syntaxhighlighter {
	margin: 8px 0 8px 0 !important;
	width: 98% !important;
}
div.syntaxhighlighter .lines {
	padding: 6px 4px !important;
	padding-top: 16px !important;
}
div.syntaxhighlighter .toolbar {
	top: -10px !important;
	padding-bottom: 0 !important;
	padding-top: 5px !important;
}
div.syntaxhighlighter .toolbar .item.printSource {
	display: none !important;
}
#search {
	text-align: center;
	padding: 10px 0 20px 0;
}
.alignleft {
	float: left;
	padding-bottom: 10px;
}
.alignright {
	float: right;
	padding-bottom: 10px;
}
#related-posts {
	border-top: 1px dotted #CCC;
	padding-top: 10px;
	margin-top: 10px;
}
#related-posts ol {
	line-height: 1.7em;
}

/*--------------------------------------------------------------

Sidebar styles

---------------------------------------------------------------*/
#sidebar h2 {
	color: #FFF;
	background-color: #2673FF;
	padding: 2px 5px 2px 10px;
	margin: 0 2px;
	font-size: 110%;
	background-image: url(../images/sidehead_block.jpg);
	width: 253px;
}
#sidebar h2.topside {
	background-image: url(../images/sidehead_rounded.jpg);
	position: relative;
	top: -5px;
	width: 253px;
	background-repeat: no-repeat;
}
#sidebar ul {
	padding: 0;
	padding-bottom: 8px;
	padding-top: 5px;
	list-style: none;
}
#sidebar li {
	display: block;
	list-style: none;
}
#sidebar ul a {
	display: inline;
	padding: 0;
	background: none;
	float: none;
	font-family: "Lucida Grande", "Trebuchet MS", "Tahoma", "Helvetica", "Arial", sans-serif;
	font-weight: normal;
	text-decoration: underline;
}
#sidebar ul li p {
	padding-left: 10px;
}
#sidebar #featured-work {
	padding: 0 5px;
}
#sidebar #featured-work li {
	padding-left: 55px;
	padding-top: 0;
	border-bottom: 1px dashed #709F2C;
	position: relative;
	width: 185px;
	margin-left: 10px;
}
#sidebar #featured-work li.last {
	border: none;
}
#sidebar #featured-work li a img {
	position: absolute;
	top: 15px;
	left: 0;
	border: 5px solid #CCC;
}
#sidebar #featured-work li a {
	color: #709F2C;
	font-family: Georgia, "Times New Roman", Times, serif;
	text-decoration: none;
	display: block;
	padding-top: 3px;
}
#sidebar #featured-work li h3 a {
	font-weight: bold;
	font-size: 100%;
	padding-bottom: 0;
}
#sidebar #featured-work li p {
	font-size: 90%;
	line-height: 150%;
	position: relative;
	top: -5px;
	padding: 0;
}
#sidebar #featured-work li .side-light {
	color: #709F2C;
}

/*--------------------------------------------------------------

Footer styles

---------------------------------------------------------------*/
#footer {
	background-image: url(../images/footerbg_960.png);
	background-repeat: no-repeat;
	clear: both;
	padding-top: 20px;
	width: 100%;
}
#footer p {
	clear: both;
	padding: 0;
	margin: 0;
	padding-left: 40px;
	padding-top: 20px;
	width: 100%;
	font-size: 80%;
}
#footer ul {
	padding-top: 5px;
}

/*-------------------------------------------------------------------

Journal specific styles

--------------------------------------------------------------------*/
#comment {
	width: 480px;
}
#digg {
	float: right;
	margin: 0;
}
#digg iframe {
	margin: 0;
	padding: 0;
}
#google-ads {
	float: right;
	margin: 10px;
}
#frameworks, .frameworks {
	border-collapse: collapse;
	margin-bottom: 15px;
}
#frameworks td, .frameworks td {
	border: 1px dotted #CCC;
	padding: 6px;
}
#frameworks td.highlight-cell, .frameworks td.highlight-cell {
	background-color: #F7F3FF;
}
.frameworks {
	margin-top: 10px;	
}
.frameworks div, .frameworks p {
	padding: 0;
}
.frameworks td {
	padding: 2px 6px;
	line-height: 110%;
}
.frameworks td.highlight-cell { 
	font-weight: bold;
}
