@font-face {
    font-family: 'Futura PT';
    font-style: normal;
    font-weight: 700;
    src:  url('assets/fonts/FuturaCyrillicBold.woff') format('woff');
}
body {
	font-family: 'Futura PT';
}
h1{
	text-align:center;
}
h2{
	font-size:36px;
	margin:0;
}
h3 {
	font-size:24px;
	margin:0;
}
p {
	margin:0 0 1em;
}
img{
	max-width:100%;
	height:auto;
}
.container{
	max-width:700px;
	margin:auto;
	padding:15px;
	position:relative;
}
.actions {
    display: flex;
    justify-content: center;
}
.actions button {
    padding: 8px 16px;
    font-size: 30px;
    border-radius: 10px;
    background-color: #27ae60;
    color: white;
}
.show{
	display:block !important;
}
.hide{
	display:none !important; 
}
.game-container{
	text-align:center;
}
.start-again{
	background:url(assets/54.png) no-repeat center center / cover;
	width:107px;
	height:65px;
	border:none;
	cursor:pointer;
	margin:20px 0 0;
}
.grid-container {
	display: grid;
	justify-content: center;
	grid-gap: 20px;
	row-gap: 20px;
	grid-template-columns: repeat(2, 130px);
}
.card {
	height: 176px;
	width: 130px;
	border-radius: 10px;
	position: relative;
	transform-style: preserve-3d;
	transition: all 0.4s ease-in-out;
	cursor:pointer;
}
.front-image {
	width: 100%;
	height: auto;
}
.card.flipped {
	transform: rotateY(180deg);
}
.front, .back {
	-webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    position: absolute;
    border-radius: 10px;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
}
.card .front {
	display: flex;
	justify-content: center;
	align-items: center;
}
.card .back {
	background-image: url("assets/16.jpg") ;
	background-position: center center;
	background-size: cover;
}
.card .front {
	transform: rotateY(180deg);
}
.card.matched .front,
.card.matched .back{
	display:none;
}
.card.matched{
	background-image: url("assets/31.jpg") ;
	cursor:auto;
}
.sucess-message-container{
	text-align:center;
}
.sucess-message-container img{
	display:block;
	margin:0 auto 30px;
	max-width:100%;
	height:auto;
}
.message{
	background:#9cd4e5;
	font-size:20px;
	font-weight:700;
	max-width:400px;
	margin: 0 auto -10px;
	color:#0c80c7;
	-webkit-border-radius:5px;
	border-radius:5px;
	padding:15px 15px 20px;
	text-align:center;
	overflow:hidden;
}
.message header{
	font-weight:700;
	font-size:32px;
	margin:0;
}
.message p{
	margin:0;
}
.message-sucess img{
	float:left;
	margin:-15px -15px -20px 0;
}
.play-again{
	background:url(assets/61.png) no-repeat center center / cover;
	width:107px;
	height:65px;
	border:none;
	cursor:pointer;
	z-index:100;
	position:relative;
}
.intro-message-container {
	text-align:center;
}
.intro-img{
	display:flex;
	justify-content:center;
	margin-bottom:30px;
}
.intro-img img{
	padding:0 10px;
	max-width:24%
}
.play-game{
	background:url(assets/18.png) no-repeat center center / cover;
	width:148px;
	height:58px;
	border:none;
	cursor:pointer;
}
.snap{
	background:url(assets/24.png) no-repeat center center / cover;
	width:148px;
	height:58px;
	border:none;
	cursor:pointer;
	margin:30px 0;
}
.firework{
	position:absolute;
	z-index:1;
	width:100%;
	left:0;
	top:0;
	display:none;
}
.firework.active{
	display:block;
}
.active .f{	
	transform:  scale(0); 	
	animation: firework 1s linear 0s 3 forwards; 
}
.f.f2{	
	animation-delay:0.5s
}
.f.f3{	
	animation-delay:0.2s
}
@keyframes firework {
	0% {
		transform:  scale(0); 	
	}
	100% {
		transform:  scale(1); 
	}
}
.btn{
	display:block;
	color:#fff;
	background:#15538f;
	font-weight:700;
	font-size:24px;
	line-height:2.08em;
	-webkit-border-radius:30px;
	border-radius:30px;
	transition: transform 0.3s ease-in-out;
	cursor:pointer;
	text-decoration:none;
	margin:30px auto;
	max-width:320px;
	z-index: 100;
	position: relative;
	text-align:center;
}
.btn:hover{
	color:#fff;
	transform: scale(1.1);
}
