
/* Colour palette
	   light grey:	f4f4f4
	  medium grey:	e6e6e6
	    dark grey:	b4b4b4

	 light purple:	f4ecf4
	medium purple:	e9d9e8
	  dark purple:	c5a3c2

	   light blue:	e7f0f9
	  medium blue:	d9e6f3
	    dark blue:	729fcf

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

/* TODO: stylesheet class names in 'namespace' */

/* Base styles
**********************************************************/

body, input, button, textarea {
	font-family: verdana, sans-serif;
	font-size: 10pt;
}

body
{
	background: #f4f4f4 url( "images/bg.png" ) repeat;
	margin: 16px;
	padding: 0;
}


a:link, a:visited
{
	color: #204a87;
	text-decoration: none;
}
a:hover
{
	color: #3465a4;
	text-decoration: underline;
}
a.large
{
	font-size: 11pt;
	font-weight: bold;
	text-transform: uppercase;
}

h1, h2, h3 {
	font-family: calibri, "trebuchet ms", arial, sans-serif;
}
h1
{
	font-size: 10pt;
	color: #888a85;
	text-align: center;
	letter-spacing: 3px;
	margin: 1em 0 3em;
}
h1:first-line
{
	font-size: 24pt;
	color: #204a87;
	text-decoration: underline;
}
h2 {
	margin: 0.5em 0;
	color: #555753;
	font-size: 16pt;
	text-align: center;
	text-transform: uppercase;
	letter-spacing: 2px;
}
h2 q {
	text-transform: none;
}
h3
{
	color: #000000;
	font-size: 12pt;
	text-align: center;
	text-decoration: overline underline;
}

table {
	border-collapse: collapse;
}

img {
	border: 0;
}
q:before {
	content: "\2018";
}
q:after {
	content: "\2019";
}


div#content-box {
	/* width=750 */
	width: 732px;
	min-height: 300px;
	margin: -1px auto 0;
	padding: 8px;
	border: 1px solid #c5a3c2;
	background-color: #f4ecf4;
}
.footer
{
	border-top: 1px dashed #888a85;
	padding-top: 8px;
	color: #888a85;
	font-style: italic;
	text-align: center;
}


/* Form styles
**********************************************************/

form {
	text-align: center;
	margin: 0 0 16px 0;
}

form fieldset {
	display: block; /* IE fix */
	width: 500px;
	margin: 1em auto 0;
	border-width: 1px 0 0 0;
	border-style: solid;
	border-color: #b4b4b4;
}

form fieldset legend {
	padding: 0 8px;
	color: #000000;
	font-weight: bold;
}

form fieldset legend[title]:hover {
	color: #555753;
}

form.action span.button {
	width: 180px;
	margin: 2px auto;
}

form span.button,
form button[type="submit"] {
	display: -moz-inline-block; /* Firefox bug fix */
	display: inline-block;
	min-width: 100px;
	max-width: 200px;
	height: 26px;
	line-height: 26px;
	margin: 4px auto 0;
	padding: 0 8px;
	font-size: 8pt;
	font-weight: bold;
	text-align: center;
	/* normal state: grey */
	background: #e6e6e6 url("images/button.png") repeat-x top;
	border: 1px solid #b4b4b4;
	color: #545454;
	/* supress I-beam */
	cursor: default;
}

form span.button:hover,
form button[type="submit"]:hover {
	/* hover state: blue */
	background-position: center;
	background-color: #d9e6f3;
	border: 1px solid #729fcf;
	color: #2b557d;
}

form span.button:active,
form button[type="submit"]:active {
	/* active state: dark blue */
	background-position: bottom;
	background-color: #d1e2f1;
}

form div.required,
form div.optional {
	clear: both;
	text-align: left;
}

form div.required label,
form div.optional label {
	/* width=220 */
	width: 202px;
	padding: 4px 8px 4px 0;
	display: block;
	float: left;
	line-height: 24px;
	text-align: right;
}

form div.required label {
	color: #a40000;
	font-style: italic;
}

form input[type="text"],
form input[type="password"] {
	/* width=240 */
	/*display: -moz-inline-block; /* Firefox bug fix */
	/*display: inline-block;*/
	width: 232px;
	margin: 2px;
	padding: 6px 2px;
	border: 1px solid #b4b4b4;
	background-color: #ffffff;
	color: #000000;
	font-size: 8pt;
}

form#question-setup input[type="text"] {
	width: 470px;
	float: left;
}

form#question-setup span.button {
	margin-top: 24px;
}

form#question-setup div.question-remove {
	width: 16px;
	height: 16px;
	margin: 5px 2px;
	background: url("images/sprites.png") no-repeat 0% 50%;
	float: left;
	cursor: pointer;
}



/* Table styles
**********************************************************/

table#entries {
	margin: auto;
	background-color: #f4ecf4;
	/*width: 750px;*/
}
table#entries th,
table#entries td {
	padding: 4px 8px;
	border: 1px solid #c5a3c2;
}
table#entries th {
	background-color: #e9d9e8;
	text-align: center;
	font-size: 11pt;
	font-weight: bold;
	text-align: center;
}

/* column styles */
table#entries td.player {
	color: #888a85;
	font-size: 8pt;
	width: 200px;
}
table#entries td.player:first-line {
	color: #000000;
	font-size: 10pt;
	font-weight: bold;
}
table#entries td.answer {
}
table#entries td.check {
	width: 16px;
}

/* row highlight colour on hover */
table#entries tr.over td {
	background-color: #faf5ef;
}
/* row highlight colour on select */
table#entries tr.selected td {
	background-color: #e4ebd7;
}
/* tick on row select */
table#entries td.check div {
	width: 16px;
	height: 16px;
	margin: auto;
	background: url("images/sprites.png") no-repeat 0% 25%;

}
table#entries tr.selected td.check div {
	background-position: 0% 0%;
}



/* Messages, warnings & errors
**********************************************************/

div.info-box {
	/* width=600 */
	width: 574px;
	padding: 12px;
	margin: 8px auto 32px;
	border: 1px dashed #edd400;
	background-color: #fffdeb;
	background-repeat: no-repeat;
	background-position: left;
}
div.info-box p {
	margin-top: 0.25em;
	margin-bottom: 0.25em;
	text-align: left;
}
div.info-box h2 {
	margin-top: 0;
}
div.info-box fieldset {
	text-align: center;
}

div.info-box.message,
div.info-box.error,
div.info-box.warning {
	padding-left: 40px;
	font-weight: bold;
	text-align: left;
}

div.info-box.message {
	color: #4e9a06;
	background-image: url("images/dialog-normal.png");
}
div.info-box.warning {
	color: #cc0000;
	background-image: url("images/dialog-warning.png");
}
div.info-box.error {
	color: #cc0000;
	background-image: url("images/dialog-error.png");
}


/* Generic styles
**********************************************************/

.note { /*unused*/
	text-align: center;
	font-size: 8pt;
	color: #888a85;
}

dl.code {
	margin-left: 20px;
}
dl.code dt,
kbd {
	font-family: "courier new", monospace;
	color: #555753;
}

code.block {
	display: block;
	margin-left: 40px;
	padding: 6px;
	background-color: #faf5ef;
	border-left: 3px solid #dcb58c;
	color: #99632f;
}
