body.mobile_keypad_on {
	position: relative !important;
	height: 60% !important;
}
body.android.mobile_keypad_on {	
	height: 100% !important;
}
body.landscape.mobile_keypad_on {
	height: 40% !important;
}
#main {
	height: 100%;
	display: flex;
	flex-direction: column;
}

.blue.button {
	border:1px solid #2F507B;
	float:right;
	color:#f4f4f4;
	box-shadow: inset 2px 2px 2px rgba(255,255,255,0 );
	text-shadow: 0 -1px 0 #333;
	background-color: #4881B1;
	background-image: none;
}
.blue.button:hover {
	color:#fff;
	background-color: #3871a1;
}
.blue.button:active {
	color:#fff;
	background-color: #4881B1;
	background-image: -webkit-gradient(
		linear,
		left bottom,
		left top,
		color-stop(0.19, rgb(79,137,185)),
		color-stop(0.6, rgb(43,97,142))
	);
	background-image: linear-gradient(rgb(43,97,142) 40%,rgb(79,137,185) 89%)
}
.slow.button, .loop.button {
	color:#f90;
}
.not_ipad .slow.button:hover, .not_ipad .loop.button:hover {
	color: #a16100;
}
.button.active, .button:active {
	background-color:#ddd;
	box-shadow: inset 2px 2px 2px rgba(0,0,0,0.2);
	border-color:#666;
}
.slow.button.active, .slow.button:active, .loop.button.active, .loop.button:active {
	color:#a60;
}

header.game {
	background-color: #fff;
	border-bottom: 1px solid #ccc;
}

