/*
*    Author: Paul Bennett
*    Date: 30th Mar 2010
*    Company Name
*
****************************************************************************/

/* GENERIC STYLES
末末末末末末末末末末末末末末末末末末末末末末末末---------------------------*/

html
{	
	padding:0;
	margin: 0;
}
body
{
	font-family: Palatino, "Palatino Linotype", Georgia, Times, "Times New Roman", serif;
	padding: 0;
	margin: 0;
	color: #000;
	background: #efe1c4 url(../img/noise.jpg) repeat 0 0;
	font-size: 100%; /* 16px default font size */
	line-height: 1.25em;
}
img
{
	border: none;
	text-decoration: none;	
}
h1, h2, h3, h4, #copyright {
	font-family: Impact, 'Arial Narrow', sans-serif; 
	font-weight: normal;
}
h5, h6 {
	font-weight: normal;
	font-family: Georgia, Times, "Times New Roman", serif;
}
h2 {
	color: #a9322a;
	font-size: 2em;
	text-transform: uppercase;
	line-height: 1em;
	padding: 0 0 0.25em 0;
	border-bottom: 1px solid #d9d0b5;
	text-shadow: 1px 1px 0px #f8f1e2;

}
h2 span {
	color: #000;
	display: block;
	font-size: 0.5em;
	line-height: 1em;
	position: relative;
}
h3 {
	color: #a9322a;
	font-size: 2em;
	text-transform: uppercase;
	line-height: 1em;
	padding: 0;
	text-shadow: 1px 1px 0px #faf3e5;
}
h4, h5, h6 {
	font-size: 1.25em;
}
h3 span {
	color: #000;
	display: block;
	font-size: 0.75em;
	line-height: 1em;
	position: relative;
	top: -2px;
}
h4 {
	color: #a9322a;
	font-size: 1.25em;
	text-transform: uppercase;
	text-shadow: 1px 1px 0px #faf3e5;
}
h4 a:hover {
	color: #1B5E67;
	background: transparent;
}
h5 {
	padding: 0 0 0.5em 0;
}
h6 {
	padding: 0 0 1em 0;
}
h1 a, h2 a, h3 a, h4 a {
	text-decoration: none;
}
p {
	font-size: 1.0625em;
	padding: 0 0 0.75em 0;
	line-height: 1.25em;
}
li {
	font-size: 1.0625em;
}
p::selection, #home_intro p em::selection, abbr::selection {
	background: #a9322a;
	color: #FFF;
}
p::-moz-selection, #home_intro p em::-moz-selection, abbr::-moz-selection {
	background: #a9322a;
	color: #FFF;
}
a {
	color: #1B5E67;
	padding: 0 2px;
	outline: none;
}
a:visited {
	color: #a9322a;
}
a:hover {
	text-decoration: none;
	background: #1B5E67;
	color: #FFF;
}
a:focus {
	outline: none;
}
a::selection {
	color: #FFF;
	background: #1B5E67;
}
a::-moz-selection {
	color: #FFF;
	background: #1B5E67;
}
.btn {
	overflow: hidden;
	text-indent: -9999em;
	background-image: url(../img/buttons.png);
	background-repeat: no-repeat;
	background-color: #a9322a;
	color: #FFF;
	display: block;
	padding: 0;
}
.btn:hover {
	background-image: url(../img/buttons.png);
	background-repeat: no-repeat;
	background-color: #a9322a;
}
.view_more_btn, .view_more_btn:hover {
	background-position: 0 0;
	width: 148px;
	height: 41px;
}
.view_demo_btn, .view_demo_btn:hover {
	background-position: 0 -41px;
	width: 148px;
	height: 41px;
}
.visit_link_btn, .visit_link_btn:hover {
	background-position: 0 -123px;
	width: 148px;
	height: 41px;
	position: relative;
	left: -3px;
}
.more_link {
	padding: 1em 0 0 0;
}
.more_link a {
	background: url(../img/hand_icon.png) no-repeat right center;
	padding: 0 40px 0 0;
}
.more_link a:hover {
	color: #1B5E67;
}
.img_wrapper {
	padding: 0.25em 0 1em;
}
.screenshot {
	width: 620px;
	float: left;
	margin: 0 30px 20px 0;
	display: inline;
	padding: 5px;
	background: #FFF;
	box-shadow: 0 0 5px #cab998;
	-webkit-box-shadow: 0 0 5px #cab998;
	-moz-box-shadow: 0 0 5px #cab998;
}
.screenshot img {
	display: block;
}
.cap {
	float: left;
	display: block;
	font-size: 2.875em;
	margin: 0 3px 0 0;
	line-height: 0.75em;
	position: relative;
	top: 2px;
}
.intro .cap {
	margin: 0 6px 0 0;
	top: 3px;
}
.logo {
	position: relative;
	left: -8px;
}
.logo:hover {
	background: transparent;
}
.req {
	color: #a9322a;
	font-size: 1.5em;
	font-weight: bold;
}



