:root{
    --color1: #e8eef1;
    --color2: #43b0f1;
    --color3: #057dcd;
    --color4: #1e3d58;
}
*{
    box-sizing: border-box;

}
p{
    margin-inline: 5px;
}
html{
    font-size: 15px;
}


a{
    text-decoration: none;
    color:var(--color2);

}


@font-face {
    font-family: vazir;
    src: url(../fonts/Vazirmatn-Regular.woff2);
  }
.progress:hover{
    transform: scale(1.05);
    transition: 2;
}

body{


    font-family: vazir, Tahoma;

}
#mover{
    width: 80px;
    height: 100px;
    background-image: url(../images/runner.gif);
    background-position: bottom center;
    background-size:auto 120%;
    position: fixed;
    left: 0px;
    bottom: 32px;
    position: absolute;
    display: none;
    z-index: 1000;
    border-radius: 10px;

}
#health{
    display: none;
    top: 5px;
    left: 5px;
    border: dotted 1px yellowgreen;
    background-color: yellow;
}
#health,#score{
   position: absolute;
   display: inline-block;
   border-radius:5px 5px 5px 5px ;
}
#score{
    display: none;
    justify-content: center;
    align-items: center;
    transform-style: preserve-3d;
    text-shadow: 5px 5px 5px 5px gray;
    border: dotted 1px yellowgreen;
    background-color: skyblue;
    top: 5px;
    left: 150px;
    padding: 8px 5px;
}
.onheart{
    width:40px;
    height: auto;
    display: inline-block;
    background-position: center center;
    background-size: cover;
}
#oops{
    background-image: url(../images/oops.png);
    position: absolute;
    background-position: center center;
    background-size: cover;
    width: 100%;
    height: 50%;
    display: none;
}
#scoretable{
    position: absolute;
    bottom: 100px;
    border: 2px solid #43b0f1;
    padding: 45px 80px;
    background-color: rgb(0, 241, 237);
    border-radius: 10px 10px 10px 10px;
    display: none;

}
@keyframes shake {
    0% { transform: translate(1px, 1px) rotate(0deg); }
    10% { transform: translate(-1px, -2px) rotate(-1deg); }
    20% { transform: translate(-3px, 0px) rotate(1deg); }
    30% { transform: translate(3px, 2px) rotate(0deg); }
    40% { transform: translate(1px, -1px) rotate(1deg); }
    50% { transform: translate(-1px, 2px) rotate(-1deg); }
    60% { transform: translate(-3px, 1px) rotate(0deg); }
    70% { transform: translate(3px, 1px) rotate(-1deg); }
    80% { transform: translate(-1px, -1px) rotate(1deg); }
    90% { transform: translate(1px, 2px) rotate(0deg); }
    100% { transform: translate(1px, -2px) rotate(-1deg); }
}
#gameover{
    position: absolute;
    width: 100%;
    height: 100%;
    top:0px;
    left: 0px;
    display: none;
    animation: shake 0.5s;
}
#board{
    min-height: 484px;
    width: 700px;
    border: 1px solid black;
    margin: 0 auto;
    position: relative;
    background-image: url(../images/desert.jpg);
    /* background-size: auto 100%; */
    /* background-position: center center; */
    overflow: hidden;
}
#start i{
    font-size: 3rem;
    color: white;
    cursor: pointer;
}
#start i:hover{
    font-size: 3.2rem;
    text-shadow: 0px 0px 10px yellow;
}
#start{
    position:absolute;
}
#lock{
    position:absolute;
    width: 100%;
    height: 100%;
    z-index: 2;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
}
@keyframes bgPlay{
    from{

    }
    to{
        background-position: -3000px 0px;
    }
}
.obs{
    height: 70px;
    width: 70px;
    background-size: cover;
    background-image: url(../images/ghost.png);
    position: absolute;
    left: 110%;
    bottom: 31px;
    animation: obsMove 4s linear  forwards;
}
.moverKilled{
    height: 100px;
    width: 100px;
    background-size: cover;
    background-image: url(../images/killed.png);
    position: absolute;
    left: 110%;
    bottom: 31px;
    animation: obsMove 4s linear forwards;
}
@keyframes obsMove{
    to{
        left: -20%;
    }
}
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    padding-top: 100px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0,0,0);
    background-color: rgba(0,0,0,0.4);
}
.modal-content {
  position: relative;
  background-color: #fefefe;
  margin: auto;
  padding: 0;
  border: 1px solid #888;
  width: 80%;
  box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2),0 6px 20px 0 rgba(0,0,0,0.19);
  -webkit-animation-name: animatetop;
  -webkit-animation-duration: 0.4s;
  animation-name: animatetop;
  animation-duration: 0.4s
}
@-webkit-keyframes animatetop {
  from {top:-300px; opacity:0}
  to {top:0; opacity:1}
}
@keyframes animatetop {
  from {top:-300px; opacity:0}
  to {top:0; opacity:1}
}
.close {
  color: white;
  float: right;
  font-size: 28px;
  font-weight: bold;
}
.close:hover,
.close:focus {
  color: #000;
  text-decoration: none;
  cursor: pointer;
}
.modal-header {
  padding: 2px 16px;
  background-color: #5cb85c;
  color: white;
}
.modal-body {padding: 2px 16px;}
.modal-footer {
  padding: 2px 16px;
  background-color: #5cb85c;
  color: white;
}
@media screen and (max-width: 1024px) {


}



@media screen and (max-width: 1000px){
    #board{
        width:100%;
    }
}



@media screen and (max-width: 330px) {

}
