#content.content_spellcrafting {
    padding: 5px;
    display: flex;
    flex-direction: column;
}

    #content.content_spellcrafting #top_box {
        display: flex;
        flex-grow: 0;
        min-height: 315px;
    }

    #content.content_spellcrafting #top_box_left {
        display: flex;
        flex-direction: column;
        flex-grow: 1;
        min-height: 315px;
        height: 315px;
    }

    #content.content_spellcrafting #bot_box {
        grid-area: spellcrafting_bot_box;
        display: flex;
        overflow: hidden;
        flex-grow: 1;
        min-height: 250px;
    }

#settings {
    border: 1px solid black;
    border-radius: 5px;
    margin: 5px;
    flex-grow: 0;
    padding-left: 1px;
}

    #settings button img {
        margin: -3px 3px -3px -5px;
    }

#attributes {
    display: flex;
    flex-grow: 1;
    overflow: hidden; /* fire fox box fix */
}

#equipment {
    border: 1px solid black;
    border-radius: 5px;
    margin: 5px;
    overflow: hidden;
    flex-grow:  0;
    width: 196px;
    min-height:  303px;
}

#stats,
#resists,
#specs,
#others {
    flex-grow: 1;
    border: 1px solid black;
    width: 200px;
    border-radius: 5px;
    margin: 5px;
    overflow: hidden;
    min-height:  270px;
}

#others {
    overflow-y: auto;
    overflow-x: hidden;
}

/* Equipment */

#equipment #neck,
#equipment #cloak,
#equipment #jewel,
#equipment #belt,
#equipment #ringr,
#equipment #ringl,
#equipment #bracerr,
#equipment #bracerl,
#equipment #myth {
    border: 3px solid black;
    border-radius: 3px;
    width: 30px !important;
    height: 30px !important;
    background-size: 24px 24px;
    color: white;
    text-align: center;
    font-size: 60%;
    cursor: pointer;
}

#equipment #torso,
#equipment #head,
#equipment #arms,
#equipment #hands,
#equipment #legs,
#equipment #boots,
#equipment #handr,
#equipment #handl,
#equipment #back,
#equipment #ranged {
    border: 3px solid black;
    border-radius: 3px;
    width: 38px !important;
    height: 38px !important;
    background-size: 32px 32px;
    color: white;
    text-align: center;
    font-size: 75%;
    cursor: pointer;
}

#equipment td > div:hover,
#equipment td > div.open:hover {
    border-color: red !important;
}

#equipment td > div.open {
    border-color: red !important;
}

#equipment td > div > div {
    width: 100%;
    height: 100%;
}

    #equipment td > div > div.disabled {
        background-color: rgba(255, 0, 0, 0.5);
    }

    #equipment td > div > div.shadow {
        background-color: rgba(0, 0, 0, 0.5);
    }

#equipment #ringl,
#equipment #bracerl,
#equipment #belt {
    margin-left: 8px;
}

#equipment #neck,
#equipment #myth,
#equipment #cloak {
    margin-bottom: 8px;
}

#equipment #handl {
    float: left;
}

#equipment #back {
    float: right;
}


#equipment table {
    margin: 5px auto;
    border-spacing: 2px;
}

#equipment div.head {
    border-bottom: 1px solid #444444;
    text-align: center;
    background-color: #DDDDDD;
}

/* Attributes */

#attributes div.head {
    border-bottom: 1px solid #444444;
    text-align: center;
    background-color: #DDDDDD;
}

