
*{
    margin: 0;
    padding: 0;
} 
body{
    background-color: red;
    overflow: hidden;
}
.gameContainer{
    background-image: url('./bg.jpg');
    background-repeat: no-repeat;
    background-size: 100vw 100vh;
    width: 100%;
    height: 100vh;
    position: relative;
}

.dino{
    background-image: url(Pikachu.png);
    background-repeat: no-repeat;
    background-size: cover;
    width: 185px;
    height: 185px;
    position: absolute;
    bottom: 0;
    left: 25px;
}

.obstacle{
    background-image: url(Dragon.png);
    background-size: cover;
    width: 220px;
    height:150px;
    position: absolute;
    bottom: 0;
    left: 52vw;
}

.animateDino{
    animation: dino 0.7s linear;
}

.obstacleAni{
    animation: obstacleAni 5s linear infinite;
    animation-fill-mode: forwards;
}

.gameOver{
    position: relative;
    top: 63px;
    font-size: 53px;
    text-align: center;
    display: none;
    font-family: sans-serif;

}

#scoreCont{
    color: #54212f;
    font-weight: bold;
    position: absolute;
    right: 45px;
    top: 31px;
    border: 2px solid black;
    padding: 10px;
    font-family: sans-serif;
}

@keyframes dino{
    0%{
        bottom: 0;
    }
    50%{
        bottom: 422px;
    }
    100%{
        bottom: 0; 
    }
}

@keyframes obstacleAni{
    0%{
        left: 100vw;
    }
    100%{
        left: -10vw;
    }
}

#restartBtn {
    position: absolute;
    top: 150px;
    left: 50%;
    transform: translateX(-50%);
    padding: 15px 30px;
    font-size: 20px;
    background-color: yellow;
    border: 2px solid black;
    border-radius: 10px;
    cursor: pointer;
    font-family: sans-serif;
}