/* CLEARING STYLES
末末末末末末末末末末末末末末末末末末末末末末末末---------------------------*/
#home_boxes ol,
nav ol,
.section_content,
#recent_articles,
section article footer,
#about_me,
#footer_content,
.detail header,
.article_content,
#article_nav, 
#respond {
	overflow: hidden;
}




/* LAYOUT STYLES
末末末末末末末末末末末末末末末末末末末末末末末末---------------------------*/
#page_wrapper {
	background: url('../img/retro_bg.jpg') no-repeat center top;
}
#content_wrapper {
	width: 960px;
	padding: 0 20px;
	margin: 0 auto;
	position: relative;
}
.third_col, #home_boxes li {
	width: 300px;
	margin: 0 30px 0 0;
	float: left;
	display: inline;
}
.half_col {
	float: left;
	width: 465px;
	margin: 0 30px 0 0;
	display: inline;
}
.third_col:last-child, 
#home_boxes li:last-child, 
#recent_work .section_content article:last-child {
	margin-right: 0;
}
.last_col, 
#recent_work .section_content article.last_col,
#home_boxes li.last_col {
	margin-right: 0;
}





/* HEADER STYLES
末末末末末末末末末末末末末末末末末末末末末末末末---------------------------*/
#home_intro {
	background: url(../img/open_brace.png) no-repeat left center;
	width: 680px;
	padding: 0 0 0 60px;
	margin: 0 auto;
}
#home_intro p {
	background: url(../img/close_brace.png) no-repeat right center;
	width: 620px;
	padding: 1em 60px 1em 0;
	font-size: 1.5em;
	line-height: 1.25em;
	text-align: center;
	font-family: Georgia, Times, "Times New Roman", serif;
}
#home_intro p a {
	padding: 0 3px;
}
header {
	position: relative;
	top: 22px;
	left: 372px;
	width: 216px;
	z-index: 10;
}
header h1 {
	width: 216px;
	height: 195px;
	margin: 0 auto;
	background-image: url(../img/main_logo.png);
	background-repeat: no-repeat;
	background-position: 0 0;
	position: relative;

	-moz-transform: rotate(0deg);
	-webkit-transform: rotate(0deg);
	-o-transform: rotate(0deg);
	transform: rotate(0deg);
}
header.hover h1 {
	background-position: -216px 0;
	-moz-transform: rotate(360deg);
	-webkit-transform: rotate(360deg);
	-o-transform: rotate(360deg);
	transform: rotate(360deg);
	-moz-transition: -moz-transform 2s linear; 
	-webkit-transition:-webkit-transform 2s linear;  
	-o-transition:-o-transform 2s linear;  
	-transition:-webkit-transform 2s linear;
	
	-webkit-animation-name: rotatelogo;
	-webkit-animation-duration: 2s;
	-webkit-animation-iteration-count: infinite;
	-webkit-animation-direction: normal;
	-webkit-animation-timing-function: linear;
}
@-webkit-keyframes rotatelogo {
	from {
		-webkit-transform: rotate(0deg);
	}
	to {
		-webkit-transform: rotate(360deg);
	}
}
header a#main_logo {
	display: block;
	width: 216px;
	height: 195px;
	text-indent: -9999em;
	background: url(../img/crest.png) no-repeat 0 0;
	overflow: hidden;
	position: absolute;
	top: 0;
	left: 0;
}