#attributes div.data {
    position: relative;
    display: block;
    height: 25px;
    z-index: 0;
    cursor: default;
    border-bottom: 1px solid #444444;
}

    #attributes div.data div.info span.red {
        color: red;
    }

    #attributes div.data div.bar1 {
        height: 18px;
        position: absolute;
        top: 0px;
        width: 100%;
        z-index: -1;
        border-bottom: 1px solid #444444;
    }

    #attributes div.data div.bar2 {
        height: 6px;
        position: absolute;
        top: 18px;
        width: 100%;
        z-index: -1;
    }

    #attributes div.data div.info {
        text-align: right;
        padding: 0px 5px;
    }

        #attributes div.data div.info .label {
            float: left;
            width: 1px;
            white-space: nowrap;
        }

    #attributes div.data div.bar1 .value {
        background-color: silver;
        width: 0%;
        height: 100%;
        position: absolute;
        left: 0px;
    }

    #attributes div.data div.bar1 .delta {
        width: 0%;
        height: 100%;
        position: absolute;
        left: 0px;
    }

    #attributes div.data .delta.plus {
        background-color: #66CC66;
    }

    #attributes div.data .delta.minus {
        background-color: #CC6666;
    }

    #attributes div.data div.bar2 .race {
        background-color: gray;
        width: 0%;
        height: 100%;
        position: absolute;
        left: 0px;
    }

    #attributes div.data div.bar2 .level {
        background-color: silver;
        width: 0%;
        height: 100%;
        position: absolute;
        left: 0px;
    }

    #attributes div.data div.bar2 .toa {
        background-color: #ADD8E6;
        width: 0%;
        height: 100%;
        position: absolute;
        left: 0px;
    }

    #attributes div.data div.bar2 .myth {
        background-color: #84bcce;
        width: 0%;
        height: 100%;
        position: absolute;
        left: 0px;
    }

    #attributes div.data div.bar2 .end {
        background-color: rgba(230, 230, 230, 1);
        width: 0%;
        height: 100%;
        position: absolute;
        left: 0px;
        border-right: 1px solid black;
        box-sizing: content-box;
    }

    #attributes div.data div.bar2 .delta {
        width: 0%;
        height: 100%;
        position: absolute;
        left: 0px;
    }

/* Item Editor */

#itembank {
    border: 1px solid black;
    width: 196px;
    border-radius: 5px;
    margin: 5px;
    flex-grow: 0;
}

#itemeditor {
    border: 1px solid black;
    border-radius: 5px;
    margin: 5px;
    flex-grow: 1;
    display: flex;
}

    #itemeditor .itemleft {
        width: 400px;
        padding: 5px;
        flex-grow: 0;
    }

    #itemeditor .itemcenter {
        border-left: 1px solid black;
        border-right: 1px solid black;
        flex-grow: 1;
    }

    #itemeditor .itemright {
        width: 100px;
        text-align: center;
        padding: 5px;
        flex-grow: 0;
    }

        #itemeditor .itemright button {
            width: 100%;
        }

    #itemeditor .line {
        display: flex;
        padding: 3px 3px;
        border-bottom: 1px solid darkgray;
    }

        #itemeditor .line .infotext {
            width: 10px;
            text-align: center;
            margin: 0px 3px;
            max-width: 100px;
            flex-grow: 1;
        }

        #itemeditor .line input, #itemeditor .line select, #itemeditor .line textarea {
            flex-grow: 1;
            width: 10px;
            margin: -4px -3px;
        }

        #itemeditor .line input[type=checkbox] {
            margin: 2px 0px;
        }

        #itemeditor .line textarea {
            resize: vertical;
        }

        #itemeditor #itemicon {
            margin: 0px 6px 0px 0px;
        }

        #itemeditor #itemname {
            font-size: 120%;
        }

        #itemeditor .line input, #itemeditor .line select {
            text-align: center;
        }

    #itemeditor #itemspeed,
    #itemeditor #itemdps,
    #itemeditor #itemaf,
    #itemeditor #itemquality {
        width: 50px;
    }

    #itemeditor #itemitemgroup {
        width: 200px;
        float: right;
    }

    #itemeditor #itemutility {
        border-top: 1px solid black;
        border-bottom: 1px solid black;
        margin: 5px -5px;
        padding: 3px 0px;
    }

    #itemeditor #itemclassrestriction {
        text-align: left;
        overflow-x: hidden;
        overflow-y: scroll;
        height: 99px;
        font-size: 80%;
        white-space: nowrap;
    }

    #itemeditor .itemleft table {
        width: 100%;
        border-collapse: collapse;
    }

        #itemeditor .itemleft table td,
        #itemeditor .itemleft table th {
            border: none;
        }

            #itemeditor .itemleft table td select,
            #itemeditor .itemleft table td input {
                width: 100%;
                padding: 0px;
                margin: 0px;
                text-align: center;
            }

        #itemeditor .itemleft table .itemlistid {
            width: 5%;
            text-align: right;
        }

        #itemeditor .itemleft table .itemlisttype {
            width: 30%;
        }

        #itemeditor .itemleft table .itemlisteffect {
            width: 40%;
        }

        #itemeditor .itemleft table .itemlistvalue {
            width: 15%;
            text-align: center;
        }

        #itemeditor .itemleft table .itemlistip {
            width: 10%;
            text-align: center;
        }

        #itemeditor .itemleft table .itemlisttotal {
            text-align: center;
        }

    #itemeditor .itemstatseditor {
        display: none;
        margin-bottom: 25px;
    }

    #itemeditor .itemleft table td select option {
        color: black;
    }

    #itemeditor .itemstatseditor .requirements td,
    #itemeditor .itemstatseditor .requirements select,
    #itemeditor .itemstatseditor .requirements input {
        color: darkred;
        text-decoration: line-through;
    }

    #itemeditor #itemeditorswitch {
        text-align: center;
        display: none;
        position: relative;
        margin-top: -25px;
        height: 25px;
    }

