/**
 * Memory Game v1.0
 * Most modern mobile compatible Memory Game with hardware accelerated transitions
 *
 * Copyright 2018 Ricardo Cardoso
 *
 * Released on: April 18, 2018
 * Location: Porto Editora
*/

/* Reset Box Model */
*{
	-moz-box-sizing:border-box;
	box-sizing:border-box;	
}
/* End Reset Box Model */

/* Clear Floats Utility */
.clearfix{
	width:100%;
	display:inline-block;
}
.clearfix:after{
	visibility:hidden;
	content:" ";
	display:block;
	font-size:0;
	height:0;
	clear:both;
}

body{
	position: relative;
	padding: 0 20px 0 20px;
	margin:0;
	background: #9B89FC;
	/*background-image: url(../src/memory_game_img00_padrao_sobre_fundo_azul_v2.svg);*/
	background-repeat: no-repeat;
	background-position: center center;
	background-size: cover;
	font-family: 'Open Sans', sans-serif;
}

#rotateMsg{
	display: none;
	position: fixed;
	top:0;
	left:0;
	bottom:0;
	right:0;
	width: 100%;
	height: 100vh;
	background-color: rgba(255,255,255, 0.95);
	z-index: 999999;
	-webkit-animation: fade-in 800ms cubic-bezier(.29,0,.35,1.5);
	-moz-animation: fade-in 800ms cubic-bezier(.29,0,.35,1.5);
	animation: fade-in 800ms cubic-bezier(.29,0,.35,1.5);
}

#rotateMsg .content{
	display: table-cell;
	vertical-align: middle;
	text-align: center;
	padding: 15px;
}

#rotateMsg .content img{
	display: inline-block;
	width: 100%;
	max-width: 200px;
	height: auto;
	-webkit-animation-name: wave; /* Chrome, Safari, Opera */
    -webkit-animation-duration: 2s; /* Chrome, Safari, Opera */
    -webkit-animation-iteration-count: 1; /* Chrome, Safari, Opera */
    animation-name: wave;
    animation-duration: 2s;
    animation-iteration-count: 1;
}

@keyframes wave {
	0% {
    -ms-transform: rotate(0deg); /* IE 9 */
    -webkit-transform: rotate(0deg); /* Chrome, Safari, Opera */
    transform: rotate(0deg);
    }
	25% {
    -ms-transform: rotate(35deg); /* IE 9 */
    -webkit-transform: rotate(35deg); /* Chrome, Safari, Opera */
    transform: rotate(35deg);
    }
	50% {
    -ms-transform: rotate(0deg); /* IE 9 */
    -webkit-transform: rotate(0deg); /* Chrome, Safari, Opera */
    transform: rotate(0deg);
    }
	75% {
    -ms-transform: rotate(35deg); /* IE 9 */
    -webkit-transform: rotate(35deg); /* Chrome, Safari, Opera */
    transform: rotate(35deg);
    }
	100% {
    -ms-transform: rotate(0deg); /* IE 9 */
    -webkit-transform: rotate(0deg); /* Chrome, Safari, Opera */
    transform: rotate(0deg);
    }
}

#rotateMsg .content p{
	font-family: 'Open Sans', sans-serif;
	font-size: 23px;
	line-height: 23px;
}

/* Menu */
.menu{
	position: absolute;
	top:0;
	right:0;
	bottom:0;
	left:0;
	background-color: rgba(0,0,0,0.50);
	z-index: 1000;
}

.menu .main{
	position: relative;
	display: table;
	width: 100%;
	height: 100%;
	font-family: 'Open Sans', sans-serif;
}

.menu .main .mainContent{
	display: table-cell;
	vertical-align: middle;
	position: relative;
	margin: auto;
    max-width: 100%;
	font-size: 14px;
	line-height: 16px;
	width: 100%;
	height: 100%;
	/*background-image: url(../src/memory_game_img00_padrao_sobre_fundo_cinza_v2.svg);*/
	background-repeat: no-repeat;
	background-position: center center;
	background-size: cover;
	background-color: #9B89FC;
	-webkit-box-shadow: 0px 0px 50px 0px rgba(0,0,0,0.75);
	-moz-box-shadow: 0px 0px 50px 0px rgba(0,0,0,0.75);
	box-shadow: 0px 0px 50px 0px rgba(0,0,0,0.75);
	overflow: auto;
}

