@import url('https://fonts.googleapis.com/css?family=Courgette');
body {
	margin: 0 auto;
	font-family: 'Courgette', cursive;
}

.head {
	width: 100%;
	text-align: center;
	margin-top: 25px;
	font-size: 30px;
}

.head .start {
	display: inline-block;
	margin: 0 auto;
	margin-top: -20px;
	background: #7b7c7d;
	background-image: linear-gradient(to bottom, #7b7c7d, #242424);
	border-radius: 10px;
	color: #ffffff;
	font-size: 22px;
	padding: 20px 20px 20px 20px;
	text-decoration: none;
	cursor: pointer;
}

.room{position: relative;z-index: 0;}
.room .card {
	display: inline-flex;
	width: 120px;
	height: 100px;
	position: relative;
	margin: 5px;
	transition: .40s;
	border:none;
	z-index: 0;
	-webkit-transform-style: preserve-3d;
	background-color: transparent!important;
}
.room .card .face {
	width: 100%;
	height: 100%;
	position: absolute;
	-webkit-backface-visibility: hidden;
	z-index: 2;
}
.room .card .front {
	position: absolute;
	background: url(book.png);
	background-repeat: no-repeat;
	background-size:contain;
	z-index: 1;
	background-position: center;

}
.room .card .back {
	transform: rotateY(-180deg);
	position: absolute;
	background-repeat: no-repeat;
	background-size: contain;
	background-position: center;
}

.flip, .fliped {
	transform: rotateY(180deg);
	transition: .40s;
}

.board {
	text-align: center;
	color: #4d4ba3;
	display: none;
}

.board .greet {
	font-size: 45px;
	margin: 10px;
	font-weight: 700;
}

.board .scr {
	font-size: 20px;
	margin: 10px 0;
	font-weight: 500;
	text-align: center;
}

.board .scr_time {
	display: inline-flex;
	font-size: 27px;
	margin: 10px;
	font-weight: 600;
}

.board .scr_move {
	display: inline-flex;
	font-size: 27px;
	margin: 10px;
	font-weight: 600;
}

.board .again {
	display: block;
	margin: 0 auto;
	margin-top: 10px;
	background: #2cbda5;
	background-image: linear-gradient(to bottom, #2cbda5, #123e59);
	border-radius: 15px;
	font-family: Arial;
	color: #ffffff;
	font-size: 18px;
	padding: 8px 20px ;
	text-decoration: none;
	width: fit-content;
}

.board .again:hover {
	background: #38c5de;
	background-image: linear-gradient(to bottom, #38c5de, #325063);
	text-decoration: none;
}

.me {
	font-size: 20px;
	margin-top: 20px;
	font-weight: 600;
}

@media only screen and (max-width: 1110px) {
	.room .card {
		width: 95px;
		height: 95px;
	}

	.board {
		top: -385px;
	}
}

@media only screen and (max-width: 890px) {
	.room .card {
		width: 75px;
		height:75px;
	}

	.board {
		top: -385px;
	}
}
@media only screen and (max-width: 690px) {
	.room .card {
		width: 65px;
		height: 65px;
	}

	.board {
		width: 300px;
		top: -325px;
	}
}
@media only screen and (max-width: 500px) {
	.room .card {
		width: 60px;
		height:70px;
	}

	.board {
		width: 300px;
		top: -325px;
	}
}
@media only screen and (max-width: 460px) {
	.room .card {
		width: 40px;
		height: 75px;
	}

	.board {
		width: 300px;
		top: -125px;
	}
}

@media only screen and (max-width: 290px){
	.room .card {
		width: 25px;
		height: 25px;
	}
	
	.board {
		width: 300px;
		top: -90px;
	}
}