@import url('//fonts.googleapis.com/css?family=Roboto+Slab:700,400');

#quiz {
	width: 100%;
	max-width: 600px;
	font-family: 'Roboto Slab', sans-serif;
	font-size: 16px;
	line-height: 16px;
	margin: 0px auto;
	padding: 0px;
}

/* ======= SPINNING WHEEL ========================== */
/* this is here to cover up the quiz briefly while   */
/* the page loads. stltoday template is pretty heavy */

#quiz .spinningWheel {
	width: 100%;
	height: 100%;
	position: absolute;
	top: 0px;
	left: 0px;
	margin: 0px;
	padding: 0px;
	text-align: center;
	font-size: 1em;
	font-weight: bold;
	color: #333;
	background-color: #eee;
	background-image: url(//stltoday-images.global.ssl.fastly.net/mds/00003409/content/spinner.gif);
	background-position: center center;
	background-repeat: no-repeat;
	z-index: 90;
}

#quiz .spinningWheel span {
	display: block;
	margin: 25% auto;
}


/* ======= BUTTON STYLES ============ */


/* COMMON BUTTON STYLES */
#playButton, #quiz .answers .answerLine, #continueButton, .quizShare div {
	-webkit-box-shadow: 0px 1px 0px 0px rgba(255,255,255,0.4)inset, 1px 0px 0px 0px rgba(255,255,255,0.4)inset, -1px 0px 0px 0px rgba(255,255,255,0.4)inset;
	   -moz-box-shadow: 0px 1px 0px 0px rgba(255,255,255,0.4)inset, 1px 0px 0px 0px rgba(255,255,255,0.4)inset, -1px 0px 0px 0px rgba(255,255,255,0.4)inset;
	        box-shadow: 0px 1px 0px 0px rgba(255,255,255,0.4)inset, 1px 0px 0px 0px rgba(255,255,255,0.4)inset, -1px 0px 0px 0px rgba(255,255,255,0.4)inset;
	-webkit-border-radius: 6px;
	   -moz-border-radius: 6px;
	        border-radius: 6px;
	display: inline-block;
	font-family: 'Roboto Slab';
}

.no-touch #playButton:hover, .no-touch #quiz .answers .answerLine:hover, .no-touch #continueButton:hover, .no-touch .quizShare div:hover {
	-webkit-box-shadow: 0px 1px 0px 0px rgba(255,255,255,0.4)inset, 0px -1px 0px 0px rgba(255,255,255,0.2)inset;
	   -moz-box-shadow: 0px 1px 0px 0px rgba(255,255,255,0.4)inset, 0px -1px 0px 0px rgba(255,255,255,0.2)inset;
	        box-shadow: 0px 1px 0px 0px rgba(255,255,255,0.4)inset, 0px -1px 0px 0px rgba(255,255,255,0.2)inset;
	-webkit-border-radius: 6px;
	   -moz-border-radius: 6px;
	        border-radius: 6px;
	cursor: hand;
	cursor: pointer;
}

#playButton:active, #quiz .answers .answerLine:active, #continueButton:active, .quizShare div:active {
	background-image: none;
	-webkit-box-shadow: 0px 0px 8px 2px rgba(41,41,41,0.5)inset, 0px 0px 2px 2px rgba(20,20,20,0.3)inset;
	   -moz-box-shadow: 0px 0px 8px 2px rgba(41,41,41,0.5)inset, 0px 0px 2px 2px rgba(20,20,20,0.3)inset;
	        box-shadow: 0px 0px 8px 2px rgba(41,41,41,0.5)inset, 0px 0px 2px 2px rgba(20,20,20,0.3)inset;
	border: solid 1px rgba(150,150,150,1);
	-webkit-border-radius: 6px;
	   -moz-border-radius: 6px;
	        border-radius: 6px;
}


