/*
Theme Name: Kopiraittilan Koulu
Author: JCO Digital / Juha Javanainen
Author URI: http://jco.fi
Version: 1.0
*/

html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video {
	font-size: 100%;
	font: inherit;
	padding: 0;
	border: 0;
	margin: 0;
	vertical-align: baseline
}

body {
	line-height: 1
}

ol,
ul {
	list-style: none
}

blockquote,
q {
	quotes: none
}

blockquote:before,
blockquote:after,
q:before,
q:after {
	content: '';
	content: none
}

table {
	border-collapse: collapse;
	border-spacing: 0
}

article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
	display: block
}

.clear {
	clear: both
}

html,
body {
	width: 100%;
	height: 100%;
	margin: 0px;
	border: 0;

	display: block;
	/* No floating content on sides */
	font-family: 'Lato', sans-serif;

	/*
	-webkit-font-smoothing: antialiased;
	-webkit-transform: translateZ(0px);
	*/
}

body {
	overflow: hidden;
	/*  Disable scrollbars */
}

#startPage {
	overflow-y: auto;
}

.base {
	background-color: #ace0ef;
	background-image: url('assets/global/general/c-tile.png');
}

.base-modal {
	/* 
	background: none transparent;
	background-image: none;
	*/
	background-color: rgba(0,0,0,0.75);
}

.blank-container,
.results-container {
	position: absolute;
	width: 100%;
	height: 100%;
	z-index: 10;
	margin: 0;
	padding: 0;
}

.results-popup {
	color: #000;
	border-radius: 20px;
	text-align: center;
	position: relative;
	height: 75%;
	width: 75%;
	min-width: 320px;
	min-height: 300px;
	max-width: 720px;
	margin: 0 auto;
	top: 50%;
	-webkit-transform: translateY(-50%);
	transform: translateY(-50%);
	padding: 40px 40px 40px 40px;
}

.results-popup {
	background-color: #fff;
	background-image: url('assets/global/general/c-tile.png');
	border: #e2e3e4 3px solid;
	color: #000;
}

.results-popup p {
	margin-bottom: 20px;
}

.internal-popup {
	margin: 0 auto;
	border-radius: 20px;
	text-align: center;
	position: relative;
	height: 75%;
	width: 75%;
	min-width: 320px;
	min-height: 300px;
	background-color: #fff;
	background-image: url('assets/global/general/c-tile.png');
	padding: 40px 40px 40px 40px;
}

.full-width-popup {
	height: 90%;
	width: 90%;
	max-width: 1600px;
	overflow: scroll;
	overflow-x: hidden;
	border-radius: 20px 0 0 20px;
}

.full-width-popup p {
	margin-left: 20px;
}

.center-container {
	display: table;
	table-layout: fixed;
	width: 100%;
	height: 100%;
	margin: 0;
}

.videoWrapper {
	position: relative;
	/*padding-bottom: 56.25%;*/
	height: 50vh;
	padding-top: 25px;
}

.videoWrapper iframe,
.videoWrapper video {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	width: 85%;
	height: 100%;
	margin: 0 auto;
}

.vertical-box {
	display: table-cell;
	vertical-align: middle;
	text-align: center;
}

.blackboard,
.blackboard-top,
.blackboard-bottom {
	background-size: 100%;
	min-height: 80px;
}

.blackboard-top {
	background-image: url('images/board_top.png');
	background-repeat: no-repeat;
	background-position: center bottom;
}

.blackboard {
	padding: 40px 0;
	font-weight: 300;
	font-size: 1.6em;
	line-height: 1.1em;
	color: #fff;

	background-image: url('images/board_middle.png');
	background-repeat: repeat-y;
	background-position: center top;
}

.blackboard-bottom {
	background-image: url('images/board_bottom.png');
	background-repeat: no-repeat;
	background-position: center top;
	min-height: 100px;
}

.blackboard h2 {
	font-weight: 700;
}

.blackboard p {
	text-align: center;
	margin: 20px auto;
	width: 80%;
}

.lang-select {
	min-height: 60px;
}

