/*
Copyright 2011-13 Newcastle University

   Licensed under the Apache License, Version 2.0 (the "License");
   you may not use this file except in compliance with the License.
   You may obtain a copy of the License at

       http://www.apache.org/licenses/LICENSE-2.0

   Unless required by applicable law or agreed to in writing, software
   distributed under the License is distributed on an "AS IS" BASIS,
   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   See the License for the specific language governing permissions and
   limitations under the License.
*/

/* VML fix for IE */
v\:* { behavior: url(#default#VML); display: inline-block}
o\:* { behavior: url(#default#VML); }

.clearAfter:after {
    clear: both;
    content: '.';
    display: block;
    visibility: hidden;
    height: 0;
}

html{	
	font-family: sans-serif;
}

#everything, #loading {
	padding: 1em;
}

a:hover {
	color: #f90;
}

table {
	background-color: white;
}

/*main template */
.mainDiv{ 
	clear: both;
	overflow: hidden;
}

.type-jme .preview {
	background-color: #eee;
	padding: 0.2em;
	font-family: serif;
	display: inline-block;
	font-size: 120%;
}

button {
	background: none;
	border: none;
}

.btn {
	margin: 0.1em 0.3em;
	min-width: 7em;
	/*border: 1px solid #999999*/;
	background: #f5f5f5;
	border: 1px solid #999;
	border-radius: 0;
	padding: 0.3em 1em;
}

button:hover, button:focus {
	background: #f90;
}

#progressbar {
	position: relative;
	height: 2em;
	width: 10em;
	border: 1px solid #1f4564;
}
#progressbar p {
	position: absolute;
	left: 0.3em;
	top: 0.15em;
}

#completed {
	position: absolute;
	left: 0;
	top: 0;
	height: 1.7em;
	margin: 0.15em;
	width: 0;
	background-color: #a2d1f0;
	overflow: hidden;
}

#completed p {
	position: absolute;
	color: #fff;
	left: 0.15em;
	top: 0;
}

/* title bar */
.titleBar{
	position: relative;
	height: 75px;
}
.logo{
	position: absolute;
	top: 0;
	left: 0;
}

#examBanner {
	margin-left: 250px;
	line-height: 1em;
	text-align: right;
	font-size: 2em;
	font-weight: bold;
}

#stopWatch {
	text-align: center;
	margin: 0.1em 0;
	font-size: 1em;
	font-weight: bold;
	color: #1F4564;
}

.navBar{
	zoom: 1;
	margin-left: auto;
	margin-right: auto;
	padding: 0.2em;
	background: #A2D1F0;
	border: 1px solid #999999;
	line-height: 2em;
}

.leftNav {
	float: left;
}
.rightNav {
	float: right;
}
.menuButtons {
	text-align: center;
	margin-top: 0.6em;
}

.titleBits {
	text-align: center;
	margin: 0 10em;
	font-size: 2em;
}

.mainDisplay {
	margin: 0 0;
	overflow-x: hidden;
}

#infoDisplay {
	width: 75%;
	margin: 1em auto;
}

.submitDiv {
	text-align: center;
}
#submitBtn {
	width: 9em;
}

#regenBtn {
	width: auto;
}

.marks {
	display: inline;
	vertical-align: middle;
}
.marks .score {
	padding-right: 0.5em;
}
.feedback-icon {
	font-size: 1.2em;
	display: inline-block;
	-webkit-text-stroke: 1px #222;
}
.feedback-icon.icon-ok {
	color: lime;
}
.feedback-icon.partial {
	color: lightslategrey;
}
.feedback-icon.icon-remove {
	color: red;
}
.feedback-icon.none {
	display: none;
}
.student-answer .feedback-icon {
    margin-left: 0.2em;
}

.questionSelector:hover {
	cursor: pointer;
	background-color: #cfc;
}

.questionSelector:hover a {
	color: black;
}

.questionSelector .feedback-icon {
	float: right;
	padding: 0;
	font-size: 1.5em;
}

.questionSelector .name {
	float: left;
	width: 15em;
}

.questionSelector .marks {
	float: right;
	clear: left;
}

.feedbackMessages {
	clear: both;
	text-align: center;
	padding: 0.5em 0.5em 0.5em 0.5em;
	border: 1px solid #a2d1f0;
	max-height: 20em;
	overflow-y: auto;
	margin: 0 0 0 auto;
	width: 50em;
	list-style-type: none;
}

.feedbackMessage:not(:last-child):after {
	content: '';
	display: block;
	background: #a2d1f0;
	height: 1px;
	width: 90%;
	margin: 0.5em auto;
}


/* column container */
#questionContainer {
	position: relative;		/* This fixes the IE7 overflow hidden bug and stops the layout jumping out of place */
	clear: both;
	float: left;
	width: 100%;			/* width of whole page */
	background: #A2D1F0;
}

