/*
Theme Name: Mad Forest
Theme URI: http://www.madman2k.net/
Description: My custom theme
Version: 1.0
Author: Pavel Rojtberg
Author URI: http://www.madman2k.net/
Tags: photo, fixed width, widgets

	The CSS, XHTML and design is released under Creative Commons BY, SA, NC:
	http://creativecommons.org/licenses/by-nc-sa/2.5/legalcode

*/

/* Layout */
	html {
		min-height: 100%;
		color: #000000;
		background: #d8d4ce url('images/fade.png') repeat-x bottom; /* fixed kills everything */
	}

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

	/* Page */
	div#shadow-layer1 {
		width: 834px;
		margin: auto;
		padding-bottom: 5px;
		background: url('images/shadow-bottom.png') no-repeat bottom;
		
	}
	
	div#shadow-layer2 {
		background: url('images/shadow.png') repeat-y;
	}

	div#page {
		background: url('images/forest-header.jpg') no-repeat;
		width: 800px;
		margin: auto;
		padding: 153px 17px 12px; /* 12px margin + 5px shadow, same for top */
		position: relative;
	}
	
	/* Header */
    div#header {
    }

    div#header h1 {
    }

	div#header ul.meta {
		position: absolute;
		top: 15px;
		right: 20px;
		margin: 0;
		padding: 0;
		list-style: none;
		color: white;
		font-size: 0.7em;
	}
	
	div#header ul.meta li {
		float: left;
		margin: 0 3px;
	}

	div#header a {
		font-weight: bold;
		text-decoration: none;
		color: black;
		text-shadow: #afafaf 0 0 5px;
	}

	div#header a:hover{
		color: #ca0000;
	}

	/* Menu */
	ul#menu, ul#menu ul {
		list-style: none;
		margin: 0;
		padding: 0;
		position: relative;
	}
	
	ul#menu h2 {
		display: none;
	}
	
	ul#menu li.page_item {
		float: left;
		padding: 5px 0;
	}

	ul#menu .page_item a {
		text-decoration: none;
		font-weight: bold;
		color: #efefef;
		text-shadow: black 0 0 5px;
		font-size: 0.9em;
		margin-right: 1.5em;
	}

	ul#menu .search_item {
		position: absolute;
		right: 0;
		top: 0;
		padding: 2px 0;
	}

	div#content {
		clear: left;
		border: 1px solid black;
		min-height: 400px;
		padding: 0 5% 1em;
		position: relative;
	}

    #footer {
        font-size: 0.8em;
        margin: 12px 0 0;
        clear: both;
        text-align: center;
	}

	div#tooltip {
		background-color: #eef5ff;
		border: 1px solid #021329;
		-moz-border-radius: 7px;
		-webkit-border-radius: 7px;
		padding: 3px 5px;
		font-size: 0.9em;
		opacity: 0.8;
		position: absolute;
		display: none;
		top: 0;
		left: 0;
	}

/* Typography */
    body {
	    font-family: sans-serif;
	}

	#content {
		font-size: 0.9em;
	}

	/* Headlines */
	h2 {
		text-align: center;
		font-size: 1.1em;
		margin: 1em;
		text-shadow: white 0 0 3px;
	}

	h3 {
		font-size: 1.04em;
		margin: 0;
	}

	/* Images */
	#content img {
		border: none;
		vertical-align: middle;
	}

	#content .gallery img, #content img.size-thumbnail {
		width: 200px;
		height: 160px;
		padding: 6px;
		background: url('images/thumb-shadow.png') no-repeat;
	}

	#content .gallery img:hover, #content img.size-thumbnail:hover {
		opacity: 0.9;
	}

	/* Pre */
	pre {
		overflow: auto;
		font-size: 1.1em;
		border: 1px solid #91a0da;
		background: url('images/code.jpg') right 5px no-repeat #f9faff;
		padding: 1em;		
	}

