@font-face {
    font-family: 'Optien';
    src: url(font/optien/Optien.ttf);
}

@font-face {
    font-family: 'flappy bird';
    src: url(font/flappy\ bird/Flappy-Bird.ttf);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


#canvas1 {
    border: 2px solid black;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 100%;
    max-height: 100%;
}

#player { display: none;}

.end-game {
    display: none;
    position: absolute;
    width: 250px;
    height: 400px;
    left: 50%;
    top: 45%;
    transform: translate(-50%, -50%);
    z-index: 9999;
    background: #00000082;
}

.wrap-elements {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-around;
}

.score {
    background-image: url(images/score.png);
    background-repeat: no-repeat;
    background-size: contain;
    width: 100%;
    height: 130px; 
    position: relative;
}

.wrap-elements h3 {
    text-align: center;
    font-family: 'Optien';
    color: #fff;
    padding: 10px;
    letter-spacing: 0.5px;
    user-select: none;
}

.restart-button {
    background-image: url(images/restart.png);
    background-repeat: no-repeat;
    background-size: contain;
    width: 100px;
    height: 35px;
    cursor: pointer;
}

.show-score {
    font-family: flappy bird;
    margin-top: 35px;
    margin-left: 182px;
    letter-spacing: 2px;
    font-size: 30px;
    color: #2e838b;
}

.medal { 
    background-image: url(images/bronze.png);
    background-repeat: no-repeat;
    width: 55px;
    height: 55px;
    border-radius: 80px;
    background-size: contain;
    left: 25px;
    top: 44px;
    position: absolute;
}

.show-best-score {
    position: absolute;
    top: 85px;
    right: 20px;
    width: 50px;
    height: 20px;
    font-family: 'flappy bird';
    font-size: 30px;
    color: #2e838b;
}

@media only screen and (max-width: 500px) {

    #canvas1{
        height: 80vh;
    }

}