/* Search */

#search {
    border: 1px solid black;
    border-radius: 5px;
    margin: 5px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

#searchinfo {
    border: 1px solid black;
    width: 196px;
    border-radius: 5px;
    margin: 5px;
    padding: 5px;
    flex-grow: 0;
    overflow-y: auto;
}

    #searchinfo .stat {
        font-size: 75%;
    }

    #searchinfo .head {
        border-bottom: 1px solid black;
        margin: 0px -5px;
        padding: 0px 5px;
    }

    #searchinfo .data {
    }

        #searchinfo .data img {
            float: left;
            margin: 4px 3px 0px -1px;
        }

        #searchinfo .data .name {
            text-align: center;
            font-size: 90%;
            font-weight: bold;
        }

        #searchinfo .data .info {
            clear: both;
            font-size: 80%;
        }

#searchinfoequip {
    margin: 10px auto 3px auto;
}

#search .head {
    flex-grow: 0;
    flex-shrink: 0;
    border-bottom: 1px solid black;
    padding: 3px;
    display: flex;
}

    #search .head input, #search .head select {
        margin: 0px 5px;
        flex-grow: 1;
    }

    #search .head button {        
        margin: 0px 0px;
        flex-grow: 0;
        width: 10%;
        min-width: 60px;
        max-width: 100px;
        flex-shrink: 0;
    }

#search .list {
    overflow-y: scroll;
    margin: 5px;
    flex-grow: 1;
}

    #search .list table {
        width: 100%;
        margin: 0px;
        font-size: 80%;
    }

        #search .list th {
            font-size: 90%;
        }

        #search .list table.tablesorter tbody tr.odd td {
            background-color: rgb(240, 240, 240);
        }

        #search .list table.tablesorter tbody tr.even td {
            background-color: rgb(255, 255, 255);
        }

        #search .list table.tablesorter tbody tr.odd.crafted td {
            background-color: rgb(225, 240, 225);
        }

        #search .list table.tablesorter tbody tr.even.crafted td {
            background-color: rgb(240, 255, 240);
        }

        #search .list table.tablesorter tbody tr.odd.legendary td {
            background-color: rgb(240, 225, 225);
        }

        #search .list table.tablesorter tbody tr.even.legendary td {
            background-color: rgb(255, 240, 240);
        }

#search #searchitemlist td {
    cursor: pointer;
}

#search #searchitemlist tr:hover td {
    background-color: lightblue;
}