/* NAV STYLES
末末末末末末末末末末末末末末末末末末末末末末末末---------------------------*/
nav {
	background: #f4e9d5 url(../img/nav_bg.png) repeat-y 0 0;
	width: 1000px;
	position: absolute;
	left: 0;
	top: 134px;
	padding: 0;
}
#nav_wrapper {
	padding-bottom: 1px;
	background: url(../img/nav_border.png) no-repeat left bottom;
}
nav ol {
	padding-top: 1px;
	background: url(../img/nav_border.png) no-repeat left top;
	padding: 0 20px;
	width: 960px;
}
nav li {
	float: left;
	width: 180px;
	position: relative;
}
nav li a {
	width: 180px;
	display: block;
	color: #000;
	text-transform: uppercase;
	text-decoration: none;
	padding: 0.25em 0;
	text-align: center;
}
nav li a:hover {
	background: transparent;
	color: #a9322a;
}
nav li#cat_title {
	width: 300px;
}
nav li span {
	display: block;
	color: #000;
	text-transform: uppercase;
	padding: 0.25em 0;
}
nav li a:hover {
	color: #a9322a;
	text-decoration: none;
}
#nav_home, #nav_work {
	left: 0;
}
#nav_articles {
	left: 254px;
}
#nav_about {
	left: 232px;
}