#questionContainer p {
	line-height: 1.3em;
}

/* 2 column left menu settings */
#questionContainer .colwrap {
	float: left;
	width: 200%;
	position: relative;
	left: 13em;
	background: #fff;
}
#questionContainer .col1wrap {
	float: right;
	width: 50%;
	position: relative;
	right: 13em;
	padding-bottom: 1em;
}

#questionDisplay {
	margin: 1em 0.5em 0 14.5em;
	position: relative;
	right: 100%;
	overflow-x: auto;
	overflow-y: hidden;
}
#questionContainer .questionMenu {
	float: left;
	width: 12em;
	position: relative;
	right: 12.5em;
	padding-bottom: 1em;
}

.carousel {
	margin-bottom: 1em;
}

.carouselBtn {
	text-align: center;
	margin: 0 auto;
	cursor: pointer;
	display: block !important;
	padding: 0.2em;
	font-size: 1.3em;
	background-repeat: no-repeat;
	background-position:  50%;
}
.carouselBtn:hover {
	background-color: #f90;
}

.questionList {
	overflow: hidden;
	max-height: 20em;
}

#questionList {
	width: 100%;
	list-style-type: none;
	margin: 0;
	padding: 0;
}

.questionSelector {
	display: inline-block;
	font-size: 0.8em;
	padding: 0.5em 0;
}

.questionSelector .score {
	float: right;
}



.questionSelector.current {
	background: #94B4F7;
}

.examScore {
	background: #fff;
	font-weight: bold;
	font-size: 1.2em;
	text-align: center;
}

.adviceContainer {
	clear: both;
}

.adviceDisplay ol,ul {
	margin-left: 1em;
}

/* front/exit pages */
.startBtn {
	text-align: center;
}

.resultBtns {
	text-align: center;
}
.resultBtns div {
	margin-top: 2em;
}

.rtd {
	text-align: right;
}
.qtd {
	text-align: center;
}

.resultrow td {
	font-weight: bold;
	font-size: 1.3em;
}

#question-breakdown .question:hover {
	background-color: #f90;
	cursor: pointer;
}

/* results page */

#results table {
	margin: 0 auto;
	width: auto;
}

#results table.summary td:last-child {
	padding-left: 5em;
}

#results table tr:nth-child(even) {
	background-color: #eee;
}


/* exit page */
#exit {
	text-align: center;
}

/* question bits */

.statement table, .prompt table, .advice table {
	width: auto;
	margin-left: auto;
	margin-right: auto;
}

.statement {
	margin: 1em 0;
	padding-left: 1em;
	background: #cfc;
}
.part {
	margin: .5em 0;
}

div.part {
	margin-left: 1em;
}

.part.type-gapfill .part {
	display: inline-block;
}

.partheader {
	clear: both;
}

.correct-answer {
	vertical-align: bottom;
	margin-left: 1em;
	border: 1px dashed #999;
	padding: 0.4em;
	display: inline-block;
}

.correct-answer .feedback-icon {
	margin-left: 0.2em;
}

.steps {
	border: 1px solid;
	padding: 0.5em 0.5em;
}

.steps .prompt {
	display: inline-block;
	padding-right: 1em;
}

.stepsBtn {
	display: block;
}

.stepsBtn, .steps {
	margin-bottom: 1em;
	margin-left: 0;
}

.advice {
	background: #cfc;
	border: 1px solid;
	margin: 1em 0;
}

.multiplechoice li {
	list-style: none;
	padding-right: 2em;
	line-height: 1.5em;
	float: left;
}

.multiplechoice li.start-column {
	clear: both;
}

.multiplechoice p {
	display: inline;
}

.multiplechoice .choice {
	margin-right: 0.3em;
}

.part.type-m_n_x form, .part.type-1_n_2 form, .part.type-m_n_2 form {
	display: inline-block;
}

.part.type-m_n_x .choices-grid {
	margin-left: 1em;
	width: auto;
}

.part.type-m_n_x table.choices-grid td.option {
	text-align: center;
}

.part.type-m_n_x .choices-grid th {
	background: inherit;
	font-weight: normal;
	text-align: center;
}
.part.type-m_n_x .choices-grid .choice {
	text-align: left;
	max-width: 40em;
}

.question {
	border: 1px;
	margin-bottom: 1em;
}

.warning-icon {
	margin: 0 0.2em;
	color: red;
}

.warnings {
	color: red;
	font-size: 1em;
	position: absolute;
	background-color: #ddd;
	z-index: 1;
	padding: 0.2em;
	max-width: 20em;
	display: inline-block;
	list-style-type: none;
}
.warning {
	margin: 0.1em;
	display: block;
}

