body {
    background-color: #1a1a1a;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    margin: 0;
    font-family: 'Courier New', Courier, monospace;
    color: white;
}

#ui-layer {
    width: 512px;
    margin-bottom: 10px;
    display: flex; 
    justify-content: space-between;
    font-size: 20px;
    font-weight: bold;
}

#camera {
    position: relative;
    width: 512px;
    height: 512px;
    border: 4px solid #444;
    overflow: hidden; 
    background-color: black;
}

#world {
    position: absolute;
    top: 0;
    left: 0;
    transition: transform 0.2s ease-out;
    
    /* --- NEW MAP BACKGROUND --- */
    width: 1280px;  /* 20 tiles * 64px */
    height: 1280px; /* 20 tiles * 64px */
    background-image: url('assets/tilesets/forestmap.jpg');
    background-size: 100% 100%; /* Stretch image to fit the map size */
    background-repeat: no-repeat;
}

.sprite {
    position: absolute;
    width: 64px;
    height: 64px;
}

/* --- TILE VISIBILITY --- */

/* Grass is now invisible so we can see the forestmap.jpg */
.floor { 
    opacity: 0; 
} 

/* Walls are semi-transparent Red so you can see where collisions are */
/* Once you finish designing the level, change opacity to 0 */
.wall-tile {
    z-index: 5;
    background-color: rgba(255, 0, 0, 0.3); /* Red Debug Box */
    border: 1px solid red;
}

.item  { z-index: 5; }
.mob   { z-index: 8; transition: top 0.2s, left 0.2s; }
.hero  { z-index: 10; transition: top 0.1s, left 0.1s; }