/*
Theme Name: Graeme Pirie
Theme URI: http://graemepirie.com
Description: The fourth incarnation and first HTML 5 version
Version: 4.0
Author: Graeme Pirie
Author URI: http://graemepirie.com


@import "style/css/reset.css";
@import "style/css/layout.css";


  Colours Used:
  
  Green: 	#bfda26
  Blue:		#2b9ad9
  


/* ************************************************************************************************************************************************************

Reset

************************************************************************************************************************************************************ */

html, body, div, span, applet, object,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, font, img, ins, kbd, q, s, samp,
small, tt, var,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td 
article, aside, dialog, figure, footer, header,
hgroup, menu, nav, section,
time, mark, audio, video{
	margin: 0;
	padding: 0;
	border: 0;
	outline: 0;
	font-weight: inherit;
	font-style: inherit;
	font-size: 100%;
	font-family: inherit;
	vertical-align: baseline;
}

article, aside, dialog, figure, footer, header,
hgroup, nav, section {
	display:block;
}

/* remember to define focus styles! */
a:focus {
	
}
body {
	line-height: 1;
	color: black;
	background: white;
}
ol, ul {
	list-style: none;
}
/* tables still need 'cellspacing="0"' in the markup */
table {
	border-collapse: separate;
	border-spacing: 0;
}
caption, th, td {
	text-align: left;
	font-weight: normal;
}
blockquote:before, blockquote:after,
q:before, q:after {
	content: "";
}
blockquote, q {
	quotes: "" "";
}

.clear {
	clear: both;
}



/* ************************************************************************************************************************************************************

Page Elements

************************************************************************************************************************************************************ */


* {
	margin: 0;
	padding: 0;
}
	
body {
	background: url(../images/bg.png) top left repeat;
	font-family: Arial, Helvetica, Verdana, sans-serif;
	text-align: center;
	color: #515050;
}

#wrap {
	width: 890px;	
	margin: 40px auto;	
	text-align: left;
}

#main {
	float: left;
	width: 400px;
	margin-right: 60px;
}

#blog {
	float: left;
	width: 710px;
	margin-right: 10px;	
}

#about {
	float: left;
	width: 160px;
	margin-right: 20px;
}

section#latest {
	float: right;
	width: 230px;
}



/* ************************************************************************************************************************************************************

Typography

************************************************************************************************************************************************************ */

h1 {
	color: #2b9ad9;
	font-size: 24px;
	line-height: 36px;
	font-weight: bold;
	margin-bottom: 40px;	
}

h1.home {
	margin-bottom: 20px;
	font-weight: bold;
}

h1.iphone {
	display: none;
}

h2 {
	color: #bfda26;
	font-weight: bold;
	-moz-text-shadow: 1px 1px 1px #B5B5B5;
	-webkit-text-shadow: 1px 1px 1px #B5B5B5;
	text-shadow: 0.5px 0.5px 0.5px #B5B5B5;
}

#latest h2 {
	float: left;
	font-size: 22px;
}


h3{ 
	color: #2b9ad9;	
	margin-bottom: 5px;
	font-weight: bold;
	text-shadow: 0.5px 0.5px 0.5px #fff;
	-moz-text-shadow: 1px 1px 1px #fff;
	-webkit-text-shadow: 1px 1px 1px #fff;
}

p, address, label, cite, small {
	margin-bottom: 15px;
	font-size: 14px;
	line-height: 18px;
	text-shadow: 1px 1px 1px #fff;
	-moz-text-shadow: 1px 1px 1px #fff;
	-webkit-text-shadow: 1px 1px 1px #fff;
}


ol {
	
}

ul {
	background: none;
	margin-bottom: 20px;
}

ul li {
	background: url(../images/bullet.png) center left no-repeat;
	list-style-position: inside;
	padding-left: 20px;
	font-size: 14px;
	margin-bottom: 5px;
}

blockquote {
	font-size: 14px;
	line-height: 18px;
	margin: 20px 0 20px 25px;
	font-style: italic;
	border-left: 3px solid #bfda26;
	padding-left: 10px;
}

a {
	text-decoration: none;
	color: #2b9ad9;
	-webkit-transition: color 0.5s ease-in;  
	-moz-transition: color 0.5s ease-in;  
	-o-transition: color 0.5s ease-in;  
	transition: color 0.5s ease-in; 
}

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

#main a {
	text-decoration: underline;
}

main a:hover {
	text-decoration: none;
}

pre {
	
	}