.menu .main .mainContent .content{
	position: relative;
	margin: auto;
	font-size: 14px;
	line-height: 16px;
	text-align: center;
	padding: 15px;
}

.menu .main .mainContent .content img{
	margin-bottom: 30px;
}

.menu .main .mainContent .content .start {
	display: inline-block;
	width: 100%;
	max-width: 350px;
	height: 60px;
	margin-top: 50px;
	text-align: center;
	text-decoration: none;
	font-size: 26px;
	color: #FFFFFF;
	line-height: 55px;
	border-radius: 30px;
	border: 2px #FFFFFF solid;
	background: rgba(0,0,0,0);
	z-index: 100;
	cursor: pointer;
	-webkit-transition: -webkit-transform ease-out .1s,background .2s;
	-moz-transition: -moz-transform ease-out .1s,background .2s;
	transition: transform ease-out .1s,background .2s;
	-webkit-animation: breathing 4s ease-out infinite;
	-moz-animation: breathing 4s ease-out infinite;
	animation: breathing 4s ease-out infinite;
}

.menu .main .mainContent .content .startBef {
	display: inline-block;
	width: 100%;
	max-width: 350px;
	height: 60px;
	margin-top: 25px;
	text-align: center;
	text-decoration: none;
	font-size: 26px;
	color: #FFFFFF;
	line-height: 55px;
	border-radius: 30px;
	border: 2px #FFFFFF solid;
	background: rgba(0,0,0,0);
	z-index: 100;
	cursor: pointer;
	-webkit-transition: -webkit-transform ease-out .1s,background .2s;
	-moz-transition: -moz-transform ease-out .1s,background .2s;
	transition: transform ease-out .1s,background .2s;
	-webkit-animation: breathing 4s ease-out infinite;
	-moz-animation: breathing 4s ease-out infinite;
	animation: breathing 4s ease-out infinite;
}

.menu .main .mainContent .content .btPlayer {
	display: inline-block;
	width: 100%;
	max-width: 350px;
	margin-bottom: 40px;
	text-align: center;
	text-decoration: none;
	font-size: 26px;
	color: #FFFFFF;
	line-height: 26px;
	padding: 15px;
	border-radius: 30px;
	border: 2px #FFFFFF solid;
	background: rgba(0,0,0,0);
	z-index: 100;
	cursor: pointer;
	opacity: 0.8;
}

.menu .main .mainContent .content .btPlayer:hover {
	opacity: 1;
}

.menu .main .mainContent .content .btPlayer.selected {
	border: 2px #EFC418 solid;
	color: #EFC418;
	opacity: 1;
}

.menu .main .mainContent .content .btTheme {
	display: inline-block;
	width: 100%;
	max-width: 350px;
	margin-bottom: 15px;
	text-align: center;
	text-decoration: none;
	font-size: 26px;
	color: #FFFFFF;
	line-height: 26px;
	padding: 15px;
	border-radius: 30px;
	border: 2px #FFFFFF solid;
	background: rgba(0,0,0,0);
	z-index: 100;
	cursor: pointer;
	opacity: 0.8;
}

.menu .main .mainContent .content .btTheme:hover {
	opacity: 1;
}

.menu .main .mainContent .content .btTheme.selected {
	border: 2px #EFC418 solid;
	color: #EFC418;
	opacity: 1;
}

.menu .main .mainContent .content .btDif {
	display: inline-block;
	width: 100%;
	max-width: 350px;
	margin-bottom: 15px;
	text-align: center;
	text-decoration: none;
	font-size: 26px;
	color: #FFFFFF;
	line-height: 26px;
	padding: 15px;
	border-radius: 30px;
	border: 2px #FFFFFF solid;
	background: rgba(0,0,0,0);
	z-index: 100;
	cursor: pointer;
	opacity: 0.8;
}

.menu .main .mainContent .content .btDif:hover {
	opacity: 1;
}

.menu .main .mainContent .content .btDif.selected {
	border: 2px #EFC418 solid;
	color: #EFC418;
	opacity: 1;
}

.menu.closed{
	position: fixed;
	overflow: hidden;
	-webkit-animation: slideDown 800ms cubic-bezier(.29,0,.35,1.5);
	-moz-animation: slideDown 800ms cubic-bezier(.29,0,.35,1.5);
	animation: slideDown 800ms cubic-bezier(.29,0,.35,1.5);
}

