* {
	-webkit-box-sizing: border-box;
	   -moz-box-sizing: border-box;
			box-sizing: border-box;
}

html {
	height: 100%;
	overflow: hidden;
}
body {
	color:#333;
	font-family: -apple-system, Helvetica, sans-serif;
	font-size:88%;
	height: 100%;
	overflow: auto;
}
body, html,h2,h3 {
	margin:0;
	padding:0;
}
h1 {
	text-align: center;
}
/*
#beta_banner {
	position: fixed;
	top: 150px;
	right: -5px;
	padding: 5px 20px;
	color: white;
	background: #f6822b;
	font-size: 0.8em;
	font-style: italic;
	box-shadow: -2px 2px 3px #795548;
}
body.iOS.not_ipad.mobile.portrait #beta_banner,
body.android.mobile.portrait #beta_banner {
	top: 60px;
}
*/
#main_exit {
	position: absolute;
	top:10px;
	right:10px;
	text-align: center;
	z-index: 100;
}
#main_exit i {
	display: inline-block;
	font-size:30px;
	border-radius: 40px;
	text-shadow: 0px 1px 1px rgba(0,0,0,.5);
	background-color: #aaa;
	color: #fff;
	padding:7px 10px;
	box-shadow: 0px 1px 2px rgba(0,0,0,.7);
	border:1px solid #888;
	cursor: pointer;
}
#main_exit i:hover {
	background-color: #888;
}
#main_exit span {
	display: block;
	font-size: 13px;
	color:#8c8c8c;
	padding-top:4px;
}
li {
	text-align: left;
}

a img {
	border:0;
}
.clearfix:after {
	content: ".";
	display: block;
	height: 0;
	clear: both;
	visibility: hidden;
}
.clearfix {
	zoom:1;
}

.form-control {
	background-color: #fff;
	background-image: none;
	border: 1px solid #ccc;
	border-radius: 4px;
	-webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
			box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
	color: #555555;
	display: block;
	font-size: 14px;
	height: 34px;
	line-height: 1.42857;
	padding: 6px 12px;
	-webkit-transition: border-color ease-in-out 0.15s, box-shadow ease-in-out 0.15s;
		 -o-transition: border-color ease-in-out 0.15s, box-shadow ease-in-out 0.15s;
			transition: border-color ease-in-out 0.15s, box-shadow ease-in-out 0.15s;
	width: 100%;
}
.form-control:focus {
	border-color: #66afe9;
	outline: 0;
	-webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(102, 175, 233, 0.6);
			box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(102, 175, 233, 0.6);
}
textarea.form-control {
	height: auto;
	min-height: 2.5em;
}

.button {
	cursor:pointer;
	text-decoration:none;
	color:#2b61ae;
	border:1px solid #999;
	font-weight:bold;
	display:inline-block;
	padding:0 13px;
	height:37px;
	line-height: 35px;
	background:#f1f1f1;
	vertical-align: middle;
	-webkit-box-shadow: inset 2px 2px 1px #fff;
			box-shadow: inset 2px 2px 1px #fff;
	text-shadow: 0px 1px 0px #fff;
	outline:none;
}

.yabla-blue {
	background-color: #224a9a;
	color: #fff;
}
.secondary-blue {
	background-color: #4176a6;
	color: #fff;
}
.blue-grey {
	background-color: #a2b1ba;
	color: #fff;
}
.yabla-orange {
	background-color: #f6822b;
	color: #fff;
}
.yabla_orange_text {
	color: #f6822b;
}

.cbtn {
	position: relative;
	display: -webkit-box;
	display: -moz-box;
	display: -ms-flexbox;
	display: -webkit-flex;
	display: flex;
	width: 42px;
	height: 42px;
	margin: 8px 4px;
	-webkit-align-items: center;
	-moz-align-items: center;
	-ms-align-items: center;
	align-items: center;
	-webkit-justify-content: center;
	-moz-justify-content: center;
	-ms-justify-content: center;
	justify-content: center;
	background-color: #fff;
	border-radius: 40px;
	box-shadow: 0px 2px 2px rgba(0,0,0, 0.25);
	color: #4176A6;
	font-size: 130%;
	cursor: pointer;
}
.cbtn.active {
	background: #4176a6;
	color: #fff;
}

.game_btn {
	border: 1px solid transparent;
	border-radius: 0.5em;
	color: white;
	cursor: pointer;
	display: inline-block;
	font-size: 80%;
	font-weight: 500;
	outline: none;
	padding: 0.25em 0.5em 0.35em;
	position: relative;
	text-align: center;
}

