html, body {
	margin: 0px;
	padding: 0px;
    font-family: Arial;
}

div, span, p {
    -webkit-touch-callout: none;
    -webkit-user-select: none; /* Disable selection/copy in UIWebView */
}

body, app {
	background: #FFF;
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
    position: absolute;
}

body.freeversion app {
	padding-bottom: 80px;
    box-sizing: border-box;
}

.ads {
	border-top: 1px solid #DDD;
	display :none;
	position:absolute;
	bottom: 0px;
	height: 80px;
	width: 100%;
	background: #FFF;
}

body.freeversion .ads {
	display :block;
}

.scrollable {
	overflow-x: hidden;
	overflow-y: scroll;
	-webkit-overflow-scrolling: touch;
}

/* log menu */

.blank_screen {
	flex: 1;
  text-align: center;
  position: relative;
	display: flex;
	flex-direction: row;
	background: #EEE;
}

body.ios .blank_screen {
	padding-top: 20px;
}

.center_menu {
	display: flex;
	flex-direction: column;
	height: 100%;
	width: 100%;
	position: absolute;
}

.presentation {
	display: none;
}

@media (min-width: 1000px) {
	.center_menu {
		flex: 1;
		position: relative;
	}

	.presentation {
		transition: width 0.2s;
		background-color: #000;
		position: relative;
		display: block;
		width: 70%;
	}
	.presentation.hidden {
		width: 0%;
	}
}

.presentation .slide {
	transition: opacity 0.2s;
	opacity: 1;
	position: absolute;
	width: 100%;
	height: 100%;
	background-position: center;
	z-index: 1;
}

.presentation .slide.hide {
	opacity: 0;
}

.presentation .slide_text {
	position: absolute;
	width: 100%;
	height: 100%;
	z-index: 2;
}

.presentation .slide_text .inner {
		text-shadow: 1px 1px 1px rgba(0,0,0,0.4);
		text-align: left;
    color: #FFF;
    display: block;
    font-size: 20px;
    padding: 40px;
    position: absolute;
    margin: auto;
    top: 0;
    bottom: 0;
    height: 150px;
    right: 0;
    left: 0;
    width: 600px;
}

.center_menu .title {
	transition: opacity 0.2s;
	width: 100%;
	flex: 1;
	background-repeat: no-repeat;
	background-position: center;
	background-size: 70px;
}

.center_menu .title.hidden {
	opacity: 0;
}

.center_menu .elements {
	transition: height 0.2s;
	transition-delay: 0.5s;
	position: relative;
	height: 70%;
}


.center_menu .elements.hidden {
	transition-delay: 0s;
	height: 0%;
}

.elements .blocks {
	width: 100%;
	transition: transform 0.2s;
}

.blocks .centerize {
	max-width: 300px;
    width: 70%;
    margin: 30px;
    display: inline-block;
}

.login_bloc {
	background: #FFF;
	border-radius: 5px;
	padding-top: 0px;
	box-shadow: 0 0 30px rgba(0,0,0,0.1);
}

.login_bloc input[type='text'], .login_bloc input[type='password'] {
	border-radius: 0;
	transition: border 0s;
	width:100%;
	border:none;
	height: 40px;
	padding-left: 10px;
	box-sizing: border-box;
	font-size: 15px;
	border-bottom: 1px solid #EEE;
	border-left: 2px solid transparent;
	background: transparent;
	-webkit-appearance:none;
	outline: none;
}

.login_bloc input[type='text']:focus, .login_bloc input[type='password']:focus {
	transition: border 0.2s;
	border-left: 2px solid #DDD;
}

.login_bloc textarea{
	padding-top: 10px;
	border-radius: 0;
	transition: border 0s;
	width:100%;
	border:none;
	height: 80px;
	padding-left: 10px;
	box-sizing: border-box;
	font-size: 15px;
	border-bottom: 1px solid #EEE;
	border-left: 2px solid transparent;
	background: transparent;
	-webkit-appearance:none;
	outline: none;
	resize: none;
}

.login_bloc textarea:focus{
	transition: border 0.2s;
	border-left: 2px solid #DDD;
}

