body {
    background-color: #2c2c2c;
    color: #fff;
    font-family: 'Courier New', Courier, monospace;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
}

.game-container {
    text-align: center;
    position: relative; /* Context for positioning UI */
}

h1 {
    font-size: 2.5em;
    color: #ff69b4; /* Hot pink */
    text-shadow: 2px 2px #000;
}

#game-area {
    width: 320px;
    height: 480px;
    background-color: black;
    border: 4px solid #fff;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
    position: relative; /* This is the anchor for all game objects */
    overflow: hidden; /* Objects that go off-screen are hidden */
}

#player {
    width: 22px;
    height: 22px;
    position: absolute; /* Allows JS to control top/left */
    /* The spritesheet is loaded as a background image */
    background-image: url('./assets/kirbywalk.gif');
    background-repeat: no-repeat;
    /* This will be updated by JS to show different frames */
    background-position: 0px 0px; 
    /* This will be updated by JS to flip the character */
    transform: scaleX(1); 
}

.platform {
    width: 50px;
    height: 10px;
    position: absolute; /* Allows JS to control top/left */
}

#ui-container {
    position: absolute;
    top: 65px; /* Position it over the game area */
    left: 0;
    right: 0;
    padding: 10px 15px;
    pointer-events: none; /* Allows clicks to go "through" to the game */
}

.score-display {
    display: flex;
    justify-content: space-between;
    font-size: 15px;
    color: white;
}

#message-display {
    position: absolute;
    top: 200px;
    left: 0;
    right: 0;
    font-size: 20px;
    font-weight: bold;
    color: white;
    text-align: center;
}