.game_btn.grey {
	background-color: rgba(70, 70, 70, 0.9);
}
.game_btn:disabled,
.game_btn.disabled {
	cursor: not-allowed;
	opacity: 0.3;
}
.game_btn.small {
	font-size: 14px;
	font-weight: normal;
	padding: 0.35em 1em 0.5em;
}
.game_btn.outlined {
	border-radius: 0.6em;
	border-width: 2px;
	color: #fff;
}
.game_btn.outlined.small {
	font-size: 0.65em;
}
.game_btn.outlined.thick {
	border-width: 3px;
}
.game_btn.outlined.white {
	color: black;
	border-color: black;
}

.game_btn.secondary-blue,
.game_btn.secondary-blue[disabled]:hover,
.game_btn.secondary-blue.disabled:hover {
	background-color: #4176a6;
	border-color: #295880;
}
.game_btn.secondary-blue:hover {
	background-color: #295880;
	border-color: #20486B;
}
.game_btn.blue-grey,
.game_btn.blue-grey[disabled]:hover,
.game_btn.blue-grey.disabled:hover {
	background-color: #a2b1ba;
	border-color: #88959c;
}
.game_btn.blue-grey:hover {
    background-color: #7e909a;
    border-color: #707b82;
}
.game_btn.yabla-orange,
.game_btn.yabla-orange[disabled]:hover,
.game_btn.yabla-orange.disabled:hover {
	background-color: #f6822b;
	border-color: #ae5417;
}
.game_btn.yabla-orange:hover {
	background-color: #C1641F;
	border-color: #803E12;
}
.game_btn.yabla-red,
.game_btn.yabla-red[disabled]:hover,
.game_btn.yabla-red.disabled:hover {
	border-color: red;
}
.game_btn.yabla-red:hover {
	background-color: #c0272d;
	border-color: red;
}

.game_btn.outlined.disabled:hover {
	border-color: #ccc;
}
.game_btn.circle {
	border-radius: 2em;
	padding: 0 0 0.15em;
	width: 2em;
}
.game_btn.circle.outlined {
	border-width: 3px;
	height: 2.2em;
	width: 2.2em;
}

.minikeyboard_container {
  padding-top:20px;
  text-align:center;
}
.minikeyboard {

}
.minikeyboard .key {
  padding:0;
  width:32px;
  height:32px;
  line-height: 30px;
  text-align:center;
  margin: 0 3px 3px 0;
  border-radius: 3px;
  display:inline-block;
  float:none;

}
.minikeyboard_container .ipad_tip {
  font-size:60%;
  color:#999;
}
.minikeyboard_container .ipad_tip a{
  color:#999;
  text-decoration:underline;
}

header.game {
	position: relative;
	display: flex;
	background: #f8f8f8;
	border-bottom: 1px solid #dee2e4;
	font-size: 14px;
	padding: 0.66em;
	text-align: center;
	align-items: center;
	justify-content: space-between;
}
header.game .logo,
header.game_controls .logo {
	display: inline-block;
	width: 130px;
	height: 45px;
	background-size: contain;
}
header.game .logo:hover {
	cursor: pointer;
}
header.game .quit.game_btn {
	font-size: 110%;
}
header.game .quit.mobile.game_btn {
	display: none;
	border-radius: 100%;
}
@media only screen and (max-width : 730px) {
	header.game .quit.game_btn {
		display: none;
	}
	header.game .quit.mobile.game_btn {
		display: block;
	}
}


#player_container {
	display: flex;
	justify-content: center;
}
#player_container_inner {
	position: relative;
	cursor: pointer;
}