#evLogo{
	position: absolute;
	top:15px;
	right:15px;
}

#splashSreen.closed{
	-webkit-animation: slideDown 800ms cubic-bezier(.29,0,.35,1.5);
	-moz-animation: slideDown 800ms cubic-bezier(.29,0,.35,1.5);
	animation: slideDown 800ms cubic-bezier(.29,0,.35,1.5);
}

#playerSelect{
	-webkit-animation: fade-in 800ms cubic-bezier(.29,0,.35,1.5);
	-moz-animation: fade-in 800ms cubic-bezier(.29,0,.35,1.5);
	animation: fade-in 800ms cubic-bezier(.29,0,.35,1.5);
}

#themeSelect{
	-webkit-animation: fade-in 800ms cubic-bezier(.29,0,.35,1.5);
	-moz-animation: fade-in 800ms cubic-bezier(.29,0,.35,1.5);
	animation: fade-in 800ms cubic-bezier(.29,0,.35,1.5);
}

#themeSelect h1{
	display: block;
	margin: auto;
	color: #FFFFFF;
	font-size: 42px;
	line-height: 40px;
	margin-bottom: 50px;
	font-weight: 300;
	
}

#difSelect{
	-webkit-animation: fade-in 800ms cubic-bezier(.29,0,.35,1.5);
	-moz-animation: fade-in 800ms cubic-bezier(.29,0,.35,1.5);
	animation: fade-in 800ms cubic-bezier(.29,0,.35,1.5);
}

#difSelect h1{
	display: block;
	margin: auto;
	color: #FFFFFF;
	font-size: 42px;
	line-height: 40px;
	margin-bottom: 50px;
	font-weight: 300;
	
}

#inputNames{
	-webkit-animation: fade-in 800ms cubic-bezier(.29,0,.35,1.5);
	-moz-animation: fade-in 800ms cubic-bezier(.29,0,.35,1.5);
	animation: fade-in 800ms cubic-bezier(.29,0,.35,1.5);
}


#inputNames h2{
	display: block;
	margin: auto;
	color: #FFFFFF;
	font-size: 32px;
	line-height: 30px;
	margin-bottom: 25px;
	font-weight: 800;
	
}

#inputNames label{
	display: block;
	margin: auto;
	color: #FFFFFF;
	font-size: 26px;
	line-height: 26px;
	margin-bottom: 15px;
	font-weight: 800;
	
}

#inputNames input{
	display: inline-block;
	margin:0 15px 25px 15px;
	color: #FFFFFF;
	font-size: 20px;
	line-height: 20px;
	padding: 5px 15px 5px 15px;
	height: 60px;
	font-weight: 300;
	background-color: transparent;
	border:1px solid rgba(255,255,255,0.3);
	outline:0;
}

#inputNames input:focus,
#inputNames input:active{
	border:1px solid rgba(255,255,255,0.8);
	outline:0;
}

#inputNames input::placeholder{
	color: rgba(255,255,255,0.8);
	font-weight: 300;
}

#playerSplash h1{
	display: block;
	margin: auto;
	color: #FFFFFF;
	font-size: 38px;
	line-height: 40px;
	margin-bottom: 0;
	font-weight: 800;
	opacity: 0;
	transform:translateY(-25px);
	-webkit-animation: light-slideDown-2 800ms cubic-bezier(.29,0,.35,1.5);
	-moz-animation: light-slideDown-2 800ms cubic-bezier(.29,0,.35,1.5);
	animation: light-slideDown-2 800ms cubic-bezier(.29,0,.35,1.5);
	animation-fill-mode: forwards;
	animation-delay: 500ms;
}

#playerSplash p{
	display: block;
	margin: auto;
	color: #FFFFFF;
	font-size: 28px;
	line-height: 30px;
	margin-bottom: 40px;
	font-weight: 300;
	transform:translateY(-25px);
	-webkit-animation: light-slideDown-2 800ms cubic-bezier(.29,0,.35,1.5);
	-moz-animation: light-slideDown-2 800ms cubic-bezier(.29,0,.35,1.5);
	animation: light-slideDown-2 800ms cubic-bezier(.29,0,.35,1.5);
	animation-fill-mode: forwards;
	animation-delay: 800ms;
	opacity: 0;
}

