/*  
Theme Name: Sanity Derailment
Theme URI: http://sdcomic.net
Description: Theme of the Sanity Derailment webcomic.
Tags: orange, three columns, fixed width, threaded comments
Version: 1.0.14
Author: Daniel Tan aka BoltClock
Author URI: http://blog.NOVALISTIC.com
*/

@import url('style.font.php');

/*
----------------
General elements
----------------
*/

/*******
 * The ground basics
 *******/

* {
	margin: 0;
	padding: 0;
}

/*******
 * Headings
 *******/

h1, h2, h3, h4, h5, h6 {
	line-height: 32px;
}

h1 {
	text-align: center;
	margin: 0;
}

h2 { font-family: 'Lucida Grande', 'Trebuchet MS', Verdana, Arial, Helvetica, sans-serif; font-size: 1.6em; }
h3 { font-size: 1.4em; }
h4 { font-size: 1.2em; }
h5 { font-size: 1.1em; }
h6 { font-size: 1em; }

/*******
 * Code displays
 *******/

pre, code, kbd, var, samp { font-size: 1em; }
pre { line-height: 1.2em; }

/*******
 * Lists
 *******/

/* List margins and basic formatting */
ul, ol { margin: 0.5em 0; margin-left: 1em; }
li { margin-left: 0.5em; }
dt { font-weight: bold; }

/* Take THAT, IE6! */
.sidebar > .xoxo { list-style: none; margin: 0; }

/* List styling */
ul, .xoxo li ul { list-style-type: disc; }
li ul, .xoxo li li ul { list-style-type: circle; }
li li ul, .xoxo li li li ul { list-style-type: square; }
ol, .xoxo li ol { list-style-type: decimal; }
li ol, .xoxo li li ol { list-style-type: lower-alpha; }
li li ol, .xoxo li li li ol { list-style-type: lower-roman; }

/*******
 * Images
 *******/

img {
	border: 0;
}

/*******
 * Forms
 *******/

input, textarea {
	font-size: 1em;
}

#searchform p {
	text-align: center;
}

.sidebar #s { width: 60%; }
.sidebar #searchsubmit { width: 30%; }

#blog-content #s { width: 70%; font-size: 1.2em; }
#blog-content #searchsubmit { width: 20%; font-size: 1.2em; }

/*******
 * Links
 *******/

a:link, a:visited { text-decoration: underline; color: #e86d00; }
a:hover, a:active { text-decoration: none; color: #00a2f4; }

/*******
 * Everything else
 *******/

.left { float: left; }
.right { float: right; }
.center { display: block; text-align: center; margin: auto; }
.clear { clear: both; }

.error404 {
	margin: 0;
	text-align: center;
}

.ed-note {
	font-size: 0.85em;
	font-style: italic;
}

p {
	margin: 1.1em 0;
}

blockquote {
	background-color: #ffecaa;
	margin: 2em;
	border-left: 5px solid #e86d00;
	padding: 0.5em 1em;
}

hr {
	clear: both;
	visibility: hidden;
}

/*
-----------
Core styles
-----------
*/

body {
	font-size: 0.8em;
	line-height: 1.45em;
	color: #630;
	background: #972a00 url('images/bg.gif') left top repeat-x;
}

#wrap {
	width: 920px;
	margin: auto;
}

/*******
 * Header
 *******/

#header {
	height: 120px;
	background: #fff url('images/header.gif') center top no-repeat;
	margin-bottom: 20px;
}

#header a {
	display: block;
	width: 520px;
	height: 120px;
	margin: auto;
}

/*******
 * Navigation
 *******/

#nav {
	height: 40px;
	margin-bottom: 20px;
}

#nav ul {
	margin: 0;
}

#nav li {
	display: block;
	float: left;
	list-style: none;
	margin-left: 0;
	margin-right: 120px;
}

#nav #nav-archives {
	margin-right: 0;
}

#nav a {
	display: block;
}

/* Transparent graphic overlay */
#nav a, #nav li a img {
	width: 140px;
	height: 40px;
}

#nav a {
	background-image: url('images/nav-buttons.gif');
	background-repeat: no-repeat;
	background-position: left;
}

