@font-face{
	font-family: samim;
	src: url(../fonts/Samim.woff);
}

@font-face{
	font-family: samim;
	src: url(../fonts/Samim-Bold.woff);
	font-weight: bold;
}

html,body{
	width: 99%;
	height: 97%;
}

body{
	font-family: samim;
	background-image: url(../img/bg1.jpg);
	background-size: auto 100%;
	animation: bgPlay 100s linear infinite;
	margin: 0;
}

a, a:hover, a:active, a:focus, a:visited{
	text-decoration: none;
}

#background1{
	height: 100%;
	width: 0;
	opacity: 0;
	left: 100%;
	background-image: url(../img/bg2.jpg);
	position: fixed;
	background-size: auto 100%;
	animation: bgPlay 100s linear infinite;
}

#background2{
	height: 100%;
	width: 0;
	opacity: 0;
	left: 100%;
	background-image: url(../img/bg3.jpg);
	position: fixed;
	background-size: auto 100%;
	animation: bgPlay 100s linear infinite;
}

#background3{
	height: 100%;
	width: 0;
	opacity: 0;
	left: 100%;
	background-image: url(../img/bg4.jpg);
	position: fixed;
	background-size: auto 100%;
	animation: bgPlay 100s linear infinite;
}

#background4{
	height: 100%;
	width: 0;
	opacity: 0;
	left: 100%;
	background-image: url(../img/bg5.jpg);
	position: fixed;
	background-size: auto 100%;
	animation: bgPlay 100s linear infinite;
}

#grass{
	width: 100%;
	height: 85px;
	background-image: url(../img/bg_grass.png);
	position: absolute;
	bottom: 0;
	left: 0;
	animation: bgPlay 20s linear infinite;	
	z-index: 1;
}

#horse{
	width: 300px;
	height: 200px;
	position: fixed;
	left: 0px;
	bottom: 5px;
	background-image: url(../img/horse.gif);
	background-size: cover;
	display: none;
	z-index: 3;
	/*border: 1px solid white;*/
}

.rock{
	width: 100px;
	height: 50px;
	background-image: url(../img/rock.png);
	background-size: cover;
	position: fixed;
	bottom: 0;
	animation: rockplay 6s linear forwards;
	z-index: 3;
	/*border: 1px solid white;*/
}

#lock{
	background-color: rgba(0, 0, 0, 0.4);
	width: 100%;
	height: 100%;
	position: fixed;
	top: 0;
	left: 0;
}

#start_btn{
	position: fixed;
	width: 200px;
	height: 73px;
	background-image: url(../img/start_btn.png);
	background-size: cover;
	left: 42%;
	bottom: 50%;
	transform: translate(-50%, -50%;);
	cursor: pointer;
}

#btnHelp{
	position: fixed;
	width: 152px;
	height: 55px;
	background-image: url(../img/help.png);
	background-size: cover;
	left: 44%;
	bottom: 30%;
	transform: translate(-50%, -50%;);
	cursor: pointer;
}

#sound{
	width: 50px;
	height: 50px;
	position: fixed;
	left: 10px;
	top: 10px;
	background-image: url(../img/unmute2.png);
	background-size: cover;
	cursor: pointer;
	display: none;
}

@keyframes rockplay{
	from{
		left: 120%;
	}
	to{
		left: -20%;
	}
}

@keyframes bgPlay{
	from{
		background-position: 0px 0px;
	}
	to{
		background-position: -5000px 0px;
	}
}

@keyframes editBgPlay{
	/*from{
		transform: translateX(left 0)
	}*/
	to{
		transform: translateX(-100%)
	}
}

@keyframes horseGameOver{
	to{
		left: -85%;
	}
}



/* The Help (background) */
.help {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 1; /* Sit on top */
  padding-top: 100px; /* Location of the box */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  overflow: auto; /* Enable scroll if needed */
  background-color: rgb(0,0,0); /* Fallback color */
  background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
  z-index: 101;
}

/* Help Content */
.help-content {
  background-color: #fefefe;
  margin: auto;
  padding: 20px;
  border: 1px solid #888;
  width: 80%;
}

.help-content p{
	direction: rtl;
	text-align: right;
	padding: 15px 60px 0 0;
	margin: 0;
}

/* The Close Button */
.close {
  color: #aaaaaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
}

.close:hover,
.close:focus {
  color: #000;
  text-decoration: none;
  cursor: pointer;
}

#score{
	position: fixed;
	right: 10px;
	top: 10px;
	font-size: 20px;
	color: white;
	display: none;
	border: 1px solid white;
	border-radius: 5px;
	background-color: #000;
	padding: 0 10px;
}

#game_over{
	direction: rtl;
	position: fixed;
	width: 100%;
	height: 100%;
	top: 0px;
	left: 0px;
	z-index: 100;
	background-color: rgba(255, 107, 107, 0.3);
}

#game_over_text{
	font-size: 60px;
	font-weight: bold;
	color: white;
	position: relative;
	top: 40%;
	text-align: center;
}

#game_over_text #replay{
	font-size: 60px;
	color: white;
	position: relative;
	top: 40%;
	text-align: center;
}

#winner{
	direction: rtl;
	position: fixed;
	width: 100%;
	height: 100%;
	top: 0px;
	left: 0px;
	z-index: 100;
	background-color: rgba(101, 255, 96, 0.3);
}

#winner_text{
	font-size: 60px;
	font-weight: bold;
	color: black;
	position: relative;
	top: 40%;
	text-align: center;
}

#winner_text #reply{
	font-size: 60px;
	color: black;
	position: relative;
	top: 40%;
	text-align: center;
}

#arrow_top{
	width: 50px;
	height: 50px;
	position: fixed;
	right: 20px;
	bottom: 20px;
	background-color: transparent;
	color: white;
	border: 2px solid white;
	font-size: 30px;
	font-weight: bold;
	text-align: center;
	border-radius: 50%;
	z-index: 105;
	cursor: pointer;
	display: none;
}

#arrow_top:hover{
	border: 2px solid red;
	box-shadow: 0px 0px 15px #f9f068ba;
}