/** Main **/

.inv-inner-items {
    flex: 1;

    display: flex;
    flex-direction: column;
    gap: 4px;

    overflow: auto;
}

.inv-inner-row {
    display: flex;
    flex-direction: row;
    gap: 4px;
}


/** Slots **/

.inv-slot {
    position: relative;

    width: 64px;
    height: 64px;

    background-color: rgba(0, 0, 0, 0.075);
    box-shadow: inset 0 0 8px 4px rgba(0, 0, 0, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.34);

    cursor: pointer;
}

.inv-slot img {
    width: 100%;
    height: 100%;

    image-rendering: auto;
    filter: drop-shadow(2px 2px 2px rgba(0, 0, 0, 0.4));
}

.inv-slot:active {
    cursor: grabbing;
}

.inv-slot:hover, .inv-slot-dragover {
    background-color: rgba(255, 255, 255, 0.05);
}

.inv-slot-dragover {
    cursor: grabbing;
}

.inv-slot-quantity {
    position: absolute;
    bottom: 4px;
    right: 4px;

    margin: 0;

    color: white;
    font-size: 14px;
    text-shadow: 2px 2px 1px rgba(0, 0, 0, 0.25);

    user-select: none;
}


/** Hotbar **/

#hotbar {
    position: relative;

    width: fit-content;

    display: flex;
    flex-direction: row;
    gap: 4px;

    padding: 4px;

    background-image: url("../../../img/ui_background.png");
    background-repeat: repeat;
    background-size: 128px;
    image-rendering: pixelated;
    backdrop-filter: blur(16px);
    outline: 2px solid #cccccc;

    box-shadow: 0 0 4px 2px rgba(0, 0, 0, 0.25);
}

.hotbar-slot-current {
    box-shadow: inset 0 0 4px 4px #ababab;
    border: 2px solid white;
}


/** Item Tooltip **/

#item-tooltip {
    position: absolute;
    left: 50%;
    top: 50%;

    display: none;
    flex-direction: row;
    gap: 8px;

    padding: 4px;

    background-image: url("../../../img/ui_background.png");
    background-repeat: repeat;
    background-size: 128px;
    image-rendering: pixelated;
    backdrop-filter: blur(16px);
    box-shadow: 0 0 4px 2px rgba(0, 0, 0, 0.25);
    border: 2px solid #cccccc;

    color: white;

    user-select: none;
}

#item-tooltip p {
    margin: 0;
}

#item-tooltip-left {
    width: 96px;
    height: 96px;
}

#item-tooltip-left img {
    width: 96px;
    /*border: 1px solid rgba(255, 255, 255, 0.8);*/
}

#item-tooltip-right {
    display: flex;
    flex-direction: column;

    padding: 4px;
}

#item-tooltip-header {
    display: flex;
    flex-direction: row;
    gap: 8px;

    align-items: center;
}

#item-tooltip-name {
    flex: 1;

    font-size: 18px;
}

#item-tooltip-amount {
    flex: 0;
}

#item-tooltip-category {
    font-size: 12px;
    font-style: italic;

    opacity: 0.7;
}

#item-tooltip-description {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;

    font-size: 14px;

    white-space: pre-line;
}

#item-tooltip-preview {
    image-rendering: auto;

    box-shadow: inset 0 0 16px rgba(0, 0, 0, 0.4);
    filter: drop-shadow(2px 2px 2px rgba(0, 0, 0, 0.4));
}