/* Structure */
	/* News */
	.news h3 {
		position: relative;
		padding: 1px 0.5em;
		margin-bottom: 0.5em;
		font-size: 1em;
		color: #29241b;
		border-top: 1px dotted #ffdd9b;
		background-color: #ffe8bc;
		border-bottom: 1px dotted #ffdd9b;
	}
	
	#content .news h3 a {
		color: #29241b;
	}

	.news h3 a:hover {
		color: #70352c !important;
	}

	.news h3 span {
		position: absolute;
		right: 0.5em;
		font-weight: normal;
	}

	.news .entry {
		padding: 0 0.3em;
	}

	/* Pagelist */
	ul.pagelist {
		list-style: none;
		padding: 0;
	}


    ul.pagelist a:before {
	    content: "» ";
	}

	ul.pagelist a {
        border: 1px solid transparent;
        color: black !important;
		font-weight: bold;
        text-decoration: none;
        display: block;
        -moz-border-radius-topleft: 10px;
        -webkit-border-radius-topleft: 10px;
        padding: 0.5em 3em;
	}

    ul.pagelist a:hover {
        background: #f8f8e2 url('images/category-bg.png') repeat-x top;
        color: black !important;
        margin: 0;
        padding-left: 3.1em;
        border-color: #b3a38b;
    }

	/* Gallery */
	.gallery {
		margin: auto;
	}
	.gallery-item {
		float: left;
		margin-top: 10px;
		text-align: center;
    }
	.gallery img {
		border: 2px solid #cfcfcf;
	}
	.gallery-caption {
		margin-left: 0;
	}

/* Begin Structure */
	.post {
		margin: 0 0 40px;
		text-align: justify;
	}

	.postmetadata {
		clear: left;
	}

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

/* Begin Typography & Colors */


.alt {
	background-color: #f8f8f8;
	border-top: 1px solid #ddd;
	border-bottom: 1px solid #ddd;
	}

small {
	font-size: 0.9em;
	line-height: 1.5em;
	}



h1, h1 a, h1 a:hover, h1 a:visited, #headerimg .description {
	text-decoration: none;
	color: white;
	}

	h2, h2 a, h2 a:visited, h3, h3 a, h3 a:visited {
		color: black;
	}

h2, h2 a, h2 a:hover, h2 a:visited, h3, h3 a, h3 a:hover, h3 a:visited, #wp-calendar caption, cite {
	text-decoration: none;
	}

.entry p a:visited {
	color: #b85b5a;
	}

.commentlist > li, #commentform input, #commentform textarea {
	font: 0.9em sans-serif;
	}

.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, .commentlist li li {
	font-weight: normal;
	line-height: 1.5em;
	text-transform: none;
	}

.commentlist li ul li {
    list-style: square;
    margin: 0;
    }

.commentmetadata {
	font-weight: normal;
	}

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

code {
	font: 1.1em 'Courier New', Courier, Fixed;
	}

acronym, abbr, span.caps
{
	font-size: 0.9em;
	letter-spacing: .07em;
	}

	a, h2 a:hover, h3 a:hover {
		color: #06c;
		text-decoration: none;
	}

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

#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 Headers */

h3.comments {
	padding: 0;
	margin: 40px auto 20px ;
	}
/* End Headers */



/* 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

	Special stylized non-IE bullets
	Do not work in Internet Explorer, which merely default to normal bullets. */

html>body .entry ul {
	margin-left: 0px;
	padding: 0 0 0 30px;
	list-style: none;
	padding-left: 10px;
	text-indent: -10px;
	}

html>body .entry li {
	margin: 7px 0 8px 10px;
	}

.entry ul li:before {
	content: "» ";
	}

.entry ol {
	padding: 0 0 0 35px;
	margin: 0;
	}

.entry ol li {
	margin: 0;
	padding: 0;
	}

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

ol li {
	list-style: decimal outside;
	}

/* End Entry Lists */



/* Begin Form Elements */
#searchform {
	margin: 10px auto;
	padding: 5px 3px;
	text-align: center;
	}

.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 textarea {
	width: 100%;
	padding: 2px;
	}

#commentform .submit {
    text-align: right;
}

#commentform #submit {
	margin: 0;
	}
/* End Form Elements */



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

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

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

.commentlist p {
	margin: 10px 5px 10px 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 */
	acronym, abbr, span.caps {
		cursor: help;
	}

	acronym, abbr {
		border-bottom: 1px dashed #999;
	}

	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;
	}

	a img {
		border: none;
	}
    
	.navigation {
		display: block;
		text-align: center;
		margin: 1em 0;
	}

    .navigation a {
		text-shadow: #afafaf 0 0 2px;
	}
