html, body, blockquote, code, h1, h2, h3, h4, h5, h6, p, pre {
    margin: 0;
    padding: 0;
}
html {
    max-width: 100vw;
    height: 100%;
}
body {
    background-color: black;
}
.game {
    display: grid;
    place-items: center;
}
.misc {
    position: absolute;
    font-family:'Courier New', Courier, monospace;
    margin: 10px;
}
.misc > a {
    position: relative;
    margin: 0;
}
.misc > p {
    color: white;
    background-color: #000000a9;
    border-radius: 5px 0px 0px 0px;
    text-align: center;
    margin: auto;
    font-size: 13px;
    font-family: 'Courier New', Courier, monospace;
    position: fixed;
    bottom: 0px;
    right: 0px;
    padding: 10px;
    z-index: 999;
}
.misc > a > button {
    position: relative;
    background: rgba(255, 255, 255, 0.911);
    font-size: 15px;
    font-weight: bold;
    font-family: 'Courier New', Courier, monospace;
    /* button can't be highlighted */
    -webkit-touch-callout: none; 
    -webkit-user-select: none; 
    -khtml-user-select: none; 
    -moz-user-select: none; 
    -ms-user-select: none; 
    user-select: none;
}
.road {
    position: relative;
    overflow: hidden;
    height: 1000px;
    width: 1050px;
    background-image: url(background_road1.png);
    background-repeat: repeat-y;
    background-size:contain;
    animation: roadmove 0.5s linear infinite;

}

@keyframes roadmove {
    0% {background-position: 0;} 
    100%{background-position: 0 1000px;}
    
}

.randomcars {
    border-radius: 25%;
    position: absolute;
    
   
}

#car {
    border-radius: 30%;
    transition: left 0.3s ease-in-out, top 0.3s ease-in-out, transform 0.2s ease-in-out;
    
}

#truck {
    height: 30%;
    border-radius: 10%;
    /*display: grid;
    place-items: center;
    position: relative;
    /*left: 790px;
    animation: enemycars 3s linear infinite; */
}

#jeep {
    height: 17%;
    /*display: grid;
    place-items: center;
    position: relative;
    /*left: 140px;
    animation: enemycars 2s linear infinite; */
}

#taxi {
    height: 17%;
    /*display: grid;
    place-items: center;
    position: relative;
    /*left: 370px;
    /*animation: enemycars 3s linear infinite; */
}

#bluecar {
    height: 17%;
    /*display: grid;
    place-items: center;
    position: relative;
    /*left: 560px;
    /* animation: enemycars 5s linear infinite; */
}

@keyframes animation_taxi {
    0% { top: -100vh; }
    2% { top: -50vh;}
    39% {top: 32vh;}
    75% {top: 86vh;}
    100% { top: 100vh;}
}
@keyframes animation_truck {
    0% { top: -100vh; }
    45% {top: 32vh;}
    92% {top: 80vh;}
    100% { top: 100vh;}
}
@keyframes animation_bluecar {
    0% { top: -100vh; }
    55% { top: -45vh;}
    100% { top: 100vh; }
}
@keyframes animation_jeep {
    0% { top: -100vh; }
    3% { top: -40vh;}
    100% { top: 100vh; }
}

footer {
    display: flex; 
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 1000px;
    
}

footer button{
    font-size: 25px;;
    background-color: #333; 
    color: #fff; 
    padding: 20px;
    margin: 20px 0;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5); 
}

#score {
    font-size: 25px;
    font-weight: bold;
    color: red; 
}