/* INDIVIDUAL BUTTON STYLES */
#playButton, #continueButton, .quizShare div { 
	font-weight: 900;
	font-size: 1.875em; /* 30px */
	line-height: 2.5em; /* 40px */
	text-align: center;
	color: white;
	text-transform: uppercase;
	background: #127FD2;
	background: rgba(18,127,210,1);
	background-image: -webkit-linear-gradient(top, rgba(54,168,234,1) 0%,rgba(18,127,210,1) 100%);
	background-image:    -moz-linear-gradient(top, rgba(54,168,234,1) 0%,rgba(18,127,210,1) 100%);
	background-image:      -o-linear-gradient(top, rgba(54,168,234,1) 0%,rgba(18,127,210,1) 100%);
	background-image:         linear-gradient(top, rgba(54,168,234,1) 0%,rgba(18,127,210,1) 100%);
	background-image:     -ms-linear-gradient(top, #36A8EA 0%, #127FD2 100%);
	border: solid 1px rgba(3,94,163,1);
	text-shadow: 0px 1px 1px rgba(0,0,0,0.33)
}

.no-touch #playButton:hover, .no-touch #continueButton:hover, .no-touch .quizShare div:hover {
	background-image: -webkit-linear-gradient(top, rgba(47,144,213,1) 0%,rgba(3,81,183,1) 100%);
	background-image:    -moz-linear-gradient(top, rgba(47,144,213,1) 0%,rgba(3,81,183,1) 100%);
	background-image:      -o-linear-gradient(top, rgba(47,144,213,1) 0%,rgba(3,81,183,1) 100%);
	background-image:         linear-gradient(top, rgba(47,144,213,1) 0%,rgba(3,81,183,1) 100%);
	background-image:     -ms-linear-gradient(top, #2F90D5 0%, #0351B7 100%);
	border: solid 1px rgba(0,52,129,1);
}

#playButton:active, #continueButton:active, .quizShare div:active {
	border: solid 1px rgba(0,70,131,1);
}

#quiz .answers .answerLine, .no-touch #quiz .answered .answers .answerLine:hover {
	display: block;
	vertical-align: middle;
	padding-left: 5px;
	padding-top: 5px;
	padding-bottom: 5px;
	margin-bottom: 12px;
	background: #dfdfdf;
	background: rgba(220,220,220,1);
	background-image: -webkit-linear-gradient(top, rgba(220,220,220,1) 0%,rgba(223,223,223,1) 100%);
	background-image:    -moz-linear-gradient(top, rgba(220,220,220,1) 0%,rgba(223,223,223,1) 100%);
	background-image:      -o-linear-gradient(top, rgba(220,220,220,1) 0%,rgba(223,223,223,1) 100%);
	background-image:         linear-gradient(top, rgba(220,220,220,1) 0%,rgba(223,223,223,1) 100%);
	background-image:     -ms-linear-gradient(top, #dcdcdc 0%, #dfdfdf 100%);
	border: solid 1px rgba(190,190,190,1);
}

.no-touch #quiz .answers .answerLine:hover, .no-touch #quiz .answers .answerLine.hover {
	background: #333; /* for non-css3 browsers */
	background-image: -webkit-linear-gradient(top, rgba(85,85,85,1) 0%,rgba(40,40,40,1) 100%);
	background-image:    -moz-linear-gradient(top, rgba(85,85,85,1) 0%,rgba(40,40,40,1) 100%);
	background-image:      -o-linear-gradient(top, rgba(85,85,85,1) 0%,rgba(40,40,40,1) 100%);
	background-image:         linear-gradient(top, rgba(85,85,85,1) 0%,rgba(40,40,40,1) 100%);
	background-image:     -ms-linear-gradient(top, #555555 0%, #111111 100%);
	border: solid 1px rgba(25,25,25,1);
	color: white;
}

#quiz .answers .answerLine:active  {
	border: solid 1px rgba(150,150,150,1);
}


