@font-face {
	font-family: 'Apercu Condensed Bold Pro';
	src: url('./fonts/apercu-condensed-bold-pro.woff');
}

html, body{
	height:100%; width:100%; overflow:hidden;
}

html {
	background: url("images/memory-bg-01.gif") center no-repeat; background-size:100%;
	font-family: 'Apercu Condensed Bold Pro', Helvetica, sans-serif;
}

#logo{
	position:absolute; left:20px; right:0; top:130px; margin:auto; z-index:10;
}

.game {
	width:85%; height:75%;
	position:absolute; top:-110px; bottom:0; left:0; right:0; margin:auto; transform:translateY(0); transition:all 0.5s ease;
}

.game.pull-down{
	transform:translateY(1200px);
}


button {
	background: rgb(212, 54, 49);
	color: #FFF;
	border-radius: 5px;
	padding: 30px;
	border: 0;
	font-family: 'Apercu Condensed Bold Pro', Helvetica, sans-serif;
	font-size: 50px;
}

.disabled {
	color: rgba(255,255,255,0.5);
}

.stats {
	color: rgb(212, 54, 49);
	font-size: 40px;
	width:100%;
	display: flex;
    flex-direction: column;
    justify-content: center;
    text-align:center;
}
.moves{
	margin-right:20px;
}

progress{
	width:100%;
}

.board-container {
	position: relative; height:100%; width:100%;
}

.board,
.end {
	height:100%; width:100%;
	border-radius: 50px;
	box-shadow: 0 25px 50px rgb(33 33 33 / 25%);
	transition: transform .6s cubic-bezier(0.4, 0.0, 0.2, 1);
	backface-visibility: hidden;	
}

.board {
	display:flex; flex-wrap: wrap; justify-content:center; align-items:center; grid-gap:5% 2%; box-sizing:border-box; background:url('images/memory-bg-02.png') center no-repeat #fff; padding:230px 50px;
}

.board-container.flipped .board {
	transform: rotateY(180deg) rotateZ(50deg);
}

.board-container.flipped .end {
	transform: rotateY(0) rotateZ(0);
}

.card {
	position: relative;
	width: 23%;
	border-radius:30px; display:flex; align-items:center; box-sizing:border-box;
}

.flipped .card{
	/*opacity:0;*/
}

.card-front-image, .card-back img{
	height:100%; width:100%; pointer-events:none;  border-radius:30px;
}

.card-front,
.card-back {
	position: absolute; border-radius:30px; background: #fff; transition: transform .6s cubic-bezier(0.4, 0.0, 0.2, 1); backface-visibility: hidden; box-shadow:-20px 20px 50px rgba(0,0,0,0.25);
}

.card-back {
	transform: rotateY(180deg) rotateZ(50deg); font-size: 90px; user-select: none; text-align: center; line-height: 100px; background: #FDF8E6; display: flex; align-items: center; justify-content: center; border:15px solid #D43631;
}

.card-front{
	display: flex; align-items: center; justify-content: center; border:15px solid #F2ECDF;
}

.card.flipped .card-front {
	transform: rotateY(180deg) rotateZ(50deg);
}

.card.flipped .card-back {
	transform: rotateY(0) rotateZ(0);
}

.end {
	position: absolute; top: 0; left: 0; width: 100%; height: 100%; text-align: center; background:#d43631; transform: rotateY(180deg) rotateZ(50deg);
}

.end-text {	
    color: #282A3A;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.end-text h1{
	margin-bottom:0; font-size:220px; color:#ffca2e;
}

.end-text p{
	color:#fff; font-size:100px;
}

.end-text button{  
	padding: 50px 100px; text-transform: uppercase; font-size: 90px; color:#d43631; background:#ffca2e; border: 0; border-radius: 100px;
}

.end-text button.go-home{
	background:#d43631; color:#ffca2e; border: 10px solid #ffca2e;
}

.highlight {
	color:#ffca2e;
}

#controller{
/*	bottom:-30px;*/
}
