body {
    font-family: 'Courier New', Courier, monospace;
    background-color: #1a1a1a;
    color: #f0f0f0;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    overflow: hidden; /* Prevent scrollbars from game layout */
}

h1 {
    color: #e74c3c;
    text-shadow: 2px 2px 4px #000;
}

#game-container {
    display: flex;
    gap: 20px;
    border: 2px solid #555;
    padding: 10px;
    background-color: #2b2b2b;
    box-shadow: 0 0 15px rgba(0,0,0,0.5);
    position: relative; /* Needed for absolute positioning of game-over screen */
}

#ui-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 220px; /* Fixed width for the UI sidebar */
}

canvas {
    border: 1px solid #444;
    background-color: #3c4434;
}

/* New Item Bar Styling */
item-bar {
    position: fixed; /* Fix it to the viewport */
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 100; /* Ensure it's on top of other elements */
}


/* General component styling */
player-stats, inventory-display, shop-interface {
    background-color: rgba(0, 0, 0, 0.3);
    border: 1px solid #555;
    border-radius: 8px;
    padding: 15px;
    box-shadow: inset 0 0 8px rgba(0,0,0,0.4);
}
