body{
    background-color: rgb(0, 0, 0);
    margin: 0px;
    color: white;
    position: relative;
    min-height: 100vh;
}

header {
    min-height: 50px;
}

body::after {
    content: '';
    display: block;
    height: 50px;
    /*this height must match height set in footer*/
}

footer {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 50px;
}

.areatitle{
    text-align: center;
}

.flexcontainer{
    display: flex;
}

/*tooltip container*/
.tooltip{
    position: relative;
    display: inline-block;
    border-bottom: 1px dotted black;
}

.tooltip .tooltiptext{
    visibility: hidden;
    width: 120px;
    background-color: white;
    color: black;
    text-align: center;
    padding: 5px 0;
    border-radius: 6px;

    /* tool tip text position */
    position: absolute;
    z-index: 1;
}

/*show tooltip on mouse over*/
.tooltip:hover .tooltiptext{
    visibility: visible;
}

.settings{
    background-color: black;
    position: fixed;
    right: 0;
    bottom: 0;
    z-index: 10;
    display: none;
}

#settingsbutton{
    position: relative;
    right: 0;
    bottom: 0;
    z-index: 11;
    background-color: black;
    color: red;
}

.tracker{
    background-color: rgba(0,0,0);
    position: relative;
    top: 0px;
    margin-left: auto;
    margin-right: auto;
    empty-cells: show;
    border-spacing: 0px;
    border: 0px;
}

.tracker td{
    width: 64px;
    height: 64px;
    padding: 0px;
    background-repeat: no-repeat;
    background-size: 64px 64px;
}

.itemconfig{
    border-spacing: 0px;
    border: 1px solid white;
}

.maskconfig{
    border-spacing: 0px;
    border: 1px solid white;
}

.dungeononfig{
    border-spacing: 0px;
    border: 1px solid white;
}

.questconfig{
    border-spacing: 0px;
    border: 1px solid white;
}

* {
    box-sizing: border-box;
}

.stoops{
    width: 128;
    height: 128;
    background-size: 200% 200%;
}

input{
    margin-top: 5px;
    margin-bottom: 5px;
    margin-left: 20px;
    display: inline-block;
    vertical-align: middle;
}

label{
    display: inline-block;
    /*float: left;*/
    padding-top: 5px;
    text-align: right;
    width: 140px;
}

.bonk{
    width: 64px;
    height: 64px;
    border-spacing: 0px;
    border: 0px;
    margin: 2px;
}

.corner{
    width: 32px;
    height: 32px;
}

/*.true {
}*/

.false{
    -webkit-filter: grayscale(50%) brightness(30%); /*safari 6 - 9 */
    filter: grayscale(50%) brightness(30%);
}

.mini{
    width: 16px;
    height: 16px;
    vertical-align: text-bottom;
}

.boss{
    width: 12px;
    height: 12px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 75% 75%;
    position: absolute;
    margin-left: -6px;
    margin-top: -6px;
    z-index: 2;
}

.area{
    width: 24px;
    height: 24px;
    background-size: 100% 100%;
    position: absolute;
    margin-left: -12px;
    margin-top: -12px;
    cursor: pointer;
}

.itemdiv{
    position: relative;
    left: 0px;
    justify-content: center;
}

.maskdiv{
    position: relative;
    left: 0px;
    justify-content: center;
}

.dungeondiv{
    position: relative;
    left: 0px;
    justify-content: center;
}

.questdiv{
    position: relative;
    left: 0px;
    justify-content: center;
}

.mapdiv{
    background-image: url("images/map.png");
    background-size: 100% 100%;
    background-repeat: no-repeat;
    position: relative;
    width: 825px;
    height: 466px;
    left: 0px;
}

.submapdiv{
    user-select: none;
    -moz-user-select: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    background-color: black;
    border: #fff;
    border-style: solid;
    border-width: 2px;
    position: absolute;
    width: 240px;
    height: 270px;
    margin-top: 460px;
    margin-left: 20px;
}

.submapindex{
    user-select: none;
    -moz-user-select: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    background-color: black;
    border: #fff;
    border-style: solid;
    border-width: 2px;
    position:absolute;
    width: 240px;
    height: 270px;
    margin-top: 460px;
    margin-left: 270px;
}

.indextitle{
    text-align: center;
}

.box {
    float: left;
    height: 20px;
    width: 20px;
    margin-bottom: 15px;
    border: 1px solid black;
    clear: both;
  }
  
  .red {
    background-color: red;
  }
  
  .green {
    background-color: green;
  }
  
  .blurple {
    background-color: blueviolet;
  }

  .gray {
    background-color: gray;
  }

.check{
    width: 16px;
    height: 16px;
    background-size: 100% 100%;
    position: absolute;
    margin-left: -8px;
    margin-top: -8px;
    cursor: pointer;
}

.unavailable{
    background-color: red;
}

.hidden{
    background-color: blueviolet;
}

.available{
    background-color: green;
}

.possible{
    background-color: rgb(210, 190, 30);
}

.opened{
    background-color: rgb(127, 127, 127);
}

.DCunavailable{
    color: red;
}

.DChidden{
    color:blueviolet;
}

.DCavailable{
    color: green;
}

.DCpossible{
    color: rgb(210, 190, 30);
}

.DCopened{
    color: rgb(127, 127, 127);
}

.DChighlight{
    color: rgb(255, 255, 0);
}

.mapspan .tooltipgrey{
    visibility: hidden;
    width: 120px;
    background-color: grey;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5px 0;
    position: absolute;
    z-index: 1;
    bottom: 120%;
    left: 50%;
    margin-left: -60px;
}

.mapspan .tooltipgrey:hover{
    display: none;
}

.mapspan:hover .tooltipgrey{
    visibility: visible;
}

.mapspan .tooltip{
    visibility: hidden;
    width: 120px;
    background-color: black;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5px 0;
    position: absolute;
    z-index: 1;
    bottom: 170%;
    left: 50%;
    margin-left: -60px;
}

.mapspan .tooltip::after{
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: black transparent transparent transparent;
}

.mapspan .tooltip:hover{
    display: none;
}

.mapspan:hover .tooltip{
    visibility: visible;
}

.griddungeon .tooltipgrey{
    visibility: hidden;
    width: 120px;
    background-color: grey;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5px 0;
    position: relative;
    z-index: 1;
    bottom: 120%;
    left: 50%;
    margin-left: -60px;
}

.griddungeon .tooltipgrey:hover{
    display: none;
}

.griddungeon:hover .tooltipgrey{
    visibility: visible;
}

.griddungeon .tooltip{
    visibility: hidden;
    width: 120px;
    background-color: black;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5px 0;
    position: absolute;
    z-index: 1;
    bottom: 120%;
    left: 100%;
    margin-left: -60px;
}

.griddungeon .tooltip::after{
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: black transparent transparent transparent;
}

.griddungeon .tooltip:hover{
    display: none;
}

.griddungeon:hover .tooltip{
    visibility: visible;
}