/* CONTENT STYLES
末末末末末末末末末末末末末末末末末末末末末末末末---------------------------*/
#main_content {
	position: relative;
	padding: 2.5em 0 0 0;
}
#home_boxes {
	padding: 4em 0;
}
#home_boxes li p {
	padding: 1em 0 0.5em 0;
}
section header {
	position: relative;
	top: 0;
	left: 0;
	padding: 1em 100px 0.5em 0;
	border-top: 1px solid #d9d0b5;
	border-bottom: 1px solid #d9d0b5;
	width: 860px;
}
section header a.top_link {
	position: absolute;
	right: 0;
	bottom: 0.5em;
	color: #a9322a;
	text-decoration: none;
	padding: 0;
}
section header a.top_link {
	background: transparent;
}
.section_content {
	padding: 2em 0 0 0;
}
.section_content article {
	border-top: 1px solid #d9d0b5;
	padding-top: 1em;
}
.section_content article.first_post {
	border: none;
	padding-top: 0;
}
section article header {
	padding: 0 0 0.5em 0;
	border: none;
	width: 630px;
}
section article header time {
	font-size: 0.75em;
}
section article footer {
	padding: 1em 0;
	margin: 0;
	background: transparent;
}
section article footer a {
	float: right;
}
#recent_work .section_content article {
	background: #FFF;
	padding: 5px;
	width: 420px;
	height: 120px;
	overflow: hidden;
	float: left;
	position: relative;
	left: 5px;
	margin:  0 100px 2em 0;
	border: none;
	-webkit-box-shadow: 0 0 5px #cab998;
	-moz-box-shadow: 0 0 5px #cab998;
	box-shadow: 0 0 5px #cab998;
	-moz-transform : rotate(0deg);
	-webkit-transform : rotate(0deg);
	-o-transition: rotate(0deg);
	transition: rotate(0deg);
}
#recent_work .section_content article.animate {
	-moz-transform : rotate(-1deg);
	-webkit-transform : rotate(-1deg);
	-o-transition: rotate(-1deg);
	transition: rotate(-1deg);
	box-shadow: 0 0 10px #b4a280;
	-webkit-box-shadow: 0 0 10px #b4a280;
	-moz-box-shadow: 0 0 10px #b4a280;
}
#recent_work .section_content article.last_col {
	left: -5px;
}
#recent_work .section_content article a {
	display: block;
	width: 420px;
	height: 120px;
	overflow: hidden;
	text-decoration: none;
	color: #FFF;
	position: relative;
	padding: 0;
}
#recent_work .section_content article a:hover {
	background: transparent;
}
#recent_work .section_content article a strong {
	display: block;
	background: #000;
	width: 400px;
	color: #FFF;
	position: absolute;
	padding: 0.5em 10px;
	height: 1.25em;
	bottom: 0;
	left: 0;
	z-index: 5;
}
#recent_articles {
	margin: 2em 0 0 0;
}
#about_me {
	margin: 4em 0 0 0;
}
#recent_articles .section_content, #about_me .section_content {
	width: 630px;
	margin: 0 30px 0 0;
	float: left;
}
aside {
	width: 300px;
	float: left;
	padding: 2em 0 0 0;
}
aside li {
	background: url(../img/star_bullet.png) no-repeat 0 0.25em;
	padding: 0 0 0.5em 18px;
	display: block;
}
#about_me aside li strong, #about_me aside li em {
	display: block;
}
.single_detail header {
	padding: 0 0 0.25em 0;
	border-bottom: 1px solid #d9d0b5;
	left: 0;
	top: 0;
	width: 960px;
	margin: 0 0 1em 0;
}
.detail header {
	left: 0;
	border: none;
	width: 800px;
	padding: 0 160px 0.5em 0;
	border-bottom: 1px solid #d9d0b5;
	top: 0;
	margin: 0 0 1em 0;
}
.detail footer {
	background: transparent;
	color: #000;
}
.detail header a {
	position: absolute;
	right: 0;
	bottom: 1em;
}
.image_title {
	width: 268px;
	padding: 5px;
	background: #FFF;
	margin: 0 0 20px 0;
	overflow: hidden;
	box-shadow: 0 0 5px #cab998;
	-webkit-box-shadow: 0 0 5px #cab998;
	-moz-box-shadow: 0 0 5px #cab998;
}
.image_title a {
	width: 268px;
	display: block;
	padding: 0;
	height: auto;
}
.image_title a img {
	width: 268px;
	display: block;
}
pre {
	background: #f8f5ed url(../img/code_bg.png) repeat 0 -9px;
	color: #000;
	padding: 10px;
	width: 590px;
	font-family: Monaco, Courier;
	border: 5px solid #FFF;
	font-size: 0.875em;
	overflow: auto;
	margin: 0 0 1em 0;
	box-shadow: 0 0 5px #cab998;
	-webkit-box-shadow: 0 0 5px #cab998;
	-moz-box-shadow: 0 0 5px #cab998;
}
pre code {
	color: #2F2B23;
	font-family: Monaco, "Courier New", Courier;
}
.article_content ol {
	padding: 0 0 1em 10px;
}
.article_content ol li {
	background: url(../img/star_bullet.png) no-repeat 0 0.125em;
	padding: 0 0 0.5em 18px;
}
.intro {
	font-style: italic;
	font-size: 1.25em;
	line-height: 1.25em;
	padding: 0 0 1.5em 0;
}
#article_nav li {
	float: left;
	width: 315px;
	padding: 1em 0 0 0;
	margin: 1em 0 0 0;
	border-top: 1px solid #d9d0b5;
}
#article_nav li.more_link {
	float: right;
	text-align: right;
}
#article_nav li.more_link a {
	padding: 0 40px 0 0;
}
#article_nav li.prev_link a {
	background: url(../img/hand_icon_prev.png) no-repeat left center;
	padding: 0 0 0 40px;
}
#article_nav li a:hover {
	color: #1B5E67;
}
#left_article {
	float: left;
	width: 620px;
}
#right_article {
	float: right;
	width: 280px;
}
#respond {
	padding: 2em 0 0 0;
}
#comments_wrapper {
	padding: 2em 0 0 0;
}
#comments_wrapper .comment {
	padding: 1em 0 0 42px;
	width: 620px;
	position: relative;
}
#comments_wrapper .comment .avatar {
	border: 3px solid #FFF;
	background: #FFF;
	float: left;
	width: 32px;
	height: 32px;
	box-shadow: 0 0 5px #cab998;
	-webkit-box-shadow: 0 0 5px #cab998;
	-moz-box-shadow: 0 0 5px #cab998;
	margin: 0 10px 10px 0;
	position: absolute;
	top: 1em;
	left: 0;
}
#comments_wrapper .commentmetadata {
	font-size: 0.75em;
}
#comments h3 {
	border-bottom: 1px solid #D9D0B5;
	border-top: 1px solid #D9D0B5;
	padding: 0.5em 0;
}