#video_container {
	display: flex;
	justify-content: center;
}
#video_container_inner {
	position: relative;
}
#video_container_inner .video_overlay, .video_overlay .inner {
	display: none;
	position: absolute;
	width: 100%;
	height: 100%;
	left: 0;
	top: 0;
	cursor: pointer;
}
#video_container_inner .video_overlay .inner .label {
	color: #fff;
	text-shadow: 3px 3px 3px #000;
}
body.mobile.portrait #video_container_inner .video_overlay .inner img {
	width: 4em;
	height: 4em;
}
body.mobile.portrait #video_container_inner .video_overlay .inner .label {
	font-size: 0.8em;
}
body.youtube #youtube_player_mask {
	display: block;
}
#youtube_player_mask.active {
	background: rgba(0,0,0, 0.7);
}
.video_overlay .inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
}
body.comprehension #skip_overlay .inner {
	align-items: flex-end;
} 
body.comprehension #back_overlay .inner {
	align-items: start;
} 
#dictionary_container {
	background: #f1f1f1;
	display: none;
	-webkit-flex-direction: column;
	-moz-flex-direction: column;
	-ms-flex-direction: column;
	-webkitjflex-direction: column;
	-webkit-flex: 1 1 35%;
	-moz-flex: 1 1 35%;
	flex: 1 1 35%;
	order: -1;
	padding: 15px;
	position: relative;
	z-index: 1;
	transition: left .2s ease-out;
}
#dictionary_container .media_details {
	display: none;
	margin-bottom: 15px;
	padding-left: 2px;
	font-size: 90%;
	color: #777;
}
#dictionary_container.modal_shown {
	background-color: transparent;
	display: -webkit-box;
	display: -moz-box;
	display: -ms-flexbox;
	display: -webkit-flex;
	display: flex;
	padding: 0;
	position: absolute;
	z-index: 50;
	font-size: 16px;
}
body:not(.classic_mode).mobile #dictionary_container {
	width: 100vw;
	max-height: 100vh;
	max-width: 400px;
}	

#dictionary_container.modal_shown .search_box {
	display: none;
}

#dictionary_container .add_to_word_list {
	display: none;
}
#dictionary_container .search_box {
	margin-top: 20px;
}
#outer_content_mask {
	display: none;
	position: fixed;
	width: 100%;
	height: 100%;
	top: 0;
	left: 0;
}
#outer_content_mask.active {
	display: none;
}
#dictionary_container .outer_content {
	position: relative;
	margin-top: 15px;
	-webkit-flex: 1;
	-moz-flex: 1;
	-ms-flex: 1;
	flex: 1;
	border: 1px solid #b1b1b1;
	border-radius: 4px;
}
#dictionary_container.modal_shown .outer_content {
	border: none;
	height: 100%;
	margin: 0;
}
#dictionary_container #fsd {
	display: block;
	height: 100%;
	left: 0;
	position: absolute;
	top: 0;
	width: 100%;
	z-index: 100;
}
body:not(.android):not(.iPadOS):not(.iOS) #dictionary_container #fsd {
	-webkit-user-select: text;
	-moz-user-select: text;
  -ms-user-select: text;
	user-select: text;
}
#dictionary_container.modal_shown #fsd {
	position: relative;
	height: auto;
}
#dictionary_container.modal_shown #fsd_outer {
	display: -webkit-box;
	display: -moz-box;
	display: -ms-flexbox;
	display: -webkit-flex;
	display: flex;
	-webkit-flex-direction: column;
	-moz-flex-direction: column;
	-ms-flex-direction: column;
	flex-direction: column;
	background: #fff;
}
#dictionary_container.modal_shown #fsd_head {
	position: relative;
}
#dictionary_container.modal_shown .dict_response {
	overflow: hidden;
}
#dictionary_container.modal_shown .dict_response.hide {
	display: none;	
}
#dictionary_container .load_more {
	display: inline-block;
	margin: 15px 5px 15px 10px;
	padding: 7px 7px 5px 7px;
	box-shadow: 1px 1px 2px #ddd;
	border-radius: 10px;
	border: 1px solid #999;
	font-size: 0.75em;
	background-color: #f1f1f1;
	color: #000;
}
#dictionary_container .load_more.hide {
	display: none;
}
#dictionary_container .load_more:hover {
	cursor: pointer;
	border-color: #555;
}