#playerSplash h2{
	display: block;
	margin: auto;
	color: #FFFFFF;
	font-size: 58px;
	line-height: 60px;
	font-weight: 800;
	transform:translateY(-25px);
	-webkit-animation: light-slideDown-2 800ms cubic-bezier(.29,0,.35,1.5);
	-moz-animation: light-slideDown-2 800ms cubic-bezier(.29,0,.35,1.5);
	animation: light-slideDown-2 800ms cubic-bezier(.29,0,.35,1.5);
	animation-fill-mode: forwards;
	animation-delay: 1000ms;
	opacity: 0;
}

#beforeScreen{
	width: 100%;
	max-width: 800px;
	margin: auto;
	padding: 15px;
	-webkit-animation: fade-in 800ms cubic-bezier(.29,0,.35,1.5);
	-moz-animation: fade-in 800ms cubic-bezier(.29,0,.35,1.5);
	animation: fade-in 800ms cubic-bezier(.29,0,.35,1.5);
}

#beforeScreen h1{
	display: block;
	margin: auto;
	color: #FFFFFF;
	font-size: 38px;
	line-height: 40px;
	margin-bottom: 50px;
	font-weight: 300;
	opacity: 0;
	transform:translateY(-25px);
	-webkit-animation: light-slideDown-2 800ms cubic-bezier(.29,0,.35,1.5);
	-moz-animation: light-slideDown-2 800ms cubic-bezier(.29,0,.35,1.5);
	animation: light-slideDown-2 800ms cubic-bezier(.29,0,.35,1.5);
	animation-fill-mode: forwards;
	animation-delay: 0ms;
}

#beforeScreen p{
	display: block;
	margin: auto;
	color: #FFFFFF;
	font-size: 18px;
	line-height: 25px;
	margin-bottom: 15px;
	font-weight: 300;
	transform:translateY(-25px);
	-webkit-animation: light-slideDown-2 800ms cubic-bezier(.29,0,.35,1.5);
	-moz-animation: light-slideDown-2 800ms cubic-bezier(.29,0,.35,1.5);
	animation: light-slideDown-2 800ms cubic-bezier(.29,0,.35,1.5);
	animation-fill-mode: forwards;
	animation-delay: 100ms;
	opacity: 0;
}

#beforeScreen h2{
	display: block;
	margin: auto;
	color: #FFFFFF;
	font-size: 28px;
	line-height: 30px;
	font-weight: 300;
	transform:translateY(-25px);
	-webkit-animation: light-slideDown-2 800ms cubic-bezier(.29,0,.35,1.5);
	-moz-animation: light-slideDown-2 800ms cubic-bezier(.29,0,.35,1.5);
	animation: light-slideDown-2 800ms cubic-bezier(.29,0,.35,1.5);
	animation-fill-mode: forwards;
	animation-delay: 500ms;
	opacity: 0;
}


/* End Menu */

.fullScreen{
	display: table;
	width: 100%;
	padding: 0;
	margin: 0;
}

.fullScreen .alignCenter{
	width: 100%;
	display: table-cell;
	vertical-align: middle;
	padding: 0;
	margin: 0;
}

header{
	display: table;
	width: 100%;
	/*background-color: #575757;*/
	color: #FFFFFF;
	font-family: 'Open Sans', sans-serif;
	overflow: auto;
}

header .content{
	position: relative;
	display: table-cell;
	vertical-align: middle;
	width: 100%;
	/*background-color: #575757;*/
	color: #FFFFFF;
	font-family: 'Open Sans', sans-serif;
	height: 90px;
}

header .content p.time{
	position: absolute;
	top:0;
	left:0;
	color: #18B3FB;
	text-align: left;
	font-size: 22px;
	line-height: 22px;
}

header .content p.player{
	position: absolute;
	top:0;
	right:0;
	text-align: left;
	font-size: 22px;
	line-height: 22px;
	color: #18B3FB;
}

header .content p.player #currentPlayer{
	color: #FFFFFF;
}

header .content h1{
	color: #FFFFFF;
	text-align: center;
	font-size: 34px;
	line-height: 34px;
	font-weight: 300;
}

header .content h1 span{
	color: #18B3FB;
}

footer{
	position: fixed;
	bottom:0;
	left:0;
	width: 100%;
	height: 50px;
	background-color: #2E5894;
	color: #FFFFFF;
	text-align: center;
	font-family: 'Open Sans', sans-serif;
	font-size: 26px;
	line-height: 50px;
	z-index: 100;
}