code {
	font-family: "Courier New", Courier, serif;
	background: #fafafa;
	display: block;
	width: 490px;
	padding: 10px;
	-moz-box-shadow: inset 0.5px 0.5px 1px #b5b5b5;
	-webkit-box-shadow: inset 0.5px 0.5px 1px #b5b5b5;
	box-shadow: inset 0.5px 0.5px 1px #b5b5b5;
	border-bottom: 1px solid #fff;
	
}

em {
	font-style: normal;
	font-weight: bold;
}

sup {
	color: #2b9ad9;
}


/* ************************************************************************************************************************************************************

Navigation

************************************************************************************************************************************************************ */


a#logo {
	display: block;
	margin-bottom: 35px;
	float: left;
	-webkit-transition: -webkit-transform 0.5s linear;  
	-moz-transition: -webkit-transform 0.5s linear;
	
}

a#logo:hover {
	-webkit-transform: rotate(-15deg);   
	-moz-transform: rotate(-15deg);
}

nav {
	float: right;
	height: 40px;
	margin-top: 25px;
}

nav ul li{
	float: left;
	width: 76px;
	margin-right: 20px;
	height: 40px;	
	background: none;
	padding-left: 0;
	font-size: 16px;
}

nav ul li:last-of-type {
	margin-right: 0;
}

nav ul li a{
	height: 30px;
	color: #2b9ad9;
	display: block;
	padding-top: 11px;
	text-align: center;
	font-weight: bold;
	-moz-text-shadow: 1px 1px 1px #fff;
	-webkit-text-shadow: 1px 1px 1px #fff;
	text-shadow: 1px 1px 1px #fff;
}

nav ul li a:hover {
	background: url(../images/navbg.png) top left no-repeat;
	color: #fff;
	-moz-text-shadow: none;
	-webkit-text-shadow: none;
	text-shadow: none;
	text-decoration: none;
}

.current_page_item, body.single-post .page-item-217 {
	background: url(../images/navbg.png) top left no-repeat;
}

.current_page_item a, body.single .page-item-217 a {
	color: #fff;
	-moz-text-shadow: none;
	-webkit-text-shadow: none;
	text-shadow: none;
}

.leftButton {
	display: none;
}


/* ************************************************************************************************************************************************************

Content

************************************************************************************************************************************************************ */

section#about img {
	float: left;
	margin: 0 20px 15px 0;
	
}

img#me {
	border: 4px solid #fff;
	-moz-box-shadow: 0 0 5px #999;
	-webkit-box-shadow: 0 0 5px #999;
	box-shadow: 0 0 5px #999;
}

section#about p {
	margin-top: 10px;
	display: block;
	font-weight: bold;
}

section#about a {
	color: #2b9ad9;
	margin-top: 10px;
	display: block;
	font-weight: bold;
	-webkit-transition: color 0.5s ease-in;  
	-moz-transition: color 0.5s ease-in;  
	-o-transition: color 0.5s ease-in;  
	transition: color 0.5s ease-in; 
}

section#about a:hover {
	color: #51c0ff;	 
}

section#about p {
	color: 
	margin-top: 10px;
	display: block;
	font-weight: bold;
}

#rss {
	float: right;
}

article.latest {
	border-bottom: 1px dashed #d4d4d4;
	padding-bottom: 20px;
	margin-top: 20px;
}

article.latest a {
	color: #bfda26; 
	font-weight: bold;
	-webkit-text-shadow: 0 0 2px #e6e6e6;
	text-shadow: 0 0 2px #e6e6e6;
}

article.latest:nth-child(2) {
	margin-top: 20px;
}

article.latest img.bg{
	float: left;
}

article.latest h3 {
	font-weight: normal;
	text-shadow: none;
	-moz-text-shadow: none;
	-webkit-text-shadow: none;
}

img.attachment-post-thumbnail {
	margin: 4px 10px 5px 0px;	
	display: block;
	float: left;
	border: 3px solid #fff;
	-moz-box-shadow: 0px 0px 5px #999;
	-webkit-box-shadow: 0px 0px 5px #999;
	box-shadow: 0px 0px 5px #999;
}

time {
	color: #2b9ad9;
	font-size: 12px;
	font-weight: bold;
}



/* ************************************************************************************************************************************************************

Blog

************************************************************************************************************************************************************ */

aside.meta {
	float: right;
	width: 150px;
	font-size: 12px;
	margin-top: 20px;	
}

aside.meta p {
	font-size: 12px;
	margin-bottom: 15px;
}

aside.meta img {
	float: left;
	margin: 0 5px 5px 0;
}