.login_bloc .submit_bloc {
	cursor: pointer;
    width: 100%;
    height: 35px;
    background: #EB1847;
    border-radius: 0 0 5px 5px;
	color: #FFF;
	text-align: center;
    line-height: 35px;
    font-size: 15px;
}

.login_bloc .submit_bloc:hover {
    background: #DB0837;
}

.login_bloc .submit_bloc:active {
    background: #CB0027;
}

.login_bloc label {
	border-radius: 0;
	transition: border 0s;
	width:100%;
	border:none;
	height: 40px;
	padding-left: 10px;
	box-sizing: border-box;
	font-size: 15px;
	border-bottom: 1px solid #EEE;
	border-left: 2px solid transparent;
	background: transparent;
	-webkit-appearance:none;
	outline: none;
	display: block;
    line-height: 40px;
	color: #555;
}

.login_bloc input[type='checkbox'] {

}

.login_bloc .facebook {
	cursor: pointer;
    width: 100%;
    height: 40px;
    background: #3B5998;
    border-radius: 5px;
	color: #FFF;
	text-align: center;
    line-height: 40px;
    font-size: 14px;
}

.login_bloc .facebook:hover {
    background: #2B4988;
}

.login_bloc .button {
	cursor: pointer;
    width: 100%;
    height: 40px;
    background: #FFFFFF;
    border-radius: 5px;
	color: #777;
	text-align: center;
    line-height: 40px;
    font-size: 14px;
}

.login_bloc .button:hover {
    background: #F7F7F7;
}

.noconnection_img {
	background-image: url(../imgs/noconnection.svg);
    background-size: contain;
    background-position: top center;
    background-repeat: no-repeat;
    opacity: 0.6;
    width: 130px;
    height: 180px;
    position: absolute;
    margin: auto;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
}

/* General */

.openfdown.hidden {
    transform: translateY(100%);
}

.openfdown {
	height: 100vh;
    background: #EEE;
    border-top: 2px solid #DDD;
    padding-top: 20px;
    transition: transform 0.2s;
	overflow-x: hidden;
	overflow-y: scroll;
	-webkit-overflow-scrolling: touch;
	box-sizing: border-box;
}

body.ios .openfdown {
    padding-top: 35px !important;
}

.goback {
	height: 40px;
	width: 40px;
	opacity: 0.5;
	margin-left: -6px;
	float: left;
	cursor: pointer;
	background-image: url('../imgs/back.svg');
	background-repeat: no-repeat;
	background-size: 60%;
	background-position: center left;
}
.goback:hover {
	opacity: 0.7;
}

.pop_close {
	height: 28px;
	width: 40px;
	opacity: 0.7;
	margin-left: -6px;
	float: left;
	cursor: pointer;
	background-image: url('../imgs/close.svg');
	background-repeat: no-repeat;
	background-size: 80%;
	background-position: center left;
}
.pop_close:hover {
	opacity: 0.9;
}

.pop_title {
	width: 100%;
	padding:20px;
	padding-right: 50px;
	padding-top: 0px;
	box-sizing: border-box;
    text-align: center;
    font-size: 24px;
    color: #666;
}

.title {
	background-image: url("../imgs/logo.svg");
	background-position: center;
	background-size: contain;
	height: 70px;
	width: 70px;
}

.title.loading {
	animation: title_loading infinite 4s;
}

.smallloading {
	transition: opacity 0.2s;
	height: 40px;
	width: 40px;
	background-image: url("../imgs/loading.gif");
	background-position: center;
	background-size: 200%;
	height: 70px;
	width: 70px;
}

.nomore {
	font-size: 14px;
  text-align: center;
  color: #444;
	margin-top: 10px;
	margin-bottom: 20px;
}

.invisible {
	transition: opacity 0.2s;
	opacity: 0;
	animation: none;
}

@keyframes title_loading {
    0% {opacity: 1;}
	20% {opacity: 0;}
	50% {opacity: 0;}
    70% {opacity: 1;}
}

