/* --------------Global Styles-------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}


/* --------------Body & Game Container-------------- */
body {
    background-color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    overflow: hidden;
    transition: background-color 1s ease;
}

#game-container {
    width: 800px;
    height: 500px;
    position: relative;
    display: flex;
    flex-direction: column;
}
/*------------------------------------------------*/


/* --------------Game Elements-------------- */
#stage {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-bottom: 2px solid #535353;
}

#ui-panel {
    color: #5f6368;
    padding: 20px 0;
    z-index: 10;
}


#dino {
    width: 45px;
    height: 48px;
    position: absolute;
    bottom: 0;
    left: 50px;
    z-index: 5;
    background-image: url('assets/Dino.png'); 
    background-size: contain;
    background-repeat: no-repeat;
    background-color: transparent;
}



#smoke-cloud {
    position: absolute;
    left: -300px; 
    bottom: 0;
    width: 300px;
    height: 250px;
    background-image: url('assets/Smoke.png');
    background-size: 100% 100%;
    background-repeat: no-repeat;
    z-index: 4;
}


.meteor {
    position: absolute;
    width: 49px;
    height: 32px;
    background-image: url('assets/Meteor.png');
    background-size: contain;
    background-repeat: no-repeat;
    bottom: 0;
}

.crater {
    position: absolute;
    width: 65px;
    height: 20px;
    background-image: url('assets/Crater.png');
    background-size: contain;
    background-repeat: no-repeat;
    bottom: -2px;
}


body.apocalypse-mode { background-color: #1a1a1a; }
.apocalypse-mode #ui-panel { color: #ff4d4d; }
.apocalypse-mode #stage { border-bottom-color: #444; }

#score {
    position: absolute;
    top: 10px;
    right: 10px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 24px;
    color: #555;
}

#high-score {
    position: absolute;
    top: 10px;
    right: 120px; 
    font-family: 'Courier New', Courier, monospace;
    font-size: 24px;
    color: #999; 
}
.hidden { display: none; }