/**
 * Define some neutral defaults. These can be overridden in a theme
 * specific submission_theme css file. 
 */
:root {
	--quiz-title-font: "Trebuchet MS", Helvetica, sans-serif;
	--quiz-text-font: Tahoma, Geneva, sans-serif;
	--quiz-title-color: #000;
	--quiz-text-color: #444;
	--quiz-question-color: #666;
	--quiz-lightgray: #FAFAFA;
	--quiz-border-color: #DADADA;
}
html, body {
	height: 100%;
	overflow: hidden;	
}
#quiz_blackout {
	background: #000;
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	overflow: auto;
	text-align: center;
}

#quiz_content {
	background: var(--quiz-lightgray);
	width: 100%;
	max-width: 920px;
	min-height: calc(100% - 200px);
	position: absolute;
	top: 100px;
	left: 50%;
	margin: 0 0 0 -460px;
	font-size: 16px;
}
#quiz_main {
	margin-bottom: 40px;	
}
@media (max-width: 920px) {
	
	#quiz_content {
		top: 0;
		margin-left: 0;
		left: 0;
		min-height: 100%;
	}
}
@media (max-height: 600px) {
	#quiz_content {
		margin-top: 0;
		top: 0;
		
	}
}
@media (max-width: 600px) {
	#quiz_content {
		margin-top: 0;
		top: 0;
		margin-left: 0;
		left: 0;
		height: auto;
		
	}
}


#quiz_content .button {
	height: 50px;
	line-height: 50px;
}	

#quiz_content header {
	background: #FFF;
	border-bottom: 1px solid var(--wiz-border-color);
	padding: 30px 20px;
}
#quiz_content header h1,
#wizard_content header p {
	margin: 0 auto;
	max-width: 600px;	
}
#quiz_content h1 {
	font-family: var(--quiz-title-font);
	color: var(--quiz-title-color);
	font-size: 32px;
	line-height: 40px;
	font-weight: bold;
	margin: 0;
	padding: 0;
}
#quiz_content .quiz_intro + .quiz_form {
	display: none;	
}

#quiz_content h2 {
	margin: 0;
	padding: 40px 0;
	font-size: 20px;
	font-weight: bold;
	font-family: var(--quiz-title-font);
	color: var(--quiz-question-color);
}
.quiz_form,
.quiz_intro {
	margin: 0 auto;
	max-width: 680px;
}
.quiz_intro .header {
	width: 240px;
	float: left;
	position: relative;
}
.quiz_intro .header img {
	width: 100%;
	height: auto;	
}
.quiz_intro .header .video {
	position: absolute;
	bottom: 10px;
	right: 10px;	
}
.quiz_intro .header .video a {
	background:  var(--quiz-title-color);
	width: 50px;
	height: 50px;
	display: block;
}
.quiz_intro .header .video a:hover {
	background:  var(--quiz-question-color);
}
.quiz_intro .header .video a:after {
	content: "";
	display: block;
	position: absolute;
	top: 50%;
	left: 50%;
	border-left: 8px solid #FFF;
	border-top: 6px solid transparent;
	border-bottom: 6px solid transparent;
	transform: translate(-3px,-50%);
	
}
.quiz_intro .header .video a span {
	display: none;	
}

.quiz_intro .header ~ footer,
.quiz_intro .header + .markdown {
	text-align: left;
	margin-left: 280px;	
}

