
body, body * {
	font-family: Arial, sans;
}

* {
	box-sizing: border-box;
}

body {
	background-color:#444444;
	width:100%;
	height:100%;
	padding:10px;
	margin:0px;
}

div#bodydiv {
	background-color:#F0FFFF;
	margin:auto;
	padding: 2ex;
	overflow-y: auto;
}

/* language selection styles (and also under buttons) */

table.languages td {
	width:14ex;
	text-align:center;
}

table.languages a {
	display: block;
	height:25px;
    padding: 6px 0px 0px 0px !important;
    margin: 6px 5px;
    text-decoration: none;
    font-size: 14px;
    color: black;
}


/* links */

a {
	text-decoration: none;
}

a.link {
	text-decoration:underline;
	color:inherit;
}

a.link:hover {
	cursor: pointer;
	color: #FC4A1A;
}

/* button styles */

input[type=button], input[type=submit], table.languages a {
	background: #309080; /* new green button */
	background-image: -webkit-linear-gradient(top, #38B099, #309080); /* was #4ABDAC, #3E9988 */
	background-image: -moz-linear-gradient(top, #38B099, #309080);
	background-image: -ms-linear-gradient(top, #38B099, #309080);
	background-image: -o-linear-gradient(top, #38B099, #309080);
	background-image: linear-gradient(to bottom, #38B099, #309080);
	-webkit-border-radius: 10;
	-moz-border-radius: 10;
	border-radius: 10px;
	border: 1px outset #888;
	color: #ffffff;
	font-size: 16px;
	padding: 5px 10px;
	margin: 2px 0px;
	height: 4ex;
    text-align: center;
}

oldgreenbuttonwas {
	background: #42B4A4; /* ordinary green button */
	background-image: -webkit-linear-gradient(top, #42B4A4, #369080); /* was #4ABDAC, #3E9988 */
	background-image: -moz-linear-gradient(top, #42B4A4, #369080);
	background-image: -ms-linear-gradient(top, #42B4A4, #369080);
	background-image: -o-linear-gradient(top, #42B4A4, #369080);
	background-image: linear-gradient(to bottom, #42B4A4, #369080);
}

input[type=button].red, input[type=submit].red, table.languages a.red {
	background: #FC4A1A; /* special red button */
	background-image: -webkit-linear-gradient(top, #FC4A1A, #CC4217);
	background-image: -moz-linear-gradient(top, #FC4A1A, #CC4217);
	background-image: -ms-linear-gradient(top, #FC4A1A, #CC4217);
	background-image: -o-linear-gradient(top, #FC4A1A, #CC4217);
	background-image: linear-gradient(to bottom, #FC4A1A, #CC4217);
}

input[type=button].tan, input[type=submit].tan, table.languages a.tan {
	background: #E0905A; /* selected beige button was #F7B733, #FC4A1A, #EEAA7B */
	background-image: -webkit-linear-gradient(top, #E0905A, #C88417); /* was #4ABDAC, #3E9988 */
	background-image: -moz-linear-gradient(top, #E0905A, #C88417);
	background-image: -ms-linear-gradient(top, #E0905A, #C88417);
	background-image: -o-linear-gradient(top, #E0905A, #C88417);
	background-image: linear-gradient(to bottom, #E0905A, #C88417);
}

input[type=button].blue, input[type=submit].blue, table.languages a.blue {
	background: #0060F0; /* selected blue button */
	background-image: -webkit-linear-gradient(top, #0080F0, #0060C0);
	background-image: -moz-linear-gradient(top, #0080F0, #0060C0);
	background-image: -ms-linear-gradient(top, #0080F0, #0060C0);
	background-image: -o-linear-gradient(top, #0080F0, #0060C0);
	background-image: linear-gradient(to bottom, #0080F0, #0060C0);
}

input[type=button].select, input[type=submit].select, table.languages a.select {
	background: #FFD700; /* gold was #F7B733; #FC4A1A; */
	background-image: -webkit-linear-gradient(top, #FFD700, #FFE244);
	background-image: -moz-linear-gradient(top, #FFD700, #FFE244);
	background-image: -ms-linear-gradient(top, #FFD700, #FFE244);
	background-image: -o-linear-gradient(top, #FFD700, #FFE244);
	background-image: linear-gradient(to bottom, #FFD700, #FFE244);
	color: black;
	border: 1px outset #FFCCCC;
    box-shadow: 0 0 10px #FC4A1A;
}

input[type=button]:focus, input[type=submit]:focus, table.languages a:focus {
	outline: none;
}

input.disabled[type=button], input[type=button]:hover, input[type=submit]:hover, table.languages a:hover {
	cursor: pointer;
	background: #FFD700; /* gold was #F7B733; #FC4A1A; */
	background-image: -webkit-linear-gradient(top, #FFD700, #F7B733);
	background-image: -moz-linear-gradient(top, #FFD700, #F7B733);
	background-image: -ms-linear-gradient(top, #FFD700, #F7B733);
	background-image: -o-linear-gradient(top, #FFD700, #F7B733);
	background-image: linear-gradient(to bottom, #FFD700, #F7B733);
	color: black;
	border: 1px outset #FFCCCC;
    box-shadow: 0 0 10px #FC4A1A;
}

input.disabled[type=button], input.disabled[type=button]:hover {
	cursor: default;
	background: inherit;
	color: inherit;
    box-shadow: 0 0 5px #FC4A1A;
}

XXinput.disabled.red[type=button], input.disabled.red[type=button]:hover {
	background: #FFcccc;
	background-image: -webkit-linear-gradient(top, #FFcccc, #FFaaaa);
	background-image: -moz-linear-gradient(top, #FFcccc, #FFaaaa);
	background-image: -ms-linear-gradient(top, #FFcccc, #FFaaaa);
	background-image: -o-linear-gradient(top, #FFcccc, #FFaaaa);
	background-image: linear-gradient(to bottom, #FFcccc, #FFaaaa);
}

input[type=button]:active, input[type=submit]:active, table.languages a:active { /* pressed */
	color: black;
	border: 1px outset #FFFFFF;
}

input[type=button].short, input[type=submit].short, input[type=button].hint {
	height: 3ex;
	padding: 0px 10px;
	margin: 1px 2px;
}

/* input text and password styles */

input[type=text], input[type=password] {
	font-size:100%;
	padding: 5px 10px;
	border: 2px inset;
	border-radius: 10px;
}

input[name='answer'] {
	text-align: center;
}

input[type=text]:focus, input[type=password]:focus {
	outline: none;
    border-color: #9ecaed;
    box-shadow: 0 0 10px #9ECAED;
}


/* heading and paragraph styles */

h1 {
	font-size: 200%;
	font-weight: bold;
	text-align: center;
}
h2 {
	font-size: 150%;
	font-weight: bold;
}
h3 {
	font-size: 120%;
	font-weight: bold;
}
h4 {
	font-size: 100%;
	font-weight: bold;
}

p {
}
.centred {
	text-align: center;
}
p.indented {
	padding: 0ex 5ex;
}

/* tables */

table.bordered { border-collapse: collapse; }
table.bordered th, table.bordered td { border: 1px solid black; padding: 2px 5px; }
table.centred, table.centered { margin: auto; }
table.rspace td { padding-right:1em; }

/* topics */

/*
div.sect {
	background-color: #309080; /* green */
	color: white;
	display: inline-block;
	padding: 2px 5px;
	-webkit-border-radius: 8;
	-moz-border-radius: 8;
	border-radius: 8px;
	border: 1px outset #FFFFFF;
}
*/

/* topics jqxtree */

#topics .jqx-tree-dropdown {
	padding: 0px 0px 0px 20px;
	font-weight: bold;
}
#topics .jqx-tree-dropdown .jqx-tree-dropdown {
	font-weight: normal;
}

.topicHeading {
	font-weight:bold;
	background-color:#8F8;
}
span.topicy {
}
span.topicn {
	text-decoration:line-through;
}

/* questions */

.qname {
	width:100%;
	color: #000;
	background-color: #eee;
	padding: 7px 15px;
	margin: 4px 0px;
}
.qname * {
	vertical-align: middle;
}

.morechoices {
	text-align: center;
	margin-top: 1em;
}

.showanswer {
	border:1px solid #aaa;
	padding:3px 8px;
	margin:2px 0px;
	display:inline-block;
}

/* flash */

.gcrudFlash { margin: 3ex 10ex 0ex 10ex; padding: 5px 20px; color: #fff; }
.flashError { background: #cc0000; text-align: center; color: #FF8; }
.flashSuccess { background: #309080; text-align: center; border:1px solid black; }

