.rpg {
    background-size: cover;
    width: 39px;
    height: 39px;
}
.rpg.race {
    background-image: url(bg3/race.png);
}
.rpg.background {
    background-image: url(bg3/background.png);
}
.rpg.theme {
    background-image: url(bg3/theme.png);
}
.rpg.class {
    background-image: url(bg3/class.png);
}
.rpg.paragonpath {
    background-image: url(bg3/paragonpath.png);
}
.rpg.epicdestiny {
    background-image: url(bg3/epicdestiny.png);
}
.rpg.power {
    background-image: url(bg3/power.png);
}
.rpg.feat {
    background-image: url(bg3/feat.png);
}
.rpg {
    background-image: url(bg3/everything.png);
}
.rpg.glossary {
    background-image: url(bg3/glossary.png);
}
.rpg.ritual {
    background-image: url(bg3/ritual.png);
}
.rpg.deity {
    background-image: url(bg3/deity.png);
}
.rpg.terrain,
.rpg.trap {
    background-image: url(bg3/trap.png);
}
.rpg.item {
    background-image: url(bg3/item.png);
}
.rpg.companion {
    background-image: url(bg3/companion.png);
}
.rpg.monster {
    background-image: url(bg3/monster.png);
}
.rpg.poison {
    background-image: url(bg3/poison.png);
}
.rpg.alchemy {
    background-image: url(bg3/alchemy.png);
}
.rpg.disease {
    background-image: url(bg3/disease.png);
}
.rpg.armor {
    background-image: url(bg3/armor.png);
}
.rpg.implement {
    background-image: url(bg3/implement.png);
}
.rpg.weapon {
    background-image: url(bg3/weapon.png);
}
.thSubHead, .thXP, .monster > .type{
    font-size: 90%;
}
.sidebarimg {
    width: 200px;
    height: 400px;
    float: right;
    border: solid;
    border-width: 1px;
    position: absolute;
    left: -211px;top: -1px;
}
.detail {
    background-color: #f8f8f8;
    border: 1px solid #666;
    font-size: 85%;
    max-width: 800px;
    margin: 50px auto 10px;
    padding: 0 10px;
    position: relative;
}
.detail * {
    padding: 0;
    margin: 0;
}
.detail h1,
.detail h2,
.detail h3 {
    font-family: dndTitle;
    display: table;
    font-size: 125%;
    padding-top: 1ex;
    padding-bottom: 0.5ex;
    width: 100%;
}
.detail h1 + br{
    display: none;
}
.detail h2 + br,
.detail h3 + br {
    display: block;
}
.detail p,
.detail div,
.detail table {
    padding-top: 0.5ex;
    padding-bottom: 0.5ex;
}
.detail p[class]:empty,
.detail p:empty + br {
    display: none;
}
.detail table td:only-child:empty {
    display: none;
}
.detail > h1:first-child,
.detail > h1.atwillpower,
.detail > h1.encounterpower,
.detail > h1.dailypower,
.detail > h1.mihead,
.detail .power > h1:first-child {
    border-bottom: 1px solid #666;
    margin: 0 -10px;
    padding: 8px 10px 5px;
    width: calc(100% + 20px);
}
.detail > h1.atwillpower:not(:first-child),
.detail > h1.encounterpower:not(:first-child),
.detail > h1.dailypower:not(:first-child) {
    margin-top: 10px;
}
.detail h1 .level,
.detail h1 .milevel,
.detail h1 .thLevel {
    display: table-cell;
    padding-left: 8px;
    text-align: right;
    vertical-align: top;
}
.detail .cat {
    color: #888;
    display: inline-block;
    float: left;
}
.detail .publishedIn {
    font-size: smaller;
    color: #888;
    text-align: right;
}
.detail .publishedIn:after {
    content: "";
    display: table;
    clear: both;
}
.detail .player,
.detail .monster,
.detail .familiar {
    background-color: #bbf;
}
.detail .miset,
.detail .mihead {
    background-color: Gold;
}
.detail .atwillpower {
    background-color: #4f4;
}
.detail .encounterpower {
    background-color: #f44;
}
.detail .dailypower {
    background-color: #888;
}
.detail .trap,
.detail h1.thHead,
.detail .poison {
    background-color: #8b8;
}
.detail .dm {
    background-color: #dbf;
}
.detail h2.mihead,
.detail h1:not(:first-child),
.detail .miflavor,
.detail .flavor,
.detail .flavortext,
.detail > h1 + i:not(:empty) {
    margin-left: -10px;
    margin-right: -10px;
    padding-left: 10px;
    padding-right: 10px;
    width: calc(100% + 20px);
}
.detail h2.mihead,
.detail .miflavor,
.detail .flavor,
.detail .flavortext {
    font-family: dndText;
    font-size: 100%;
}
.detail .miflavor,
.detail .flavortext,
.detail .flavor:not(.indent) {
    background-color: #e2dfda;
    display: block;
    padding-bottom: 5px;
}
.detail h1.monster + .flavor {
    background-color: transparent;
}
.detail > h1 + i + br {
    display: none;
}
.detail .player + .flavor,
.detail .bodytable .flavor,
.detail > h1 + i + .flavor,
.detail > h1 + i + br + .flavor {
    background-color: transparent;
}
.detail > h1 + i:not(:empty) {
    background-color: #ddd;
    display: block;
    padding-top: 5px;
    padding-bottom: 5px;
}
.detail ul {
    margin-left: 1em;
}
.detail table {
    border-spacing: 0;
}
.detail table th,
.detail table td {
    padding: 3px 10px;
}
.detail *:not(h1) + table th {
    background-color: #e2dfda;
}
.detail *:not(h1) + table tr:nth-child(odd) {
    background-color: #e0e0e0;
}
.detail .magicitem,
.detail .bodytable {
    margin-left: -10px;
    margin-right: -10px;
    padding-top: 0;
    width: calc(100% + 20px);
}
.detail b {
    display: inline-block;
    margin-right: 0.2ex;
}
.detail .powerstat b {
    margin: 0;
}
.detail b:first-child,
.detail h1 + b,
.detail h2 + b,
.detail h3 + b,
.detail br + b {
    margin-left: 0;
}
.detail .power {
    display: block;
    border: 1px solid grey;
    padding: 0 10px;
    margin-bottom: 2ex;
}
.detail .power > p:last-of-type {
    margin-bottom: 0;
}
.detail .power > p:last-of-type + br:last-child {
    display: none;
}
.detail h1.magicitem,
.detail h2.mihead {
    margin-top: 1ex;
    background-color: #fe8;
}
.detail .miright {
    display: block;
    float: right;
    width: 50%;
}
.detail .ignore + .mihead {
    margin-top: 1em;
}
.detail .ritualstats {
    float: left;
    margin-right: 1em;
}
.detail .ritualstats ~ p {
    clear: left;
}
.detail .ah1,
.detail .ah2 {
    font-size: 110%;
}
.detail .trapblocktitle {
    display: block;
    font-weight: bold;
    margin-top: 1em;
}
.detail .thXP {
    display: block;
}
.detail .trapblockbody {
    display: block;
}
.badge-danger {
    font-family: dndTitle;
    color: #fff;
    background-color: #dc3545;
}
.badge-secondary {
    color: #fff;
    background-color: #6c757d;
}
.badge {
    display: inline-block;
    padding: .25em .4em;
    font-weight: 500;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: .25rem;