#right-sidebar {
    width: 400px;
    height: 640px;
    background: #15191f;

    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;

    display: grid;
    grid-template-rows: 150px 200px minmax(0, 1fr) 40px;

    gap: 4px;
    padding: 6px;
    box-sizing: border-box;
}

/* TOP PANEL */

#top-panel {
    display: grid;
    grid-template-columns: 1fr 120px;
    gap: 4px;
}

#top-left-container {
    display: grid;
    grid-template-rows: 1fr 70px;
    gap: 4px;
}

#top-top-container {
    display: grid;
    grid-template-columns: 70px 1fr;
    gap: 4px;
}

#character-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    text-align: center;
}

#character-info {
    display: flex;
    flex-direction: column;
    justify-content: center;

    text-align: center;
}

#resource-bars {
    display: flex;
    flex-direction: column;
    justify-content: center;

    text-align: center;
}

#top-right-container {
    display: grid;
    grid-template-rows: 120px 1fr;
    gap: 4px;
}

#attributes {
    display: flex;
    flex-direction: column;

    text-align: center;
}

#gold {
    display: flex;
    
    align-items: center;
    justify-content: center;
}

/* MIDDLE PANEL */

#middle-panel {
    display: grid;
    grid-template-columns: 116px minmax(0, 1fr) 120px;
    gap: 4px;
}

#equipment {
    display: flex;
    flex-direction: column;

    text-align: center;
}

#equipment-grid {
    display: grid;
    flex: 1;

    grid-template-columns: repeat(3, 32px);
    grid-template-rows: repeat(4, 32px) 5px 32px;

    gap: 4px;
    justify-content: center;
    align-content: center;
}

.equipment-slot {
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
    image-rendering: pixelated;
}

.equipment-slot[data-slot="helmet"] {
    grid-area: 1 / 2;
    background-image: url("../assets/placeholders/eq\ slots/helmet.png");
}

.equipment-slot[data-slot="mainHand"] {
    grid-area: 2 / 1;
    background-image: url("../assets/placeholders/eq\ slots/mainhand.png");
}

.equipment-slot[data-slot="chest"] {
    grid-area: 2 / 2;
    background-image: url("../assets/placeholders/eq\ slots/chest.png");
}

.equipment-slot[data-slot="offHand"] {
    grid-area: 2 / 3;
    background-image: url("../assets/placeholders/eq\ slots/offhand.png");
}

.equipment-slot[data-slot="belt"] {
    grid-area: 3 / 1;
    background-image: url("../assets/placeholders/eq\ slots/belt.png");
}

.equipment-slot[data-slot="legs"] {
    grid-area: 3 / 2;
    background-image: url("../assets/placeholders/eq\ slots/legs.png");
}

.equipment-slot[data-slot="gloves"] {
    grid-area: 3 / 3;
    background-image: url("../assets/placeholders/eq\ slots/gloves.png");
}

.equipment-slot[data-slot="boots"] {
    grid-area: 4 / 2;
    background-image: url("../assets/placeholders/eq\ slots/boots.png");
}

.equipment-slot[data-slot="amulet"] {
    grid-area: 6 / 1;
    background-image: url("../assets/placeholders/eq\ slots/amulet.png");
}

.equipment-slot[data-slot="ring"] {
    grid-area: 6 / 2;
    background-image: url("../assets/placeholders/eq\ slots/ring.png");
}

.equipment-slot[data-slot="trinket"] {
    grid-area: 6 / 3;
    background-image: url("../assets/placeholders/eq\ slots/trinket.png");
}

.equipment-slot {
    width: 32px;
    height: 32px;
    box-sizing: border-box;
    
    background-color: #2c2c2c9a;
    border: 1px solid #ffffff5d;
    border-radius: 2px;
}

#additional-info {
    display: flex;
    flex-direction: column;

    text-align: center;
}

#game-buttons {
    display: flex;
    flex-direction: column;

    text-align: center;
}

/* INVENTORY */

#inventory {
    display: flex;
    flex-direction: column;
}

#inventory .ui-subpanel {
    padding: 6px;
}

#inventory-grid {
    display: grid;
    grid-template-columns: repeat(10, 32px);
    grid-auto-rows: 32px;

    gap: 4px;
    /*justify-content: center;*/
}

.inventory-slot {
    width: 32px;
    height: 32px;
    box-sizing: border-box;
    
    background-color: #2c2c2c9a;
    border: 1px solid #ffffff5d;
    border-radius: 2px;
}

.item-icon {
    display: block;
    width: 100%;
    height: 100%;

    object-fit: contain;
    image-rendering: pixelated;
    pointer-events: none;
}

/* BOTTOM PANEL */
#bottom-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;

    width: 100%;
    box-sizing: border-box;
}

#bottom-panel .ui-subpanel {
    padding: 6px;
}

/* BACKPACKS */

#backpacks-grid {
    display: grid;
    grid-template-columns: repeat(4, 32px);
    gap: 4px;
}

.backpack-slot[data-slot="main"] {
    background-image: url("../assets/placeholders/eq\ slots/bp_main.png");
}

.backpack-slot {
    width: 32px;
    height: 32px;
    box-sizing: border-box;

    background-color: #2c2c2c9a;
    border: 1px solid #ffffff5d;
    border-radius: 2px;
    background-image: url("../assets/placeholders/eq\ slots/bp_slot.png");
}

/* GAME VERSION */

#game-version {
    font-size: 14px;
    margin: 0;
    padding: 0;

    margin-left: auto;
    align-self: flex-end;
}

#game-version p {
    margin: 0;
}