body { margin: 0; overflow: hidden; background-color: #87CEEB; /* Sky blue */ }
#game {
    position: relative;
    width: 100vw;
    height: 100vh;
    background-color: #a0d0a0; /* Grass green */
    overflow: hidden;
}

#player {
    position: absolute;
    width: 32px;
    height: 32px;
    background-color: red;
    left: 100px;
    top: 0px;
    z-index: 10;
}

.block {
    position: absolute;
    width: 32px;
    height: 32px;
    image-rendering: pixelated;
}

#inventory {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    padding: 10px;
    border-radius: 5px;
    display: flex;
    gap: 5px;
    z-index: 20;
}

.inventory-slot {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.4);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.2s;
}

.inventory-slot.selected {
    background-color: rgba(255, 255, 0, 0.5); /* Yellow highlight */
}

.inventory-slot img {
    max-width: 100%;
    max-height: 100%;
    image-rendering: pixelated;
}
