#equipment-cancel {
    margin-right: auto;
}

#equipment-wrapper-inner {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: 1fr 1fr 1fr 1fr;
    grid-gap: 8px;
    grid-row-gap: 4px;
    width: fit-content;
    min-width: 300px;
    margin: 15px auto 0;

    .equipment-slot-small {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 1fr 1fr;
        grid-gap: 4px;
    }

    .equipment-slot-small,
    .equipment-slot {
        max-width: 100px;
        min-width: 75px;
        max-height: 100px;
        min-height: 75px;
    }

    .equipment-item-small:hover,
    .equipment-item:hover {

        background: rgba(33,33,33,.2);
        img {
            opacity: 0.8;
        }
    }

    .equipment-item-small,
    .equipment-item {
        width: 100%;
        height: 100%;

        border: 1px solid rgba(0,0,0,.4);
        cursor: pointer;
        background: rgba(33,33,33,.1);
        box-shadow: inset 0px 0px 5px 5px rgba(33,33,33,.2);
        margin: 0 auto;


        img {
            width: 100%;
            padding: 5px;
            height: auto;
            opacity: 0.5;
        }
    }

    .empty:hover,
    .empty {
        border: none;
        cursor: default;

        background: none;
        box-shadow: none;
    }

    .equipped {
        background: rgba(122, 201, 105, 0.8);
        opacity: 1;

        img {
            opacity: 1;
        }

        img:hover {
            opacity: 1;
        }
    }

    .equipped:hover {
        background: rgba(122, 201, 105, 0.9);
        opacity: 1;
    }

    .equipped.not-saved {
        background: rgba(234, 214, 119, 0.9);
        opacity: 1;
    }

    .equipped.not-saved:hover {
        background: rgba(234, 214, 119, 1);
        opacity: 1;
    }
}

#showEquipmentModal {
    .modal-body {
        margin: 0 auto;
        width: 100%;
    }
}

.equipment-sets-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-gap: 8px;
    margin: 15px auto 0;

    button {
        width: 100%;
        padding: 5px 5px
    }
}

.equipment-active-set-name {
    display: grid;
    grid-template-columns: 1fr;

    .equipment-set-name button{
        display: inline-block;
    }

    .equipment-set-name {
        #equipment-set-name-value {
            background: rgba(33, 33, 33, .05);
            border: none;
            border-bottom: 1px solid rgba(33, 33, 33, .3);
            padding: 5px;
            text-align: center;
            width: 300px;
        }

        .accept-equipment-name,
        .cancel-equipment-name {
            position: relative;
            img {
                width: 25px;
                height: auto;
            }
        }

        #equipment-set-name-value.readonly:disabled,
        #equipment-set-name-value.readonly:focus,
        #equipment-set-name-value.readonly:active,
        #equipment-set-name-value.readonly {
            background: none;
            border: none;
            cursor: default;
            font-size: 1.3em;
            color: black;
            width: auto;
        }

        #equipment-set-name-value:focus,
        #equipment-set-name-value:active {
            outline: none;
            background: rgba(33, 33, 33, .08);
            border-bottom: 1px solid rgba(33, 33, 33, .5);
        }

        button {
            border: none;
            position: absolute;
            padding-left: 0;
            padding-right: 0;

            img {
                top: 12px;
                width: 16px;
                height: auto;
            }

            .icon-active {
                top: 2px;
                left: -3px;
                width: 22px;
            }
        }

        button:hover {
            background: none;
        }
    }

    .equipment-set-active {
        margin: auto;
    }

}

#pickEquipmentBody {

    .actual-equipment-wrap {
        margin-bottom: 20px;
        background: rgba(122, 201, 105, 0.8);
        border: 1px solid rgb(120, 198, 104);

        .actual-equipment-info {
            border-bottom: 1px solid rgb(120, 198, 104);
            margin: 10px;
            padding-bottom: 5px;

            img {
                padding: 5px;
                background: rgba(255, 255, 255, .1);
                border: 1px solid rgb(120, 198, 104);
            }

            .actual-equipment-name {
                margin: auto;
            }

            label {
                padding: 0;
            }
        }

        .actual-equipment-buttons {
            padding: 0 5px 5px 5px;

            .equipment-remove {
                margin-right: auto;
            }

            .equipment-detail {
                margin: 0 0 0 auto;
            }
        }

    }

    .spell {

        .item-top-wrap {
            cursor: default;
        }

        .item-header-image {
            text-align: center;
            img {
                margin-top: 2px;
                width: 40px;
                height: 40px;
            }

        }

        .item-name {
            label {
                font-weight: normal;
            }
        }

        .equipment-add {
            margin: 0 0 0 auto;
            height: 100%;
        }
    }



}


@media screen and (max-width: 450px) {
    .equipment-sets-wrapper {
        grid-template-columns: 1fr
    }
}