#quiz .answers .answerLine.userAnswer, .no-touch #quiz .answers .answerLine.userAnswer:hover {
	background: #333; /* for non-css3 browsers */
	background-image: -webkit-linear-gradient(top, rgba(85,85,85,1) 0%,rgba(40,40,40,1) 100%);
	background-image:    -moz-linear-gradient(top, rgba(85,85,85,1) 0%,rgba(40,40,40,1) 100%);
	background-image:      -o-linear-gradient(top, rgba(85,85,85,1) 0%,rgba(40,40,40,1) 100%);
	background-image:         linear-gradient(top, rgba(85,85,85,1) 0%,rgba(40,40,40,1) 100%);
	background-image:     -ms-linear-gradient(top, #555555 0%, #111111 100%);
	border: solid 1px rgba(25,25,25,1);
}

#quiz .answers .answerLine.correct, .no-touch #quiz .answers .answerLine.correct:hover {
	background: #c00; /* for non-css3 browsers */
	background-image: -webkit-linear-gradient(top, rgba(221,0,0,1) 0%,rgba(153,0,0,1) 100%);
	background-image:    -moz-linear-gradient(top, rgba(221,0,0,1) 0%,rgba(153,0,0,1) 100%);
	background-image:      -o-linear-gradient(top, rgba(221,0,0,1) 0%,rgba(153,0,0,1) 100%);
	background-image:         linear-gradient(top, rgba(221,0,0,1) 0%,rgba(153,0,0,1) 100%);
	background-image:     -ms-linear-gradient(top, #dd0000 0%, #990000 100%);
	border: solid 1px rgba(100,0,0,1);
}

#playButton {
	margin-top: 0.5em;
	height: 2em;
	line-height: 2em;
	padding: 0px 0.5em;
}

#continueButton {
	width: 50%;
	min-width: 200px;
	margin: 1em 0px 0px 0px;
	padding: 0.1em 0 0 1em;
	font-weight: bold;
	font-size: 0.875em; /* 14px */
	line-height: 2.5em; /* 40px */
	text-align: left;
}


#quiz #continueButton .arrow {
	float: right;
	font-size: 1.875em; /* 30px */
	margin-top: -4px;
	margin-right: 15px;
}

#quiz #continueButton.playAgainButton {
	position: relative;
	top: 0px;
	left: 0px;
} 



/* ======= QUESTION SLIDES BASIC LAYOUT ============ */

#quiz .questions, #quiz .cover {
	width: 100%;
	position: relative;
	top: 0px;
	left: 0px;
	margin: 0px;
	padding: 0px;
	background: none;
	z-index: auto;
}

#quiz .cover {
	width: 100%;
	max-width: 600px;
	height: auto;
}

#quiz .cover img {
	width: 100%;
	height: auto;
}

#quiz .question, #quiz .cover p {
	vertical-align: bottom;
	width: 100%;
	font-size: 1em; /* 16px */
	font-weight: normal;
	line-height: 1.25em; /* 20px */
	margin: 1.5em 0px 0px 0px;
	padding: 0px;
}


#quiz .cover p {
	font-weight: bold;
}

.warning {
	color: #c00;
	text-transform: uppercase;
}


/* ======= ANSWER CHOICES ============ */

#quiz .answers {
	width: 100%;
	margin: 1.5em 0px 0px 0px;
	padding: 0px;
}


/* this rule was added to override rapidcityjournal CSS conflict */
#quiz .answers .hover label, #quiz .answers .userAnswer label, #quiz .answers .correct label {
	color: white;
}

#quiz .answers .hover label, #quiz .answers .hover input {
	cursor: hand;
	cursor: pointer;
}

#quiz .answers .answerLine input {
	vertical-align: middle;
	margin: 0 6px 0 0;
	padding: 0;
	background: transparent;
	background-color: transparent;
}

#quiz .answers .answerLine label {
	margin: 0;
	padding: 0;
/* the following style was added to override plugins.css */
	font-family: 'Roboto Slab';
