@font-face {
    font-family: flappytxt;
    src: url(font/Flappy-Bird.ttf);
 }
@font-face {
    font-family: flappynb;
    src: url(font/flappy-bird-font.ttf);
 }

body {
    background: #1f1f1f;
    overflow: hidden;
    margin: 0;
}
.canvas {
    margin-top: 5vh;
    width: 100vw;
    height: 90vh;
    display: flex;
    justify-content: center;
}
canvas {
    object-fit: contain;
}

#score {
    text-align: center;
    color: white;
    position: absolute;
    font-family: flappynb;
    font-weight: 50;
    font-size: 3em;
}

.death-modal {
    width: 100vw;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 99;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    display: none;
}
.game-over {
    display: block;
    height: 15vh;
    margin: 10vh;
    object-fit: contain;
}
.game-over > img {
    height: 100%;
    width: 100%;
    object-fit: contain;
}

#restart-btn {
    display: block;
    background: none;
    border: none;
    cursor: pointer;
    height: 15vh;
    margin: 10vh;
    object-fit: contain;
}

#restart-btn > img {
    height: 100%;
    width: 100%;
    object-fit: contain;
}