/*
-----------------------------------------------
HTML5 & CSS3 Resources
author: dan rubin
edited: 2010-10-19
----------------------------------------------- */

/* remember to remove any resets not needed for this design */
@import url("reset.css");

/* math: it's what's for dinner */
html { font-size:16px; }
body { font-size:100%; }
h1 { font-size:2.25em;  /* 16x2.25=36 */ }
h2 { font-size:1.5em;   /* 16x1.5=24 */ }
h3 { font-size:1.125em; /* 16x1.125=18 */ }
h4 { font-size:0.875em; /* 16x0.875=14 */ }
p  { font-size:0.75em;  /* 16x0.75=12 */ }


@font-face {
	font-family: 'Pictos';
	src: url('../fonts/pictos-web.eot');
	src: local('☺'), url('../fonts/pictos-web.woff') format('woff'), url('../fonts/pictos-web.ttf') format('truetype'), url('../fonts/pictos-web.svg#webfontphKv1xv9') format('svg');
	font-weight: normal;
	font-style: normal;
}

html {
	-webkit-font-smoothing:antialiased;
}

body {
	background:
		/*-webkit-gradient(linear, left top, left bottom, from(rgba(0,152,165,.1)), to(rgba(0,0,0,0)))*/
		-webkit-gradient(linear, left top, left bottom, from(rgba(255,102,31,.1)), to(rgba(255,102,31,.1))),
		url(img/bg-body.jpg) fixed
	;
	padding:2em 0;
	min-width:700px;	
}
body > section {
	width:80%;
	max-width:800px;
	margin:0 auto;
	padding:1.5em 0;
	
	color:rgba(0,0,0,.6);
	text-shadow:0 -1px 0 rgba(255,255,255,.6);
	
	background:rgba(255,255,255,.5);
	
	-webkit-border-radius:9px;
	-moz-border-radius:9px;
	border-radius:9px;
	
	-webkit-box-shadow:
		0 0 12px rgba(0,0,0,.15),
		0 0 0 1px rgba(0,0,0,.1),
		inset 0 0 10px 1px rgba(255,255,255,.6)
	;
}

header,
section > section,
footer {
	padding:0 3em;
}

footer {
	padding-top:1em;
}

h2 {
	margin:1.25em 0 .5em;
}

header p {
	font-size:1.125em;
}

ul {
	padding-left:2em;
	line-height:1.4em;
	list-style:none;
}

li {
	position:relative;
}

small {
	font-size:60%;
}

.new {
	background-color:rgba(180,212,254,0.3);
	margin:0 -.25em;
	padding:.15em .25em;
}

a {
	color:rgba(0,0,0,.6);
	text-decoration:none;
}
a:hover {
	color:rgba(0,0,0,.8);
}

.examples li:before {
	content:'j';
	font-family:Pictos;
	position:absolute;
	top:0;
	left:-1.4em;
	width:1em;
	height:1em;
	font-size:.9em;
	line-height:.75em;
	opacity:.6;
}
.examples li.new {
	-webkit-border-radius:3px;
	-moz-border-radius:3px;
	border-radius:3px
}
.examples li.new + li.new {
	margin-top:1px;
}
.examples li.new:before {
	content:'!';
	top:.25em;
	left:-1.2em;
}
.examples li:hover:before {
	opacity:1;
}

#css3 li:before {
	color:rgba(33,112,180,.6);
}
#html5 li:before {
	color:rgba(240,119,66,.6);
}
#tools li:before {
	color:rgba(222,79,73,.6);
}
#reference li:before {
	color:rgba(33,142,92,.6);
}

@media screen and (min-width: 1200px) {
	body > section {
		width:85%;
		max-width:none;
	}
	article {
		float:left;
		width:45%;
		margin-right:5%;
	}
	footer {
		clear:left;
	}
}