.part .partFeedback {
	background: #A2D1F0;
	border: 1px solid #999999;
	padding: 0.2em 0.2em 0.2em 0.1em;
	float: right;
	text-align: center;
}

.part .submitPart {
	display: block;
	margin: 0 auto 0.3em auto;
}

.feedbackToggle {
	width: 9em;
}

.part .marks {
	font-weight: bold;
	margin: 0 0.3em;
}


#questionDisplay .question td, #questionDisplay .adviceDisplay td {
	text-align: right;
}

input[type=text],input[type=number] {
	width: 60px;
	text-align: center;
}

div.lemma {
	margin-left: 2em;
	font-family: serif;
	font-size: 115%;
}
div.lemma p {
	font-style: italic;
	margin-left: 1em;
}

.monospace {
	font-family: monospace;
	font-size: 130%;
	background: #f5f5f5;
	padding: 0em 0.2em;
}

/*
------------------------------
	Impromptu
------------------------------
*/
div.jqi .jqititle{
	padding: 5px 10px;
	font-size: 16px; 
	line-height: 20px; 
	border-bottom: solid 1px #eeeeee;
}

.jqi .jqiarrow{ position: absolute; height: 0; width:0; line-height: 0; font-size: 0; border: solid 10px transparent;}

.jqi .jqiarrowtl{ left: 10px; top: -20px; border-bottom-color: #ffffff; }
.jqi .jqiarrowtc{ left: 50%; top: -20px; border-bottom-color: #ffffff; margin-left: -10px; }
.jqi .jqiarrowtr{ right: 10px; top: -20px; border-bottom-color: #ffffff; }

.jqi .jqiarrowbl{ left: 10px; bottom: -20px; border-top-color: #ffffff; }
.jqi .jqiarrowbc{ left: 50%; bottom: -20px; border-top-color: #ffffff; margin-left: -10px; }
.jqi .jqiarrowbr{ right: 10px; bottom: -20px; border-top-color: #ffffff; }

.jqi .jqiarrowlt{ left: -20px; top: 10px; border-right-color: #ffffff; }
.jqi .jqiarrowlm{ left: -20px; top: 50%; border-right-color: #ffffff; margin-top: -10px; }
.jqi .jqiarrowlb{ left: -20px; bottom: 10px; border-right-color: #ffffff; }

.jqi .jqiarrowrt{ right: -20px; top: 10px; border-left-color: #ffffff; }
.jqi .jqiarrowrm{ right: -20px; top: 50%; border-left-color: #ffffff; margin-top: -10px; }
.jqi .jqiarrowrb{ right: -20px; bottom: 10px; border-left-color: #ffffff; }

/* jquery.impromptu dialog boxes */

.jqifade{
	position: absolute;
	background-color: #aaaaaa;
}
div.jqi{
	max-width: 40%;
	min-width: 10%;
	font-family: Verdana, Geneva, Arial, Helvetica, sans-serif;
	position: absolute;
	background-color: #ffffff;
	font-size: 11px;
	text-align: left;
	border: solid 1px #eeeeee;
	border-radius: 10px;
	-moz-border-radius: 10px;
	-webkit-border-radius: 10px;
	padding: 7px;
}
div.jqi .jqicontainer{
	/*font-weight: bold;*/
}
div.jqi .jqiclose{
	position: absolute;
	top: 4px; right: -2px;
	width: 18px;
	cursor: default;
	color: #bbbbbb;
	font-weight: bold;
}
div.jqi .jqimessage{
	padding: 10px;
	line-height: 20px;
	color: #444444;
	font-weight: normal;
	font-size: 150%;
}
div.jqi .jqibuttons{
	text-align: right;
	padding: 5px 0 5px 0;
	border: solid 1px #eeeeee;
	background-color: #f4f4f4;
}
div.jqi button{
	padding: 3px 10px;
	margin: 0 10px;
	background-color: #2F6073;
	border: solid 1px #f4f4f4;
	color: #ffffff;
	font-weight: bold;
	font-size: 12px;
}
div.jqi button:hover{
	background-color: #728A8C;
}
div.jqi button.jqidefaultbutton{
	background-color: #BF5E26;
}
.jqiwarning .jqi .jqibuttons{
	background-color: #BF5E26;
}

@media print {
	.logo img {
		height: 50%;
	}
	.navBar {
		display: none;
	}
	#questionContainer .colwrap {
		width: 100%;
		left: initial;
	}
	#questionContainer .col1wrap {
		width: 100%;
		right: auto;
		padding: initial;
		position: initial;
	}
	#questionDisplay {
		margin: initial;
		right: initial;
	}
	.partFeedback {
		display: none;
	}

	.questionMenu {
		display: none;
	}

	input[type="text"], input[type="number"] {
		border: none;
		border-bottom: 1px solid;
	}
	button {
		display: none;
	}
}
