/*------------------------------------------------------------------------------
// 
// Gridulator Main Styles
// David Sleight, stuntbox.com
//
------------------------------------------------------------------------------*/

/*- Reset Browser Styles -----------------------------------------------------*/
/*
Praise and glory to Mr. Eric Meyer
and his indispensable browser reset styles, available at: 
http://meyerweb.com/eric/thoughts/2007/05/01/reset-reloaded/
*/

html, body, div, span, applet, object, iframe,
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, strike, strong, sub, sup, tt, var,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td {
	margin: 0;
	padding: 0;
	border: 0;
	outline: 0;
	font-weight: inherit;
	font-style: inherit;
	font-size: 100%;
	font-family: inherit;
	vertical-align: baseline;
}
/* remember to define focus styles! */
:focus {
	outline: 0;
}
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: "" "";
}

/*- Core Styles --------------------------------------------------------------*/

body {
	font: 14px/18px Georgia, Times, serif;
	text-align: center;
	color: #666;
	background: #fff;
	border-top: 11px solid #413c32;
}

h1 {
	font-family: Sentinel, Georgia, Times, serif;
	font-size: 67px;
	font-weight: bold;
	line-height: 1;
	text-indent: -9000px;
	background: url(../images/wordmark.png) 50% 0% no-repeat;
	height: 96px;
	margin-top: -15px;
}

h2 {
	font-size: 18px;
	font-weight: normal;
	line-height: 1.1;
	color: #413c32;
	text-indent: -9000px;
	background: url(../images/tag-line.png) 50% 0% no-repeat;
	height: 20px;
	margin-top: -10px;
}

a {
	color: #413c32;
}

#header {
	background: #f0ecdd url(../images/bgd-tile.png) repeat;
	position: relative;
}

#badge a {
	width: 124px;
	height: 124px;
	background: url(../images/badge.png) 0 0 no-repeat;
	text-indent: -9000px;
	position: absolute;
	top: -44px;
	left: 66%;
}

#badge a:hover {
	background-position: 0 -132px;
}

#header-outer {
		background: url(../images/bgd-burst.png) 50% 0% no-repeat;
}

#header-inner {
	padding-top: 45px;
	background: -webkit-gradient(linear, 0 0, 0 100%, from(rgba(255,255,255,0)), to(rgba(255,255,255,1)));
	background: -moz-linear-gradient(rgba(255,255,255,0), rgba(255,255,255,1));
	border-bottom: 2px solid white;
}

#calculator {
	margin: 35px auto 30px auto;	
	width: 340px;
	height: 80px;
}

fieldset {
	display: block;
	width: 140px;
	position: relative;
}

fieldset.width { float: left; }
fieldset.columns { float: right; }

#calculator input {
	width: 95px;
	height: 45px;
	float: left;
	margin-right: 5px;
	padding-right: 5px;
	border: 3px solid #605a4e;
	-webkit-border-radius: 8px 8px; 
	-moz-border-radius: 8px 8px;
	border-radius: 8px 8px;
	text-align: right;
	font: 30px Georgia, Times, serif;
	color: #413c32;
	background-color: white;
}

#calculator input:focus {
	border: 3px solid #d9411e;
	-webkit-box-shadow: 0 0 5px #d9411e;
	-moz-box-shadow: 0 0 5px #d9411e;
	box-shadow: 0 0 5px #d9411e;
	
}

#calculator label { 
	display: block;
	margin-bottom: 4px;
	font-size: 13px;
	font-style: italic; 
	font-weight: bold;
	text-align: left;
	color: #605a4e;
}

fieldset.width label { padding-left: 4px; }
fieldset.columns label { padding-left: 8px; }

#calculator button {
	border: 0;
	background: transparent;
	width: 20px;
	height: 15px;
	cursor: pointer;
	text-indent: -5000px;
	margin-top: 7px;
}

#calculator button.increase {background: url('../images/arrows.png') -4px 0 no-repeat;}
#calculator button.increase:hover {background-position: -34px 0;}
#calculator button.decrease {background: url('../images/arrows.png') -4px -20px no-repeat;}
#calculator button.decrease:hover {background-position: -34px -20px;}

#error {
	position: absolute;
	top: -105px;
	left: -70px;
	z-index: 1;
	width: 250px;
	height: 138px;
	background: transparent url(../images/drop-arrow.png) 50% 100% no-repeat;
}

#error-inner {
	height: 120px;
	background-color: rgba(0,0,0,0.8);
	-webkit-border-radius: .9em; 
	-moz-border-radius: .9em;
	border-radius: .9em;
	text-align: left;
	color: white;
}

#error h3 {
	border-bottom: 1px dotted rgba(255,255,255,0.5);
	padding: 9px 7px 9px 15px;
	font-style: italic;
	font-weight: bold;
}

#error h3 a {
	float: right;
	display: block;
	text-indent: -9000px;
	width: 20px;
	height: 18px;
	background: transparent url(../images/sprites.png) 0 -21px no-repeat;
}

#error p {
	padding: 8px 15px 15px 15px;
	line-height: 1.4;
}

#no-grids {
	font-size: 1.1em;
	line-height: 1.5;
	width: 500px;
	margin: 40px auto 50px auto;
	font-style: italic;
	color: #605a4e;
}

#results {
	width: 500px;
	margin: 30px auto 80px auto;
}

#results th {
	font-size: 13px;
	font-style: italic; 
	font-weight: bold;
	color: #605a4e;
}

#results td {
	font-size: 16px;
}

#results th, #results td {
	text-align: center;
	padding: 6px 0;
}

#results th {
	border-bottom: 2px solid #605a4e;
}

#results td {
	border-bottom: 1px solid #ccc9b8;
	color: #605a4e;
}

#results .selected td {
	border-bottom: none;
}

#results button {
	color: white;
	border: none;
	-webkit-border-radius: .9em; 
	-moz-border-radius: .9em;
	border-radius: .9em;
	text-shadow: 0 1px 0 rgba(0,0,0,.4);
	background-color: #807766;
	cursor: pointer;
}

#results button:hover {
	background-color: #413c32;
}

#results .preview {
	padding-left: 19px;
	background: #807766 url(../images/sprites.png) 1px 0 no-repeat;
}

#results .selected .preview {
	padding-left: 19px;
	background: #807766 url(../images/sprites.png) 0 -21px no-repeat;
}


.no-canvas #results .preview {
	display: none;
}

#results .make-grid {
	padding-left: 19px;
	background: #807766 url(../images/sprites.png) 0px -41px no-repeat;
}

#footer {
	font-size: 13px;
	color: #807766;
}

#footer ul {
	margin-bottom: 12px;
}

#footer li {

	display: inline;
	margin-right: 20px;
}

#footer li:last-child {
	margin-right: 0;
}

kbd {
	display: inline-block;
	width: 15px;
	padding: 3px;
	margin-right: 2px;
	color: #807766;
	background-color: #f2f0d2;
	-webkit-border-radius: 1em; 
	-moz-border-radius: 1em;
	border-radius: 1em;
	font: 11px/14px Arial, sans-serif;
	text-align: center;
}

#copyright {
	font-size: 12px;
	margin-bottom: 50px;
}
