#mainContainer {
    display: block;
    position: relative;
    width: 90%;
    height: 700px;
    margin: auto;
    background-color: #00ff00cd;
    overflow: hidden;
    border: 5px solid black;
}
.dashboard {
    position: absolute;
    z-index: 9999;
    width: 100%;
    height: 28px;
    background-color: #000;
    color: #fff;
    font-size: 20px;
    text-align: center;
    font-family: Verdana, Tahoma, sans-serif;
    padding: 15px 0;
}
.welcomeimg {
    display: block;
    margin: 150px auto 0px auto;
}
.startBtn {
    display: block;
    position: absolute;
    font-family: 'Permanent Marker', cursive;
    font-size: 85px;
    font-weight: 800;
    width: 200px;
    border-radius: 15px;
    padding-right: 40px;
    left: 40%;
    top: 70%;
    z-index: 999;
}
.startText, .resumeText {
    margin: 0 auto;
    text-shadow: -4px -4px 1px #111 ;
    color: #ff2626;
    cursor: pointer;
}
#pauseBtn {
    display: none;
    position: absolute;
    left: 38%;
    flex-direction: column;
    line-height: 400px;
    font-family: 'Permanent Marker', cursive;
    font-size: 85px;
    font-weight: 800;
    width: 200px;
    border-radius: 15px;
    padding-right: 80px;
    margin: 110px auto;
    z-index: 999;
}
.road {
    position: absolute;
    height:55px;
    width:250px;
    top: 0;
    left: 37%;
    background-color: #666;
    margin: auto;
    text-align: center;
}
.playerCar {
    width: 55px;
    height: 110px;
    position: absolute;
    background-image: url('image/car1.png');
    background-size: cover;
    background-position: center;
    z-index: 100;
}
.enemyCar {
    width: 55px;
    height: 110px;
    position: absolute;
    text-align: center;
    top: 0;
    left: 0;
    background-image: url('image/car2.png');
    background-size: cover;
    background-position: center;
    border-radius: 20px;
    z-index: 99;
}
.road::before {
    content: "|";
    font-size: 25px;
    vertical-align: 0;
    font-family: 'Franklin Gothic Medium',sans-serif;
    width: 1px;
    height: 10px;
    color: #fff;
    line-height: 40px;
    position: absolute;
}
.gameOver {
    position: absolute;
    height: 100px;
    width: 40%;
    top: 80px;
    left: 28%;
    background-color: #fff;
    text-align: center;
    font-size : 60px;
    font-family: fantasy;
    border: 10px solid black;
    padding-top: 30px;
    color: #000;
    z-index: 100;
}
#controls {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 100000;
}
#controls button {
  border-radius: 100%;
  font-size: 20px;
}
button {
  padding: 20px;
  font-size: 24px;
}
@media(min-width:800px) {
    .startBtn {
        margin: 40px 0;
    }
  #controls { display: none !important;}
}
body{
    -webkit-user-select: none;      
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}
@media(max-width:1200px) {
    .road {
        left: 30%;
    }
    #pauseBtn {
        left: 29%;
    }
    .startBtn {
        left: 35%;
    }
}
@media(max-width:800px) {
    .road {
        left: 22%;
    }
    #pauseBtn {
        left: 21%;
    }
    .startBtn {
        left: 28%;
    }
    .gameOver {
        font-size : 48px;
    }
}@media(max-width:550px) {
    .road {
        left: 5%;
    }
    #pauseBtn {
        left: 15%;
    }
    .startBtn {
        left: 20%;
    }
    .gameOver {
        font-size : 30px;
        height: 60px;
    }
}
@media(max-width:420px) {
    .road {
        left: 1%;
    }
    #pauseBtn {
        left: 5%;
    }
    .startBtn {
        left: 12%;
    }
   
}