header.game .quit {
	border:2px solid #254C98;
	border-radius: 6px;
	font-size: 15px;
	padding:6px 10px;
	cursor: pointer;
}
header.game .small-quit {
	border-radius: 18px;
	padding:6px 10px 8px;
	display: none;
	top:5px;
	right:5px;
}
header.game td.points_wrap {
	vertical-align: top;
	padding-right: 15px;
}
header.game  a.score_history_link {
	color:#888;
	font-size: 12px;
	display: block;
	cursor: pointer;
	white-space: nowrap;
}
header.game  a.score_history_link:hover {
	text-decoration: underline;
}
@media only screen and (max-width : 730px) {
	header.game .logo {
		display: none;
	}
	header.game .quit {
		display: none;
	}
	header.game .small-quit {
		display: block;
	}
	header.game td.points_wrap {
		padding: 0 0 3px 0;
	}
	header.game .top_row {
		max-width: 280px;
	}
	header.game .scoreboard {
		margin-right: 40px;
	}
	header.game #question_view span {
		margin:0;
	}
}
header.game td .progress_track {
	width:100%;
	height:11px;
	border:3px solid rgba(0,0,0,.2);
	border-radius: 5px;
	display: inline-block;
	position: relative;
	overflow: hidden;
}
header.game td .progress_bar {
	background-color: #E0E855;
	height:5px;
	width: 0%;
}
header.game .scoreboard {
	display: inline-block;
}
header.game #warning_before_leaving_game_mask {
	display: none;
	position: fixed;
	width: 100%;
	height: 100%;
	top: 0;
	left: 0;
	background: rgba(0,0,0,0.35);
	z-index: 110;
}
header.game .warning_before_leaving_game {
	display: none;
	position: fixed;
	width: 350px;
	height: auto;
	top: 25%;
	left: 50%;
	padding: 20px;
	background: #fff;
	border-radius: 20px;
	-webkit-transfrom: translateX(-50%);
	-moz-transfrom: translateX(-50%);
	transform: translateX(-50%);
	z-index: 120;
	text-align: left;
	font-size: 120%;
	color: #333;
	border: 5px solid #4176a6;
}
header.game .warning_before_leaving_game .buttons.wrap {
	text-align: center;
	color: #f6822b;
	font-weight: bold;
}
header.game .warning_before_leaving_game .buttons.wrap label {
	font-size: 110%;
}
header.game .warning_before_leaving_game .buttons.wrap .buttons {
	margin-top: 10px;
	text-align: center;
}
header.game .warning_before_leaving_game .buttons.wrap button {
	display: inline-block;
	float: none;
	border-radius: 6px;	
}
#controls {
	background-color: #F2F2F2;
	border-top: 1px solid #ccc;
}
.game_content {
	display: flex;
	flex: 1;
	flex-direction: column;
}
#video_wrap, #video_container, #video_container_inner {
	flex: 1;
	display: flex;
}
#video_container_inner {
	justify-content: center;
}
video, #embedded_player {
	position: absolute;
	width: 100%;
	height: 100%;
	top: 0;
	left: 0;
}
#replay_button {
	display: none;
	width: 600px;
	height: 200px;
	position: absolute;
	top: 50%;
	left: 50%;
	z-index: 1;
	transform: translate(-50%, -50%);
	-webkit-transform: translate(-50%, -50%);
	-moz-transform: translate(-50%, -50%);
}
#replay_button:hover {
	cursor: pointer;
}
#replay_button.show {
	display: block;
}
#replay_button .label {
	position: absolute;
	top: 0%;
	width: 100%;
	font-size: 2.3em;
	text-align: center;
	color: #fff;
	text-shadow: 0 0 0.1em black;
}
#replay_button .icon {
	position: absolute;
	top: 40px;
	left: 50%;
	color: white;
	font-size: 10em;
	text-shadow: 0 0 0.1em black;
	transform: translateX(-50%);
	-webkit-transform: translateX(-50%);
	-moz-transform: translateX(-50%);
}
@media (min-width: 500px) and (max-width : 800px) {
	#replay_button {
		width: 400px;	
		height: 150px;	
	}	
	#replay_button .label {
		font-size: 1.8em;
	}
	#replay_button .icon {
		top: 65px;
		font-size: 7em;
	}
}
@media only screen and (max-width : 500px) {
	#replay_button {
		width: 300px;	
		height: 100px;	
	}	
	#replay_button .label {
		font-size: 1.3em;
	}
	#replay_button .icon {
		top: 45px;
		font-size: 4em;
	}
}
body.youtube #youtube_video_thumbnail_image {
	display: none;
}
body.youtube:not(.d_game):not(.comprehension) #youtube_video_thumbnail_image.active {
	display: block;
}
#game_question {
	display:block;
	padding: 2em;
}
.portrait_phone #game_question {
	padding:0;
}
.chinese #game_question span.underline {
	background-color: #f9f6a0;
	margin: 0 10px;
}
#game_question .game_word {
	cursor: pointer;
}
body:not(.iphone):not(.andriod) #game_question .game_word:hover {
	text-decoration: underline;
}
#game_question .instructions {
	font-size:95%;
	line-height:100%;
	color:#444;
	text-shadow:0px 1px 0px #fff;
	text-align: center;
}
#game_question .instructions .line {
	margin-bottom:9px;
}
body.student_user #game_question .instructions .line.third {
	text-transform: uppercase;
	font-weight: bold;
}
#game_question .instructions a.show_game_score_rules {
	color: #3D75A5;
}
#game_score_rules {
	position: absolute;
	background-color: #fff;
	border: 3px solid #3D75A5;
	padding:10px 10px 13px;
	top:0;
	left:0;
	border-radius: 9px;
	box-shadow: 0px 1px 6px rgba(0,0,0,.4);
	display: none;
}
#game_score_rules h3 {
	margin:3px 0 10px;
	text-align: center;
}
#game_score_rules div {
	margin:0 0 4px;
}
#game_score_rules .cloze, #game_score_rules .choice {
	display:none;
}
#game_score_rules .students.msg {
	display: none;
	padding-top: 5px;
	font-weight: bold;
	color: #f6822b;
}
body.student_user #game_score_rules .students.msg {
	display: block;
}
#game_question .game_start {
	margin-top:20px;
}
#game_question .game_start .loading {
	font-size:12px;
	display:none;
	min-height: 40px;
}
#game_question .game_start .button {
	float:none;
	display:inline-block;
	border-radius:5px;
}
#game_question .question_wrap {
	font-size:18px;
	line-height:1.3;
	text-align: center;
	max-width: 800px;
	margin: 0 auto;
}
#game_question .choice_buttons .button {
	border-color: #bbb;
	border-width: 2px;
	height: auto;
}
#game_question .choice_buttons .button:hover {
	border-color: #999;
}
.chinese #game_question .question_wrap {
	font-size: 20px;
}
.chinese #game_question .choice_buttons .button {
	font-size: 20px;
	font-weight: normal;
}
.portrait_phone #game_question .question_wrap {
	font-size:15px;
	line-height:1.3;
}
#game_question .choice_buttons {
	margin: 0 0 20px 0;
}
#game_question .choice_buttons .button {
	color: #333;
	border-radius: 6px;
}
#game_question .choice_buttons .button.correct {
	color: #fff;
	background-color: #0a0;
	background-image: linear-gradient(rgb(0,210,0),rgb(0,160,0));
	box-shadow:none;
	text-shadow: none;
	border-color: #090;
}
#game_question .choice_buttons .button.wrong {
	color: #fff;
	background-color: #a00;
	box-shadow:none;
	background-image: linear-gradient(rgb(210,0,0),rgb(160,0,0));
	text-shadow: none;
	border-color: #900;
}
.minikeyboard_container sub.shortkey {
	position: relative;
	top: 10px;
	font-size: 75%;
	color: #2b61ae;
}
.minikeyboard_container.hidesub sub.shortkey {
	display: none;
}
#game_controls {
	padding-top: 10px;
}
#game_controls .button {
	float:none;
	margin:0 0 0 6px;
	height:30px;
	line-height:30px;
	font-size:14px;
	display:inline-block;
	border-radius:3px;
}
#game_question .start_game:hover {
	box-shadow:0 0 9px 4px #ff0;
}