footer p span{
	margin-right: 50px;
}

.stats{
	position: absolute;
	bottom: 5px;
	right: 5px;
	display:block;
	height:40px;
	font-size:20px;
	font-family: 'Open Sans', sans-serif;
	line-height:40px;
	padding:0 15px 0 15px;
	text-align:center;
	color:#FFFFFF;
	background:#87CA23;
	z-index:5;
	-webkit-box-shadow: 1px 1px 5px 0px rgba(0,0,0,0.39);
	-moz-box-shadow: 1px 1px 5px 0px rgba(0,0,0,0.39);
	box-shadow: 1px 1px 5px 0px rgba(0,0,0,0.39);
	cursor: pointer;
	-webkit-animation: fade-in 1000ms linear forwards;
	-moz-animation: fade-in 1000ms linear forwards;
	animation: fade-in 1000ms linear forwards;
	-webkit-animation-delay: 800ms;
	-moz-animation-delay: 800ms;
	animation-delay: 800ms;
	opacity:0;
}

.stats:hover{
	background: #A2C968;
	-webkit-box-shadow: 1px 1px 5px 0px rgba(0,0,0,0.5);
	-moz-box-shadow: 1px 1px 5px 0px rgba(0,0,0,0.5);
	box-shadow: 1px 1px 5px 0px rgba(0,0,0,0.5);
}

@keyframes fade-in {
  0% {
    opacity:0;
	
  }
	
  100% {
    opacity:1;
  }
}

.Game{
	margin: auto;
	text-align: center;
	max-width: 727px;
	padding:20px;
	position: relative;
	width: 100%;
	background-color: #333333;
	border-radius: 20px;
}

.board{
	/*background-color: aqua;*/
	margin: auto;
	text-align: center;
	width: 100%;
	padding:0;
	position: relative;
}

.card {
	position: relative;
    width: 19%;
	height: 24%;
    margin: 0.5%;
	-webkit-perspective: 260px;
	perspective: 260px;
    -webkit-transform-style: preserve-3d;
    display:block;
	float: left;
	text-align: center;
	font-family: 'Open Sans', sans-serif;
	cursor: pointer;
}

.front {
  	backface-visibility: hidden;
	-webkit-backface-visibility: hidden;
	-moz-backface-visibility: hidden;
	-ms-backface-visibility: hidden;
	-o-backface-visibility: hidden;
  	position: absolute;
  	top: 0;
  	left: 0;
  	right: 0;
  	bottom: 0;
  	-webkit-transition: all 0.5s ease-in-out;
	-moz-transition: all 0.5s ease-in-out;
	-ms-transition: all 0.5s ease-in-out;
	-o-transition: all 0.5s ease-in-out;
  	transition: all 0.5s ease-in-out;
	
	-webkit-box-shadow: 0px 1px 4px 0px rgba(0,0,0,0.5);
	-moz-box-shadow: 0px 1px 4px 0px rgba(0,0,0,0.5);
	box-shadow: 0px 1px 4px 0px rgba(0,0,0,0.5);
	border-radius: 8px;
	background: #18B3FB;
	overflow: hidden;
	background-size: cover;
	background-repeat: no-repeat;
	background-position: top center;
	-webkit-transform: rotateY(0);
	-moz-transform: rotateY(0);
	-ms-transform: rotateY(0);
	-o-transform: rotateY(0);
	transform: rotateY(0);
  	z-index: 2;
}

.card.fliped .front,
.card.guessed .front {
  -webkit-transform: rotateY(180deg);
  -moz-transform: rotateY(180deg);
  -ms-transform: rotateY(180deg);
  -o-transform: rotateY(180deg);
  transform: rotateY(180deg);
}
.card.fliped .back,
.card.guessed .back {
  -webkit-transform: rotateY(0);
  -moz-transform: rotateY(0);
  -ms-transform: rotateY(0);
  -o-transform: rotateY(0);
  transform: rotateY(0);
}

.card *{
	backface-visibility: hidden;
	-webkit-backface-visibility: hidden;
	-moz-backface-visibility: hidden;
	-ms-backface-visibility: hidden;
	-o-backface-visibility: hidden;
}

.front .circ{
	position: relative;
	top:49%;
	transform: translateY(-50%);
	display: inline-block;
	width: 66%;
	height: 0;
	font-size: 60px;
	line-height: 60px;
	padding-bottom: 66%;
	border-radius: 100%;
	background-color: #46C2FC;
}