aside.meta time {
	color: #2B9AD9;
	margin-top: 9px;
	display: block;
}

ul.meta-categories li ul.post-categories li{
	background: url(../images/bullet.png) center left no-repeat;
	padding: 0 0 4px 20px;
	border-bottom: 1px dashed #D4D4D4;
}

ul.meta-categories li{
	background: none;
	padding-left: 0;
}

ul.post-categories {
	margin-top: 10px;
	background: none;
}

ul.post-categories li{
	line-height: 18px;
	margin-bottom: 10px;
}

#sidebar {
	float: right;
	/*margin-top: 100px;*/	
}

img.postbg {
	margin-bottom: 20px;
}

img.post-image {
	border: 4px solid #fff;
	margin-bottom: 20px;
	-moz-box-shadow: 0 0 5px #999;
	-webkit-box-shadow: 0 0 5px #999;
	box-shadow: 0 0 5px #999;
}

.entry {
	position: relative;
}

.entry img.post-image {
	top: 0;
	left: 0;
	position: relative;
	border: 4px solid #fff;
	-moz-box-shadow: 0px 0px 5px #999;
	-webkit-box-shadow: 0px 0px 5px #999;
	box-shadow: 0px 0px 5px #999;
}

h2.title {
	margin: 20px 0;
}

a.more {
	display: block;
	width: 102px;
	height: 20px;
	background: url(../images/keepon.png) top left no-repeat;
	color: #fff;
	font-size: 12px;
	padding: 5px 0 20px 12px;
}

a.more:hover {
	background: url(../images/keepon-hover.png) top left no-repeat;
}

.post {
	border-bottom: 1px dashed #d4d4d4;
	position: relative;
	width: 520px;
	float: left;
	padding: 20px 0;
	margin-right: 20px;
}

.post h2{
	margin-bottom: 20px;
}

.post a:hover {
	color: #51c0ff;
}

article.post ul {
	margin-bottom: 15px;
}

.entry, #blog {
	float: left;
	width: 510px;
	
}

.blog-entry {
	float: left;
	width: 710px;
}

.blog h2 {
	margin-bottom: 20px;
	color: #2b9ad9;
}

ul#pagination {
	width: 710px;
}

ul#pagination li a{
	color: #2b9ad9;
	display: block;
	text-align: left;
	padding: 0;
}

ul#pagination li a:hover {
	background: none;
	text-decoration: underline;
	-webkit-text-shadow: 1px 1px 1px #fff;
	-moz-text-shadow: 1px 1px 1px #fff;
	text-shadow: 1px 1px 1px #fff;
}

ul#pagination li:first-of-type {
	float: left;
}

ul#pagination li:last-of-type {
	float: right;
	margin-right: 150px;
	display: inline;
}

/* ************************************************************************************************************************************************************

Comments

************************************************************************************************************************************************************ */

.comments {
	width: 740px;
	float: left;
	position: relative;
}

article.comment {
	float: left;
	/*padding-bottom: 20px;*/
	margin-bottom: 20px;
	border-bottom: 1px dashed #d4d4d4;
}

article.comment p {
	float: right;
	width: 375px;
}

h3#respond {
	font-size: 18px;
	line-height: 36px;
	margin: 30px 0;
}

.comment-author {
	float: left;
	width: 110px;
	margin-right: 20px;
	border-right: 1px dashed #d4d4d4;
	padding-bottom: 10px;
}

.comment header.comment-author img {
	border: 4px solid #fff;
	box-shadow: 0px 0px 2px #999;
	-webkit-box-shadow: 0px 0px 2px #999;
	-moz-box-shadow: 0px 0px 2px #999;
	margin-bottom: 10px;
}

a.url {
	font-size: 12px;
}

form#commentform {
	float: left;
	width: 510px;
}

form#commentform label {
	float: left;
	width: 200px;
	margin-right: 20px;
}

form#commentform input {
	width: 280px;
}

form#commentform textarea {
	width: 280px;
	height: 216px;
}

form#commentform textarea:focus, form#commentform input:focus {
	border: 1px solid #2b9ad9;
}

button#send {
	width: 98px;
	height: 38px;
	padding: 5px;
	border: 0;
	font-weight: bold;
	margin: 20px 0 0 300px;
	-moz-border-radius: 5px;
	-webkit-border-radius: 5px;
	border-radius: 5px;
	color: #fff;
	-moz-text-shadow: 1px 1px 1px #999;
	-webkit-text-shadow: 1px 1px 1px #999;
	text-shadow: 1px 1px 1px #999;
	cursor: pointer;	
	background-color: #bfd924;
	background-image: url(../images/submitbtn.png) top left no-repeat;
	background-image: -moz-linear-gradient(100% 100% 80deg, #b0c924, #d4f12b);
    background-image: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#d4f12b), to(#b0c924));
}