#game_form {
	position:relative;
}
#response {
	z-index:100;
	font-size: 18px;
	position:absolute;
	background-color:#f4f4f4;
	border:3px solid #aaa;
	padding:8px 13px 5px 13px;
	border-radius: 6px;
}
#response.success {
	border-color: #0a0;
	background-color: #f4fff4;
	font-size:18px;
}
#response.fail {
	border-color: #900;
	background-color: #fff4f4;
}
#response .incorrect_header {
	color: #a00;
	font-size:18px;
}
#response .round2_hint {
	font-size:13px;
	color:#888;
}
.score_flash {
	position:absolute;
	top:0;
	left:0;
	font-size:14px;
	color:#fff;
	font-size:150%;
	text-shadow: -1px 0 black, 0 1px black,1px 0 black, 0 -1px black;
}
.msie .score_flash {
	color:#0F0;
}
.round2_flash {
	color:#f90;
	z-index: 100;
	font-size:250%;
	font-weight:bold;
	position:absolute;
	left:70px;
	top:-45px;
}
.response, .source {
	font-weight:bold;
	font-size: 21px;
}
.response .match, .source .match {
	color:#080;
}
.response .swap {
	text-decoration: line-through;
	color:#c00;
}
.response .missing.swap {
	text-decoration: none;
	margin:0 .5px;
}
.source .swap {
	color:#090;
}
.source .insert {
	color:#090;
}
.source .soft_swap {
	color:#090;
}
.response .delete {
	color:#c00;
	text-decoration: line-through;
}
.response .soft_swap {
	color:#f70;
}
span.positive {
	font-weight: bold;
	color:#0a0;
}
/* IS THIS STUFF NECESSARY? I THINK #game_panel DOESN'T EXIST ANYMORE */
#game_panel {
	display:none;
	position:relative;
}
.game #game_panel {
	display:block;
}
#game_panel .score_history {
	min-height:22px;
	color:#999;
	font-size:80%;
	overflow-y:auto;
	overflow-x:hidden;
	margin-bottom:2em;
}
#game_panel .score_history h4{
	font-size:120%;
	margin:0;
}
.score_history .details_link {
	font-size:80%;
}
.score_history .details_link a{
	color:#3D75A5;
}
#game_panel .score_history strong {
	display:inline-block;
	width:25px;
}
#score_history_details {
	display:none;
	z-index:100;
	background-color:#f4f4f4;
	position:absolute;
	border:8px solid #3D75A5;
	border-radius: 20px;
	overflow-y:scroll;
	top:10px;
	padding:10px;
}

