/* colors */
.a, .a-x {background: #D32;}
.b, .b-x {background: #F71;}
.c, .c-x {background: #FB2;}
.d, .d-x {background: #098;}
.e, .e-x {background: #07B;}
.f, .f-x {background: #939;} /*-*/
.g, .g-x {background: #8AB;}
.h, .h-x {background: #567;}
.k {background: #000;}
.y {background: #CCC;}
.w {background: #fffdf1; border:0px;}

.logo{
	display: block;
	width: 135px;
	float: left;
	margin: 0px;
}

controls {
	float: right;	
  	display: table;
    text-align: right;
    margin: 13px 0px 0px 0px;
    width: 130px;
    line-height: 27px;
	font-size: 16px;
}

board {
  display: flex;
  flex-flow: row wrap;
  height: 280px;
  width: 280px;
  border: 1ch solid;
  background: #FFF;
  transition: 3s;
  transform:rotate(0deg);
}

.lrecordes{
	display: block;
    color: #6f7471;
    text-align: right;
	font-size: 14px;
    height: 16px;
}
.lrecordes i{
	display: table;
    float: right;
}
	
tile {
	display: flex;
	align-items: center;
	justify-content: center;
	width:10%;
	height: 10%;
	transition: background 200ms linear;
	border:1px dotted rgba(0,0,0,0.1);
}

.a-x, .b-x, .c-x, .d-x, .e-x, .f-x, .g-x, .h-x{
	border:0px;
	content: ".";
}

board:not(.started) tile:first-of-type::after {
  font-size: 1.1em;
}

colors {
    display: table;
    text-align: center;
    margin: 5px auto 0px auto;
    max-width: 240px;
}

color {
	width: 45px;
    height: 40px;
    display: inline-table;
    margin: 2px 4px;
}

.new-game {
  cursor: pointer;
}

main {
	display:none;
	position: absolute;
	top: 0px;
    width: 280px;
    margin-left: -140px;
    left: 50%;
}

html, body {height: 100%}
html {font-size: 10px}
body {
  margin: 0;
  font-size: calc(1.5em + 1vmin);
  font-family: Calibri, Helvetica, FontAwesome, sans-serif;
  display: flex;
  justify-content: center;
  background: #212429; /*#353539;*/
  color: #fffced;
}

h1{
	clear: both;
	margin-top: 30px;	
}

game-over {
  pointer-events: none;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 4em;
}

.fa {
  pointer-events: auto;
}

span.recorde{
	display: none;
    position: absolute;
    background-color: rgba(0,0,0,0.90);
    background-image: url(reward_fire.png);
    background-size: 150%;
    background-position: center;
    background-repeat: no-repeat;
    width: 100vw;
    height: 100vh;
    z-index: 1;
}
	span.recorde .recordePainel{
		display: block;
    	background: url(reward.png) no-repeat;
    	background-size: 285px auto;
    	width: 280px;
    	height: 385px;
    	padding: 1px;
    	margin: calc(50vh - 190px) auto 0px auto;
	}
	span.recorde .recordePainel b{
		display: block;
    	color: #3f3f3f;
    	margin: 12px 0px 20px 0px;
    	text-align: center;
    	font-size: 20px;
	}
	span.recorde .recordePainel b.txtGanhou{
    	margin-top: 12px;
    	font-size: 12px;
		color: #FFF;
	}
	span.recorde .recordePainel b.txtFase{ color: #FFF; }
	span.recorde .recordePainel b.txtEstrelas{
		margin-top: 0px;
    	height: 40px;
	}
	span.recorde .recordePainel b.txtEstrelas img{ width: 110px; }
	span.recorde .recordePainel b.txtRecorde{
		margin: 0px;
    	font-size: 38px;
	}
	span.recorde .recordePainel b.txtToques{
		font-size: 15px;
		margin: 0px 0px -14px 0px;
	}
    span.recorde .recordePainel b.txtRecTotal{
    	margin-top: 8px;
		font-size: 12px;
	}
	span.recorde .recordePainel b.txtContinuar{
	    margin-top: 30px;
    	font-size: 26px;
    	color: #FFF;	
	}

.ranking ul{
	margin-bottom:100px;
	text-align: center;
}
.ranking ul li{
	padding: 0px;	
    margin: 5px 2px;
    width: 56px;
    height: 78px;
    display: inline-block;
}
.ranking ul li b{
	display: block;
    text-align: center;
    font-size: 30px;
    line-height: 42px;
}
.ranking ul li i{
	font-size: 11px;
    display: block;
    background: rgba(0, 0, 0, 0.6);
    text-align: center;
    line-height: 18px;
    box-shadow: 0px -2px 1px 0px #000;
}
ul.mfases li i img {
    height: 15px;
    margin: 0px 0px -6px 0px;
}

div.menu{
	position: absolute;
	display: none;
    top: 0;
    left: 0;
    z-index: 1;
    background: #000;
    width: 100vw;
    height: 100vh;
}
div.menu img.logo, div.ranking img.logo{
	display: block;
    margin: 25px auto 20px auto;
    width: 200px;
    float: none;
}
div.menu img.btidioma{
	display: block;
    margin: 0px auto 20px auto;
    width: 50px;
}
div.menu img.btpontos, div.menu img.btranking,div.menu img.btconquistas, div.menu img.btjogar{
	display: block;
    margin: 0px auto 10px auto;
    width: 150px;
}

div.ranking{
	display: none;
	position: absolute;
    z-index: 1;
    background: #000;
    width: 100vw;
	min-height: 100vh;
	text-align: center;
    padding: 0px 40px 30px 40px;
}

.sobre{
	display: none;
    position: absolute;
    z-index: 1;
    background: #000;
    width: 100vw;
    padding: 30px 40px;
    font-size: 18px;
    line-height: 25px;
    text-align: justify;
}
.sobre img{
	width: 90px;
    display: block;
    margin: 0px auto;
}
.sobre i{
	display: block;
    text-align: center;
}

.btSobre{
	position: absolute;
    bottom: 20px;
    right: 20px;
    z-index: 10;
    color: #9E9E9E;
    display: none;
}

img.monstrotumb, img.monstrotumbpb {
    width: 17vw;
    margin: 0.5px 2px;
}
img.monstrotumbpb{opacity: 0.1}

img.monstrofim{
	position: absolute;
    display: none;
    z-index: 1;
    width: 280px;
    top: 116px;
	opacity: 0;
}

#wdPlayerToque{ display: none; }

.medalha {
    display: block;
    width: 280px;
    height: 5px;
    margin: 90px 0px 5px 0px;
}
	.medalha img {
		height: 18px;
		position: absolute;
		top: 91px;
	}
    .medalha img.s3 { left: calc( 50% - 22px); }
	.medalha img.s2 { left: calc( 75% - 14px); }
	.medalha img.s1 { left: calc(100% -  6px); }
     
	.medalha .barra {
		background: #999;
		height: 5px;
	}
	.medalha .barra span {
		display: block;
		background: #f6a12d;
		height: 5px;
		width: 45%;
		transition: 1s;
	}

.max-moves{display:none;
	
}

.faseDescr{
	position: absolute;
    display: none;
    background: rgba(255,255,255,0.95);
    width: 280px;
    height: 100px;
    top: 10px;
    color: #000;
    text-align: center;
    opacity: 0;
    z-index: 1;
    margin:0px auto;
    border-radius: 6px;
}

.faseDescr b{
	display: block;
    font-size: 40px;
    margin: 10px 0px;
}
.faseDescr i{
    font-size: 20px;
    margin: 0px 10px;
}

.idiomaAtual{
	opacity: 0;
	width: 1px;
    height: 1px;
}

@keyframes shake {
    0% { transform: translate(1px, 1px) rotate(0deg); }
    10% { transform: translate(-1px, -2px) rotate(-1deg); }
    20% { transform: translate(-3px, 0px) rotate(1deg); }
    30% { transform: translate(3px, 2px) rotate(0deg); }
    40% { transform: translate(1px, -1px) rotate(1deg); }
    50% { transform: translate(-1px, 2px) rotate(-1deg); }
    60% { transform: translate(-3px, 1px) rotate(0deg); }
    70% { transform: translate(3px, 1px) rotate(-1deg); }
    80% { transform: translate(-1px, -1px) rotate(1deg); }
    90% { transform: translate(1px, 2px) rotate(0deg); }
    100% { transform: translate(1px, -2px) rotate(-1deg); }
}

@keyframes monstro {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

@keyframes fogos {
    0% { background-size:50%;}
    100% { background-size:150%;}
}

@keyframes destaque {
    000% { opacity: 0; }
    010% { opacity: 1; }
    020% { opacity: 0; }
    030% { opacity: 1; }
    040% { opacity: 0; }
    050% { opacity: 1; }
    060% { opacity: 0; }
    070% { opacity: 1; }
    080% { opacity: 0; }
    090% { opacity: 1; }
    100% { opacity: 0; }
}