.front .number{
	position: absolute;
	bottom:10px;
	right:10px;
	width: 44px;
	height: 44px;
	text-align: center;
	font-size: 24px;
	line-height: 44px;
	color: #393939;
	background-color: rgba(255,255,255,0.6);
	border-radius: 25px;
	content: '1';
}

.back{
	
	backface-visibility: hidden;
	-webkit-backface-visibility: hidden;
	-moz-backface-visibility: hidden;
	-ms-backface-visibility: hidden;
	-o-backface-visibility: hidden;
  	position: absolute;
  	top: 0;
  	left: 0;
  	right: 0;
  	bottom: 0;
  	-webkit-transition: all 0.5s ease-in-out;
	-moz-transition: all 0.5s ease-in-out;
	-ms-transition: all 0.5s ease-in-out;
	-o-transition: all 0.5s ease-in-out;
  	transition: all 0.5s ease-in-out;
	
	-webkit-transform: rotateY(-180deg);
	-moz-transform: rotateY(-180deg);
	-ms-transform: rotateY(-180deg);
	-o-transform: rotateY(-180deg);
	transform: rotateY(-180deg);
	
	padding: 0;
	-webkit-box-shadow: 0px 1px 4px 0px rgba(0,0,0,0.5);
	-moz-box-shadow: 0px 1px 4px 0px rgba(0,0,0,0.5);
	box-shadow: 0px 1px 4px 0px rgba(0,0,0,0.5);
	border-radius: 8px;
	background-color: #EFEFEF;
	overflow: hidden;
}

.back img {
	-webkit-transform: translateX(-50%) translateY(-50%);
	-moz-transform: translateX(-50%) translateY(-50%);
	-ms-transform: translateX(-50%) translateY(-50%);
	-o-transform: translateX(-50%) translateY(-50%);
	transform: translateX(-50%) translateY(-50%);
	position: absolute;
	top: 50%;
	left: 50%;
	z-index: 0;
}

.back img.toBack {
	z-index: -9999;
}

.back img.wide {
    max-width: 100%;
	width: 100%;
    height: auto;
}
.back img.tall {
    max-height: 100%;
	height: 100%;
    width: auto;
}

.back audio {
	position: relative;
  	top: 50%;
    max-width: 100%;
	transform: translateY(-50%);
}

.back audio.hidden {
	display: none;
}

.back p {
	position: relative;
  	top: 50%;
    max-width: 100%;
	transform: translateY(-50%);
	font-size: 14px;
	line-height: 16px;
}

.back h1 {
	position: relative;
  	top: 50%;
    max-width: 100%;
	transform: translateY(-50%);
	font-size: 22px;
	line-height: 25px;
	font-weight: 800;
	color: #FFFFFF;
	margin: 0 5px 0 5px;
}

.back h1.shape {
	min-width: 90%;
	display: inline-block;
	padding: 10px 10px 15px 10px;
	color: #333333;
	background-color: rgba(255,255,255,0.8);
	border-radius: 25px;
}

.back .btAudio{
	position: relative;
  	top: 50%;
    max-width: 100%;
	transform: translateY(-50%);
	display: inline-block;
	width:44px;
	height:44px;
	border-radius: 25px;
	z-index:200;
	cursor: pointer;
	font-size: 22px;
	line-height: 15px;
	color: #FFFFFF;
	text-align: center;
	opacity: 0.95;
	background: url(../src/PlayIco.png) no-repeat #FFFFFF;
	background-position: center center;
	background-size: 30px auto;
}

.back .btAudio:hover{
	opacity: 1;
}


/* Final Feedback */
.finalfeed{
	position: absolute;
	top:0;
	right:0;
	bottom:0;
	left:0;
	background-color: rgba(0,0,0,0.50);
	z-index: 1000;
}

.finalfeed .main{
	display: table;
	position: relative;
	width: 100%;
	height: 100%;
	font-family: 'Open Sans', sans-serif;
	-webkit-animation: slideUp 500ms cubic-bezier(.29,0,.35,1.5);
	-moz-animation: slideUp 500ms cubic-bezier(.29,0,.35,1.5);
	animation: slideUp 500ms cubic-bezier(.29,0,.35,1.5);
}

