body {
	background: url(../images/back.jpg);
	background-size: cover;
}

body .top h1 {
	margin: 25px auto;
	text-align: center;
	color: #eb4d4b;
	transition: all 0.5s ease;
}

i {
	overflow: hidden;
}

.my-hr {
	border: 0;
	height: 1px;
	background-color: #0ff;
}


/* start winner card */
.card-container {
	width: 100%;
	height: 100%;
	top: 0;
	left: 0;
	z-index: 999;
	position: fixed;
	background-color: #fff5;
	overflow: hidden;
	opacity: 0;
	visibility: hidden;
	transition: all 0.4s ease-in-out;
}

.card-container .win-card {
	margin: 20px auto ;
	max-width: 400px;
	height: 500px;
	background-color: #636e72;
}

.win-card h1 {
	margin: 25px auto;
	padding-top: 30px;
	color: #00b894;
	text-align: center;
}

.win-card .stat {
	color: white;
	text-indent: 15px;
	margin: auto;
	font-size: 22px;
	padding: 20px 30px;
	display: block;
	height: 30px;
}

.win-card .stat i {
	width: 60px;
	color: #fdcb6e;
}

.win-card #again {
	transition: all 0.4s ease-in-out;
	cursor: pointer;
	display: block;
	font-size: 22px;
	height: 60px;
	width: 150px;
	border-radius: 5px;
	background-color: #0984e3;
	border: none;
	padding: 10px;
	margin: 20px auto;
}

.win-card #again:hover{
	color: #0984e3;
	border: 0.5px solid #0984e3;
	background-color: #0984e322;
}
/* end winner card */


/* stats section start */
.stats {
	padding: 10px;
	max-width: 600px;
	margin: auto;
}

.stats span {
	font-size: 25px;
}

.stats span:nth-child(2) {
	margin-left: 25px;
}

.stats i {
	color: #f1c40f;
}

.stats span:last-child,
.stats span:nth-child(3) {
	float: right;
}

.stats span:nth-child(3) i {
	color: #e67e22;
	margin-left: 25px;
}

.stars {
	overflow: hidden;
}

.stats i.dis-star {
	color: #95a5a6;
}
/* stats section end */


/* grid section start */
.container {
	border-radius: 3%;
	padding: 10px 40px;
	max-width: 650px;
	margin: auto;
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	background-color: rgba(200,200,200,0.3);
}

.container .card {
	width: 21%;
	margin-top: 20px;
	margin-bottom: 10px;
	border-radius: 10%;
}


/*start two faces*/
.card {
	position: relative;
	transform-style: preserve-3d;
    transition: transform 0.7s ease-in-out;
}

.cursor {
	cursor: pointer;
}

.card.flip {
	transform: rotateY(180deg);
}

.card > div {
	border-radius: 10%;
	text-align: center;
	position: absolute;
	left: 0;
	right: 0;
	width: 100%;
	height: 100%;
	backface-visibility: hidden;
}

.card .front {
	background-color: #2c3e50;
	z-index: 1;
 }

.card .back {
	background-color: #2980b9;
	z-index: 2;
	transform: rotateY(180deg);
}

.card i {
	line-height: 100px;
}

.valid .back {
	animation: 2s linear 1s 1 normal none running radius;
	background-color: #2ecc71;
}

.unvalid .back {
	animation: 1s linear 0.5s 1 normal none running radius;
	background-color: #e74c3c;
}
/* grid section end */


/* tablet screen start */
@media screen and (max-width: 768px) {
	.container {
		padding: 7px;
	}

	.container .card {
		margin-top: 10px;
		width:24%;
	}
}
/* tablet screen start */


/* mobile screen start */
@media screen and (max-width: 450px) {
	/* top start */
	h1.mob {
		font-size: 18px;
		margin-top: 15px;
		margin-bottom: 15px;
	}

	.stats {
		padding-right: 0;
		padding-left: 0;
	}

	.stats .stars {
		display: block;
	}

	.stats span {
		font-size: 18px;
	}

	.stats span:nth-child(2) {
		margin-left: 0;
	}

	.stats span:nth-child(3) {
		margin-left: -10px;
	}

	/* top end */


	/* grid start */
	.container {
		padding: 5px;
	}

	.container .card {
		margin-top: 1px;
		margin-bottom: 1px;
		width: 24%;
	}
	/* grid start */

	/* winning card start */
	.card-container .win-card {
		max-width: 280px;
		height: 300px;
	}

	.win-card h1 {
		padding-top: 15px;
		padding-bottom: 5px;
		margin: 10px auto;
		font-size: 20px;
	}

	.win-card .stat {
		text-indent: 15px;
		font-size: 18px;
		padding: 10px 20px;
		display: block;
		height: 20px;
	}

	.win-card #again {
		font-size: 18px;
		height: 50px;
		width: 120px;
		border-radius: 3px;
		background-color: #0984e3;
		border: none;
		padding: 5px;
		margin: 15px auto;
	}
	/* winning card end */
}
/* mobile screen end */


/* CSS animation start */
@keyframes radius {
	0% {
		border-radius: 40% 10% 40% 10%;
	}
	25% {
		border-radius: 10% 40% 10% 40%;
	}
	50% {
		border-radius: 40% 10% 40% 10%;
	}
	75% {
		border-radius: 10% 40% 10% 40%;
	}
	100%{
		border-radius: 10%;
	}
}
/* CSS animation end */