button#send:hover {
	box-shadow: 0 0 5px #2b9ad9;
	-webkit-box-shadow: 0 0 5px #2b9ad9;
	-moz-box-shadow: 0 0 5px #2b9ad9;
}

button#send:active {
	margin-top: 21px;
}

p.allowed-tags {
	position: absolute;
	top: 220px;
	left: 0;
	width: 200px;
}

p.allowed-tags code {
	width: 180px;
	background: #eee;
	border: 0;
}

p.allowed-title {
	position: absolute;
	top: 190px;
	left: 0;	
}

a.comment-edit-link {
	font-size: 12px;
	line-height: 18px;
	display: block;
}

/* ************************************************************************************************************************************************************

Sidebar

************************************************************************************************************************************************************ */


li.categories {
	margin-bottom: 20px;
	background: none;
}

li.categories li, li#linkcat-2 li {
	margin-bottom: 10px;
	font-size: 12px;
	line-height: 18px;
	border-bottom: 1px dashed #d4d4d4;
	padding-bottom: 5px;
}

li.categories li a, li#linkcat-2 li a {
	padding-bottom: 5px;
}

li#linkcat-2 {
	margin-top: 20px;
	list-style-type: none;
}

#sidebar h2 {
	margin-bottom: 20px;
	font-size: 18px;
}

li#linkcat-2 {
	background: none;
}

#sidebar ul {
	background: none;
}


/* ************************************************************************************************************************************************************

Work

************************************************************************************************************************************************************ */

.project {
	position: relative;
	border-bottom: 1px dashed #d4d4d4;
	padding-bottom: 20px;
	margin-bottom: 30px;
}

img.portfolio {
	border: 4px solid #fff;
	-moz-box-shadow: 0 0 5px #999;
	-webkit-box-shadow: 0 0 5px #999;
	box-shadow: 0 0 5px #999;
	margin-bottom: 10px;
}


.portfolio-main {
	float: left;
	width: 400px;
	margin-right: 60px;
}

.about-portfolio {
	float: left;
	width: 160px;
	margin-right: 20px;
}

.about-portfolio img {
	float: left;
	margin: 0 15px 20px 0;
}

.about-portfolio p {
	padding-top: 8px;
}

section.details {
	float: right;
	width: 200px;
	margin-right: 20px;
}

section.details p {
	text-align: justify;
	font-size: 12px;
}

a.portfolio-link {
	margin-bottom: 15px;
	font-size: 14px;
	line-height: 18px;
	text-shadow: 1px 1px 1px #fff;
	-moz-text-shadow: 1px 1px 1px #fff;
	-webkit-text-shadow: 1px 1px 1px #fff;
}


/* ************************************************************************************************************************************************************

Contact

************************************************************************************************************************************************************ */

form.wpc7-form input {
	float: right;
}


label {
	float: left;
	width: 50px;
	margin-right: 30px;
}

input {
	margin-bottom: 10px;
	padding: 3px;
	font-family: Arial, Helvetica, Verdana, sans-serif;
}

input[type="text"], input[type="email"], input[type="url"] {
	width: 272px;
	background: #eee;
	border: 1px dotted #2b9ad9;
	display: block;
	float: right;
	margin: -15px 0 25px 0;
}

input[type="text"]:focus, input[type="email"]:focus, input[type="url"]:focus, textarea:focus {
	border: 1px solid #2b9ad9;
}

form#commentform input[type="text"], form#commentform input[type="email"], form#commentform input[type="url"], form#commentform textarea {
	margin-top: 0;
}

textarea {
	font-family: Arial, Helvetica, Verdana, sans-serif;
	font-size: 12px;
	padding: 3px;
	width: 272px;
	background: #eee;
	border: 1px dotted #2b9ad9;
	float: right;
	margin: -20px 0 25px 0;
}

input#contactbtn, input[type="submit"] {
	width: 98px;
	height: 38px;
	padding: 5px;
	border: 0;
	font-weight: bold;
	margin: 10px 0 0 120px;
	-moz-border-radius: 5px;
	-webkit-border-radius: 5px;
	border-radius: 5px;
	color: #fff;
	-moz-text-shadow: 1px 1px 1px #999;
	-webkit-text-shadow: 1px 1px 1px #999;
	text-shadow: 1px 1px 1px #999;
	cursor: pointer;	
	background-color: #bfd924;
	background-image: url(../images/submitbtn.png) top left no-repeat;
	background-image: -moz-linear-gradient(100% 100% 80deg, #b0c924, #d4f12b);
    background-image: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#d4f12b), to(#b0c924));

}

