.scene {
    background-image: url("../assets/haupthintergrund.png");
    background-size: cover;
    background-repeat: no-repeat;
}

/* STEEEEVEEEEE */
#steve img {
    opacity: 0;
    transition: opacity 0.2s ease;
}

.steveHead,
.steveStomach,
.steveLegRight,
.steveLegLeft,
.steveArmLeft,
.steveArmRight {
    position: absolute;
    transform: translateX(-50%);
    height: auto; /* keep height controlled individually */
}

.steveHead {
    height: 10%;
    left: 28.5%;
    top: 40%;
}
.steveStomach {
    height: 15%;
    left: 28.5%;
    top: 49.5%;
}
.steveLegRight {
    height: 15%;
    left: 29.6%;
    top: 64.4%;
}
.steveLegLeft {
    height: 15%;
    left: 27.4%;
    top: 64.4%;
}
.steveArmLeft {
    height: 15%;
    left: 25.2%;
    top: 49.5%;
}
.steveArmRight {
    height: 15%;
    left: 31.8%;
    top: 49.5%;
}

/* Crafting */
.craftingTable {
    height: 50%;
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, 0);
}
.ItemFrame {
    height: 20%;
    position: absolute;
    top: 15%;
    left: 50%;
    transform: translate(-50%, 0);
}

/* Items sidebar */
#items {
    position: absolute;
    right: 2%;
    height: 60vh;
    width: 50vh;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.62), transparent);
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

/* Search */
#searchImg {
    padding: 5%;
    position: absolute;
    top: 90%;
    height: 10vh;
    width: 45vh;
    background-image: url('../assets/Searchbar.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

#search {
    position: absolute;
    height: 10vh;
    width: 50vh;
    background-color: transparent;
    outline: none;
    border: none;
    color: white;
    font-size: medium;
    background-position: center;
}

.confirmBtn {
    position: absolute;
    background: none;
    border: none;
    margin: 0;
    outline: none;
    cursor: pointer;
    right: 0;
    bottom: 5%;

}

.confirmBtn img {
    width: 100%;
    display: block;
}

.skipBtn {
    background: none;
    border: none;
    position: absolute;
    right: 0;
    bottom: 0;
    padding: 1%;
}

.skipBtn img {
    display: block;
}

/* Item List */
#itemList {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    padding: 10px;
    overflow-y: auto;      /* enables vertical scrolling */
    overflow-x: hidden;
}


#itemList::-webkit-scrollbar {
    width: 6px;
}

#itemList::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}

/* Draggable items */
.draggableItem {
    cursor: grab;
    user-select: none;
    width: 60px;
    height: 60px;
    background: rgba(0, 0, 0, 0.32);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.draggableItem img {
    max-width: 90%;
    max-height: 90%;
    pointer-events: none;
}

/* Crafting grid and cells */
.craftingGrid {
    position: absolute;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
    width: 15vw;
    height: 15vw;
    top: 64%;
    left: 49.6%;
    transform: translate(-50%, -50%);
}

.craftingGrid > div {
    border: solid 5px #000000;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.25);
    margin: 0; /* remove previous margin */
}

/* Drag-over highlight */
.drag-over {
    border: 2px dashed green !important;
}

#target img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

#target {
    position: absolute;
    display: flex;
    width: 10%;
    height: 10%;
    left: 44.9%;
    top: 20%;
}

#level {
    font-family: 'Press Start 2P', monospace;
    font-size: 16px;
    letter-spacing: 1px;
}