﻿@import '../common.scss';

InventoryDisplay {
    position: absolute;
    right: 64px;
    bottom: 0;
    color: $camo-light;
    flex-direction: column;
    transition: opacity 0.1s;
    opacity: 0;
    pointer-events: all;
    
    &.show {
        opacity: 1;
    }
    
    .title {
        height: 48px;
        width: 192px;
        left: 22px;
        font-size: 32px;
        padding-bottom: 2px;
        align-items: flex-end;
        justify-content: center;
        background-color: $camo-dark;
        transform: rotate(-0.75deg) translate(24px, 8px);
        
        > label {
            transform: rotate(0.75deg) translate(24px, 8px);
        }
    }
    
    .body {
        background-color: $camo-dark;
        width: 520px;
        padding: 36px;
        flex-direction: column;
        gap: 12px;
        
        .inventory-row {
            column-gap: 12px;
            
            .inventory-square {
                width: 80px;
                height: 80px;
                background-color: $camo-darker;
                
                &.disabled {
                    opacity: 0.55;
                }
                
                &:hover:not(.disabled) {
                    background-color: darken($camo-darker, 15%);
                    transform: scale(1.03);
                }
                
                .equipment-ammo {
                    position: absolute;
                    font-size: 22px;
                    margin: 6px;
                    z-index: 4;
                }
                
                .equipment-preview {
                    position: absolute;
                    width: 92px;
                    height: 92px;
                    transform: rotate(6deg);
                    z-index: 2;
                }
            }
        }
    }
}