/* FOOTER STYLES
末末末末末末末末末末末末末末末末末末末末末末末末---------------------------*/
footer {
	position: relative;
	margin: 4em 0 0 0;
	background: #1b5e67 url(../img/footer_noise.jpg) repeat 0 0;
	color: #FFF;
}
#inner_footer {
	background: url(../img/footer_rip.jpg) repeat-x 0 0;
}
#footer_content {
	background: url(../img/footer_bg.jpg) no-repeat center bottom;
	padding: 4em 0 1em;
	width: 960px;
	margin: 0 auto;
}
#footer_content a {
	color: #36bacc;
	text-decoration: none;
}
#footer_content a:hover {
	color: #FFF;
}
#footer_content ol li {
	background: url(../img/footer_star_bullet.png) no-repeat 0 0.25em;
	padding: 0 0 0.5em 18px;
}
#sub_footer {
	padding: 1em 0 0 0;
	text-align: center;
	clear: left;
}
#copyright {
	padding: 0.5em 0 0 0;
	text-align: center;
	text-transform: uppercase;
	text-shadow: 1px 1px 0px #0b3c43;
}
#copyright a {
	color: #FFF;
}
#footer_content p::selection, #footer_content label::selection, #footer_content h6::selection {
	color: #FFF;
	background: #36BACC;
}
#footer_content p::-moz-selection, #footer_content label::-moz-selection, #footer_content h6::-moz-selection {
	color: #FFF;
	background: #36BACC;
}
#footer_content a::selection {
	color: #1B5E67;
	background: #FFF;
}
#footer_content a::-moz-selection {
	color: #1B5E67;
	background: #FFF;
}
#awards_ribbon {
	position: absolute;
	top: 0;
	right: 4px;
	width: 69px;
	height: 109px;
}
#awards_ribbon a {
	display: block;
	text-indent: -9999em;
	color: #000;
	width: 69px;
	height: 109px;
	background: url(../img/award_day_black.png) no-repeat right top;
}

/* FORMS
末末末末末末末末末末末末末末末末末末末末末末末末---------------------------*/
label {
	display: block;
}
input[type="text"], input.text, textarea {
	display: block;
	padding: 5px;
	margin: 0 0 0.75em 0;
}
#contact_form {
	position: relative;
}
#contact_form .submit {
	position: absolute;
	bottom: 2em;
	right: 0;
}
#contact_form input[type="text"], 
#contact_form input.text, 
#contact_form textarea {
	width: 288px;
	border: 1px solid #0B3C43;
}
#contact_form input[type="text"]:focus, 
#contact_form input.text:focus, 
#contact_form textarea:focus {
	border: 1px solid #000;
}
#contact_form textarea {
	height: 80px;
	overflow-x: hidden;
	overflow-y: auto;
}
#contact_form input#your-quiz {
	width: 100px;
}
#respond label {
	padding: 0 0 0.25em 0;
}
#respond input[type="text"], 
#respond input.text, 
#respond textarea {
	width: 449px;
	border: 3px solid #FFF;
	background: #f9f1e1;
	box-shadow: 0 0 5px #cab998;
	-webkit-box-shadow: 0 0 5px #cab998;
	-moz-box-shadow: 0 0 5px #cab998;
}
#respond input[type="text"]:focus, 
#respond input.text:focus, 
#respond textarea:focus {
	background: #f2e8d2;
}
#respond textarea {
	height: 80px;
	overflow-x: hidden;
	overflow-y: auto;
}
#respond input#mcspvalue {
	width: 200px;
}
#respond #submit {
	position: absolute;
	right: 0;
	bottom: 10px;
}
#respond label.error {
	display: block;
	width: 449px;
	color: #a9322a;
	padding: 0 0 0.5em 0;
	position: relative;
	top: -8px;	
}



/* TIMER
末末末末末末末末末末末末末末末末末末末末末末末末---------------------------*/
#date_stats span {
	display: block;
	padding: 2em 0;
}
#date_stats span span {
	display: inline;
	background-color: #FFF;
	background-image: url(../img/date.png);
	background-repeat: no-repeat;
	color: #000;
	padding: 5px 10px 20px;
	margin-right: 10px;
	font-size: 2em;
	border: 2px solid #FFF;
}
#date_stats span span.days {
	background-position: -10px bottom;
}
#date_stats span span.hours {
	background-position: -122px bottom;
}
#date_stats span span.mins {
	background-position: -224px bottom;
}
#date_stats span span.secs {
	background-position: -324px bottom;
}



/* GRID
末末末末末末末末末末末末末末末末末末末末末末末末---------------------------*/
#grid {
    background: url(../img/bg-grid-960.gif) repeat-y 0 0;
    width: 1000px;
    position: absolute;
    top: 0;
    left: 50%;
    margin-left: -500px;

}
#grid div.horiz {
    height: 19px;
    border-bottom: 1px dotted #aaa;
    margin: 0;
    padding: 0;

}