/* the following styles were added to override rapidcityjournal CSS conflict */
	line-height: 1.125em; /* 18px */
	font-size: 0.875em; /* 14px */
	float: none;
	display: inline;
	text-align: left;
}


/* ======= RESPONSE TEXT ============ */


#quiz .response {
	width: 100%;
	margin: 1.5em 0px 1em 0px;
	display: none;
	padding: 0px;
	font-size: 0.875em; /* 14px */
	line-height: 1.428571428571429em; /* 20px */
}

#quiz .response .answeredWrong, #quiz .response .answeredCorrect {
	font-weight: bold;
	text-transform: uppercase;
	display: none;
	color: #c00;
}


/* ======= QUESTION PHOTO(S) ============ */


/* basic styles */
#quiz .questions .photos  {
	position: relative;
	margin: 0px;
	padding: 0px;
	width: 100%;
	max-width: 600px;
	z-index: auto;
	/* Lock the photo div to a specific aspect ratio */
    padding-bottom: 59.66666666666667%; /* aspect ratio for 600px x 358px */
    height: 0;

	/* this is important to allow scrolling transitions on answer */
	overflow: hidden;
}

/* Apply multi-photo flex styles to appropriate container, depending on whether there are "layers" present or not. */
#quiz .multiphoto:not(.effect-dissolve) .photos, .multiphoto.effect-dissolve .photos .layer {
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	align-items: flex-start;
}


#quiz .multiphoto.effect-dissolve .photos > img {
	width: 100%;
	height: auto;
}

#quiz .multiphoto.effect-dissolve .photos .layer img {
	width: 25%;
	height: auto;
}

#quiz .multiphoto:not(.effect-dissolve) .photos img {
	width: 25%;
	height: auto;
}



/* ======= QUESTIONS: MULTIPHOTO with NO dissolve ============ */

#quiz .multiphoto:not(.effect-dissolve) .photos img {
	opacity: 0.9;
	margin: 0px;
	padding: 0px;
	z-index: 80;
}

#quiz .multiphoto:not(.effect-dissolve) .photos img.hover {
	z-index: 90;
	border-top: 4px solid black;
	border-bottom: 4px solid black;
	opacity: 1;
	cursor: hand;
	cursor: pointer;
	-moz-transform: scale(1.025);
	-webkit-transform: scale(1.025);
	-o-transform: scale(1.025);
	transform: scale(1.025);
}

#quiz .multiphoto:not(.effect-dissolve) .photos img.highlight {
	border-top: 4px solid #c00;
	border-bottom: 4px solid #c00;
	opacity: 1;
	-moz-transform: scale(1.025);
	-webkit-transform: scale(1.025);
	-o-transform: scale(1.025);
	transform: scale(1.025);
}


#quiz .multiphoto:not(.effect-dissolve) .photos img {
	margin: 0;
	padding: 0;
	border: none;
	border-top: 4px solid white;
	border-bottom: 4px solid white;
}


/* ======= QUESTIONS: MULTIPHOTO when there is a DISSOLVE effect ============ */

/* Styles for the four choice photos */

#quiz .multiphoto.effect-dissolve .photos .layer img {
	margin: 0px;
	padding: 0px;
	z-index: 80;
}

#quiz .multiphoto.effect-dissolve .photos .layer img.hover {
	z-index: 90;
	border-top: 4px solid black;
	border-bottom: 4px solid black;
	cursor: hand;
	cursor: pointer;
	-moz-transform: scale(1.025);
	-webkit-transform: scale(1.025);
	-o-transform: scale(1.025);
	transform: scale(1.025);
}

#quiz .multiphoto.effect-dissolve .photos .layer img.highlight {
	border-top: 4px solid #c00;
	border-bottom: 4px solid #c00;
	-moz-transform: scale(1.025);
	-webkit-transform: scale(1.025);
	-o-transform: scale(1.025);
	transform: scale(1.025);
}