.lang-select a {
	color: #fff;
	margin-right: 20px;
	font-size: 20px;
}


.init-popup {
	position: absolute;
	margin: auto;
	top: 0;
	bottom: 0;
	left: 0;
	right: 0;
	width: 640px;
	height: 480px;
	background-image: url('images/bg_intro.png');
	background-repeat: no-repeat;
	background-size: contain;
	background-position: center top;
	color: #fff;
	padding: 80px;
	text-align: center;
}

.init-popup p,
.results-popup p {
	font-size: 18px;
	line-height: 1.2;
}

#loader-anim {
	position: absolute;
	margin: auto;
	top: 0;
	left: 0;
	bottom: 0;
	right: 0;
}

#mainCanvas {
	position: absolute;
	width: 100%;
	height: 100%;
}

#gamePopup {
	display: none;
	position: absolute;
	width: 100%;
	height: 100%;
}

#gameWindow {
	width: 100%;
	height: 100%;
}

#scoredisplay {
	display: none;
	position: absolute;
	top: 10px;
	right: 0;
	left: 0;
	color: #aaabad;
	height: 60px;
	width: 75%;
	max-width: 500px;
	background-color: #fff;
	margin: 0 auto 20px auto;
	border-radius: 20px;
	text-align: center;
}

#scoredisplay p {
	font-size: 30px;
	line-height: 60px;
	float: left;
	margin-left: 20px;
}

#scorevalue {
	width: 200px;
	text-align: center;
}

#clock {
	width: 100px;
}

#navigation {
	position: absolute;
	width: 100%;
}

footer {
	position: absolute;
	height: 20px;
	width: 100%;
	bottom: 0;
	background-color: #c3c4c6;
	opacity: 0.85;
	color: #fff;

	padding: 2px 20px 0 20px;
}

footer a,
footer a:hover {
	color: #fff;
	text-decoration: none;
}

/* PopUp */
.mfp-wrap {
	overflow: auto;
}

.popup {
	position: relative;
	background-color: #fff;
	background-repeat: no-repeat;
	background-position: top center;
	background-size: contain;
	margin: 0 auto;
	padding: 0 0 20px 0;
	/* height: 670px; */
	min-height: 640px;
	width: 480px;
	border-radius: 20px;
}

.popup-wide {
	width: 80%;
	min-height: 600px;
	max-width: 800px;
}

.popup-content {
	height: 75%;
	min-height: 500px;
	padding: 20px;
}

.popup .img-responsive {
	/* margin-top:5px; */
	margin: 0 auto;
	margin-top: -20px;
}

.popup .glyphicon-arrow-right,
.popup .glyphicon-arrow-left {
	color: #8dc63f;
}

.popup-wide,
.popup-content {
	background-image: url('assets/global/general/c-tile.png');
	background-repeat: repeat;
	background-size: auto;
	border: #e2e3e4 3px solid;
}

.task-popup {
	background-image: url('assets/global/classrooms/bg_task_purple.png');
	background-position: 0 10px;
}

.task-popup-blue {
	background-image: url('assets/global/classrooms/bg_task_blue.png');
	background-position: 0 10px;
}

.task-popup-green {
	background-image: url('assets/global/classrooms/bg_task_green.png');
	background-position: 0 10px;
}

.punainen {
	background-image: url('assets/global/classrooms/bg_wheel_red.png');
}

.sininen {
	background-image: url('assets/global/classrooms/bg_wheel_blue.png');
}

.vihrea {
	background-image: url('assets/global/classrooms/bg_wheel_green.png');
}

.violetti {
	background-image: url('assets/global/classrooms/bg_wheel_violet.png');
}

.keltainen {
	background-image: url('assets/global/classrooms/bg_wheel_yellow.png');
}

.black {
	background-image: url('assets/global/classrooms/bg_wheel_black.png');
}

.lives-display {
	position: absolute;
	bottom: 20px;
	right: 20px;
}

.popup p,
.internal-popup p {
	margin: 0 20px 20px 20px;
	font-size: 20px;
	line-height: 22px;
}

.popup h2,
.results-popup h2,
.init-popup h2,
.internal-popup h2 {
	font-size: 30px;
	font-weight: 700;
	margin: 40px 20px;
}

