body {
    background: #212121;
    color: #CCC;
    padding: 0;
    margin: 0;
    cursor: default;
    font: 12px Arial,sans-serif;
    overflow-y: scroll;
}

#cnt {
    /*position: fixed;
    top: 4px;
    left: 4px;*/
    float: left;
    padding: 4px;
    z-index: 1003 !important;
    background-color: #253c63 !important;
    color: #ccc;
}

#top {
    font-size: 14px;
    text-align: right;
}

#top > * {
    margin: 0 0 0 4px;
}

#top > div:not(#spinner), #top > a {
    display: inline-block;
    cursor: pointer;
    padding: 3px 4px 0 4px;
    height: 20px;
    z-index: 500;
    background-color: #424242;
    box-shadow: 2px 2px 8px #111;
    border: none;
    letter-spacing: 0.02em;
}

#top > a {
    color: inherit;
    text-decoration: none;
}

.menu:not(.setuptools) {
    visibility: hidden;
    position: absolute;
    left: 0px;
	top: +26px;
    z-index: 451;
    padding: 5px;
    color: #b3b3b3;
    width: 222px;
    text-align: left;
    font-weight: normal;
    font-size: 15px;
    overflow: hidden;

    background-color: #2c2c2c;
    box-shadow: 0px 0px 1px 4px #111;
    border: none;
}
.menu:hover:not(.setuptools) {
    display: block;
    visibility: visible;
}
.handle {
    position: relative;
}

.handle .menu:not(.setuptools) {
    transition:visibility .5s ease-out 0s;
}

.handle:hover .menu:not(.setuptools) {
    visibility: visible;
    transition: visibility .5s ease-out 0s;
}

.menu:not(.setuptools) input,label { cursor: pointer; }
.menu:not(.setuptools) input { float: left; clear: left; margin: 4px;  }
.menu:not(.setuptools) label {display: block; padding: 2px; overflow: hidden;}

.menu:not(.setuptools) label:hover,
.menu:not(.setuptools) input:hover ~ label,
div#export div:hover,
#top > div:hover, #top > a:hover {
    background: #253c63 !important;
    color: #fff;
}

.menu:not(.setuptools) div { overflow: hidden; }
.menu:not(.setuptools) div>div>div { padding-left: 15px; }

div#export {
    width: auto;
    text-align: center;
    z-index: 2000;
}
div#export div { padding: 0 5px; }

#totals, .mule, .guid, .reload, .item { display: inline-block; }

#totals {
    margin: 10px 3px;
    display: block;
    border: solid 2px #555;
    line-height: 0;
    max-width: 528px;
    padding: 5px;
}

#techreport {
    color: white;
    display: inline-block;
    font: 12px/24px sans-serif;
    width: 80%;
    height: 300px;
    overflow: scroll;
    background-color: inherit;
    text-overflow: ellipsis;
}

#techreport:empty { display: none; }

#errors {
    color: pink;
    display: inline-block;
    font: 14px/26px sans-serif;
    max-width: 780px;
    max-height: 400px;
    overflow: hidden;
}

#errors:empty { display: none; }

.mule:not(.setuptools) {
    padding: 2px;
    margin: 3px;
    border: solid 2px #555;
    min-width: 184px;
}

.guid {
    color: #ccc;
    background: #303030;
    border: solid 1px #888;
    padding: 2px;
    font-family: monospace;
    box-sizing: border-box;
    width: 100%;
}

.name, .error:not(.setuptools), .reload, #counter { font-weight: bold; }

.name {
    font-size: 16px;
    margin: 4px;
    text-align: center;
    cursor: pointer;
    overflow: hidden;
}

.button:not(.pagesearch):not(.vaultbuilder) {
    display: inline-block;
    float: right;
    width: 18px;
    height: 18px;
    line-height: 18px;
    vertical-align: middle;
    text-align: center;
    font-size: 16px;
    color: white;
    background-color: #545454;
    cursor: pointer;
    overflow: hidden;
    margin: 2px;
    text-decoration: none;
}


.portrait {
    float: left;
    width: 34px;
    height: 34px;
    margin: 0 5px 2px 4px;
}

hr {
    margin: 0;
    background-color: #555;
    border-style: none;
    height: 2px;
}

.stats, .pcstats, .chdesc {
    width: 180px;
    margin: 4px 0;
}

.chdesc {
    white-space: nowrap;
}


.stats td {
    line-height: 1em;
    padding: 0;
}

.stats td.sname {
    text-align: right;
    padding: 0 5px 0 0;
}