#quiz .multiphoto.effect-dissolve .photos .layer img {
	float: left;
	margin: 0;
	padding: 0;
	border: none;
	border-top: 4px solid white;
	border-bottom: 4px solid white;
}

/* Styles for the large dissolve photos */

#quiz .multiphoto.effect-dissolve .photos > img {
	position: absolute;
	top: 0;
	left: 0;
	margin: 0px;
	padding: 0px;
	border-top: 4px solid white;
	border-bottom: 4px solid white;
}


/* Layers should be positioned absolutely so they stack on top of each other */
#quiz .multiphoto.effect-dissolve .photos .layer {
	position: absolute;
	top: 0;
	left: 0;
	margin: 0px;
	padding: 0px;
}



/* ======= QUESTIONS: MULTICHOICE and TRUEFALSE ============ */

#quiz .multichoice.effect-dissolve .photos .layer, #quiz .truefalse.effect-dissolve .photos .layer {
	position: absolute;
	top: 0;
	left: 0;
	margin: 0px;
	padding: 0px;
}


#quiz .multichoice .photos img, #quiz .truefalse .photos img {
	width: 100%;
	height: auto;
	border-top: 4px solid white;
	border-bottom: 4px solid white;
}

#quiz .multichoice.transition-scroll .photos img, #quiz .truefalse.transition-scroll .photos img {
	position: absolute;
	top: 0;
	left: 0;
	padding: 4px 0px;
	border: none;
}


.photos .layer.zoomOut {
	animation:zoomOut 9s;
	-moz-animation:zoomOut 9s; /* Firefox */
	-webkit-animation:zoomOut 9s; /* Safari and Chrome */
	-o-animation:zoomOut 9s; /* Opera */
}
@keyframes zoomOut {
	from { transform:scale(4) }
}
@-moz-keyframes zoomOut {
	from { -moz-transform:scale(4) }
}
@-webkit-keyframes zoomOut {
	from { -webkit-transform:scale(4) }
}
@-o-keyframes zoomOut {
	from { -o-transform:scale(4) }
}


.photos .layer.zoomIn {
	animation:zoomIn 9s;
	-moz-animation:zoomIn 9s; /* Firefox */
	-webkit-animation:zoomIn 9s; /* Safari and Chrome */
	-o-animation:zoomIn 9s; /* Opera */
}
@keyframes zoomIn {
	to { transform:scale(4) }
}
@-moz-keyframes zoomIn {
	to { -moz-transform:scale(4) }
}
@-webkit-keyframes zoomIn {
	to { -webkit-transform:scale(4) }
}
@-o-keyframes zoomIn {
	to { -o-transform:scale(4) }
}



/* ======= JUDGMENT / SCORING SCREEN ============ */


#quiz #scoring {
	margin: 0px;
	padding: 0px;
}


#quiz #scoring .photos  {
	position: relative;
	width: 100%;
	/* Lock the photo div to a specific aspect ratio */
    padding-bottom: 59.66666666666667%; /* aspect ratio for 600px x 358px */
    height: 0;

	/* this is important to allow scrolling transitions on answer */
	overflow: hidden;
}


#quiz #scoring.effect-dissolve .photos .layer {
	position: absolute;
	top: 0;
	left: 0;
	margin: 0px;
	padding: 0px;
}


#quiz #scoring .photos img {
	position: absolute;
	width: 100%;
	margin: 0px;
	padding: 0px;
	border-top: 4px solid white;
	border-bottom: 4px solid white;
}


#quiz #score {
	display: block;
	font-size: 4em; /* 64px */
	line-height: 1em; /* 16px */
	height: 1em; /* 16px */
	font-weight: bold;
	color: #ccc;
	margin: 1rem 0px 0px 0px;
	padding: 0px;
}

#quiz #evaluation {
	display: block;
	font-family: 'Baskerville','Times New Roman', Times, serif;
	font-size: 1.875em; /* 30px */
	line-height: 1em; /* 16px */
	font-style: italic;
	margin-top: 0.75em;
}

