@media (min-width: 1500px) {
    .doll-container {
        display: grid;
        grid-template-columns: 410px 410px 1fr;
        column-gap: 10px;
        grid-template-areas:
            "doll-control doll-control doll-control"
            "doll characteristics doll-items"
            "last-items characteristics doll-items"
    }
}

@media (min-width: 1300px) and (max-width:1500px) {
    .doll-container {
        display: grid;
        /*grid-template-columns: 410px 410px 1fr;*/
        column-gap: 10px;
        grid-template-areas:
            "doll-control    doll-items"
            "doll            doll"
            "characteristics characteristics"
            "last-items last-items";
    }
}

@media (min-width: 500px) and (max-width:1300px) {
    .doll-container {
        display: grid;
        /*grid-template-columns: 410px 410px 1fr;*/
        column-gap: 10px;
        grid-template-areas:
            "doll-control"
            "doll-items"
            "doll"
            "characteristics"
            "last-items";
    }

    .list-wrapper {
        max-height: 200px !important;
    }
}

.doll {
    background-image: url("../Images/Images/Doll.png");
    background-size: cover;
    background-position: center;
    /* Center the image */
    background-repeat: no-repeat;
    /* Do not repeat the image */
    width: 400px;
    height: 600px;
    position: relative;
    overflow: hidden;
}



.doll-control {
    width: 100%;
}

.doll-items {
    grid-area: doll-items;
    overflow: auto;
}

.rg-text-left {
    text-align: left !important;
}

.doll-grid {
    grid-area: doll;
}

.rg-row.last-items {
    grid-area: last-items;
    display: flex;
    flex-direction: row-reverse;
    max-width: 400px;
    height: 110px;
    overflow: auto;
}

.doll > .item-container {
    margin: 0;
}

.doll-container > div {
    margin: 5px;
}



.doll .item-slot {
    position: absolute;
    /* Center the image */
    /* Do not repeat the image */
    background-color: transparent;
    width: 40px;
    height: 40px;
}

.remove-button {
    position: absolute;
    height: 15px;
    background: gray;
    width: 100%;
    bottom: -15px;
    right: 0;
    display: none;
    color: white;
    font-size: 70%;
    text-align: center;
    cursor: pointer;
}

.item-container:hover .remove-button {
    display: block;
}

.doll .item-slot.helm {
    top: 76px;
    left: 177px;
    z-index: 100;
}

.doll .item-slot.cloak {
    top: 104px;
    left: 247px;
    z-index: 99;
}

.doll .item-slot.shoulders {
    top: 106px;
    left: 104px;
    z-index: 99;
}

.doll .item-slot.chest {
    top: 178px;
    left: 177px;
    z-index: 90;
}

.doll .item-slot.pants {
    top: 273px;
    left: 176px;
    z-index: 80;
}

.doll .item-slot.necklace {
    top: 127px;
    left: 177px;
    z-index: 95;
}

.doll .item-slot.boots {
    top: 369px;
    left: 178px;
    z-index: 70;
}

.doll .item-slot.gauntlets {
    top: 222px;
    left: 226px;
    z-index: 80;
}

.doll .item-slot.underwear {
    top: 222px;
    left: 129px;
    z-index: 80;
}

.doll .item-slot.ring1 {
    top: 323px;
    left: 105px;
    z-index: 60;
}

.doll .item-slot.ring2 {
    top: 323px;
    left: 247px;
    z-index: 60;
}

.doll .item-slot.ring3 {
    top: 369px;
    left: 105px;
    z-index: 50;
}

.doll .item-slot.ring4 {
    top: 369px;
    left: 247px;
    z-index: 50;
}

.doll .rune-slot {
    position: absolute;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: rotate(45deg);
    z-index: 55;
}

    .doll .rune-slot .rune-frame {
        width: 100%;
        height: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        border: 2px solid #f5f5f5;
        background-color: rgba(0, 0, 0, 0.65);
        border-radius: 6px;
        transform: rotate(-45deg);
        transform-origin: center;
        padding: 4px;
        gap: 4px;
        box-shadow: 0 0 8px rgba(0, 0, 0, 0.6);
    }

        .doll .rune-slot .rune-frame .form-select {
            width: 100%;
            padding: 2px 4px;
            font-size: 10px;
            line-height: 1.2;
            margin: 0;
        }

        .doll .rune-slot .rune-frame .rune-label,
        .doll .rune-slot .rune-frame .rune-display {
            font-size: 10px;
            color: #ffffff;
            text-align: center;
            line-height: 1.2;
        }

        .doll .rune-slot .rune-frame .rune-display {
            white-space: nowrap;
        }

    .doll .rune-slot.rune1 {
        top: 420px;
        left: 105px;
    }

    .doll .rune-slot.rune2 {
        top: 420px;
        left: 165px;
    }

    .doll .rune-slot.rune3 {
        top: 420px;
        left: 225px;
    }

    .doll .rune-slot.rune4 {
        top: 420px;
        left: 285px;
    }