@keyframes title_floading {
    0% {opacity: 1;}
	50% {opacity: 0;}
	51% {opacity: 0;}
    100% {opacity: 1;}
}

.start_header {
    transition: all 0.2s;
	padding: 20px;
	height: auto;
	width: 100%;
	display: flex;
	flex-direction: row;
	box-sizing: border-box;
	background: #FFF;
    border-bottom: 1px solid #cdcdcd;
}


body.ios .start_header {
	padding-top: 25px;
}

.start_header.hidden {
    height: 0px;
    margin-top: -60px;
    opacity: 0;
}

.start_header .center {
	transition: opacity 0.2s;
	margin-left: 20px;
	margin-right: 10px;
	flex:1;
	opacity: 1;
	height: 59px;
	/*overflow: hidden;*/
}

.start_header .title {
	height: 55px;
    width: 55px;
}

.start_header .right_menu {
	transition: width 0.2s;
    width: 36px;
    margin-left: 5px;
    margin-right: 0px;
    text-align: right;
	white-space: nowrap;
	overflow: hidden;
	font-size: 0px;
}

.start_header.opened .center {
	opacity: 0;
}

.start_header .right_menu .menu_element.only_opened {
	transition: opacity 0.2s;
	opacity: 0;
	margin-left: 3px;
}

.start_header.opened .right_menu {
    width: 192px;
}

.start_header.opened .right_menu .menu_element.only_opened {
	opacity: 1;
}

.menu_element {
    width: 35px;
	height: 35px;
	background-size: 100%;
	background-position: center;
	background-repeat: no-repeat;
	margin-top: 13px;
	background-color: #000;
	border-radius: 50%;
	display: inline-block;
}

.menu_element.pixelart {
	cursor: pointer;
	background-image: url("../imgs/pixelart.svg");
	background-color: #535353 !important;
	background-size: 75% !important;
}

.menu_element.pixelart:hover {
	background-color: #444 !important;
}

.menu_element.logout {
	cursor: pointer;
	background-image: url("../imgs/logout.svg");
	background-color: #4b6beb !important;
	background-size: 55% !important;
}

.menu_element.logout:hover {
	background-color: #3b4bdb !important;
}

.menu_element.reload {
	cursor: pointer;
	background-image: url("../imgs/reload.svg");
	background-color: #4b6beb !important;
	background-size: 55% !important;
}

.menu_element.reload:hover {
	background-color: #3b4bdb !important;
}

.menu_element.fastspeak {
	cursor: pointer;
	background-image: url("../imgs/timer.svg");
	background-color: #ff0094 !important;
	background-size: 60% !important;
}

.menu_element.fastspeak:hover {
	background-color: #ef0084;
}

.menu_element.mytexts {
	cursor: pointer;
	background-image: url("../imgs/mytexts.svg");
	background-color: #ff892f !important;
	background-size: 50% !important;
}

.menu_element.mytexts:hover {
	background-color: #ef791f !important;
}

.menu_element.add {
	cursor: pointer;
	background-image: url("../imgs/add.svg");
	background-color: #E10C39 !important;
	background-size: 60% !important;
}

.menu_element.add:hover {
	background-color: #D10029 !important;
}

.menu_element.delete {
	cursor: pointer;
	background-image: url("../imgs/delete.svg");
	background-color: #A10C19 !important;
	background-size: 45% !important;
}

.menu_element.delete:hover {
	background-color: #910C09 !important;
}

.menu_element.edit {
	cursor: pointer;
	background-image: url("../imgs/edit.svg");
	background-color: #ff892f !important;
	background-size: 50% !important;
}

.menu_element.edit:hover {
	background-color: #ef791f !important;
}

.menu_element.play {
	cursor: pointer;
	background-image: url("../imgs/play.svg");
	background-color: #0C9109 !important;
	background-size: 50% !important;
}

.menu_element.play:hover {
	background-color: #0C8109 !important;
}

.menu_element.menu {
	transition: rotate 0.5s;
	margin-right: 5px;
	background-image: url("../imgs/menu.svg");
	background-color: #ff2959 !important;
	background-size: 70% !important;
	transform: rotate(90deg);
}