.finalfeed .main.closed{
	position: fixed;
	overflow: hidden;
	-webkit-animation: slideDown 800ms cubic-bezier(.29,0,.35,1.5);
	-moz-animation: slideDown 800ms cubic-bezier(.29,0,.35,1.5);
	animation: slideDown 800ms cubic-bezier(.29,0,.35,1.5);
}

@keyframes slideUp {
  0% {
    transform:translateY(1500px);
	
  }
	
  100% {
    transform:translateY(0px);
  }
}

@keyframes light-slideUp {
  0% {
    transform:translateY(25px);
  }
	
  100% {
    transform:translateY(0px);
  }
}

@keyframes slideDown {
  0% {
    transform:translateY(0);
	
  }
	
  100% {
    transform:translateY(1500px);
  }
}

@keyframes light-slideDown {
  0% {
    transform:translateY(-25px);
	
  }
	
  100% {
    transform:translateY(0);
  }
}

@keyframes light-slideDown-2 {
  0% {
	  opacity: 0;
    transform:translateY(-25px);
	
  }
	
  100% {
    transform:translateY(0);
	  opacity: 1;
  }
}

.finalfeed .main .mainContent{
	display: table-cell;
	vertical-align: middle;
	position: relative;
	margin: auto;
    max-width: 100%;
	font-size: 14px;
	line-height: 16px;
	width: 100%;
	height: 100%;
	/*background-image: url(../src/memory_game_img00_padrao_sobre_fundo_cinza_v2.svg);*/
	background-repeat: no-repeat;
	background-position: center center;
	background-size: cover;
	background-color: #9B89FC;
	-webkit-box-shadow: 0px 0px 50px 0px rgba(0,0,0,0.75);
	-moz-box-shadow: 0px 0px 50px 0px rgba(0,0,0,0.75);
	box-shadow: 0px 0px 50px 0px rgba(0,0,0,0.75);
	overflow: auto;
}


/*.finalfeed .main .mainContent .close{
	position: absolute;
	top:25px;
	right:25px;
	width: 27px;
	height: 28px;
	cursor: pointer;
}*/

.finalfeed .main .mainContent .content{
	position: relative;
	margin: auto;
	font-size: 14px;
	line-height: 16px;
	text-align: center;
	padding: 15px;
	
}

.finalfeed .main .mainContent .content .playerfeed{
	display: inline-block;
	margin: 0 15px;
}

.finalfeed .main .mainContent .content p {
	font-size: 28px;
	line-height: 30px;
	margin-bottom: 5px;
	color: #FFFFFF;
}

.finalfeed .main .mainContent .content p.playersNames {
	font-size: 28px;
	line-height: 30px;
	margin-bottom: 15px;
	color: #FFFFFF;
	font-weight: 800;
}

.finalfeed .main .mainContent .content p span {
	color: #333333;
}

.finalfeed .main .mainContent .content .star .scoreDiv{
	position: relative;
	z-index: 10;
	width: 100%;
	max-width: 200px;
	padding:0 0 0 0;
	margin: auto;
	transform:translateY(-50px);
	-webkit-animation: light-slideDown 800ms cubic-bezier(.29,0,.35,1.5);
	-moz-animation: light-slideDown 800ms cubic-bezier(.29,0,.35,1.5);
	animation: light-slideDown 800ms cubic-bezier(.29,0,.35,1.5);
	animation-fill-mode: forwards;
	animation-delay: 500ms;
}

.finalfeed .main .mainContent .content .star .shadow{
	display: inline-block;
	width: 350px;
	height: 75px;
	margin-top: -50px;
	background: url(../src/memory_game_img05_desktop.svg) no-repeat;
	/*-webkit-animation: light-slideUp 800ms cubic-bezier(.29,0,.35,1.5);
	-moz-animation: light-slideUp 800ms cubic-bezier(.29,0,.35,1.5);
	animation: light-slideUp 800ms cubic-bezier(.29,0,.35,1.5);
	animation-fill-mode: forwards;
	animation-delay: 500ms;*/
	margin-bottom: 0;
	
}

.finalfeed .main .mainContent .content .star .scoreDiv .scoreMain{
	width: 100%;
	height: 0;
	padding: 0 0 96% 0;
	margin: auto;
	background: url(../src/memory_game_img04_desktop.svg) no-repeat;
	background-size: 100% 100%;
}

.finalfeed .main .mainContent .content .star .scoreDiv p.score {
	font-size: 26px;
	line-height: 26px;
	color: #333333;
	margin: 0 0 15px 0;
	font-weight: 300;
	padding: 30% 0 0 0;
}