#search table.tablesorter tbody td {
    color: black;
}

    #search table.tablesorter tbody td:nth-child(3),
    #search table.tablesorter tbody td:nth-child(4) {
        text-align: right;
    }

    #search table.tablesorter tbody td:nth-child(2),
    #search table.tablesorter tbody td:nth-child(5),
    #search table.tablesorter tbody td:nth-child(6),
    #search table.tablesorter tbody td:nth-child(7),
    #search table.tablesorter tbody td:nth-child(8) {
        text-align: center;
    }

/* Crafting */

#crafting {
    border: 1px solid black;
    border-radius: 5px;
    margin: 5px;
    flex-grow: 1;
    display: flex;
    flex-wrap: wrap;
    overflow-y: auto;
}

    #crafting table.craftinglist {
        border-spacing: 0;
        border-collapse: collapse;
        border: 1px solid black;
        margin: 5px;
    }

        #crafting table.craftinglist img {
            margin: 0px 0px -3px 0px;
        }

        #crafting table.craftinglist td,
        #crafting table.craftinglist th {
            border-bottom: 1px solid black;
            padding: 0px 3px;
            text-align: center;
        }

            #crafting table.craftinglist td.left {
                text-align: left;
            }

            #crafting table.craftinglist td.lborder {
                border-left: 1px solid black;
            }

            #crafting table.craftinglist td.right {
                text-align: right;
            }

        #crafting table.craftinglist tr.highlight {
            background-Color: silver;
        }

        #crafting table.craftinglist tr.done {
            text-decoration: line-through;
        }

#craftingitems td,
#craftinggems td,
#craftingmaterial td,
#craftingitems th,
#craftinggems th,
#craftingmaterial th {
    cursor: pointer;
}

#craftingtext {
    border: 1px solid black;
    padding: 5px;
    margin: 5px;
    overflow-y: scroll;
    flex-grow: 1;
}

/* Chatlog */

#chatlog {
}

    #chatlog #chatlog_1 {
        height: 200px;
    }

    #chatlog #chatlog_1_dragdrop {
        float: left;
        width: 100px;
        height: 190px;
        margin: 5px 10px 5px 5px;
        border: 1px solid black;
        background-color: silver;
        border-radius: 5px;
        color: black;
        text-align: center;
    }

#chatlog_1_loading div.bar {
    border: 1px solid black;
    padding: 3px;
}

#chatlog_1_loading {
    float: right;
    width: 200px;
    display: none;
    margin: 20px;
}

#chatlog_1_loading_info {
}

#chatlog_1_loading_bar {
    background-color: silver;
    height: 20px;
}

#chatlog button img {
    margin: -3px 3px -3px -5px;
}

#chatlog #chatlog_0 {
    border: 1px solid black;
    border-radius: 5px;
    margin: 5px;
}

    #chatlog #chatlog_0 #chatlog_0_exit {
        float: right;
    }

#chatlog #chatlog_1_finish {
    float: right;
}

#chatlog #chatlog_2 {
    border: 1px solid black;
    border-radius: 5px;
    margin: 5px;
}

#chatlog #chatlog_2_drop {
    height: 350px;
    float: left;
    width: 500px;
    display: block;
    overflow-y: scroll;
    overflow-x: hidden;
}

#chatlog #chatlog_2_unique {
    height: 350px;
    width: 500px;
    display: block;
    overflow-y: scroll;
    overflow-x: hidden;
}

#chatlog #chatlog_2_info {
    height: 49px;
    border-top: 1px solid black;
}

#chatlog_2_info table {
    border-collapse: collapse;
    border-spacing: 0px;
}

    #chatlog_2_info table td.item {
        line-height: 1px;
    }

#chatlog #chatlog_2 #chatlog_2_drop div.item,
#chatlog #chatlog_2 #chatlog_2_unique div.item {
    padding: 4px;
    float: left;
}