.menu_element.menu:hover {
	background-color: #ef1949 !important;
}

.start_header .title {
	display: none !important;
}

@media (min-width: 600px) {
	.menu_element.menu {
		display: none !important;
	}
	.start_header .right_menu {
		width: 120px/*152px*/;
	}
	.start_header .right_menu .only_opened {
		opacity: 1 !important;
	}
	.start_header  .title {
		display: block !important;
		margin-right: 20px !important;
	}
}

.start_header.opened .right_menu .menu_element.menu {
	transform: rotate(0deg);
}

.start_header .right_menu .menu_element:last-child {
	margin-bottom: 0px;
}

.start_header .center .name {
    margin-bottom: 8px;
    font-size: 17px;
    color: #444;
	font-weight: bold;
}

.start_header .title {
	position: relative;
	display: block;
	margin: auto;
	left: 0;
	right: 0;
}

.start_header .level {
    width: 100%;
    margin: auto;
    left: 0;
    right: 0;
    height: 7px;
    background: #EEE;
    border-radius: 3px;
	position: relative;
	margin-bottom: 18px;
	flex: 1;
}

.start_header  .level .current_level {
	transition: width 0.8s;
    width: 0%;
    height: 100%;
    background: #ff2959/*#df1744*/;
    border-radius: 3px;
}

.level_contener {
	display: flex;
	height: 8px;
}

.start_header .level_contener .left {
    height: 8px;
    width: 20px;
    text-align: left;
    font-size: 14px;
    color: #ed1848;
    line-height: 8px;
}

.start_header .level_contener .right {
    height: 8px;
    width: 20px;
    text-align: right;
    font-size: 14px;
    color: #ed1848;
    line-height: 8px;
}

.start_header .stats {
	font-size: 13px;
	color: #014285;
	margin-top: 8px;
}

.stats .xp {
	color: #999;
	float: left;
}

.stats .xp span.js-xp {
	color: #000;
	font-weight: bold;
}

.stats .px {
	color: #999;
	float: right;
}

.stats .px span {
	color: #000;
	font-weight: bold;
}

.searchbox {
	float: right;
    max-width: 200px;
    width: 50%;
    margin-top: -22px;
    display: flex;
	background: #FFF;
	border-radius: 5px;
	height: 25px;
	box-sizing: border-box;
	padding-left: 5px;
	box-shadow: 0 0 30px rgba(0,0,0,0.1);
}

.searchbox input {
	min-width: 0px;
	background: transparent;
	flex:1;
	font-size: 13px;
	border: 0;
	outline: none;
	-webkit-appearance:none;
	box-sizing: border-box;
	height: 100%;
}

.searchbox .button {
	width: 25px;
	background-image: url('../imgs/search.svg');
	background-position: center;
	background-size: 70%;
	background-repeat: no-repeat;
	background-color: #ff2959;
	border-radius: 0 5px 5px 0;
	height: 100%;
	cursor: pointer;
    display: block;
}

.searchbox .button:hover {
	background-color: #ef1949;
}

.courses {
    transition: all 0.5s;
    -webkit-transition-delay: 0.2s; /* Safari */
    transition-delay: 0.2s;
	flex: 1;
	padding: 20px;
	box-sizing: border-box;
	overflow-y: scroll;
	overflow-x: hidden;
	background: #F7F7F7;
	-webkit-overflow-scrolling: touch;
}

.courses.hidden {
    transition: all 0.2s;
    -webkit-transition-delay: 0s; /* Safari */
    transition-delay: 0s;
    opacity: 0;
}

.courses .ctitle {
	color: #888;
	font-size: 18px;
}

.courses .line {
	transition: all 0.2s;
	height: 80px;
    overflow: hidden;
	font-size: 0px;
	margin-top: 10px;
	margin-bottom: 20px;
	display: flex;
}

.courses .line .contener div:last-child {
	margin-bottom: 0px !important;
}

.courses .line .contener div:first-child {
	transition: margin-top 0.2s;
}

