:root {
    --level-none: #ccc;
    --level-one: #9C8867;
    --level-two: #CF7F29;
    --level-three: #A2A41B;
    --level-four: #42C234;
    --level-five: #315DCE;
    --level-six: #A42ACC;
}

* {
    margin: 0;
    padding: 0;
    font-size: 16px;
}


.build,
.stats {
    margin: 2rem;
    width: 1020px;
}







#armourItems {


    display: flex;
    column-gap: 20px;
    list-style-type: none;
    font-family: "Armata", sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 16px;


    & li {
        position: relative;


        & .armourItem {
            user-select: none;
            position: relative;
            isolation: isolate;
            width: 240px;
            height: 344px;
            /* background-color: #f0f0f0; */

            & .incLevel,
            & .decLevel,
            & .incClass,
            & .decClass {
                font-family: "Material Symbols Outlined";
                position: absolute;
                font-size: 1.5rem;
                line-height: 2rem;
                text-align: center;
                width: 2rem;
                height: 2rem;
                background-color: #aaa;
                box-sizing: border-box;
                border: 1px solid #000;
                border-radius: .3rem;
                cursor: pointer;

                &::before {
                    position: absolute;
                    top: 0;
                    left: 0;
                    content: "";
                    width: 100%;
                    height: 100%;
                }
            }

            & .incLevel::before {
                content: "\e145";
            }

            & .decLevel::before {
                content: "\e15b";
            }

            & .incClass::before {
                content: "\e315";
            }

            & .decClass::before {
                content: "\e314";
            }




            &[data-class="None"] {

                & .incLevel,
                & .decLevel {
                    opacity: .4;
                    cursor: not-allowed;

                }
            }

            &[data-level="1"] {
                & .decLevel {
                    opacity: .4;
                    cursor: not-allowed;

                }
            }

            &[data-level="6"] {
                & .incLevel {
                    opacity: .4;
                    cursor: not-allowed;

                }
            }




            & .incLevel {
                bottom: 0;
                left: calc(calc(100% / 2) - 16px);
            }

            & .decLevel {
                top: 0;
                left: calc(calc(100% / 2) - 16px);
            }

            & .incClass {
                right: 0;
                top: calc(calc(100% / 2) - 16px);
            }

            & .decClass {
                left: 0;
                top: calc(calc(100% / 2) - 16px);
            }



            & .item {
                position: absolute;
                top: 36px;
                left: 36px;

                & .itemType,
                & .itemClass,
                & .itemLevel {
                    height: 32px;
                    width: 100%;
                    line-height: 32px;
                    text-align: center;
                }

                & .itemClass,
                & .itemLevel {
                    background-color: var(--level-color);
                    color: #fff;
                    text-shadow: 1px 1px 1px #000;
                }


                & .itemType {
                    font-style: italic;
                    font-size: .8rem;
                }


                & .itemImage {
                    position: relative;
                    width: 164px;
                    height: 164px;
                    border: 2px solid var(--level-color);

                    &::before {
                        z-index: 0;
                        content: "";
                        position: absolute;
                        bottom: 1px;
                        right: 1px;
                        width: 14px;
                        height: 14px;
                        /* border-style: solid; */
                        /* background-color: var(--level-color); */
                        border: 1px solid var(--level-color);
                    }

                    &[data-base="None"]::before {
                        border-style: dashed;
                    }

                    &[data-base="Light"]::before {
                        border-bottom-width: 5px;
                        height: 10px;
                    }

                    &[data-base="Medium"]::before {
                        border-bottom-width: 10px;
                        height: 5px;

                    }

                    &[data-base="Heavy"]::before {
                        height: 14px;
                        background-color: var(--level-color);

                    }

                    &::after {
                        z-index: -1;
                        position: absolute;
                        content: "category: " attr(title);
                        font-variant: small-caps;
                        height: 1rem;
                        font-size: .6rem;
                        line-height: 1rem;
                        background-color: var(--level-color);
                        color: #fff;
                        padding-right: 1rem;
                        transform-origin: top left;
                        width: calc(calc(100% - 2rem) - 3px);
                        text-align: left;
                        text-indent: .2rem;
                        left: 1px;
                        bottom: 1px;


                    }


                }






            }

        }






        & .armourItem[data-level][data-class="None"] {
            --level-color: var(--level-none);
        }

        & .armourItem[data-level="1"] {
            --level-color: var(--level-one);
        }

        & .armourItem[data-level="2"] {
            --level-color: var(--level-two);
        }

        & .armourItem[data-level="3"] {
            --level-color: var(--level-three);
        }

        & .armourItem[data-level="4"] {
            --level-color: var(--level-four);
        }

        & .armourItem[data-level="5"] {
            --level-color: var(--level-five);
        }

        & .armourItem[data-level="6"] {
            --level-color: var(--level-six);
        }




    }

    & li:not(:last-child) {
        & .armourItem::before {
            content: "";
            position: absolute;
            top: 20%;
            right: -10px;
            width: 1px;
            height: 60%;
            border-right: 1px dashed #ccc;


        }
    }
}



#armourStats {

    list-style-type: none;

    & .armourItem {

        & .title {
            display: flex;

            &>div {
                width: 30%;
            }

            & div.itemImage {
                width: 80px;
                height: 80px;
                background-size: cover;


            }
        }


    }

    border: 1px solid red;

}