.quiz_form .header {
	float: left;
	width: 200px;
}
.quiz_form .header img {
	width: 100%;
	height: auto;	
}
#timerholder {
	position: relative;
	top: -15px;	
}
.quiz_form .header + #timerholder,
.quiz_form .header + #timerholder + ol,
.quiz_form .header + ol {
	margin-left: 240px;
	
}
.quiz_form .struct li {
	float: none;
	clear: none;
	display: block;
	margin-bottom: 10px;
	text-align: left;
}
.quiz_form .struct li label {
	display: block;
	width: auto;
	float: none;
	font-weight: normal;
	font-size: 16px;
}
.quiz_form .struct li label input {
	display: none;	
}
.quiz_form .answerbox {
	height: 54px;
	padding-left: 75px;
	line-height: 20px;
	position: relative;
	border: 1px solid var(--quiz-border-color);
	border-radius: 2px;
	overflow: hidden;
}
.quiz_form .answerbox span {
	position: absolute;
	top: 50%;
	left: 75px;
	right: 0;
	transform: translate(0,-50%);
		
}
.quiz_form .struct li label:hover .answerbox {
	border-color: var(--quiz-question-color);
	cursor: pointer;
}
.quiz_form .struct input:checked + .answerbox {
	color: #FFF;
	background: var(--quiz-question-color);
	border-color: var(--quiz-question-color);
}
.quiz_form .struct input:checked + .answerbox .label {
	color: #FFF;	
}
.quiz_form .struct input:checked + .answerbox .label:after {
	background: rgba(255,255,255,0.1);
}
.quiz_form .answerbox .label {
	width: 54px;
	line-height: 54px;
	position: absolute;
	top: 0;
	left: 0;
	text-align: center;
	font-size: 20px;
	font-weight: bold;
	font-family: var(--quiz-title-font);
	color: var(--quiz-question-color);
	text-transform: uppercase;
}
.quiz_form .answerbox .label img {
	position: relative;
	z-index: 4;	
}
.quiz_form .answerbox .label:after {
	content: '';
	height: 25px;
	position: absolute;
	right: 0;
	top: 15px;
	display: block;
	width: 1px;
	background: var(--quiz-border-color);
}

.quiz_form p {
	clear: both;
	padding: 30px 0;		
}
.quiz_form p .button {
	display: block;
	width: 100%;	
}
.quiz_form .virgin p .button {
	background: #FFF;
	border: 2px solid var(--quiz-title-color);
	color: var(--quiz-question-color);
	border-radius: 2px;
	cursor: default;
}
.quiz_form .virgin p .button:before {
	display: none;	
}
.quiz_form .virgin p .button span {
	opacity: 0.3;	
}

.followup .answer {
	color: var(--quiz-title-color);
	font-size: 120%;
	position: relative;
	top: -15px;
}

.quiz_succespage .collage {
	width: 200px;
	height: 200px;
	background: var(--quiz-title-color);
	color: #FFF;
	margin: 80px auto;
	position: relative;
}
.quiz_succespage .label {
	
	position: absolute;
	top: 50%;
	left: 50%;
	width: 180px;
	transform: translate(-50%,-50%);
	font-size: 18px;
	display: block;
	line-height: 1.4;
}
.quiz_succespage .label span {
	display: block;
	font-size: 300%;
}
.quiz_succespage .collage img {
	position: absolute;
	mix-blend-mode: multiply;
}
.quiz_succespage .collage span + img {
	top: 0;
	right: 100%;
	transform: translate(40px,-25px);
	animation: im1 ease-out 0.5s
}
.quiz_succespage .collage span + img + img {
	top: 0;
	left: 100%;
	transform: translate(40px,0);
	animation: im2 ease-out 0.5s
}
.quiz_succespage .collage span + img + img + img {
	top: 100%;
	right: 100%;
	transform: translate(-120px,0);
	animation: im3 ease-out 0.5s
}

.quiz_succespage footer {
	margin-top: -60px;
	margin-left: calc(50% - 100px);
	text-align: left;	
}
.quiz_succespage footer h3 {
	font-family: var(--quiz-title-font);
	color: var(--quiz-question-color);
}
.quiz_succespage .share li {
	display: inline-block;
	margin: 0 6px 0 0;
}
.quiz_succespage .share a {
	display: block;
	width: 50px;
	height: 50px;
	background: url("img/ico_facebook.svg") center center no-repeat;	
	border-radius: 50%;
}
.quiz_succespage .share a.facebook {
	background: #3b5998 url("img/ico_facebook.svg") center center no-repeat;
}
.quiz_succespage .share a.twitter {
	background: #55acee url("img/ico_twitter.svg") center center no-repeat;
}
.quiz_succespage .share a.whatsapp {
	background: #25D366 url("img/ico_whatsapp.svg") center center no-repeat;
}
#quiz_content .quiz_succespage .share a:hover {
	background-color: var(--quiz-title-color);
}
.quiz_succespage .share a span {
	display: none;
}

