/* set up basic styles */
html {
	font-size: 100%; /* makes IE6 behave */
	overflow-y: scroll; /* forces scroll bar in non-IE browsers - stops 'jumping' effect */
	height: 100%;
}
body {
	height: 100%;
	background-color: #dadada;
	color: black;

	font-size: 1em;
	margin: 0;
	padding: 0;

	font-family: Verdana, Arial, Helvetica, sans-serif;
}
.align-right {
	text-align: right;
}
p, #links li, #projects-menu li, form label, .error li, .success li, #content li {
	font-size: 0.825em;
}
p {
	text-align: justify;
}
p.short {
	text-align: left;
}
.clear {
	clear: both;
	display: block;
	visibility: hidden;
	width: 1px;
	height: 1px;
}
img {
	border-style: none;
}
a {
	color: #0062a0;
}
#sb-container a {
	color: white; /* fixes shadowbox bad css */
}
/* sets up the inner alignment stuff */
.inner {
	margin: 0 auto; /* todo will this work on IE6? */
	width: 960px;
}
/* headings and the navigation */
#header {
	display: block;
	margin: 0;
	padding: 1em;
	background-color: black;
}
h1, h2, h3, h4, h5, h6, #nav, form fieldset legend {
	font-family: 'Lucida Bright', Cambria, Georgia, serif;
}
h2 {
	border-style: solid;
	border-width: 0;
	border-bottom-width: 1px;
	border-color: #dadada;
}
h1, #nav {
	color: white;
}
h1 {
	margin-bottom: 0.2em;
}
#nav {
	margin-top: 0;
	text-transform: uppercase;
	font-size: 100%;
	font-weight: bold;
}
/* navigation items */
#nav ul {
	margin: 0;
	padding: 0;
}
#nav ul li {
	display: inline;
	list-style-type: none;
	padding-right: 0.8em;
}
#nav ul li a {
	color: white;
	text-decoration: none;
	-moz-text-shadow: black 0 0 1em;
	-webkit-text-shadow: black 0 0 1em;
	-khtml-text-shadow: black 0 0 1em;
	text-shadow: black 0 0 1em; /* fixes funny focus problem */	
}
#nav ul li a:hover {
	-moz-text-shadow: white 0 0 1em;
	-webkit-text-shadow: white 0 0 1em;
	-khtml-text-shadow: white 0 0 1em;
	text-shadow: white 0 0 1em;
}
/* heading link */
h1 a {
	color: white;
	text-decoration: none;
	-moz-text-shadow: white 0 0 1em;
	-webkit-text-shadow: white 0 0 1em;
	-khtml-text-shadow: white 0 0 1em;
	text-shadow: white 0 0 0.5em;
}
h3 a {
	color: black;
	text-decoration: none;
}
/* logo/floating */
#left-header {
	float: left;
}
#right-header {
	float: right;
}
#logo {
	background-image: url(../images/logo.png);
	background-repeat: no-repeat;
	width: 58px;
	height: 78px;
}
/* content */
#content {
	padding: 1em;
	display: block;
	background-color: white;
}

/* footer */
#footer {
	display: block;
	background-color: #dadada;
	text-align: center;
	padding: 1em;
	font-size: 0.8em;
}
#copyright {
	text-align: center;
}

/* home page specific */
.rss-link {
	padding-left: 18px;
	background-image: url(../images/rss.png);
	background-repeat: no-repeat;
	background-position: left bottom;
}
.twitter-link {
	padding-left: 18px;
	background-image: url(../images/twitter.png);
	background-repeat: no-repeat;
	background-position: left bottom;
}

/* blog on the left, tweets on the right */
#blog, #blog-links {
	display: block;
	width: 59%;
	float: left;
}
#twitter, #twitter-links, #latest-photo {
	display: block;
	width: 39%;
	float: right;
}
#latest-photo, #latest-photo p {
	text-align: center;
}
#latest-photo h2 {
	text-align: left;
}