.courses .line .contener {
    overflow: hidden;
    white-space: nowrap;
	-webkit-overflow-scrolling: touch;
	margin: 0px;
	flex: 1;
}

.courses .line .left-arrow {
	cursor: pointer;
    width: 30px;
    background: url(../imgs/left.svg);
    height: 100%;
    display: block;
    background-position: center left -6px;
    background-size: contain;
    background-repeat: no-repeat;
	opacity: 0.6;
}

.courses .line .right-arrow {
	cursor: pointer;
    width: 30px;
    background: url(../imgs/right.svg);
    height: 100%;
    display: block;
    background-position: center right -6px;
    background-size: contain;
    background-repeat: no-repeat;
	opacity: 0.6;
}

.courses .line .contener .textpack {
	width: 100%;
}

.courses .right-arrow:hover, .courses .left-arrow:hover {
	opacity: 1;
}

.courses .right-arrow.disabled,.courses .left-arrow.disabled {
	opacity: 0.2 !important;
}

.courses .contener {
	text-align: left;
	font-size: 0px;
	margin-top: 10px;
	margin-bottom: 20px;
}

.courses .contener .course {
    margin-top: 10px;
}

.textpack {
	text-align: center;
	width: 100%;
  /*height: 80px;*/
  display: flex;
  flex-direction: row;
	margin-bottom: 10px;
}

.contener-scroll .textpack_parent {
	margin-top: 20px;
}

.textpack_parent {
	width: 100%;
	display: inline-block;
	height: 80px;
margin-bottom: 10px;
}

.textpack_parent.editable {
	height: 150px;
}

.textpack_parent:hover .textpack_img {
	opacity: 0.9;
}

.textpack_parent.editable:hover .textpack_img {
	opacity: 1;
}

@media screen and (min-width: 640px) and (max-width: 1000px) {
	.textpack_parent {
		width: 50%;
	}
}

@media screen and (min-width: 1000px) {
	.textpack_parent {
		width: 33.33333%;
	}
}

.textpack.clickable {
	cursor: pointer;
}

.textpack.clickable:hover {
	opacity: 0.9;
}

.textpack_img {
	width: 80px;
    height: 80px;
    background: #444;
    border-radius: 4px;
}

.textpack_img .besttxt {
	font-size: 11px;
    color: rgba(255,255,255,0.9);
	margin-top: 10px;
}
.textpack_img .mybest {
	font-size: 22px;
    color: #FFF;
	margin-top: 3px;
}
.textpack_img .remainpixels {
	font-size: 11px;
    color: rgba(255,255,255,0.9);
	margin-top: 4px;
}
.textpack_img .remainpixels span {
	font-size: 12px;
    color: #FFF;
}


.textpack_data {
	flex: 1;
    margin-left: 10px;
	overflow: hidden;
	position: relative;
}

.textpack_name {
	font-size: 20px;
    text-align: left;
    font-weight: bold;
    color: #575757;
	text-overflow: ellipsis;
	overflow-x: hidden;
	white-space: nowrap;
}

.textpack_data .privatepublic {
	font-size: 12px;
    height: 35px;
    margin-right: 10px;
    line-height: 36px;
    display: inline-block;
    vertical-align: bottom;
    font-weight: bold;
}

.textpack_desc {
	color: #555;
    font-size: 14px;
    text-align: left;
    margin-top: 3px;
	height: 30px;
	text-overflow: ellipsis;
	overflow: hidden;
}

.js-randomized {
	font-size: 12px;
	color: #048;
}

.textpack_nfos {
	position: relative;
	bottom: 0;
	width: 100%;
	color: rgba(0,0,0,0.3);
    font-size: 11px;
    text-align: left;
    margin-top: 7px;
}

.textpack_nfos span {
	color: #222;
    font-size: 13px;
}

/* Game */

.gameheader {
	width: 100%;
	height: 22%;
	padding: 20px;
	box-sizing: border-box;
	display: flex;
	flex-direction: row;
	position: relative;
	padding-top:0px;
}

.gameheader .gamebar {
	flex: 1;
	margin-top: 15px;
	height: 10px;
	border-radius: 5px;
	width: 100%;
	background: #DDD;
	display: flex;
	flex-direction: row;
}