.stat.avg { /*color: #73cce2;*/ }
.stat.max { color: #f0f0a0; }
.stat.maxed { color: #fcdf00; }
.stat.good { color: #90ff90; }
.stat.good.very { color: #00ff00; }
.stat.bad { color: #ff9090; }
.stat.bad.very { color: #ff0000; }
.stat.small { font-size: 11px; }

.items:not(.pagesearch):not(.vaultbuilder) {
    line-height: 0;
}

.itemsc {
    width: 176px;
    margin: 2px;
    padding: 0;
    overflow: hidden;
}

.item {
    position: relative;
    width: 40px;
    height: 40px;
    margin: 2px;
    overflow: hidden;
    z-index: 100;
    cursor: pointer;
}

.item:not(.silhouette) {
    background: url(../renders.png) #545454;
}

.item.transbackground {
    background: url(../renders.png);
}

.item.silhouette {
    background: url(../media/itemsilhouettes.png) #545454;
}

.item.silhouette25p {
    background: url(../media/itemsilhouettes_25p.png) #545454;
}

.item.selected {
    background-color: #ffcd57;
    outline: 2px solid #fefe8e;
    outline-offset: -1px;
}

/* counter */
.item div {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
    color: white;
    font: bold 15px Arial,sans-serif;
    text-shadow: -1px 0 3px black, 0 1px 3px black, 1px 0 3px black, 0 -1px 3px black;
    z-index: 50;
}

/* unknown item indicator */
.item span {
    position: absolute;
    left: 2px;
    font: 11px monospace;
    color: white;
}

/*hp and mp */
.hp, .mp {
    background-color: #545454;

    background-position: 22px 2px;
    background-repeat: no-repeat;
    color: white;
    float: left;
    font: bold 15px/20px Arial, sans-serif;
    height: 20px;

    padding: 2px 2px 2px 17px;
    text-align: center;
    text-shadow: -1px 0px 1px black, 1px 0px 1px black, 0px -1px 1px black, 0px 1px 1px black;
    width: 65px;
}

.hp {
	background-image: url(../media/hp.png);
	margin: 0 2px 4px 4px;
}

.mp {
	background-image: url(../media/mp.png);
	margin: 0 4px 4px 2px;
}

/* achievements etc */
.pcstats {
    overflow: hidden;
}

.pcstats td {
    padding: 0;
    line-height: 1.1em;
    text-align: right;
    overflow: hidden;
    max-width: 110px;
}

.wawawa.pcstats td:nth-child(1) {
    width: 84px;
}

.pcstats .goal {
    text-align: left;
}

.pcstats .goal .bonus {
    white-space: nowrap;
    font-weight: normal;
    padding: 0;
}

.pcstats .pcstat, .pcstats .bonus, .pcstats .info {
    text-align: left;
    font-weight: bold;
    padding-left: 5px;
}

.info, .base {
    color: #EEE;
}

.pcstats .pcstat { color: #57AD62; }
.pcstats .bonus { color: #FFC800; }

.mule.disabled { opacity: 0.5; }

.mule > table {
    background-color: #333;
    margin: 0;
    padding: 2px;
    border-spacing: 0;
    width: 100%;
}
td.cont {
    vertical-align: top;
    text-align: center;
    padding: 0;
    background-color: #333;
}
td.cont > div {
    text-align: left;
    display: inline-block;
}

table.chars {
    background-color: #333;
}

.potions .itemsc {
    margin-left: 0;
    margin-right: 0;
    padding: 2px;
}

.potions .item {
}

.itemsc.potions .item.selected {
    outline: 2px solid #ffffff !important;
}

.gifts .itemsc {
    background-color: #8b4513;
    margin-left: 0;
    margin-right: 0;
    padding: 2px;
}

.gifts .item {
    background-color: #daa520;
}

.itemsc.gifts .item.selected {
    outline: 2px solid #ffffff !important;
    background-color: #f6ff50;
}

/* stars */
.scont {
    background-color: #222;
    border-radius: 6px;
    float: left;
    padding: 1px 4px 1px 4px;
    font-weight: normal;
    font-size: 14px;
    margin: 2px;
}
.scont .star {
    font-size: 1.2em;
    line-height: 0;
    margin: 0 0 0 0.2em;
}

.warn {
    color: #d70;
}

/* overlay + log */

.overlay {
    top: 0px;
    bottom: 0px;
    position: absolute;
    right: 0px;
    left: 0px;
    background-color: rgba(0, 0, 0, 0.7);
    overflow: hidden;
    padding: 2px;
    z-index: 451;
}

.log {
    font: 12px monospace;
    position: absolute;
    right: 5px;
    left: 5px;
    bottom: 5px;
    margin: 0px;
}

.line.error {
    color: #eaa;
}

.mdscroll::-webkit-scrollbar-track
{
    -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.3);
    background-color: rgba(57, 85, 136, 0.78);
    border-left: rgba(117, 151, 184, 0.56) 1px solid;
}

.mdscroll::-webkit-scrollbar
{
    width: 10px;
    background-color: #1a1a1a;
}

.mdscroll::-webkit-scrollbar-thumb
{
    background-color: rgba(71, 86, 133, 0.78);
    border-left: rgba(75, 115, 164, 0.76) dashed 1px;

}

/*Curlip*/

#stage, #errors {
    margin: 10px 0;
    background-color: #212121;
}

#errors > div {
    text-align: center;
    width: max-content;
    margin: 0 auto;
}

#errors .button {
    margin-left: 20px;
}

#main {
    margin: 10px;
    background-color: #212121;
}

.mule:not(.setuptools),
#totals:not(.setuptools),
.handle:not(.setuptools) {
    background-color: #333;
    box-shadow: 2px 2px 8px #111;
    border: none;
}

.mule {
    margin-bottom: 10px;
}

#stickynotice,
.stickynotice {
    padding: 4px;
    font: 14px Arial,sans-serif;
    text-align: center;
    color: #EEE;
}

#fix:not(.rateLimited) > #stickynotice,
.stickynotice {
    background-color: #a82f27;
}

#fix.rateLimited {
    background: #222222 url(../media/top-rateLimited.svg) !important;
}

.stickynotice:not(.AReduced) {
    background: #a82f27 url(../media/top-rateLimited.svg) !important;
}

#previewnotice {
    padding: 4px;
    font: 14px Arial,sans-serif;
    text-align: center;
    color: #EEE;
    background-color: #3b86b4;
}

#top {
    z-index: 1002;
    padding: 5px;
}

