*{
    margin: 0;
    padding: 0;
}
body{
    width: 100vw;
    height: 100vh;

    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}
.container{
    width: 100vw;
    height: 100vh;
    background-color: black;
}
.dino{
    width: 80px;
    height: 100px;
    background-image: url('dragonbody.png');
    background-size: cover;
    position: absolute;
    bottom: 23.5vh;
    left: 14vw;
    /* animation: jump linear 1s infinite; */
    /* animation: jump 2s linear infinite */
}
.rleg{
    position: absolute;
    width: 105px;
    bottom: -3px;
    left: -3px;
    animation: shake-rleg .4s infinite;
}
.lleg{
    position: absolute;
    width: 105px;
    bottom: -4px;
    left: -15px;
    animation: shake-lleg .4s infinite;
}
.road{
    background-image: url('road.jpg');
    width: 800vw;
    height: 3vh;
    background-size: contain;
    position: absolute;
    bottom: 20vh;
    /* animation: move-road linear 4s infinite; */
}
.trees{
    width: 40px;
    height: 75px;
    background-image: url('trees.png');
    background-size: cover;
    position: absolute;
    bottom: 23.5vh;
    left: 100vw;
    animation: tree linear 5.5s infinite;
}
.score{
    display: flex;
    flex-direction: column;
    color: white;
    position: absolute;
    /* top: 2vh;
    right: 5vw; */
    width: 100vw;
    display: flex;
    align-items: center;
    justify-content: center;
    visibility: hidden;
    font-size: 4rem;
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
    /* font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif; */
}
.restart{
    color: blanchedalmond;
    width: 100vw;
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    top: 17vh;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    visibility: hidden;
}
.hed{
    display: flex;
    justify-content: center;
    align-items: center;
}
.hed h1{
    align-items: center;
    color: white;
    font-family: 'Courier New', Courier, monospace;
}
.jump{
    animation: jump 2s linear infinite
}
.s{
    color: blanchedalmond;
    position: absolute;
    right: 20px;
    top: 0ch;
    font-size: x-large;
}
#scr{
    color: blanchedalmond;
    position: absolute;
    right: 0px;
    top: 0ch;
}
@keyframes shake-rleg{
    0%{
        transform: translateY(0);
    }
    50%{
        transform: translateY(-5px);
    }
    100%{
        transform: translateY(0px);
    }
}
@keyframes shake-lleg{
    0%{
        transform: translateY(-5px);
    }
    50%{
        transform: translateY(0px);
    }
    100%{
        transform: translateY(-5px);
    }
}
@keyframes move-road{
    100%{
        transform: translateX(-1000px);
    }
}
@keyframes tree{
    100%{
        left: -100vw;
    }
}
@keyframes jump-up{
    0%{
        bottom: 23.5vh;
    }
    50%{
        bottom: 53.5vh;
    }
    100%{
        bottom: 23.5vh;
    }
}
@keyframes forward{
    0%{
        left: 14vw;
    }
    50%{
        left: 18vw;
    }
    100%{
        left: 22vw;
    }
}
@keyframes backward{
    100%{
        transform: translateX(-5vw);
    }
}