/* Navigation buttons */
#nav #nav-home a { background-position: left 0; }
#nav #nav-home a:hover { background-position: right 0; }
#nav #nav-forums a { background-position: left -40px; }
#nav #nav-forums a:hover { background-position: right -40px; }
#nav #nav-about a { background-position: left -80px; }
#nav #nav-about a:hover { background-position: right -80px; }
#nav #nav-faq a { background-position: left -120px; }
#nav #nav-faq a:hover { background-position: right -120px; }
#nav #nav-archives a { background-position: left -160px; }
#nav #nav-archives a:hover { background-position: right -160px; }

/*******
 * Footer
 *******/

#footer {
	height: 65px;
	font-size: 0.85em;
	line-height: 1.2em;
	text-align: center;
	background: #fff url('images/footer.gif') center top no-repeat;
	margin-top: 20px;
	padding-top: 15px;
}

#footer p {
	margin: 0;
}

#wp-footer {
	display: none;
}

/*******
 * Content
 *******/

#content-wrap, #content-head, #content-foot {
	background-color: #fff;
	background-position: center top;
}

#content-wrap {
	background-image: url('images/content.gif');
	background-repeat: repeat-y;
}

#content-head, #content-foot { height: 15px; background-repeat: no-repeat; }
#content-head { background-image: url('images/content-head.gif'); }
#content-foot { clear: both; background-image: url('images/content-foot.gif'); }

/*******
 * Comic
 *******/

#comic {
	margin: 15px;
	margin-top: 0;
}

.comic-head {
	width: 746px;
	padding: 0 72px;
}

.comic-head p {
	width: 32px;
	text-align: center;
	margin: 0;
}

.comic-head .comic-first {
	float: left;
	margin-left: -72px;
}

.comic-head .comic-prev {
	float: left;
	margin-left: -32px;
}

.comic-head .comic-next {
	float: right;
	margin-right: -32px;
}

.comic-head .comic-latest {
	float: right;
	margin-right: -72px;
}

.comic-title {
	float: left;
	width: 746px;
	font-size: 2em;
	text-align: center;
	color: #e86d00;
	margin-right: -746px;
	margin-bottom: 0.5em;
}

.comic-image {
	clear: both;
	text-align: center;
}

.comic-image a:focus {
	outline: none;
}

/*******
 * Blog
 *******/

#blog {
	width: 480px;
	padding: 0 220px;
}

#blog-content {
	float: left;
	width: 480px;
	text-align: justify;
	margin-right: -480px;
}

#blog-content-wrap {
	padding: 0 10px;
}

#blog-content h2 {
	font-size: 1.8em;
	font-variant: small-caps;
	text-align: left;
	color: #e86d00;
}

.post { margin-bottom: 2em; }
.post-date, .post-meta { font-size: 0.85em; }
.post-date { margin-bottom: 0; }

.post-nav p {
	max-width: 50%;
}

/*******
 * Comments
 *******/

#comments, #comments > li {
	margin-left: 0;
}

#comments #respond {
	font-size: 0.85em;
}

.comment, .pingback, .trackback {
	border-left: 5px solid #ffecaa; 
	list-style: none;
	margin-left: 1em;
	padding-left: 1em;
}

.gravatar {
	margin: 0;
}

.comment-meta {
	margin-bottom: 2em;
}

.comment-meta p {
	font-size: 0.85em;
	line-height: 0.2em;
}

.comment-meta .comment-author cite {
	font-size: 1.6em;
	line-height: 1em;
	font-style: normal;
	font-weight: bold;
}

.comment-unapproved {
	font-style: italic;
	color: #f00;
}

#comment-text { width: 100%; }

/*******
 * Blog sidebars
 *******/

.sidebar {
	position: relative;
	width: 205px;
}

#blog-left { float: left; margin-left: -205px; }
#blog-right { float: right; margin-right: -205px; }

.widget {
	margin-bottom: 3em;
}

.widgettitle {
	text-transform: lowercase;
	color: #e86d00;
	/* Slightly different shade to blend with the gradient due to the margin */
	background-color: #ffedad;
	padding: 0 0.4em;
}

#blog-left .widgettitle { text-align: right; }
#blog-right .widgettitle { text-align: left; }

.widgetbody {
	font-size: 0.85em;
	margin: 1.5em 0;
}

.widget_tag_cloud .widgetbody { text-align: center; }