.popup h2.popup-title {
	font-size: 22px;
	font-weight: 400;
	margin: 5px 0;
}

.init-popup h2,
.results-popup h2 {
	margin: 20px;
}

.popup-wide h2 {
	font-size: 22px;
	line-height: 1.2em;
	margin: 0 0.5em;
}

.popup-wide p {
	margin: 0;
	font-size: 18px;
	font-weight: 300;
	line-height: 1.2em;
	font-family: 'Lato', sans-serif;
}

button.mfp-close {
	background-color: #fff;
	width: 50px;
	height: 50px;
	border-radius: 25px;
	margin: 5px;
	opacity: 1;
}

.box-abc {
	background-color: #fff;
	border-radius: 20px;
	width: 80%;
	margin: 50px auto;
	padding: 20px;
}

.box-test {
	border-radius: 0;
	width: 90%;
	margin: 40px auto 0px auto;
	padding: 0px;
	min-height: 460px;
}

.box-abc>div {
	clear: both;
	margin-bottom: 20px;
}

.option-row td {
	vertical-align: middle;
}

.box-abc a,
.box-test a {
	text-decoration: none;
	color: #000;
}

.pagenum {
	font-weight: 400;
	color: #000;
}

.choise-letter {
	width: 60px;
	height: 60px;
	font-size: 30px;
	line-height: 60px;
	border-radius: 30px;
	background-color: #00bbd6;
	color: #fff;
	float: left;
	margin-right: 20px;
}

.choise-letter-green {
	background-color: #8dc63f;
}

.choise-letter-grey {
	background-color: #cccccd;
}

.answer-option {
	margin-bottom: 20px;
	padding: 5px 20px 5px 5px;
	cursor: pointer;
	background-color: #708d96;
	border-radius: 40px;
	color: #fff;
}

.test-question {
	margin-bottom: 20px;
	min-height: 120px;
}

.answer-feedback {
	min-height: 120px;
	background-color: #ccc;
	border-radius: 20px;
	color: #fff;
	padding: 20px;
	margin-bottom: 20px;
	display: none;
}

.answer-disabled p,
.answer-disabled h4 {
	opacity: .4;
	cursor: default;
}

.answer-selected .choise {
	font-weight: 400;
}

.answer-right {
	background-color: #8dc53e;
}

.answer-wrong {
	background-color: #d4181f;
}


.choise {
	text-align: left;
	margin: 0 !important;
}

.glyphicon {
	font-size: 50px;
	color: #fff;
	text-shadow: 0 1px 2px rgba(0, 0, 0, .6);
}

.audio-icon {
	font-size: 30px;
	color: #000;
	text-shadow: none;
	margin-right: 20px;
}

.task-btn-yes {
	max-height: 180px;
	width: auto;
	margin: 0 auto;
}

.question-top .task-btn-yes {
	margin-top: 0;
}

.img-result {
	width: 90%;
	height: auto;
	margin: 0 auto;
}

.test-badge {
	clear: both;
	width: 200px;
	height: 200px;
	margin-bottom: 40px;
}

/*  Bootstrap Carousel Fade Transition (for Bootstrap 3.3.x) */
.carousel-fade .carousel-inner .item {
	opacity: 0;
	transition-property: opacity;
}

.carousel-fade .carousel-inner .active {
	opacity: 1;
}

.carousel-fade .carousel-inner .active.left,
.carousel-fade .carousel-inner .active.right {
	left: 0;
	opacity: 0;
	z-index: 1;
}

.carousel-fade .carousel-inner .next.left,
.carousel-fade .carousel-inner .prev.right {
	opacity: 1;
}

.carousel-fade .carousel-control {
	z-index: 2;
}

/*
WHAT IS NEW IN 3.3: "Added transforms to improve carousel performance in modern browsers."
Need to override the 3.3 new styles for modern browsers & apply opacity
*/

