header, article, footer, aside, nav, details, summary, section {
	display: block;
}

html {
	background: #663300 url(bg.png) center 0;
	color: black;
	font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
	padding: 0 36px;
}

a {
	color: #A65300;
	text-decoration: none;
}

a:visited {
	color: #663300;
}

a:hover {
	text-decoration: underline;
}

a:active {
	color: orange;
}
::-moz-selection {
	background-color: #fc0;
	color: black;
}
::selection {
	background-color: orange;
	color: black;
}

h1, h2, h3 {
	text-rendering: optimizeLegibility;
}

li {
	list-style: square;
}
ul.reset, ol.reset, ul.reset > li, ol.reset > li {
	padding: 0;
	margin: 0;
	list-style: none;
}

pre {
	display: block;
	padding: 10px;
	border: 1px solid #ccc;
    background-color: #fafafa;
	overflow: auto;
	margin: 1em 0;
    font-size: 14px;
	-ms-scrollbar-highlight-color: orange;
}

table {
	table-layout: fixed;
	border-collapse: collapse;
	border: 1px solid #ccc;
}

td {
	padding: 2px 6px;
	border: 1px solid #ccc;
	vertical-align: top;
}

a img {
	cursor: -webkit-zoom-in;
}

body {
	position: relative;
	max-width: 1000px;
	min-width: 480px;
	background: white;
	min-height: 500px;
	margin: 25px auto;
	border: 1px solid #261C0C;
	-moz-border-radius: 5px;
	-webkit-border-radius: 5px;
	border-radius: 5px;
	-moz-box-shadow: rgba(0, 0, 0, 0.5) 4px 4px 10px;
	-webkit-box-shadow: rgba(0, 0, 0, 0.5) 4px 4px 10px;
	box-shadow: rgba(0, 0, 0, 0.5) 4px 4px 10px;
}

@media (max-width: 650px) {
	body {
		margin: 0;
	}
	html {
		padding: 0;
	}
}

header {
	background: #261C0C url(header-bg.jpg) no-repeat right 0;
	height: 206px;
	position: relative;
	border-bottom: 5px solid #D09C2F;
}

	header h1 {
		margin: 0;
		color: #f0f0c8;
		font-size: 68px;
		position: absolute;
		top: 23px;
		left: 38px;
		text-shadow: rgba(0, 0, 0, 0.5) 2px 2px 5px;
		letter-spacing: 2px;
	}
	
	header h1 a, header h1 a:visited {
		color: #f0f0c8;
		text-decoration: none;
	}
	
	header h2 {
		margin: 0;
		color: #D09C2F;
		font-size: 19px;
		position: absolute;
		right: 18px;
		bottom: 9px;
		font-style: italic;
		text-shadow: rgba(0, 0, 0, 0.5) 1px 1px 2px;
	}

article {
	padding: 0 32px;
}

	article h1 {
		font-size: 28px;
		color: #806520;
		margin-bottom: 6px;
	}
	
	article h2 {
		font-size: 20px;
		color: #806520;
		margin-bottom: 2px;
	}
	
	article p {
		margin-top: 0;
		font-size: 15px;
		-webkit-hyphen: auto;
		-moz-hyphen: auto;
		hyphen: auto;
	}
	
	article time {
		float: right;
		color: #aaa;
		font-size: smaller;
	}


#text {
	overflow: hidden;
}

#content {
	width: 75%;
	float: right;
	border-left: 1px dashed #ccc;
	padding-bottom: 1em;
}

aside {
	margin-top: 23px;
	width: 21%;
	padding: 0 0 30px 2%;
	font-size: 12px;
}

	aside h1 {
		color: #504014;
		font-size: 14px;
		margin: 23px 0 7px -1px;
		border-left: 11px solid #A65300;
		padding-left: 7px;
		background-color: #f0f0c8;
		line-height: 22px;
	}
	
	aside p {
		margin: 4px 0;
	}

ul.projects li {
	clear: left;
	margin-top: 8px !important;
}
	ul.projects li a {
		height: 20px;
		line-height: 20px;
	}
	ul.projects li a:hover {
		color: #A65300;
	}

img.icon {
	display: block;
	float: left;
	width: 16px;
	height: 16px;
	margin-right: 5px;
	border: 3px solid #eee;
	background: url(/weblog/projecticons.png) 0 0 no-repeat;
}
a:hover img.icon {
	border-color: #A65300;
}
img.gameoflife {
	background-position: 0 0;
}
img.viewcookies {
	background-position: 0 -16px;
}
img.tweaknetwork {
	background-position: 0 -32px;
}
img.fontlist {
	background-position: 0 -48px;
}
img.browserreport {
	background-position: 0 -64px;
}
img.jarx {
	background-position: 0 -80px;
}
ol.menu li a {
	display: block;
	padding: 0 3px;
}
ol.menu li a:hover {
	color: black;
	background-color: orange;
	text-decoration: none;
}

address {
	position: absolute;
	left: 15px;
	bottom: 5px;
	font-size: smaller;
}

@media (max-width: 780px) {
	#content {
		float: none;
		width: auto;
		border-left: none;
		padding-bottom: 10px;
		border-bottom: 1px dashed #ccc;
	}
	aside {
		width: auto;
		margin: 10px 0;
	}
	aside section {
		width: 30%;
		margin: 0 3% 30px 0;
		float: left;
	}
	aside h1 {
		margin-top: 0;
	}
}

p.comments {
	padding: 0 32px;
	font-size: smaller;
}

/* Comments */
#comments {
	font-size: smaller;
	padding: 0 32px;
	border-top: 1px solid #A65300;
	margin-top: 46px;
}

#comments h2 {
	font-size: 16px;
	color: #663300;
}
#comments ol li, #comments form {
	background-color: #F7F7DF;
	-moz-border-radius: 5px;
	-webkit-border-radius: 5px;
	border-radius: 5px;
	padding: 10px;
	margin-top: 10px;
}
#comments ol li p.name {
	float: left;
	font-weight: bold;
	margin-top: 0;
}
#comments ol li a.date {
	float: right;
	color: #aaa;
}
#comments ol li p.comment {
	clear: both;
	white-space: pre-wrap;
	margin: 0;
}
#comments form p.formhead {
	font-weight: bold;
	margin-top: 0;
}
#comments form label {
	display: block;
	float: left;
	clear: both;
	width: 117px;
	margin-top: 5px;
}

#comments form input {
	display: block;
	width: 300px;
	margin-top: 5px;
}

#comments form textarea {
	width: 417px;
	height: 100px;
}

#comments form input[type=submit] {
	margin-left: 117px;
}
.template {
	display: none;
}

#comments form {
	display: none;
}

#comments.ajax form {
	display: block;
}

#comments input[type=text], #comments input[type=url], #comments input[type=number], #comments textarea {
	border: 1px solid #aaa;
	padding: 2px;
	border-radius: 3px;
	-moz-border-radius: 3px;
	-webkit-border-radius: 3px;
	box-shadow: inset 2px 2px 2px #e8e8e8;
	-moz-box-shadow: inset 2px 2px 2px #e8e8e8;
	-webkit-box-shadow: inset 2px 2px 2px #e8e8e8;

}
