﻿inventorybar {
    position: absolute;
    left: 20px;
    top: 0px;
    font-family: Roboto;
    opacity: 0;
    transition: all 0.2s ease-out;


    &.active {
        top: 20px;
        transition: all 0.1s ease-out;
        opacity: 1;
    }
}

inventorycolumn {
    margin-right: 5px;
    padding: 20px;
    mix-blend-mode: lighten;
    color: white;
    flex-direction: column;
    align-items: flex-start; // align to the left, don't stretch

    .slot-number {
        background-color: rgba(9, 9, 9, 0.54);
        border-radius: 8px;
        padding: 22px 15px 0px 10px;
        font-size: 34px;
        font-weight: bolder;
        width: 60px;
        height: 60px;
    }

    inventoryicon {
        opacity: 1;
        padding: 25px 15px 10px 2px;
        width: 60px;
        height: 60px;
        overflow: hidden;
        transition: all 0.1s ease-out;

        .icon {
            opacity: 0;
        }
    }

    opacity: 0.4;

    &.active {
        opacity: 1;

        inventoryicon {
            transition: all 0.1s ease-out;
            opacity: 0.2;
            display: flex;
            width: 350px;
            height: 180px;

            .icon {
                opacity: 1;
            }

            &.active {
                opacity: 1;
            }
        }
    }
}

inventoryicon {
    margin-top: 5px;
    mix-blend-mode: normal;
    flex-direction: column;
    flex-shrink: 0;
    color: #ffffff;
    background-color: rgba(16, 16, 16, 0.47);
    border-radius: 10px;
    backdrop-filter: blur(6px);
    font-size: 40px;
    font-weight: lighter;
    align-items: center;
    justify-content: center;
    overflow: hidden;

    .icon {
        width: 180px;
        height: 180px;
        background-size: 100%;
        //background-image-tint: #fa0;
    }
    
    .name {
        top: 20px;
        position: absolute;
        font-size: 22px;
        font-weight: bolder;
        opacity: 0;
    }

    &.active {
        opacity: 1;

        .icon {
            // filter: drop-shadow additive glow
            opacity: 1;
        }
        
        .name {
            opacity: 1;
        }
    }

    &.empty {
        opacity: 0.5;
        background-color: #c004;
        color: #f002;

        .icon {
            background-color: #e80000;
        }
        
        .name {
            opacity: 0;
        }
    }
}
