/* Vertical rhythm debugging /** /
html {
	background-image: url(/underline.png);
}
/**/

/* HTML 5 block elements */
article, aside, dialog, figure, footer, header, hgroup, menu, nav, section { display: block; }

/* Based on YUI CSS reset */

body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,form,fieldset,input,textarea,p,blockquote,th,td {
	margin: 0;
	padding: 0;
}

table {
	border-collapse: collapse;
	border-spacing: 0;
}

fieldset, img {
	border: 0;
}

address,caption,cite,code,dfn,em,strong,th,var {
	font-style: normal;
	font-weight: normal;
}

ol, ul {
	list-style:none;
}

caption, th {
	text-align: left;
}

q:before, q:after {
	content:'';
}

abbr, acronym {
	border:0;
}

/* End of YUI CSS reset */


/* Headings */

h1, h2, h3, h4, h5, h6 {
	font-size: 100%;
	font-weight: normal;
	width: 90%;
	color: #0000c0;
}

h1 {
	font-size: 2em;
	line-height: 1em;
	margin-top: 1.5em;
	margin-bottom: 0.75em;
}

h1 * {
	color: #0000c0;
	text-decoration: none;
}

h2 {
	font-size: 1.5em;
	line-height: 1.0em;
	margin-top: 0.0em;
	margin-bottom: 1.0em;
	color: #000;
}

h3 {
	font-size: 1.125em;
	line-height: 1em;
	margin-top: 1.333em;
	padding-bottom: 0.333em;
}

h4, h5, h6 {
	font-size: 1em;
	line-height: 1.5em;
	margin-top: 1.5em;
	padding-bottom: 0em;
}

h4 {
	font-weight: bold;
}

em, var, i, dfn, cite {
	font-style: italic;
}

strong, b, th {
	font-weight: bold;
}

/* General tags */

html, body {
	background-color: #fafafa;
}

body {
	font-size: 75%;
	font-family: Verdana, Helvetica, Arial, sans-serif;
	margin: 0 10% 0 10%;
	max-width: 55em;
}

html>body {
	font-size: 16px;
}

p, dl, ul, ol, form {
	line-height: 1.5em;
	font-size: 1.0em;
	margin-top: 1.5em;
	margin-bottom: 1.5em;
}

div {
	font-size: 1.0em;
	line-height: 1.5em;
	margin: 0;
}

dt {
	font-weight: bold;
}

dd {
	padding-left: 2em;
}

pre {
	margin-top: 1.5em;
	margin-bottom: 1.5em;
}

code, pre {
	font-family: "Andale Mono", "Monotype.com", "Monospace", "Tahoma", monospace;
}

abbr, acronym {
	border-bottom: 1px dotted;
}

fieldset {
	border: 1px solid;
	padding: 0.75em;
}

th {
	text-align: center;
}

/* General classes */

.clear {
	clear: both;
}

.sidenote {
	font-size: 0.8333em;
	line-height: 1.8em;
}

.warning {
	border: 1px solid red;
	padding: 0.5em;
}


/* Navigation */

nav {
	position: absolute;
	right: 0;
	top: 0;
	width: 100%;
}

nav .main {
	border-bottom: 1px dashed #0000c0;
	position: absolute;
	right: 0;
}

nav .sub {
	/* Uncomment to extend the dashed line when .sub is wider than .main */
	/*border-top: 1px dashed #0000c0;*/
	padding-top: 1px;
	position: absolute;
	right: 0;
	top: 1.56em;
}

nav ul {
	display: block;
	margin: 0;
	padding: 0;
	width: 100%;
}

nav li {
	display: block;
	margin: 0;
	padding: 0;
	float: left;
}

nav a {
	display: block;
	padding: 0.1em 1em;
	line-height: 1.375em;
	color: #000;
	text-decoration: none;
	border-left: 2px solid #fafafa;
	height: 1.375em;
}

nav li.current a {
	background-color: #f0f0f0;
	border-left-color: #f7f7f7;
}

nav a:hover, nav li.current a:hover {
	background-color: #dcdcdc;
	border-left-color: #bababa;
}

nav a:active {
	outline: none;
}

#ie6warning {
	display: block;
	position: relative;
	background-color: yellow;
	z-index: 100;
	padding: 4px;
	margin-bottom: 1em;
}


/* Yahtzee Statistics */

table#stats_table tbody th {
	text-align: left;
}

table#stats_table tbody td {
	text-align: right;
	padding-left: 1em;
}

/* Yahtzee Instructions */
/* This most likely messes up the text alignment */
.instructions table {
	width: 100%;
	margin-left: 0;
	margin-right: 0;
	border-spacing: 0;
	border-collapse: collapse;
	margin-top: 1.5em;
}

.instructions td, .instructions th {
	border: 0.05em solid black;
	padding: 0.2em;
}

footer {
	border-top: 1px solid;
}