#chatlog #chatlog_2 .item img {
    border-style: solid;
    border-width: 3px;
    border-radius: 3px;
    border-color: black;
}

    #chatlog #chatlog_2 .item img.new {
        border-color: red;
    }

    #chatlog #chatlog_2 .item img.ruleset {
        border-color: orange;
    }

    #chatlog #chatlog_2 .item img.realm {
        border-color: yellow;
    }

    #chatlog #chatlog_2 .item img.class {
        border-color: blue;
    }

    #chatlog #chatlog_2 .item img.exist {
        border-color: black;
    }

#chatlog #chatlog_3 {
    border: 1px solid black;
    border-radius: 5px;
    margin: 5px;
}

    #chatlog #chatlog_3 #chatlog_3_input {
        float: right;
        height: 400px;
        width: 50%;
        position: relative;
        border-left: 1px solid black;
    }

#chatlog_3_options > div {
    position: absolute;
    bottom: 5px;
    right: 5px;
    left: 5px;
}

#chatlog_3_cancel {
    float: left;
}

#chatlog_3_submit,
#chatlog_3_update {
    float: right;
}

#chatlog #chatlog_3 #chatlog_3_input #chatlog_3_icon {
    float: left;
    margin: 0px 5px 0px 0px;
}

#chatlog #chatlog_3 #chatlog_3_effect1,
#chatlog #chatlog_3 #chatlog_3_effect2 {
    border-bottom: 1px solid black;
}

#chatlog #chatlog_3 #chatlog_3_effect1_timer,
#chatlog #chatlog_3 #chatlog_3_effect2_timer {
    float: right;
    margin-right: 5px;
}

#chatlog #chatlog_3 #chatlog_3_iconselect,
#chatlog #chatlog_3 #chatlog_3_data {
    overflow-y: scroll;
    overflow-x: hidden;
    display: block;
    height: 400px;
    width: 49%;
    padding: 0px 4px;
}

#chatlog_3_effect1,
#chatlog_3_effect2,
#chatlog_3_headline {
    padding: 0px 5px;
}

#chatlog_3_headline {
    border-bottom: 1px solid black;
}

#chatlog_3_headline1,
#chatlog_3_headline2 {
    border-bottom: 1px solid black;
    margin: 0px -5px;
    padding: 0px 5px;
}

#chatlog_3 input.selected {
    border: 1px solid red;
}

#chatlog_3 input.unselected {
    border: 1px solid black;
}


#chatlog_3_class {
    border-collapse: collapse;
    border-spacing: 0px;
    width: 100%;
    border-top: 1px solid black;
}

    #chatlog_3_class tr > td {
        background-color: rgba(0,255,0,0.10);
    }

        #chatlog_3_class tr > td:nth-child(-n+3) {
            background-color: rgba(255,0,0,0.10);
        }

        #chatlog_3_class tr > td:nth-last-child(-n+3) {
            background-color: rgba(0,0,255,0.10);
        }

    #chatlog_3_class tr:nth-last-child(1) > td:nth-last-child(1) {
        background-color: rgba(0,0,0,0.10);
        border-top: 1px solid black;
        border-left: 1px solid black;
    }

    #chatlog_3_class tr > td:nth-child(3) {
        background-color: rgba(255,0,0,0.10);
        border-right: 1px solid black;
    }

    #chatlog_3_class tr > td:nth-last-child(3) {
        background-color: rgba(0,0,255,0.10);
        border-left: 1px solid black;
    }

div.iconpreview {
    height: 320px;
    width: 320px;
    line-height: 0px;
    margin: 20px auto 10px auto;
}

    div.iconpreview img {
        width: 32px;
        height: 32px;
        float: left;
    }

div.icontoolbar {
    position: relative;
    margin: 5px auto;
    text-align: center;
}




table.chatlog_3_table {
    width: 100%;
    border-collapse: collapse;
}

    table.chatlog_3_table > tbody > tr {
    }

        table.chatlog_3_table > tbody > tr > td {
            border-bottom: 1px solid black;
            padding: 0px 5px;
            width: 10%;
        }

    table.chatlog_3_table table {
        width: 100%;
        border-collapse: collapse;
    }

        table.chatlog_3_table table > tbody > tr > td {
            padding: 0px;
            width: 10%;
        }