#quiz #response {
	display: block;
	font-size: 1em; /* 16px */
	line-height: 1.5em; /* 24px */
	font-weight: bold;
	font-style: none;
	margin: 1.5em 0px 1em 0px;
}

#quiz #response a {
	color: #c00;
	text-decoration: underline;
}


.no-touch #quiz #response a:hover {
	color: #300;
	text-decoration: none;
}


#quiz .playAgain {
	position: relative;
	top: 0px;
	left: 0px;
}

#credits, #sources {
	font-size: 10px; /* This is at the root level of the quiz, and doesn't inherit font-size from #quiz. */
	width: 100%;
	max-width: 600px;
	padding: 0px;
	margin: 2em auto 3em auto;
	font-family: 'Roboto Slab';
}

.credits, .sources {
	font-size: 10px; /* This is at the root level of the quiz, and doesn't inherit font-size from #quiz. */
	margin-top: 1em;
	padding: 0px;
}



/* ======= SHARING BUTTONS ============ */



.quizShare {
	display: block;
	position: relative;
	margin-top: 1em;
}

.quizShare div {
	font-size: 0.875em; /* 14px */
	line-height: 2.5em; /* 8px */
	height: 2.5em; /* 40px */
	margin-top: 0px;
	padding: 0px 1em;
	text-decoration: none;
	margin-right: 1em;
}

.quizShare div a {
	color: white;
	font-weight: bold;
}

.no-touch .quizShare div a:hover {
	text-decoration: none;
}

.quizShare div.facebookShare {
	background: #3B5998;
	background-image: -webkit-linear-gradient(top, #1e62d0 0%, #3B5998 100%);
	background-image:    -moz-linear-gradient(top, #1e62d0 0%, #3B5998 100%);
	background-image:      -o-linear-gradient(top, #1e62d0 0%, #3B5998 100%);
	background-image:         linear-gradient(top, #1e62d0 0%, #3B5998 100%);
	background-image:     -ms-linear-gradient(top, #1e62d0 0%, #3B5998 100%);
} 

.no-touch .quizShare div.facebookShare:hover {
	background: #0f3FB2;
	background-image: -webkit-linear-gradient(top, #0f3FB2 0%, #344D84 100%);
	background-image:    -moz-linear-gradient(top, #0f3FB2 0%, #344D84 100%);
	background-image:      -o-linear-gradient(top, #0f3FB2 0%, #344D84 100%);
	background-image:         linear-gradient(top, #0f3FB2 0%, #344D84 100%);
	background-image:     -ms-linear-gradient(top, #0f3FB2 0%, #344D84 100%);
} 


@media only screen and (max-device-width: 480px)  {
	#quiz {
	}
	#quiz .spinningWheel {
	}
	#quiz .questions, #quiz .cover {
	}
	#quiz .question, #quiz .cover p {
		font-size: 0.875em; /* 14px */
		line-height: 1.428571428571429em; /* 20px */
	}

	#quiz .questions .photos, #quiz #scoring .photos  {
	}

	#quiz .cover img {
	}

	#quiz .questions .photos img, #quiz #scoring .photos img {
	}

	#quiz .multiphoto.effect-dissolve .photos > img {
	}

	#quiz .multiphoto.effect-dissolve .photos .layer img {
	}

	#quiz .multiphoto:not(.effect-dissolve) .photos img {
	}

	#quiz .answers {
		margin-top: 1em;
		position: relative;
		top: 0px;
	}

	#quiz .answered .question, #quiz .answered .answers {
		display: none;
	}


	#quiz .response {
	}


	#quiz #playButton {
	} 

	#quiz #continueButton {
	}

	#scoring {
	}

	#quiz #score {
		font-size: 2.5em; /* 40px */
	}

	#quiz #evaluation {
		font-size: 1em; /* 16px */
	}

	#quiz #response, #quiz #response p {
	}

	.quizShare div {
	}


}
