body {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    background-color: #f7f7f7;
    font-family: Arial, sans-serif;
}

#game-container {
    width: 600px;
    height: 200px;
    border-bottom: 5px solid #333;
    position: relative;
    overflow: hidden; /* Crucial for hiding obstacles off-screen */
    background-color: #fff;
}

#dino {
    width: 20px;
    height: 40px;
    background-color: green; /* Dino placeholder */
    position: absolute;
    bottom: 0;
    left: 20px;
}

/* Base style for obstacles */
.obstacle {
    width: 15px;
    height: 30px;
    background-color: red; /* Obstacle placeholder */
    position: absolute;
    bottom: 0;
    right: -15px; /* Start off-screen */
}

/* JUMP ANIMATION KEYFRAMES */
.jump {
    animation: dino-jump 0.6s ease-out; /* The dino jumps and lands */
}

@keyframes dino-jump {
    0% { bottom: 0; }
    50% { bottom: 100px; } /* Max height of jump */
    100% { bottom: 0; }
}

#info-panel {
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 14px;
    color: #333;
}