.gameheader .gamebar .part {
	width: 100%;
	border-right: 1px solid #EEE;
	height: 100%;
}

.gameheader .gamebar .part:first-child {
	border-radius: 5px 0 0 5px;
}

.gameheader .gamebar .part:last-child {
	border-radius: 0 5px 5px 0;
}

.gameheader .gamebar .part:first-child:last-child {
	border-radius: 5px;
}

.gameheader .gamebar .part.done0 {
	background: #AAA;
}

.gameheader .gamebar .part.done1 {
	background: #eea307;
}

.gameheader .gamebar .part.done2 {
	background: #afa600;
}

.gameheader .gamebar .part.done3 {
	background: #70A11f;
}

.gameheader .gamebar .part.done4 {
	background: #30A13f;
}

.gameheader .gamebar .part.done5 {
	background: #ff005e;
}

.gameheader .score {
    position: absolute;
    left: 53px;
    top: 45px;
    font-size: 17px;
    color: #555;
}

.gameheader .score span {
    font-weight: bold;
}

.recognition_word.undone {
	opacity: 0.2;
}

.recognition_word.done {
	opacity: 1;
}

.phrase_say {
	font-size: 20px;
	color: #CCC;
    display: inline-block;
    float: left;
    width: 40px;
    line-height: 40px;
}

.phrase_yousay {
	font-size: 20px;
	color: #CCC;
    display: inline-block;
    float: left;
    width: 80px;
    line-height: 40px;
}

.mic_results {
	flex: 1;
	margin-left: 10px;
	margin-top: 5px;
	font-size: 25px;
	color: #555;
}

.phrases_contener.mic_results {
	margin-left: 90px;
}

.phrases_contener {
	display: inline-block;
	position: relative;
	width:100%;
	margin-left: 45px;
    float: left;
}

.phrases_contener .phrase {
	position: absolute;
	width:100%;
}

.phrases {
	position: relative;
	flex: 1;
	font-size: 30px;
	text-align: left;
	width: 100%;
	max-width: 500px;
    margin: auto;
	box-sizing: border-box;
	padding: 20px;
    font-family: "Droid Serif";
	overflow: hidden;
}

.phrases_buttons, .finished_buttons {
	height: 100px;
	text-align: center;
}

.phrase_display {
	opacity: 0;
	pointer-events: none;
}

.tts_button {
    background: #ff005e;
    width: 40px;
    height: 40px;
    border-radius: 20px;
	display: inline-block;
	text-align: center;
    line-height: 40px;
    color: #FFF;
    font-size: 20px;
	cursor: pointer;
}

.tts_button:hover {
    background: #ee005e;
}

.tts_button:active {
    background: #bb005e;
}

.tts_button > i{
	transition: all 0.2s;
    transform: scale(1);
}

.tts_button.active > i{
    transform: scale(0.9);
    color: #aa005e;
}

.pass_button {
    background: #207eff;
    width: 40px;
    height: 40px;
    border-radius: 20px;
	display: inline-block;
	text-align: center;
    line-height: 40px;
    color: #FFF;
    font-size: 20px;
	cursor: pointer;
}

.pass_button:hover {
    background: #106eef;
}

.home_button {
    background: #2d5865;
    width: 40px;
    height: 40px;
    border-radius: 20px;
	display: inline-block;
	text-align: center;
    line-height: 40px;
    color: #FFF;
    font-size: 20px;
	cursor: pointer;
}

.home_button:hover {
    background: #1d4855;
}

.speechable {
	opacity: 0.3;
	transition: all 0.2s;
  text-shadow: 0 0 0px rgba(255,255,255,0);
}
.speechable.valid {
	opacity: 1;
}
.speechable.active {
    color: #ffcf18;
    text-shadow: 0 0 14px rgba(255,255,255,0.6);
}

.finished {
	transition: transform 0.2s;
	transform: scale(0);
	flex: 1;
    text-align: center;
    font-size: 20px;
}

.finished.show {
	transform: scale(1);
}

