body {
	font-family: "Myriad Web Pro", Verdana, Geneva, Arial, Helvetica, sans-serif;
	font-size: small;
	color: #111;
	color: #292952;
	text-align: center;
	line-height: 1.4em;
	margin: 0;
	padding: 0;
	background-color: #F0F0F0;
}

p {
	margin: 0 0 1em 0;
	padding: 0;
}

a {
	color: #5E5FAF;
	text-decoration: none;
}

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

#header {
	position: absolute;
	top: 10px;
	left: 20px;
}

#header h1 {
	font-size: 2em;
	margin: 0;
	color: black;
	font-style: normal;
}

#header h1 a {
	text-decoration: none;
	color: black;
}

#container {
	font-size: 90%;
	text-align: left;
	margin: 0 auto;
	width: 740px;
	border: 1px solid #aaa;
	border-top: 0;
	border-bottom: 0;
	position: relative;
	background-color: white;
	background-image: url(/images/sidebar.jpg);
	background-repeat: repeat-y;
}

body.article_wide #container {
	background-image: none;
}

body.article_medium #container {
	background-position: 540px;
}

body.article_narrow #container {
	background-position: 360px;
}

h1, h2, h3, h4, h5, h6 {
	font-size: 1.2em;
	font-weight: normal;
	font-style: italic;
	line-height: 1.2em;
	padding: 0;
	margin: 0 0 0.5em 0;
	color: #FF3300;
}

h1.main_article {
	min-height: 200px;
	font-size: 2.2em;
	padding: 100px 390px 0 20px;
	width: 330px;
	background: white url(/images/hippo.jpg) no-repeat bottom right;
	color: #FF3300;
}

body#contact h1.main_article {
	background-image: url(/images/contact.jpg);
}

body#portfolio h1.main_article {
	background-image: url(/images/portfolio.jpg);
}

body#journal h1.main_article {
/*	background-image: url(/images/journal.jpg);	*/
}

* html h1.main_article {
	height: 200px;
	padding-top: 2.5em;
}

.article_body {
	float: left;
	font-size: 1.2em;
	padding: 0 10px 0 20px;
	position: relative;
}

body.article_narrow .article_body {
	width: 330px;
}

body.article_medium .article_body {
	width: 510px;
}

body.article_wide .article_body {
	width: 700px;
}

.article_abstract {
	margin-bottom: 1em;

}

.sub_articles {
	float: left;
	width: 165px;
	padding: 0 10px;
	line-height: 1.2em;
	color: #666;
}

.sub_articles h1,
.sub_articles h2,
.sub_articles h3,
.sub_articles h4,
.sub_articles h5,
.sub_articles h6 {
	font-size: 1em;
	font-weight: bold;
	font-style: normal;
}

.sub_article {
	position: relative;
}

.sub_article h1 a {
	text-decoration: none;
	color: #5E5FAF;
	background: url(/images/link.jpg) no-repeat 100% 0%;
	padding-right: 25px;
	display: block;
}

.sub_article h1 a:hover {
	color: #FF3300;
	text-decoration: underline;
}

#footer {
	clear: both;
	color: white;
	font-size: 0.9em;
	background: #000066 url(/images/footer-bg.jpg) repeat-x bottom;
}

* html #footer {
	height: 1px;
}

#footer p {
	padding: 0.25em 20px;
	margin: 0;
}

ul#nav {
	width: 360px;
	text-align: right;
	list-style: none;
	margin: 0;
	padding: 0 0 0 380px;
	background-color: white;
}

ul#nav li {
	float: left;
}

ul#nav li a {
	float: left;
	display: block;
	text-align: center;
	width: 85px;
	padding-top: 10px;
	text-decoration: none;
	color: black;
	font-weight: bold;
	border-bottom: 2px solid white;
}

ul#nav li a:hover {
	border-bottom: 2px solid #FF7F50;
	color: #4d4e83;
}

body#webdesign ul#nav li a.webdesign,
body#portfolio ul#nav li a.portfolio,
body#journal ul#nav li a.journal,
body#contact ul#nav li a.contact {
	border-bottom: 2px solid #4d4e83;
	color: black;
	cursor: default;
	background: none;
}

.permalink {
	font-size: 0.8em;
}

#fatal_error {
	font-size: larger;
	color: red;
	padding: 5em 20px 0 20px;
	margin: 0;
}

img {
	border: 1px solid #4d4e83;
	border-top: 1px solid #B8B8D5;
	border-left: 1px solid #B8B8D5;
	padding: 10px;
	margin: 0 3px 3px 3px;
	height: auto;
}

.article_narrow img {
	width: 120px;
}

.article_medium img {
	width: 240px;
}

.article_wide img {
	width: 360px;
}

.sub_article img {
	width:60px;
	padding: 0;
	border: 1px solid gray;
	float: right;
	margin: 0 0 0.5em 0.5em;
}

.sub_article {
	clear: left;
}

table {
	margin-bottom: 1em;
}

td {
	padding: 0 1em 0 0;
	vertical-align: top;
}

body#portfolio .sub_articles {
	float: right;
	clear: right;
	width: 360px;
}

body#portfolio .sub_article img {
	width: 165px;
	float: right;
	clear: both;
	margin: 0 0 2em 1em;
}

body#portfolio .sub_article {
	clear: both;
	background: url(/images/subart.jpg) repeat-x top left;
	padding: 0.5em;
}

* html body#portfolio .sub_article {
	height: 1px;
}

