* {
	margin: 0;
	padding: 0;
	border: 0;
  }
  html, body {
	  -ms-touch-action: none
  }
  html {
	  overflow: hidden
  }
  
  img {
	  border: 0
  }

body {
	text-align: center;	
	background: #a46740 url('../images/bg.jpg');
	color: #fff;
}

#gameContainer{
	position: relative;
	width: 900px;
	height: 600px;
	margin: 0 auto;
}

h1 {
	font-weight: bold;
	text-shadow: 0 2px 0 #222;
	position: absolute;
}

.toolbar {
	font-size: 24px;
	line-height: 104px;
  
	position: relative; 
  
	width: 100%;
	height: 100px;
  
	background: url('../images/toolbar.png') center no-repeat;
	background-size: cover;
  }


.toolbar .time {
	line-height: 34px; 
	/* z-index: 2; */
	position: absolute;
	top: 26px;
	left: 130px;
  }

.toolbar .level {
	line-height: 34px; 
	color: #a46740;
	font-size: 30px;
	font-weight: bold;
	/* z-index: 2; */
	position: absolute;
	top: 20px;
	left: 440px;
}

.toolbar .menu {
	position: absolute;
	top: 0px;
	left: 233px;

	width: 69px;
	height: 71px;

	cursor: pointer;
}
  
.toolbar .sound_on {
	position: absolute;
	top: 0px;
	left: 325px;

	width: 69px;
	height: 71px;

	cursor: pointer;
}

.toolbar .sound_off {
	position: absolute;
	top: 0px;
	left: 322px;

	width: 69px;
	height: 71px;

	background: url('../images/sound_off.png') center no-repeat;

	cursor: pointer;
}

.toolbar .pause {
	position: absolute;
	top: 0px;
	left: 508px;

	width: 69px;
	height: 71px;

	cursor: pointer;
}

.toolbar .more {
	position: absolute;
	top: 0px;
	left: 600px;

	width: 69px;
	height: 71px;

	cursor: pointer;
}

.toolbar .score {
	line-height: 34px; 
	/* z-index: 2; */
	position: absolute;
	top: 26px;
	left: 770px;
}

.game_pause {
	position: absolute;
	top: 0;
  
	width: 900px;
	height: 600px;
  
	background: rgba(0, 0, 0, .4) url('../images/game_pause.png') center no-repeat;
}

.game_pause .pause_continue{
	position: absolute;
	top: 283px;
	left: 315px;

	width: 69px;
	height: 71px;

	cursor: pointer;
}

.game_pause .pause_more{
	position: absolute;
	top: 283px;
	left: 419px;

	width: 69px;
	height: 71px;

	cursor: pointer;
}

.game_pause .pause_menu{
	position: absolute;
	top: 283px;
	left: 523px;

	width: 69px;
	height: 71px;

	cursor: pointer;
}

.game_over {
	position: absolute;
	top: 0;

	color: #a46740;
	font-size: 30px;
	width: 900px;
	height: 600px;
  
	background: rgba(0, 0, 0, .4) url('../images/game_over.png') center no-repeat;
}

.game_over .over_menu{
	position: absolute;
	top: 426px;
	left: 317px;

	width: 69px;
	height: 71px;

	cursor: pointer;
}

.game_over .over_replay{
	position: absolute;
	top: 426px;
	left: 417px;

	width: 69px;
	height: 71px;

	cursor: pointer;
}

.game_over .over_more{
	position: absolute;
	top: 426px;
	left: 520px;

	width: 69px;
	height: 71px;

	cursor: pointer;
}

.game_over .levelTxt {
	line-height: 34px; 
	position: absolute;
	top: 187px;
	left: 480px;
}
.game_over .scoreTxt {
	line-height: 34px; 
	position: absolute;
	top: 236px;
	left: 480px;
}

.game_over .maxLevelTxt {
	line-height: 34px; 
	position: absolute;
	top: 285px;
	left: 480px;
}

.game_over .bestScoreTxt {
	line-height: 34px; 
	position: absolute;
	top: 334px;
	left: 480px;
}
 
#game {
	position: relative;
	width: 900px;
	height: 500px;
	
	display: -webkit-box;
	-webkit-box-pack: center;
	-webkit-box-align: center;
	
	display: -moz-box;
	-moz-box-pack: center;
	-moz-box-align: center;	
}

#cards {
	position: relative;	
	width: 900px;
	height: 500px;
}

.card {
	-webkit-perspective: 600;
	width: 80px;
	height: 120px;
	
	position: absolute;
	
	-moz-transition: all .3s;
	-webkit-transition: all .3s;
	transition: all .3s;
}

.face {
	border-radius: 10px;
	width: 100%;
	height: 100%;
	position: absolute;
	
	-moz-transition-property: opacity, -moz-transform, -moz-box-shadow;
	-moz-transition-duration: .3s;
	-webkit-transition-property: opacity, -webkit-transform, -webkit-box-shadow;
	-webkit-transition-duration: .3s;
	transition-property: opacity, transform, box-shadow;
	transition-duration: .3s;
	
	-moz-backface-visibility: hidden;
	-webkit-backface-visibility: hidden;
	backface-visibility: hidden;
	
}