@media all and (transform-3d),
(-webkit-transform-3d) {

	.carousel-fade .carousel-inner>.item.next,
	.carousel-fade .carousel-inner>.item.active.right {
		opacity: 0;
		-webkit-transform: translate3d(0, 0, 0);
		transform: translate3d(0, 0, 0);
	}

	.carousel-fade .carousel-inner>.item.prev,
	.carousel-fade .carousel-inner>.item.active.left {
		opacity: 0;
		-webkit-transform: translate3d(0, 0, 0);
		transform: translate3d(0, 0, 0);
	}

	.carousel-fade .carousel-inner>.item.next.left,
	.carousel-fade .carousel-inner>.item.prev.right,
	.carousel-fade .carousel-inner>.item.active {
		opacity: 1;
		-webkit-transform: translate3d(0, 0, 0);
		transform: translate3d(0, 0, 0);
	}
}

/*
  Button styles
*/

.btn,
.gform_button {
	font-family: 'Lato', sans-serif;
	font-size: 18px;
	padding: 4px 20px;
	text-transform: uppercase;
	color: #fff;
	background-color: #8dc63f;
	border-radius: 30px;
	border: none;
}

.btn-close {
	position: absolute;
	top: 20px;
	right: 20px;
	background-color: #e44f50;
}

.btn-delay {

	animation: fadein 8s;
}

@keyframes fadein {
	0% {
		opacity: 0;
	}

	49% {
		opacity: 0;
	}

	50% {
		opacity: 1;
	}

	100% {
		opacity: 1;
	}

}


#scoredisplayClose {
	top: 8px;
}

/* Form Styles */
.gfield {
	margin-bottom: 20px;
}

.gform_footer {
	text-align: center;

}

input[type=submit] {
	font-size: 18px !important;
	padding: 15px 20px;
}


/* Magnifying Glass */
#lookingGlass {
	border-radius: 100%;
	-webkit-box-shadow: 0 0 0 7px rgba(255, 255, 255, 0.85),
		0 0 7px 7px rgba(0, 0, 0, 0.25),
		inset 0 0 40px 2px rgba(0, 0, 0, 0.25);
	box-shadow: 0 0 0 7px rgba(255, 255, 255, 0.85),
		0 0 7px 7px rgba(0, 0, 0, 0.25),
		inset 0 0 40px 2px rgba(0, 0, 0, 0.25);
	cursor: none;
	position: absolute;
	top: 0;
	left: 0;
	display: none;
	pointer-events: none;
}

/* Attachments */
.attachment-table img {
	float: left;
	margin-right: 10px;
}

.attachment-table p {
	min-height: 40px;
	margin-bottom: 10px;
}

/* Mobile styles */
@media only screen and (max-width: 768px) {

	.popup h2,
	.init-popup h2,
	.results-popup h2 {
		font-size: 18px;
		margin-bottom: 18px;
	}

	.popup {
		height: 100%;
		width: 100%;
		max-width: 360px;
		border-radius: 20px;
		padding-bottom: 20px;
		min-height: 420px;
	}

	.popup .img-responsive {
		margin-top: 0px;
	}

	.carousel-inner>.item>img {
		max-width: 80%;
		margin: 10px auto;
	}

	.popup p {
		margin: 0 10px 10px 10px;
		font-size: 14px;
		line-height: 14px;
	}

	footer a,
	footer p {
		font-size: 11px;
		line-height: 20px;
	}

	footer {
		display: none;
	}

	#mainCanvas,
	#gamePopup {
		height: 100%;
	}


	.blackboard {
		padding: 20px 0;
		font-weight: 300;
		font-size: 1.2em;
		line-height: 1em;
	}

	.blackboard p {
		width: 80%;
	}

	.question {
		margin-top: 0px;
	}

	.task-btn-yes {
		max-height: 120px;
		width: auto;
		margin: 0 auto;
	}

	.lives-display img {
		width: 15px;
		height: 15px;
	}

}

/* Force landscape orientation on front page
@media (orientation: portrait) {
	#startPage {
		-webkit-transform: rotate(-90deg);
		-moz-transform: rotate(-90deg);
		-o-transform: rotate(-90deg);
		-ms-transform: rotate(-90deg);
		transform: rotate(-90deg);
	}
}  */