.titlescore {
    font-size: 14px;
    margin-bottom: 5px;
    color: #444;
}

.score {
    font-size: 34px;
    margin-bottom: 5px;
    font-weight: bold;
}

.inline-win {
    font-size: 13px;
    color: #777;
}

.inline-win span {
    font-size: 15px;
    color: #000;
	font-weight: bold;
}

.table {
    max-width: 250px;
    width: 100%;
    text-align: left;
    display: inline-block;
    font-size: 17px;
    color: #777;
}

.table span {
    font-size: 15px;
    color: #000;
	font-weight: bold;
	float: right;
}

.separator {
	margin: auto;
    width: 40px;
    border-bottom: 1px solid #888;
	margin-top: 12px;
	margin-bottom: 10px;
}

.liketitle {
    font-size: 16px;
    color: #444;
    margin-top: 15px;
}


.voteup, .votedown {
    border-radius: 50%;
    color: #FFF;
    width: 35px;
    height: 35px;
    font-size: 20px;
    line-height: 35px;
	display: inline-block;
	margin: 20px 5px;
}

.voteup {
	background: #444;
}

.votedown {
	background: #444;
}

.voteup.done {
	background: #00a428;
}

.votedown.done {
	background: #f42800;
}

/* pixelart */

.pixelmain{
	flex:1;
	position:relative;
	display: flex;
	flex-direction: row;
}

.pixelmain .left-arrow{
	cursor: pointer;
    width: 40px;
    background: url(../imgs/left.svg);
    height: 100%;
    display: block;
    background-position: center;
    background-size: 30px;
    background-repeat: no-repeat;
	opacity: 0.6;
}

.pixelmain .right-arrow{
	cursor: pointer;
    width: 40px;
    background: url(../imgs/right.svg);
    height: 100%;
    display: block;
    background-position: center;
    background-size: 30px;
    background-repeat: no-repeat;
	opacity: 0.6;
}

.pixelmain .arts {
	transition: opacity 0.2s;
	flex: 1;
	position: relative;
}

.pixelart_page {
	position:absolute;
	height: 100%;
	width: 100%;
	top: 0;
	left: 0;
	display: flex;
	flex-direction: column;
}

.pixelart_page.free_limit {
	font-size: 23px;
    text-align: center;
    height: 140px;
    padding: 20px;
    margin: auto;
    top: 0;
    bottom: 0;
    box-sizing: border-box;
    color: #666;
}

.pixelart_page .number {
	height: 40px;
	text-align: center;
	color: #666;
	font-size: 14px;
}

.board {
	background-color: rgba(255,255,255,0.3);
	background-size: cover;
	background-position: center;
	transition: all 0.2s;
	position: relative;
	margin: auto;
	left: 0;
	right: 0;
	bottom: 0;
	top: 0;
	width: 200px;
	height: 200px;
	text-align: center;
	line-height: 200px;
	transform: scale(1);
}

.board .pixelate {
	height: 100%;
	width: 100%;
	background-size: cover;
    background-position: center;
	background-color: #FFF;
	opacity: 1;
	transition: all 0.2s;
	image-rendering: pixelated;
}

.board.taped {
	background-color: rgba(255,255,255,0.8);
}

.board.real {
	background-color: rgba(255,255,255,1);
	image-rendering: pixelated;
}

.board.real div {
	opacity: 0;
}

.pixremaining {
	margin-top: 20px;
	line-height: 30px;
	height: 70px;
    text-align: center;
    color: #777;
}

.js-pixelsavailables {
	font-size: 13px;
}

.js-pixelsavailables.red {
	font-size: 13px;
	color: #F00;
}

.pixelart_page {
 	transition: all 0.2s;
	opacity: 1;
}

.pixelart_page.left {
	transform: translateX(-100%);
	pointer-events: none;
	opacity: 0;
}

.pixelart_page.right {
	transform: translateX(100%);
	pointer-events: none;
	opacity: 0;
}

