@font-face{
	font-family: Vazir;
	src: url('fonts/Vazir-Regular.woff');
}
@font-face{
	font-family: Vazir;
	font-weight: bold;
	src: url('fonts/Vazir-Bold.woff');
}
@font-face{
	font-family: Quicksand;
	src: url('fonts/Quicksand-Light.ttf');
}
*{
	box-sizing: border-box;
}
html{
	direction: rtl;
}
body{
	background-color: #60cdb5;
	color: #fff;
	padding: 20px;
	font-family: Quicksand, Vazir;
}
a{
	text-decoration: none;
}
h1{
	color: #fee2a0 !important;
	text-align: center;
}
h1 img{
	width: 300px;
}
h6{
	text-align: center;
}

.lds-grid {
  display: inline-block;
  position: relative;
  width: 80px;
  height: 80px;
}
.lds-grid div {
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  animation: lds-grid 1.2s linear infinite;
}
.lds-grid div:nth-child(1) {
  top: 8px;
  left: 8px;
  animation-delay: 0s;
}
.lds-grid div:nth-child(2) {
  top: 8px;
  left: 32px;
  animation-delay: -0.4s;
}
.lds-grid div:nth-child(3) {
  top: 8px;
  left: 56px;
  animation-delay: -0.8s;
}
.lds-grid div:nth-child(4) {
  top: 32px;
  left: 8px;
  animation-delay: -0.4s;
}
.lds-grid div:nth-child(5) {
  top: 32px;
  left: 32px;
  animation-delay: -0.8s;
}
.lds-grid div:nth-child(6) {
  top: 32px;
  left: 56px;
  animation-delay: -1.2s;
}
.lds-grid div:nth-child(7) {
  top: 56px;
  left: 8px;
  animation-delay: -0.8s;
}
.lds-grid div:nth-child(8) {
  top: 56px;
  left: 32px;
  animation-delay: -1.2s;
}
.lds-grid div:nth-child(9) {
  top: 56px;
  left: 56px;
  animation-delay: -1.6s;
}
@keyframes lds-grid {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

#game{
	text-align: center;
}
.match{
	width: 100px;
	height: 100px;
	background-color: #fee2a0;
	margin: 3px;
	padding: 30px 0px;
	color: black;
	display: flex;
	justify-content: center;
	align-items: center;
}
.match-text{
}
#matches{
	max-width: 700px;
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	margin: 0 auto;
	margin-bottom: 50px;
}


.matchPlay{
	animation: matchPlay 0.8s forwards;
}
@keyframes matchPlay{
	from{
		transform: rotateY(180deg);
	}
	to{
		transform: rotateY(0deg);
	}
}
.matchPlay2{
	animation: matchPlay2 0.8s forwards;
}
@keyframes matchPlay2{
	from{
		transform: rotateY(0deg);
	}
	to{
		transform: rotateY(180deg);
	}
}

.btn-block{
	display: block;
	margin: 0 auto;
	width: 500px;
}

.divider{
	width: 300px;
	height: 40px;
	background-image: url(images/divider.svg);
	background-position: center center;
	background-repeat: no-repeat;
	margin: 0 auto;
}
.divider1{
	margin-top: 80px;
}
.divider2{
	transform: rotate(180deg);
}
h2{
	text-align: center;
	color: #fee2a0;
}

#latest{
	text-align: center;
	min-height: 300px;
}
h3{
	text-align: center;
}

form{
	width: 500px;
	margin: 0 auto;
}

@media screen and (max-width: 450px){
	form{
		width: 100%;
	}
	#matches{
		width: 100%;
	}
	.match{
		width: 70px !important;
		height: 70px !important;
	}
	.btn-block{
		width: 100%;
	}
	#video_ad{
		width: 100% !important;
	}
}

#timer{
	display: none;
}
#errors{
	display: none;
}
.title{
	border: 2px dashed #fee2a0;
  border-radius: 3px;
  padding: 10px 5px;
}
#scores{
	display: flex;
	width: 100%;
	height: 40px;
	background-color: deepskyblue;
	position: fixed;
	bottom: 0px;
	left: 0px;
	justify-content: space-around;
	align-items: center;
	z-index: 99999;
}
#scores div{
	/*border: 1px solid black;*/
	padding: 3px 20px;
	border-radius: 10px;
	font-size: 1.2rem;
}
#player1{
	text-align: right;
	background-color: white;
	color: black;
}
#player2{
	text-align: center;
	background-color: black;
}
#player3{
	text-align: left;
	background-color: gray;
}
#player4{
	text-align: left;
	background-color: mediumpurple;
}
#show_scores{
	font-size: 0.7rem;
	margin: 10px auto;
	color: white;
	border-color: white;
}
footer{
	margin-top: 50px;
	direction: ltr;
	text-align: center;
}
footer small{
	font-size: 0.7rem;
}
footer a{
	color: #eee;
}
#buy_card{
	border: 2px dashed greenyellow;
	color: white;
}
#matchmatch_card{
	width: 300px;
	height: 300px;
	background-image: url(images/matchmatch_cards.jpg);
	background-position: center center;
	background-size: cover;
	margin: 0 auto;
	border-radius: 30px;
	margin-top: 40px;
}

.turn{
	animation: turnPlay 2s infinite;
}
@keyframes turnPlay{
	0%{
		border: 3px solid transparent;
	}
	50%{
		border: 3px solid red;
	}
	100%{
		border: 3px solid transparent;
	}
}

#video_ad{
	width: 600px;
	height: 300px;
	border-radius: 10px;
}