#score_history_details .score_history_row{
	margin: 0 0 4px 5px;
}
#score_history_details .score_history_row strong {
	display:inline-block;
	width:2em;
}
#game_panel form {
	position:absolute;
	bottom:0px;
	width:100%;
}

#points_view {
	margin-bottom: 4px;
	display: inline-block;
	line-height: 1.0
}
#points_view span.points {
	font-size:40px;
	color:#346B9B;
	margin-right: 2px;
	font-weight: bold;
}

#question_view, #round_view {
	font-size:0;
	margin: 0 20px 0 0;
	display: inline-block;
}
#question_view {
	margin-right: 0;
}

#question_view label, #round_view label, #points_view label {
	font-size:13px;
	font-weight:bold;
}

header .scoreboard td {
	vertical-align: top;
}
header .scoreboard td.top_row {
	text-align: left;
}

#question_view span, #round_view span {
	display:inline-block;
	color:#777;
	font-size:14px;
	width:15px;
	height:19px;
	line-height:19px;
	text-align:center;
	font-weight:bold;
	margin: 0 2px;
}
#question_view .active, #round_view .active {
	background-color:#ddd;
	color:#111;
}
#question_view .incorrect {
	border-bottom:2px solid #a00;
}
#question_view .partial {
	border-bottom:2px solid #c90;
}
#question_view .correct {
	border-bottom:2px solid #0a0;
}
#cloze_answer {
	margin:0;
	box-shadow:inset 1px 1px 3px rgba(0,0,0,.4);
	padding: 2px 4px 2px;
	font-size:16px;
	font-weight:bold;
	border:0;
	background-color:#fff;
	border-radius:6px;
	border: 1px solid #ccc;
}
#cloze_answer.hide {
	width: 0 !important;	
	padding: 0 !important;
	opacity: 0;
}
#cloze_answer::-ms-clear {
	display:none;
}
#cloze_answer:focus {
	outline:none;
	box-shadow: 0px 0px 3px 1px #92bfe2, inset 1px 1px 3px rgba(0,0,0,.4);
	border:1px solid #92bfe2;
}

#cloze_answer.blank:focus {
	box-shadow: 0px 0px 3px 1px #a00, inset 1px 1px 3px rgba(0,0,0,.4);
	border:1px solid #a00;
}
#test {
	font-size:16px;
	font-weight:bold;
	position: absolute;
	visibility: hidden;
	top:0;
	left:0;
	height: auto;
	width: auto;
}
#saving_indicator {
	padding: 1em;
}

#game_finished_view {
	position: fixed;
	top:0px;
	left:0px;
	width:100%;
	height:100%;
	z-index: 15;
	display: none;
}

