* {
    margin: 0;
    padding: 0;
}

body {
    background-color: aqua;
    overflow: hidden;
}

.gameContainer {
    background-image: url(img111.png);
    background-size: cover;
    width: 100vw;
    height: 100vh;
}

.dino {
    background-image: url(imm1.png);
    background-size: cover;
    width: 140px;
    height: 140px;
    position: absolute;
    bottom: 0;
    left: 50px;
}

.obstacle {
    background-image: url(11.png);
    background-size: cover;
    width: 150px;
    height: 150px;
    position: absolute;
    bottom: 0;
    left: 100vw;
}

.animatedino {
    animation: jump 0.6s linear;
}

.obstacleAni {
    animation: obstacleMove 4s linear infinite;
}

.gameOver {
    position: absolute;
    top: 40px;
    width: 100%;
    text-align: center;
    font-size: 40px;
    font-family: Arial;
}

#scoreContainer {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 24px;
    color: white;
    background: black;
    padding: 10px;
    border-radius: 10px;
}

#replayBox {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: blue;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    display: none;
    z-index: 10;
}

#replayBox button {
    padding: 10px 20px;
    font-size: 18px;
    cursor: pointer;
}

.flip {
    transform: scaleX(-1);
}

@keyframes jump {
    0% { bottom: 0; }
    50% { bottom: 250px; }
    100% { bottom: 0; }
}

@keyframes obstacleMove {
    0% { left: 100vw; }
    100% { left: -10vw; }
}
