body {
    background-image: url('../img/Nyan_cat.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    background-attachment: fixed;
}

.game-container {
    position: relative;
    width: 800px;
    height: 300px;
    margin: 50px auto;
    background-color: rgb(226, 217, 217);
    border: 1px solid #ccc;background-image: url(img/Sed.JPG);
    overflow: hidden;
}

.dino {
    position: absolute;
    width: 50px;
    height: 50px;
    bottom: 0;
    left: 50px;
    z-index: 2;

    background-image: url(img/Dinopx.png);
    background-size: cover; /* Ajusta la imagen al tamaño del div */
    background-repeat: no-repeat; /* Evita que se repita */
    background-position: center;  /* Centra la imagen en el div */
}

.cactus {
    position: absolute;
    width: 20px;
    height: 40px;
    bottom: 0;
    right: 0;
    z-index: 2;

    background-image: url(img/cactus_estereotipo.png);
    background-size: cover; /* Ajusta la imagen al tamaño del div */
    background-repeat: no-repeat; /* Evita que se repita */
    background-position: center;  /* Centra la imagen en el div */
}

.ground {
    position: absolute;
    width: 100%;
    height: 20px;
    bottom: 0;
    left: 0;
    background-color: #121111;
    z-index: 3;
}

.score {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 18px;
    z-index: 4;
}

.game-over {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 30px;
    font-weight: bold;
    text-align: center;
    color: #ff0000;
    z-index: 5;
    display: none;
}

.game-over span {
    font-size: 16px;
    color: #524f4f;
    
}

.start-screen {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 24px;
    text-align: center;
    color: #555555;
    z-index: 5;
}

.jump {
    animation: jump 0.5s linear;
}

@keyframes jump {
    0% { bottom: 0; }
    50% { bottom: 100px; }
    100% { bottom: 0; }
}

.move {
    animation: move 1.5s infinite linear;
}

@keyframes move {
    0% { left: 800px; }
    100% { left: -20px; }
}