#game_finished_mask {
	width:100%;
	height:100%;
	background-color: #000;
	opacity: .73;
}
#game_finished_info {
	position: absolute;
	top:30px;
	left:100px;
	margin: 0 auto;
	border: 9px solid #3F77A6;
	background-color: #fff;
	padding:1em;
	border-radius: 20px;
}
#game_finished_view table {
	font-size:12px;
	margin:8px 0 20px;
	border-collapse: collapse;
}
#game_finished_view td {
	min-width: 100px;
}
#game_finished_view td.idx {
	min-width: 0px;
	width:25px;
}
#game_finished_view td.correct {
	color:#0a0;
}
#game_finished_view td.incorrect {
	color:#a00;
}
#game_finished_view td.partial {
	color:#c90;
}
#game_finished_view tr:nth-child(odd) td {
	background-color: #eee;
}
#game_finished_view th {
	border-bottom:1px solid #444;
	font-weight: normal;
	text-align:left;
}
#game_finished_view h3 {
	text-align:center;
	margin:0;
}
#game_finished_view #save_indicator {
	text-align: center;
}
#game_finished_view .negative {
	color:#f00;
	font-size: 30px;
	font-weight:bold;
}
.portrait_phone #game_finished_view .negative {
	font-size: 16px;
}
.portrait_phone #game_finished_view table {
	display: none;
}
#game_finished_options {
	text-align: center;
}
/* start: this is only for student users */
#game_finished_options .result.message {
	display: none;
	font-weight: bold;
	color: #f6822b;
}
#game_finished_options .result.message.show {
	display: block;
}
#game_finished_options .result.message .nice.work {
	padding: 10px;
	font-weight: normal;
	color: #444;
}
#game_finished_options .result.message .nice.work .over {
	display: none;
}
#game_finished_options .result.message .nice.work .over.show {
	display: inline-block;
}
#game_finished_options .result.message .reminder.assignment {
	display: none;
}
#game_finished_options .result.message .reminder.assignment.show {
	display: block;
}
#game_finished_options .prompt {
	padding: 10px;
	font-weight: normal;
	color: #444;
}
#game_finished_options .button {
	float:none;
	display:inline-block;
	border-radius: 6px;
}
#game_finished_options .button_wrap {
	vertical-align: top;
	display:inline-block;
	float:none;
}
#game_finished_options .tip {
	font-size:10px;
	color:#777;
	display: block;
	width:125px;
}
#students_complete_assignments_view {
	display: none;
	position: absolute;
	width: 400px;
	height: 350px;
	top: 120px; 
	left: 50%;
	text-align: center;
	-webkit-transfrom: translateX(-50%);
	-moz-transfrom: translateX(-50%);
	transform: translateX(-50%);
}
#students_complete_assignments_view.show {
	display: block;
}
#students_complete_assignments_view .wrap {
	position: absolute;
	width: 100%;
	bottom: 10px;
	text-align: center;
}
#students_complete_assignments_view > .wrap > div {
	padding: 10px;
}
#students_complete_assignments_view > .wrap > .prompt > .message {
	position: absolute;
	width: 100%;
	left: 0;
	font-weight: bold;
	font-style: italic;
	color: #f6822b;	
}
#students_complete_assignments_view > .wrap > .prompt > .message.hide {
	display: none;
}
#students_complete_assignments_view > .wrap > .prompt > .btn {
	margin-top: 15px;
	padding: 20px;
}
#students_complete_assignments_view > .wrap > .prompt > .btn > button {
	padding: 8px 16px;
	border-radius: 8px;
	font-size: 17px;
	border: none;
	background: #f6822b;
	color: #fff;
	box-shadow: 1px 2px 2px #ddd;
	cursor: pointer;
}
#students_complete_assignments_view .congrats.icon {
	display: inline-block;
	width: 500px;
	width: 392px;
	height: 350px;
	height: 345px;
	background: url('../images/html5/students_assignments_complete_almost_there.gif') no-repeat center;
}
#students_complete_assignments_view .congrats.icon.rounds_completed {
	background: url('../images/html5/students_assignments_complete_congratulations.gif') no-repeat center;
}
/* end: this is only for student users */

/* disable fitb on mobile landscape, and force it to portrait */
#mobile_landscape_overlay {
	display: none;
}
body.game.fitb_landscape_mobile #mobile_landscape_overlay {
	display: flex;
	position: fixed;
	width: 100%;
	height: 100%;
	top: 0;
	left: 0;
	padding: 20px;
	z-index: 102;
	background: #fff;
	color: #4176a6;
	font-size: 1.25em;
}
body.game.fitb_landscape_mobile #mobile_landscape_overlay .notification {
	width: 100%;
	text-align: center;
}