.front {	
	background: #999 url('../images/deck.png') 0 -480px;
	z-index: 10;
}

.back {
	background: #efefef url('../images/deck.png');
	
	-moz-transform: rotate3d(0,1,0,-180deg);
	-webkit-transform: rotate3d(0,1,0,-180deg);
	transform: rotate3d(0,1,0,-180deg);
	
	z-index: 8;
}

.card:hover .face{
	-webkit-box-shadow: 0 0 20px #f00;
	box-shadow: 0 0 10px #f00;
}

.card-flipped .face{
	-webkit-box-shadow: 0 0 20px #aaa;
	box-shadow: 0 0 10px #aaa;		
}
.card-flipped .front {
	-moz-transform: rotate3d(0,1,0,180deg);
	-webkit-transform: rotate3d(0,1,0,180deg);
	transform: rotate3d(0,1,0,180deg);

	z-index: 8;
}
	
.card-flipped .back {
	-moz-transform: rotate3d(0,1,0,0deg);
	-webkit-transform: rotate3d(0,1,0,0deg);
	transform: rotate3d(0,1,0,0deg);
	
	z-index: 10;
}

.card-removed {
	opacity: 0;
}
.cardA1 {background-position: -960px 0;}
.cardA2 {background-position: -880px 0;}
.cardA3 {background-position: -800px 0;}
.cardA4 {background-position: -720px 0;}
.cardA5 {background-position: -640px 0;}
.cardA6 {background-position: -560px 0;}

.cardB1 {background-position: -960px -120px;}
.cardB2 {background-position: -880px -120px;}
.cardB3 {background-position: -800px -120px;}
.cardB4 {background-position: -720px -120px;}
.cardB5 {background-position: -640px -120px;}
.cardB6 {background-position: -560px -120px;}

.cardC1 {background-position: -960px -240px;}
.cardC2 {background-position: -880px -240px;}
.cardC3 {background-position: -800px -240px;}
.cardC4 {background-position: -720px -240px;}
.cardC5 {background-position: -640px -240px;}
.cardC6 {background-position: -560px -240px;}

 .hide{
	 display: none;
 }

 #loading {
	z-index: 1;
	background: #fff
}


#rotateHint {
	background: rgba(255,255,255,0.85);
	position: fixed;
	top: 0;
	left: 0;
	bottom: 0;
	right: 0;
	text-align: center;
	display: none;
	z-index: 99999;
	font-family: Arial, Helvetica, Sans-serif;
	padding: 2em;
	color: #000
}
#rotateHint h2 {
	font-size: 20px
}
#rotateHint img.rotate {
	width: 80%;
	max-width: 400px
}
#rotateHint #rotateClose {
	position: absolute;
	top: 5px;
	right: 5px;
	width: 32px;
	height: 32px;
	cursor: pointer
}

#gameContainer{
	position: absolute;
	top: 0;
	left: 0;
	transform-origin: 0 0;
	-webkit-transform-origin: 0 0;
	-ms-transform-origin: 0 0
}

.backPos {
	position: absolute;
	left: 0;
	top: 0
}

.progressbar {
	position: absolute;
	top: 300px;
	left: 150px;
	width: 600px;
	border-radius: 8px;
	padding: 4px;
	background-color: #fff;
	box-shadow: 0 -1px 1px rgba(0,0,0,0.4) inset;
	border-collapse: separate
}
.progressbar>div {
	width: 0;
	height: 15px;
	border-radius: 10px;
	background: #b61515;
	background: -moz-linear-gradient(top, hsl(120, 98%, 48%) 0, #096d1c 100%);
	background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #096d1c), color-stop(100%, #096d1c));
	background: -webkit-linear-gradient(top, #096d1c 0, #096d1c 100%);
	background: -o-linear-gradient(top, #096d1c 0, #096d1c 100%);
	background: -ms-linear-gradient(top, #096d1c 0, #096d1c 100%);
	background: linear-gradient(to bottom, #096d1c 0, #096d1c 100%)
}

.mouse2Div {
	cursor: pointer
} 

#title {
	animation-name: flyIn;
	animation-duration: 2s;
}
@-webkit-keyframes flyIn{
	0%{top:-100px;opacity: 0;}
	100%{opacity: 1;}
}
@keyframes flyIn{
	0%{top: -100px;opacity: 0;}
	100%{opacity: 1;}
}

@-webkit-keyframes flyUp {
	0% {
	-webkit-transform:translate(-200px, 600px);
	}
	100% {
	-webkit-transform:translate(0, 0);
	}
}
@keyframes flyUp {
	0% {
	transform:translate(-200px, 600px);
	}
	100% {
	transform:translate(0, 0);
	}
}
.flyUp {
	-webkit-animation-name: flyUp;
	animation-name: flyUp;
	-webkit-animation-duration: .5s;
	animation-duration: .5s;
	-webkit-animation-fill-mode: ease-in;
	animation-fill-mode: ease-in
}