#fsd_head {
	position: absolute;
	background-color: #4176a6;
	border: 1px solid ##224a9a;
	padding:4px;
	border-radius: 3px 3px 0 0;
	top: 0;
	left: 0;
	width: 100%;
	z-index: 100;
}
#fsd_head form {
	margin-right:0;
}
#fsd label {
	display: block;
	font-size:12px;
	color:#aaa;
}
#fsd input {
	font-size: 17px;
	line-height: 22px;
	border: 0;
	width: 400px;
	max-width: calc(100% - 40px);
	padding: 4px 6px;
	box-shadow: inset 1px 1px rgba(0, 0, 0, .2);
	outline: none;
}
#fsd button {
	background-color: #fff;
	width:28px;
	height: 24px;
	display: inline-block;
	border:0;
	cursor: pointer;
	margin-top: 4px;
	margin-left:-30px;
	color:#999;
	vertical-align: top;
	font-size:13px;
}
#fsd button:active {
	outline: none;
}
#fsd_loading {
	position: absolute;
	width:18px;
	height: 18px;
	right:52px;
	top:10px;
}
#fsd_close {
	position: absolute;
	height: 100%;
	width: 40px;
	top: 0;
	right: 0;
	padding-top: 12px;
	color: #fff;
	text-align: center;
	cursor: pointer;
	font-size: 16px;
}
#fsd_close:hover {
	background-color: rgba(255,255,255,.1);
}
#fsd_close .fa.fa-close:before, 
#fsd_close .fa.fa-remove:before {
	content: "\f00d";
}
.portrait_phone #fsd_close {
	border-left:0;
	color:#fff;
	text-align: center;
	line-height: 29px;
	width:30px;
	height:30px;
	border-radius: 15px;
	cursor: pointer;
	background-color: #888;
	top:5px;
	right:5px;
}
.portrait_phone #fsd_close:hover {
	color:#aaa;
}
#fsd_outer {
	border-radius: 3px;
	width:400px;
}
body.classic_mode #fsd_outer {
	width: 100%;
	background: #fff;
}
body.classic_mode #fsd_outer {
	height: 100%;
}
#fsd_result {
	overflow-y:auto;
	min-height: 100px;
	max-height: 300px;
	background-color: #fafafa;
	padding: 0;
	border-radius: 0 0 3px 3px;
	border: 1px solid #ddd;
	border-top: 0;
}
body.mobile.android #fsd_result, 
body.mobile.iOS  #fsd_result {
	max-height: 180px;
} 
@media only screen and (max-height : 700px) {
	#fsd_result {
		max-height: 180px;
	}
}
/*
body.classic_mode #fsd_result {
	height: 100%;
	max-height: none;
}
*/
body.classic_mode #fsd_result #looking_up_msg {
	position: absolute;
	top: 0px;
	padding: 10px;
}
#fsd_result .gloss_def,
#fsd_result .dict_response {
	height: auto;
  padding: 0 10px;
}
#fsd_result .gloss_def.hide,
#fsd_result .dict_response.hide {
	display: none;
}
body.classic_mode #fsd_result .gloss_def {
	min-height: auto;
}
#fsd_result .gloss_def .dict_res .title.hide {
	display: none;
}
#fsd_result .dict_response {
	height: auto;
	min-height: 100%;
	padding: 0 10px;
}
body.classic_mode #fsd_result .dict_response {
	padding: 10px;
}
#fsd_result .pronunciations {
	padding: 10px;
	padding-bottom: 0;
	margin: 0;
}
@media screen and (max-height: 800px) {
	body #fsd_result .dict_response,
	body #fsd_result .pronunciations {
		font-size: 14px;
	}
}
#fsd_result .dict_response p:last-child {
	border-bottom:0;
}
#fsd_can_scroll_indicator {
	position: absolute;
	width: 380px;
	height:20px;
	bottom:31px;
	margin:0 0 0 3px;
	background-image: linear-gradient(rgba(250,250,250,0),rgba(250,250,250,1) 90%);
}
body.classic_mode #fsd_result .dict_response {
	width: 100%;
}
#fsd_pointer {
	width:60px;
	height:30px;
	position: relative;
	top:-1px;
	z-index: 1;
}
body.classic_mode #fsd_pointer {
	display: none;
}
.scroll_pocket {
  position: relative;
  z-index: 1;
	background: #FFF no-repeat;
	background-image:
		radial-gradient(farthest-side at 50% 0, rgba(0,0,0,0.2), rgba(0,0,0,0)),
		radial-gradient(farthest-side at 50% 100%, rgba(0,0,0,0.2), rgba(0,0,0,0));
	background-image: linear-gradient( to bottom, rgba(0,0,0,0.2) 0, rgba(0,0,0,0) 6px), 
		linear-gradient(to top,rgba(0,0,0,0.2) 0, rgba(0,0,0,0) 10px );
	background-position: 0 0, 0 100%;
	background-size: 100% 14px;
}

.scroll_pocket:before,
.scroll_pocket:after {
	content: "";
	position: relative;
	z-index: -1;
	display: block;
	height: 30px;
	margin: 0 0 -30px;
	background:   linear-gradient(to bottom,#fafafa,#fafafa 30%,rgba(255,255,255,0));
}
.scroll_pocket:after {
	margin: -30px 0 0;
	background:   linear-gradient(to bottom,rgba(255,255,255,0),#fafafa 70%,#fafafa);
}