/* tweets */
.tweet {
	margin-bottom: 0.5em;
}
.tweet td {
	vertical-align: top;
}
.tweet p {
	margin: 0;
}
.tweet .time {
	font-family: Arial, Helvetica, sans-serif;

	font-weight: bold;
	width: 2.5em;
	text-align: center;
	background-color: #dadada;
	
	margin-right: 0.5em;

	margin-bottom: 0.5em;

	-moz-box-shadow: black 0 0 0.2em;
	-webkit-box-shadow: black 0 0 0.2em;
	-khtml-box-shadow: black 0 0 0.2em;
	box-shadow: black 0 0 0.2em;
}
.tweet .time .day {
	font-size: 1.4em;
}
.tweet .time .month {
	font-size: 1em;
	text-transform: uppercase;
}

/* gallery page specific */

img.gallery {
	border-style: outset;
	border-width: 1px;
	border-color: #cacaca;
	padding: 4px;
}

#photos {
	width: 100%;
	margin: 0;
	padding: 0;
}

#photos td {
	margin: 0;
	padding: 4px;
	text-align: center;
	vertical-align: top;
}

#photos td a img {
	width: 210px;
}

/* projects page specific */

#projects-menu {
	width: 20%;
	float: left;
}

#projects {
	width: 80%;
	float: right;
}

#projects-min-height {
	width: 1px;
	height: 400px;
	float: left;
	display: block;
}

#projects-menu ul {
	margin-left: 0;
	padding-left: 0;
}

#projects-menu ul li {
	list-style-type: none;
	margin-bottom: 5px;
	margin-right: 20px;
}

#projects-menu ul li a:hover {
	cursor: pointer;
	text-decoration: underline;
}

/* contact page/add comment form specific */

form li {
	font-size: 1em !important;
}
form fieldset, form legend, form ol, form li, form ul {
	margin: 0;
	padding: 0;
}
form fieldset {
	border: none;
	margin-bottom: 10px;
}
form fieldset legend {
	margin: 0;
	color: black;
	font-size: 1.17em;
	margin: .83em 0; /*from default HTML4 css */
	font-weight: bold;
}
form fieldset li {
	list-style-type: none;
	margin-bottom: 10px;
}
form label {
	float: left;
	width: 120px;
	font-weight: bold;
}
form .std {
	font-family: Arial, Helvetica, sans-serif;
	font-size: 80%;
	background-color: #eaeaea;
	
	border-style: solid;
	border-width: 1px;
	border-color: #cacaca;

	-moz-border-radius: 3px;
	-webkit-border-radius: 3px;
	-khtml-border-radius: 3px;
	border-radius: 3px;
	padding: 5px;
	width: 200px;

	background-image: none;
	background-position: 208px;
	background-repeat: no-repeat;

	padding-right: 25px;
}
form textarea.std {
	background-position: 208px 5px;
}
form .std:focus {
	background-color: #dddddd;
}

.error p, .success p {
	margin-top: 0;
	margin-bottom: 0;
}

.error, .success {
	display: block;
	border-style: solid;
	border-width: 1px;
	margin: 0;
	margin-top: 10px;
	margin-bottom: 10px;
	width: 336px;
	padding: 5px;
	font-weight: bold;
	border-radius: 3px;
	-moz-border-radius: 3px;
	-webkit-border-radius: 3px;
	-khtml-border-radius: 3px;
}

.error {
	background-color: #fbe3e4;
	color: #8a1f11;
	border-color: #fbc2c4;
}
.error a {
	color: #8a1f11;
}
.success {
	background-color: #E6EFC2;
	color: #264409;
	border-color: #C6D880;
}
.success a {
	color: #264409;
}

/* links page specific */

#links li {
	margin-bottom: 1em;
}

/* blog post specific */

.post h3 {
	margin-bottom: 0;
}
.post .timestamp {
	font-size: 0.825em;
	margin-top: 0;
	color: gray;
}

#blog-header {
	border-style: solid;
	border-width: 0;
	border-bottom-width: 1px;
	border-color: #dadada;
}
#blog-header h2 {
	padding-bottom: 0;
	margin-bottom: 0;
	border-style: none;
	float: left;
}
#blog-header p {
	padding-bottom: 0;
	margin-bottom: 0;
	float: right;
}

.comment {
	background-color: #cfcfcf;
	padding: 1em;
	margin-bottom: 1em;
}

.comment:nth-of-type(odd) {
	background-color: #c2c2c2;
}

.comment.author {
	background-color: #fff6a9;
}

.comment-author img {
	float: left;
	margin-right: 1em;
}