.pixelart_page .sentence {
	transition: all 0.2s;
    display: flex;
    max-width: 350px;
    width: 100%;
    flex-direction: row;
    margin: auto;
    left: 0;
    right: 0;
	opacity: 0;
	height: 0px;
}

.pixelart_page .sentence.visible {
	opacity: 1;
	height: 100px;
}

.pixelart_page .sentence .phrase {
	flex: 1;
	line-height: 80px;
	margin-right: 10px;
}
.pixelart_page .sentence .phrase span {
	line-height: 20px;
    margin-right: 0px;
    display: inline-block;
    vertical-align: middle;
}

.pixelart_page .sentence .mic-contener {
	width: 30px;
	line-height: 80px;
}

.mic-contener .speak_button {
	background: #ff006e;
    border-radius: 50%;
    color: #FFF;
    text-align: center;
    height: 35px;
    width: 35px;
    line-height: 35px;
    font-size: 21px;
	display: inline-block;
}

.mic-contener .speak_button:hover {
	background: #ef005e;
}

.apx {
	transition: opacity 0.2s;
	box-sizing: border-box;
	/*border: 1px solid #444;*/
	border-top: none;
	border-left: none;
    background: #000;
    position: absolute;
	animation: pxappear 1s;
}


@keyframes pxappear {
from, 20%, 40%, 60%, 80%, to {
    -webkit-animation-timing-function: cubic-bezier(0.215, 0.610, 0.355, 1.000);
    animation-timing-function: cubic-bezier(0.215, 0.610, 0.355, 1.000);
  }

  0% {
    opacity: 0;
    -webkit-transform: scale3d(.3, .3, .3);
    transform: scale3d(.3, .3, .3);
  }

  20% {
    -webkit-transform: scale3d(1.1, 1.1, 1.1);
    transform: scale3d(1.1, 1.1, 1.1);
  }

  40% {
    -webkit-transform: scale3d(.9, .9, .9);
    transform: scale3d(.9, .9, .9);
  }

  60% {
    opacity: 1;
    -webkit-transform: scale3d(1.03, 1.03, 1.03);
    transform: scale3d(1.03, 1.03, 1.03);
  }

  80% {
    -webkit-transform: scale3d(.97, .97, .97);
    transform: scale3d(.97, .97, .97);
  }

  to {
    opacity: 1;
    -webkit-transform: scale3d(1, 1, 1);
    transform: scale3d(1, 1, 1);
  }
}


/* other */

.links {
	font-size: 12px;
	margin-top: 30px;
}

a {
	color: cornflowerblue;
	text-decoration: none;
}

.errors {
	font-size: 13px;
	color: darkred;
}

.errors .error {
	display: none;
	margin-top: 5px;
}

/*
Icons
*/

.stars {
	transition: opacity 0s;
	opacity: 1;
	width: 100%;
	text-align: left;
	margin-top: 40px;
	margin-left: 20px;
}

.stars.fadeout {
	transition: opacity 1s;
	opacity: 0;
}

.fave.star {
  width: 70px;
  height: 50px;
  background: url(../imgs/star.png) no-repeat;
  background-position: 0 0;
  margin-left: -40px;
	display: inline-block;
}

.fave.star.done {
  background-position: -3519px 0;
  transition: background 1s steps(55);
}

.fave.heart {
	width: 100px;
  height: 100px;
  background: url(../imgs/heart.png) no-repeat;
  background-position: 0 0;
  display: inline-block;
  margin-left: -55px;
  margin-bottom: -25px;
}

.fave.heart.done {
  background-position: -2800px 0;
  transition: background 1s steps(28);
  -webkit-transition-delay: 2s; /* Safari */
  transition-delay: 0.3s;
}

@keyframes fail {
    0% {transform: scale(1);opacity:1;}
		20% {transform: scale(0.9);opacity:0.9;}
   100% {transform: scale(0.9);opacity:0;}
}

.fail span {
	color: #600;
	font-weight: bold;
	font-size: 25px;
	position: absolute;
	animation-name: fail;
  animation-duration: 3s;
}

.fail {
	z-index: 100;
	position: absolute;
	text-shadow: 0 0 5px rgba(255,255,255,1);
}
