*{
    padding: 0;
    margin: 0;
}

body {
    background-image: url(images/achtergrond5.jpg);
    background-size: cover;
    background-repeat: no-repeat;
    height: 950px;
    overflow-y: hidden;
    overflow-x: hidden;
}

#game {
    width: 1500px;
    height: 700px;
}

#character {
    width: 160px;
    height: 155px;
    position: relative;
    top: 600px;
    background-image: url(images/trexje.png);
    background-size: cover;
    background-position: center;
}

#block {
    width: 80px;
    height: 80px;
    position: relative;
    top: 500px;
    left: 2000px;
    animation: block 1s infinite linear;
    background-image: url(images/eidino.png);
    background-size: cover;
    background-position: center;
}

#GAMEOVER {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: none;
    width: 500px;
}

#score {
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 30px;
    color: yellow;
    font-family: Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

#highscore {
    position: absolute;
    top: 60px;
    left: 20px;
    font-size: 30px;
    color: yellow;
    font-family: Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

@keyframes block {
    0%{left:2000px;}
    100%{left:-40px;}
}

@keyframes jump {
    0%{top: 600px;}
    30%{top: 450px;}
    70%{top: 450px;}
    100%{top: 600px;}
}

.animate {
    animation: jump 500ms;
}