.rune-frame.rune-red {
    background-color: rgba(139, 0, 0, 0.8);
    border-color: #ff7a7a;
}

.rune-frame.rune-blue {
    background-color: rgba(0, 51, 102, 0.8);
    border-color: #5aa0ff;
}

.rune-frame.rune-yellow {
    background-color: rgba(130, 92, 0, 0.8);
    border-color: #ffe066;
}

.rune-frame.rune-green {
    background-color: rgba(0, 88, 32, 0.8);
    border-color: #8cff8c;
}

.doll .item-slot.bracer1 {
    top: 179px;
    left: 105px;
    z-index: 90;
}

.doll .item-slot.bracer2 {
    top: 177px;
    left: 247px;
    z-index: 90;
}


.doll .item-slot.left {
    top: 273px;
    left: 90px;
    z-index: 70;
}

.doll .item-slot.right {
    top: 273px;
    left: 262px;
    z-index: 70;
}

.doll .item-slot.occupation {
    top: 89px;
    left: 325px;
    z-index: 100;
}

.doll .item-slot.ability1 {
    top: 144px;
    left: 324px;
    z-index: 90;
}

.doll .item-slot.ability2 {
    top: 201px;
    left: 324px;
    z-index: 80;
}

.doll .item-slot.ability3 {
    top: 255px;
    left: 324px;
    z-index: 70;
}

.doll .item-slot.ability4 {
    top: 311px;
    left: 324px;
    z-index: 60;
}

.doll .item-slot.ability5 {
    top: 366px;
    left: 324px;
    z-index: 50;
}

.buffs .buff {
    background: rgba(0, 0, 0, 0.75);
}

    .buffs .buff .background-wrapper {
        height: 50px;
        width: 50px;
        border-radius: 50%;
        display: inline-block;
        border: 1px solid #fff;
        -webkit-box-shadow: 0 0px 30px 8px #000;
        box-shadow: 0 0px 30px 8px #000;
        -moz-box-shadow: 0 0px 30px 8px #000;
        color: beige;
    }

.buffs .item-slot, .buffs .overlay, .buffs img {
    border-radius: 50%;
}

.buffs .item-container {
    width: 50px;
    height: 50px;
}

.rg-row {
    display: flex;
    flex-direction: row;
}

    .rg-row > div:nth-child(n+2) {
        margin-left: 5px;
    }

.rg-col {
    width: 100%;
    display: flex;
    flex-direction: column;
}


.flex-0 {
    flex: 0;
}

.rg-col > div:nth-child(n+2) {
    margin-top: 10px;
}

.rg-center {
    align-items: center;
    justify-content: center;
}

.rg-spaced {
    display: flex;
    justify-content: space-between;
}

.rg-evenly {
    display: flex;
    justify-content: space-evenly;
}

.rg-wrap {
    flex-wrap: wrap;
}

.rg-icon {
    box-sizing: border-box;
    width: 50px;
    height: 50px;
    left: 5px;
    top: 5px;
    padding: 2px;
    filter: drop-shadow(0px 4px 4px rgba(0, 0, 0, 0.25));
}

    .rg-icon.small {
        width: 20px;
        height: 20px;
    }

    .rg-icon.xsmall {
        width: 15px;
        height: 15px;
    }

    .rg-icon.med {
        width: 25px;
        height: 25px;
    }

    .rg-icon.large {
        width: 35px;
        height: 35px;
    }

.rg-pd5 {
    padding: 5px;
}

.rg-mg0 {
    margin: 0px !important;
}

.rg-bottom {
    margin-top: auto !important;
    margin-bottom: 10px;
    position: absolute;
    bottom: 0;
}

.rg-error {
    color: red;
}


.attributes-table {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
    margin-top: 8px;
}

    .attributes-table th,
    .attributes-table td {
        padding: 4px 6px;
        font-size: 11px;
        text-align: center;
        white-space: nowrap;
        vertical-align: middle;
    }

        .attributes-table th:first-child,
        .attributes-table td:first-child,
        .attributes-table th:nth-child(5),
        .attributes-table td:nth-child(5) {
            width: 32px;
        }

    .attributes-table img {
        width: 20px;
        height: 20px;
    }


    .attributes-table thead th {
        padding-bottom: 6px;
    }

    .attributes-table tbody td {
        padding-top: 4px;
    }
