body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    overflow: hidden;
    background-color: #f7f7f7;
      
}

.game-container {
    position: relative;
    width: 800px;
    height: 300px;
    margin: 50px auto;
    background-color: white;
    border: 1px solid #ccc;
    overflow: hidden;
}

.dino {
    position: absolute;
    width: 50px;
    height: 50px;
    bottom: 0;
    left: 50px;
    z-index: 2;
    background-image: url();
    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();
    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: 10px;
    bottom: 0;
    left: 0;
    background-color: #777;
    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: #ff3333;
    z-index: 5;
    display: none;
}

.game-over span {
    font-size: 16px;
    color: #555;
}

.start-screen {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 24px;
    text-align: center;
    color: #555;
    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; }
}