@media (max-width: 680px) {
	.quiz_intro .header {
		width: 240px;
		float: none;
		margin: 0 auto 30px auto;
	}
	.quiz_intro .header ~ footer,
	.quiz_intro .header + .markdown {	
		margin: 0;
		text-align: center;	
	}
	.quiz_intro {
		margin: 0 20px;
	}
	.quiz_form {
		position: relative;
		margin: 0 20px;	
	}
	#quiz_content h2 {
		padding: 20px 0;
	}
	#quiz_content .withimage h2 {
		padding-left: 140px;
		text-align: left;
		min-height: 144px;
		padding-top: 20px;
		padding-bottom: 20px;
	}
	.quiz_form .header {
		position: absolute;
		top: 20px;
		width: 120px;
		margin: 0;
		left: 0;
	}
	.quiz_form .header + #timerholder,
	.quiz_form .header + #timerholder + ol,
	.quiz_form .header + ol {
		clear: both;
		margin: 0;
			
	}
	.quiz_succespage {
		overflow: hidden;	
	}
	.quiz_succespage .collage span + img + img + img {
		top: 100%;
		right: 100%;
		transform: translate(-40px,0);
		animation: im4 ease-out 0.5s
	}

}


@keyframes im1 {
	0% {
		opacity: 0;
		transform: translate(0,0);
		top: 50%;
		right: 50%;
	}
	100% {
		opacity: 1;
		top: 0;
		right: 100%;	
		transform: translate(40px,-25px);
	}
}
@keyframes im2 {
	0% {
		opacity: 0;
		transform: translate(0,0);
		top: 50%;
		left: 50%;
	}
	100% {
		opacity: 1;
		top: 0;
		left: 100%;
		transform: translate(40px,0);
	}
}
@keyframes im3 {
	0% {
		opacity: 0;
		transform: translate(0,0);
		top: 50%;
		right: 50%;
	}
	100% {
		opacity: 1;
		top: 100%;
		right: 100%;
		transform: translate(-120px,0);
	}
}
@keyframes im4 {
	0% {
		opacity: 0;
		transform: translate(0,0);
		top: 50%;
		right: 50%;
	}
	100% {
		opacity: 1;
		top: 100%;
		right: 100%;
		transform: translate(-40px,0);
	}
}


@keyframes spin {
  0% {
    transform: rotate(0deg);
    width: 60px;
    height: 60px;
  }
  50% {
	width: 50px;
	height: 50px;
  }
  100% {
    transform: rotate(360deg);
    width: 60px;
    height: 60px;
  }
}

.timer {
	position: relative;
	display: block;
	border-radius: 2px;
	height: 4px;
	margin: 20px 60px 20px 0;
	background:  var(--quiz-border-color);
	font-family: var(--quiz-title-font);
}
.timer #timertime {
	position: absolute;
	top: -6px;
	left: 100%;
	width: 60px;
	display: block;
	text-align: right;
	line-height: 20px;
	font-size: 21px;
	color: var(--quiz-title-color);
}
.timer #timertime:after {
	margin-left: 3px;
	content: "sec";
	font-size: 14px;
	line-height: 20px;
	color:  var(--quiz-question-color);
	position: relative;
	top: -3px;
}
.timer #timerbar {
	display: block;
	height: 4px;
	background: var(--quiz-title-color);
}

.loading + .spinner {
	display: block;	
}
.spinner {
	display: none;
	width: 60px;
	height: 60px;
	border-radius: 50%;
	overflow: hidden;
	position: relative;
	animation: spin ease-in-out 1.5s infinite;
	margin: 30px auto;
}
.spinner:before {
	content: "";
	display: block;
	top: 0;
	bottom: 50%;
	right: 0;
	left: 50%;
	position: absolute;
	background: var(--quiz-title-color);
}
.spinner:after {
	content: "";
	display: block;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	background: var(--quiz-lightgray);
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%,-50%);
}
