* {
    padding: 0;
    margin:0;
}

body {
    font-family: pixel;
    margin-top: 30px;
}

h2 {
    margin-top: 10px;
    margin-bottom: 10px;
}
#game {
    width: 500px;
    height: 200px;
    background-color: rgb(255, 254, 216);
    border: 1px solid #79200c;
    border-radius: 10px;
}

#character{
    width: 40px;
    height: 50px;
    position: relative;
    top: 150px;
    left: 20px;
    z-index: 1;
}

.animate{
    animation: jump 600ms linear;
}
#block{
    width: 20px;
    height: 20px;
    position: relative;
    top: 130px;
    left: 480px;
    animation: slide 1s infinite linear;
    z-index: 1;
}

#score {
    position: relative;
    left: 20px;
    bottom: 190px;
    font-size: 15px;
    font-family: pixel;
    color: #79200c;
}


@keyframes slide {
    0%{left: 480px;}
    100%{left:-40px;}
}


@keyframes jump {
    0%{top: 150px;}
    30%{top: 100px;}
    50%{top: 90px}
    70%{top: 100px;}
    100%{top:150px;}
}

@font-face {
    font-family: pixel;
    src: url(Fonts/PixelOperatorMono8.ttf);
}