.finalfeed .main .mainContent .content .star .scoreDiv p.score span {
	font-size: 65px;
	line-height: 65px;
	color: #333333;
	margin:0;
	font-weight: 800;
}

.finalfeed .mainContent .content img {
	display: inline-block;
	padding: 0;
	margin:0 0 0 0;
	width: 100%;
	max-width: 550px;
}

.score {
	font-size: 57px;
	line-height: 57px;
	margin: 0 0 0 0;
	color: #333333;
}

.exit {
	display: inline-block;
	width: 100%;
	max-width: 350px;
	height: 60px;
	text-align: center;
	text-decoration: none;
	font-size: 26px;
	color: #FFFFFF;
	line-height: 55px;
	border-radius: 30px;
	border: 2px #FFFFFF solid;
	z-index: 100;
	margin-top: 10px;
	cursor: pointer;
	-webkit-transition: -webkit-transform ease-out .1s,background .2s;
	-moz-transition: -moz-transform ease-out .1s,background .2s;
	transition: transform ease-out .1s,background .2s;
	-webkit-animation: breathing 4s ease-out infinite;
	-moz-animation: breathing 4s ease-out infinite;
	animation: breathing 4s ease-out infinite;
}

.exit:hover{
	opacity: 1;
}

.restart{
	display: inline-block;
	text-align: center;
	line-height: 50px;
	border-radius: 100%;
	height: 50px;
	width: 50px;
	z-index: 100;
	margin-top: 15px;
	-webkit-transition: -webkit-transform ease-out .1s,background .2s;
	-moz-transition: -moz-transform ease-out .1s,background .2s;
	transition: transform ease-out .1s,background .2s;
	-webkit-animation: breathing 4s ease-out infinite;
	-moz-animation: breathing 4s ease-out infinite;
	animation: breathing 4s ease-out infinite;
}

@-webkit-keyframes breathing {
  0% {
    opacity:1;
  }

  25% {
    opacity:1;
  }

  60% {
    opacity:0.4;
  }

  100% {
    opacity:1;
  }
}

@keyframes breathing {
  0% {
    opacity:1;
  }

  25% {
    opacity:1;
  }

  60% {
    opacity:0.4;
  }

  100% {
    opacity:1;
  }
}

.animation-element {
  position: relative;
}

.animation-element.scale-up {
  -moz-transition: all 400ms cubic-bezier(.29,0,.35,2);
  -webkit-transition: all 400ms cubic-bezier(.29,0,.35,2);
  -o-transition: all 400ms cubic-bezier(.29,0,.35,2);
  transition: all 400ms cubic-bezier(.29,0,.35,2);
  -moz-transform: scale(0);
  -webkit-transform: scale(0);
  -o-transform: scale(0);
  -ms-transform: scale(0);
  transform: scale(0);
}

.animation-element.scale-up.in-view {
  -moz-transform: scale(1);
  -webkit-transform: scale(1);
  -o-transform: scale(1);
  -ms-transform: scale(1);
  transform: scale(1);
}

.animation-element.fade-in {
  opacity: 0;
  -moz-transition: all 1000ms linear;
  -webkit-transition: all 1000ms linear;
  -o-transition: all 1000ms linear;
  transition: all 1000ms linear;
}

.animation-element.fade-in.in-view {
  opacity: 1;
}

@media(min-width: 767px){
.back img.wide {
    max-width: 100%;
	min-width: 160px;
	min-height: 160px;
    height: auto;
}
.back img.tall {
    max-height: 100%;
	min-width: 160px;
	min-height: 160px;
    width: auto;
}

}

@media (max-width: 767px){
.back h1 {
	font-size: 3vw;
	line-height: 3vw;
}
	
}

@media (max-width: 480px){

body{
	padding:0;
	background-color: #333333;
}
	
.Game{
	padding:15px;
	width: 100%;
	border-radius: 0;
}
	
.card {
    width: 24%;
	height: 19%;
}
	
header .content p{
	font-size: 16px;
	line-height: 16px;
}

header .content h1{
	font-size: 24px;
	line-height: 24px;
}
	
.back h1 {
	font-size: 4vw;
	line-height: 4vw;
}
	
.finalfeed .main .mainContent .content .star .shadow{
	display: none;
	
}

}

/* End */