#stickynotice:empty,
.stickynotice:empty,
#previewnotice:empty {
    display: none;
}

.wawawa .perfect { color: #fcdf00; }
.wawawa .good { color: #90ff90; }
.wawawa .great { color: #00ff00; }
.wawawa .bad { color: #ff0000; }

#fix {
    display: block;
    position: sticky;
    margin: 0;
    top: 0;
    left: 0;
    right: 0;
    z-index: 499;
    background-color: rgba(44,44,44,0.75);
    box-shadow: 2px 2px 8px rgba(0,0,0,0.4);
}

.wawawa .perfect { color: #fcdf00; }
.wawawa .good { color: #90ff90; }
.wawawa .great { color: #00ff00; }
.wawawa .bad { color: #ff0000; }

#options {
    z-index: 1000;
}

#pagesearch.full {
    width: 150px !important;
    height: 23px !important;
    padding: 0 4px 0 0 !important;
}

#pagesearch.small {
    width: 29px !important;
    height: 23px !important;
    padding: 0 4px 0 0 !important;
}

#pagesearch.small > input {
    text-align: center;
}

#pagesearch > input {
    background-color: #424242;
    color: #00ceff;
    outline: none;
    border: 0;
    padding: 0 2px;
    margin: 0;
    height: 100%;
    width: 100%;
}

div.mule > div.stats {
    width: 250px;
    margin: 0 1px 1px 1px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between !important;
}

div.mule > div.stats > div.flex-container {
    width: 100%;
    justify-content: space-between !important;
}

div.mule > div.stats > div.flex-container > div:first-child {
    flex-basis: 60%;
}

div.mule > div.stats > div.flex-container > div:last-child {
    flex-basis: 40%;
}

div.mule > div.stats > div.flex-container:nth-child(even) {
    background-color: #222;
}

div.mule > div.stats > div.flex-container:nth-child(odd) {
    color: #90ccff;
    background-color: #333;
}

div.noTotals {
    display: none;
    padding: 5px 0;
}

div.wbstage {
    display: flex;
    background-color: #333;
    box-shadow: 2px 2px 8px #111;
    max-width: 494px;
    padding: 5px;
    flex-wrap: wrap;
}

div.wbstage > div {
    width: 100%;
}

div.wbstage > div:not(.items) {
    display: flex;
    align-items: center;
    justify-content: center;
}

div.wbstage > div:not(:last-child) {
    margin-bottom: 5px;
}

div.wbstage > div.header {
    font-size: 16px;
    font-weight: bold;
}

div.wbstage > div.header:not(:first-child) {
    font-size: 14px;
}

.item.wb.selected {
    background-color: #88a09b;
    outline: 2px solid #dcf7fe;
    outline-offset: -1px;
}

.item.wb.have {
    background-color: #51fcff;
    outline: 2px solid #8de2e8;
    outline-offset: -1px;
}

div.classstats div.cell > div {
    color: #ffffff;
}

div.classstats div.cell:first-child {
    background-color: #153a50;
}

div.classstats div.cell:last-child {
    background-color: #162a41;
}

div.classstats > div.class {
    background-image: linear-gradient(#153a50, #163249, #162a41) !important;
}

