/* CSS Reset */

body, div, h1, h2, h3, h4, p, ul, ol, li, dl, dt, dd, img, form, fieldset, blockquote {
    margin: 0px; padding: 0px; border: 0px;
}

body {
	font-family: Helvetica, Arial, sans-serif; /* Set the global font */ 
	background: #c9bdb2 url(../images/body-bg-repeat.png); /* Add the repeating texture file */
}

#page-wrap {
	background: url(../images/body-bg.jpg) center top no-repeat; /* An extra DIV allows us to attach the larger background image and position centrally on the page */
}

/* Lay out the page structure with a container */
#container {
	width: 900px; /* Width of the container minus the left padding below */
	margin: 0 auto; /* Aligns the container to the centre of the page */
	padding: 60px 0 0 40px; /* Add some top and left padding */
}

#header {
	margin: 0 0 40px 0;	/* Bottom margin on the header */
}

	#header h1 a {
		display: block; /* Anchors are inline by default, change it to block... */
		width: 872px; height: 113px; /*...Which then allows us to specify width and height (according to the image) */
		color: #6b5c4e; margin: 0 0 20px 0; /* the color can't actually be seen on the text, but it avoids a blue dotted border in Firefox */
		background: url(../images/chrisspooner.jpg); text-indent: -9999px; /* Add the background image as part of the CSS Image Replacement and shift the text out of the way */
	}
	
	#header h2 {
		width: 872px; height: 108px;
		background: url(../images/introtext.jpg); text-indent: -9999px;
	}

#portfolio {
	margin: 0 0 40px 0;
}
	
	#portfolio h2 {
		width: 192px; height: 57px; margin: 0 0 10px 0;
		background: url(../images/my-work.jpg); text-indent: -9999px;
	}
	
	#portfolio ul {
		list-style: none; /* Remove the bullet points from the list */
	}
		#portfolio ul li {
			float: left; /* Float the lists to the left, laying them out side by side */
			padding: 10px; margin: 0 23px 23px 0;
			background: url(../images/img-bg.png); /* Add the semi-transparent background, used along with padding to give the impression of a see-through border */
			/* Let's get fancy with some CSS3, only visible in Firefox, Safari & Chrome. Other browsers simply revert to square corners */
			border-radius: 10px; 
			-moz-border-radius: 10px;
			-webkit-border-radius: 10px;
		}
		
#footer {
	margin: 0 0 40px 0;
}

	#footer h2 {
		width: 200px; height: 57px; margin: 0 0 10px 0;
		background: url(../images/say-hello.jpg); text-indent: -9999px;
	}
	
	#footer ul {
		list-style: none; margin: 0 0 60px 0;
	}
		#footer ul li {
			display: inline; /* IE6 fix to prevent the step down bug */
		}
			#footer ul li a {
				display: block; /* Make the anchors a block element, allowing the width and height to be specified and increasing the clickable area */
				float: left; /* Float them side by side */
				height: 40px; /* 40px is the height of the icon */
				margin: 0 89px 0 0; /* Space out the links with some right margin */
				padding: 10px 0 0 60px; /* Align the text to the icon with top padding and move it away from the icon with left padding */
				color: #827161; text-decoration: none; font-size: 30px; /* Style up the link text, remove the default underline */
				background-image: url(../images/contact-icons.jpg); /* Add the icon sprite */
				background-repeat: no-repeat; 
			}
			/* Reposition the sprite background image for each of the links according to their class name */
			#footer ul li a.email { background-position: 0 0; }
			#footer ul li a.twitter { background-position: 0 -50px; }
			#footer ul li a.facebook { background-position: 0 -100px; }
			#footer ul li a.digg { background-position: 0 -150px; margin: 0; }
			
			#footer ul li a:hover {
				color: #746150; /* Change the color of the link text on hover */
			}
	
	#footer p.copyright {
		clear: both; /* The links above were floated, so clear the float on the copyright text */
		float: right; margin: 0 40px 0 0; /* Add a new float to the right and shift into place with some right margin */
		font-size: 11px; color: #827161; /* Style up the text */
	}

/* A handy 'Clearfix' technique to clear floats in order to avoid affecting page elements further down the document */		
.clear:after {
	content: "";
	display: block; visibility: hidden; clear: both;
}
	.clear { zoom: 1; } /* Clearfix IE fix */