/* Backpack menu details UI */

.backpack-layout,
.gear-layout {
    display: flex;
    flex-direction: row;
    gap: 16px;
    width: 100%;
    margin: auto;
    justify-content: space-between;
}

/* split divs under inventory layouts evenly */
.backpack-layout > div,
.gear-layout > div {
    flex: 1 1 0;
    box-sizing: border-box;
}

/* nice list for our back pack */
.treasure-list{
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    align-items: center;
    width: 100%;
    flex-direction: column;
}

/* each item golden like a button */
.treasure-list .backpack-item{
    background-color: var(--golden-orange);
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: left;
}

/* each item golden like a button */
.treasure-list .backpack-item img{
    max-width: 32px;
    margin: auto 0;
    padding: var(--xx-small);
}

/* side by side preview of treasure and description */
.media-block{
    display: flex;
    gap: var(--medium);
    margin: 1rem auto;
}

.gear-item p{
    margin: auto;
}

.item-list,
.item-preview,
.gear-list,
.gear-preview {
    /* max-width: 50%; */
    box-sizing: border-box;
}

.gear-left-inner{
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.gear-option {
    display: block;
    background: #eee;
    cursor: pointer;
}

.gear-option:hover {
    background: #ddd;
}

div.gear-swap{
    display: flex;
    flex-direction: column;
    list-style: none;
    align-items: start;
}

.item-preview img{
    margin: 0;
    background-color: var(--dark-leather);
}

.item-preview p{
    margin: auto 0;
}

.panel{
    width: 100%;
    margin: 1rem auto;
}

.panel h1{
    margin: auto;
}

.panel p{
    margin: 0.15rem auto;
}

.preview-image{
    width: 256px;
    height: 256px;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

/* ID */

#gear-equipped, #gear-inventory, #gear-preview {
    flex: 1 1 33%;
    box-sizing: border-box;
}