input#contactbtn:hover, input[type="submit"]:hover {
	box-shadow: 0 0 5px #2b9ad9;
	-webkit-box-shadow: 0 0 5px #2b9ad9;
	-moz-box-shadow: 0 0 5px #2b9ad9;
}

input#contactbtn:active {
	margin-top: 21px;
}


/* ************************************************************************************************************************************************************

Footer

************************************************************************************************************************************************************ */

footer {
	margin-top: 20px;
}

footer p {
	color: #2b9ad9;
}

/* ************************************************************************************************************************************************************

Media Queries

************************************************************************************************************************************************************ */

	

@media screen and (max-width: 480px) {
	
	body {
		-webkit-text-size-adjust: none;
		font-family: Helvetica, Arial, Verdana, sans-serif;
		padding:0;
		margin: 0;
	}

	img {
	  max-width:100%;
	  height:auto;
	}
	
	a {
		text-decoration: none;
		color: #2b9ad9;
		-webkit-transition: none;  
		
	}

	#wrap {
		width:95%;		
		padding: 0 5px 5px 5px;
		margin: 0;
	}
	
	#main, #about, #latest {
		float: none;
		width: 100%;
		margin: 0;
		padding: 0;
	}
	
	#about, aside.meta, #sidebar, .about-portfolio {
		display: none;
	}
	
	#main {
		clear: both;
	}
	
	a#logo {
		float: none;
	}	
	
	nav {
		float: none;
		margin-top: 0;
		margin-bottom: 140px;		
	}

	nav ul li{
		float: none;
		width: 100%;
		height: 40px;	
		background: none;
		padding-left: 0;
		font-size: 16px;
		display: block;
	}

	nav ul li a {
		height: 30px;
		color: #2b9ad9;
		display: block;
		width: 300px;
		padding-top: 11px;
		text-align: left;
		font-weight: bold;
		-moz-text-shadow: 1px 1px 1px #fff;
		-webkit-text-shadow: 1px 1px 1px #fff;
		text-shadow: 1px 1px 1px #fff;
	}

	nav ul li a:hover {
		background: none;
		text-decoration: none;
		color: #2b9ad9;
	}
	
	.current_page_item, body.single-post .page-item-217 {
		background: none;
	}

	.current_page_item a, body.single .page-item-217 a {
		color: #2b9ad9;
		-moz-text-shadow: none;
		-webkit-text-shadow: none;
		text-shadow: none;
	}
	
	h1.home {
		display: none;
	}
	
	#latest {
		clear: both;
		float: none !important;
		width: 100% !important;		
	}
	
	article.latest {
		width: 100%;
	}
	
	#blog {
		width: 100% !important;
		float: none;
		margin: 0;
	}
	
	#blog h1 {
		display: none;
	}
	
	article.post {
		float: none;
		width: 100%;
		margin: 0;
		padding: 0;
	}
	
	code {
		width: 100%;
	}
	
	.entry, .blog, .comments, .blog-entry {
		width: 300px !important;
	}
	
	.comments, form#commentform {
		width: 100%;
		float: none;
	}
	
	
	
	form#commentform label {
		display: none;
	}	
	
	form#commentform input, form#commentform textarea {
		display: block;
		float: none;
		width: 100% !important;
	}	
	
	#pagination {
		width: 300px !important;
	}
	
	.project {
		width: 100%;
	}
	
	.portfolio-main {
		float: none;
		width: 100%;
	}
	
	.details {
		float: none;
		width: 285px !important;
		margin-top: 15px;
	}
	
	label, input, textarea {
		float: none;
		width: 100%;
		display: block;
	}
	
	input[type="text], input [type="email"], input [type="email"] {
		float: none;
		width: 100%;
	}
	
	body.page-id 233 #latest {
		display: none;
	}
	
	button#send {
		margin: 0;
	}
	
	.comment {
		width: 100%;
	}
	
	.comment p {
		width: 100% !important;
		float: none;
	}
	
	.comment-author {
		float: none;
		width: 100%;
		border: none;
		margin: 0;
	}
	
	.comment-author img {
		display: none;
		float: none;		
	}
	
	
	

}







