html, body {
    margin: 0px;
    padding: 0px;
    background: #171a1e;
    width: 100%;
    height: 100vh;
    color: white;
    font-family: 'Roboto', sans-serif;
    -webkit-text-size-adjust: 100%;
    -moz-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    font-size: 14px;
}

hr.dark-hr{
    border: 2px solid #171a1e;
}

/* textarea  {  
  font-family: 'Roboto', sans-serif;
   font-size: 12px;   
} */

/* HIDE ROLLER LAYOUT */
@media only screen and (min-width: 1366px) and (max-width: 1919px) {
    html, body {
        font-size: 12px;
    }
    .hp-controls{
        width: 23.6em !important;
    }
    .active-participant-main{
        width: 41em !important;
    }
}

/* Minimum resolution
@media (-webkit-min-device-pixel-ratio: 1.2) {
    html, body {
        font-size: 12px;
    }
} */

@media only screen and (min-width: 1366px) {
    .div-encounter{
        min-width: 43.5em;
    }
    .encounter-button{
        height: 1.5em;
    }
    .div-button:hover, .div-button-simple:hover{
        border: 2px solid #ff5722;
    }
    .button-filter:hover{
        border: 1px solid #ff5722;
    }
    ::-webkit-scrollbar-thumb:hover {
        background: #ff5722;
      }
      .sidenav-link:hover {
        color: #ff5722;
      }
      .condition-name-new:hover{
        color: #ff5722;
    }
    .section-menu:hover{
        color: #ff5722;
    }
    .button-mystery:hover{
        text-decoration: underline;
    }
    .modal-button:hover{
        -webkit-box-shadow:inset 0px 0px 1px 0.5px white;
        -moz-box-shadow:inset 0px 0px 1px 0.5px white;
        box-shadow:inset 0px 0px 1px 0.5px white;
    }
    .listview-title:hover{
        color: #ff5722;
    }
}

@media only screen and (max-width: 1150px) {
    html, body {
        font-size: 12px;
    }
    .hamburger{
        margin-top: 0.25em;
        height: 3em;
        width: 3em;
    }
    .active-builds-mobile{
        /* display: flex; */
        vertical-align: middle;
        height: 3.5em;
    }
    /* .dice-tray-phone{
        width: 20em !important;
        right: -20em !important;
      } */

      #canvas-container{
        width: 260px !important;
        height: 260px !important;
        position: relative;
    }
    #dice-history{
        width: 240px !important;
    }
    #canvas-total{
        line-height: 260px !important;
    }
    .modal-content {

        width: 90vw !important; 
    }
}




/* TO BE ACTUAL MOBILE LAYOUT! */
@media only screen and (max-width: 1365px) {

    /* html, body {
        font-size: 14px;
    } */
   
    .div-encounter{
        width: 100%;
        
    }
    .active-participant-main{
        flex-grow: 1;
        width: 0px !important;
    }
    .div-encounter-list{
        display: flex;
        flex-direction: column;
    }
    .layout-player{
        flex-grow: 1;
        display: flex;
    }

    .hp-controls{
        width: 16em !important;
    }

    .xp-bar-label{
        padding-top: 3px;
        font-size: 0.7em !important;
    }
    .div-xp{
        padding-top: 3px;
        font-size: 0.7em !important;
    }
    .participant-saves-mobile{
        display: inline-block;
    }
    .row-ac-hp-mobile{
        display: flex;

    }
    .hp-controls{
        width: 0px !important;
        flex-grow: 1;
        margin: 0 auto;
    }
    .section-ac-mobile{
        margin-left: 1em;
        display: inline-flex;
        flex-grow: 0.5;
        float: right;
        justify-content: center;
        align-items: center; 
    }
    .ac-image-mobile{
        width: 1.5em;
        height: auto;
        display: inline-block;
    }
    .text-ac-mobile{
        margin-left: 0.5em;
        display: inline-block;
    }

    .active-participant-initiative{
        height: 10.5em !important;
    }
    /* .active-participant-main{
        height: 10.5em !important;
    } */

    .dice-tray{
      width: 26em !important;
      right: -26em;
    }
    .spinner-encounter-mobile{
        /* margin-bottom: 0.2em; */
        max-width: 8em;
    }

}





/* MAIN UI PANEL */
#holder {
    display: flex;
}
.scrollable {
    flex: 1;
    padding: 0.5em;
    height: 60vh;
    overflow: auto;
 }
.div-conditions{
    overflow-y: auto;
    height: 100%;
}
.div-encounter{
    display: inline-flex;
    flex-direction: column;
    height:calc(100vh - 6em);
    margin-left: 1em;
}
.div-encounter-list{
    margin-bottom: 0.5em;
    overflow: auto;
    flex-grow: 1;
}
.div-encounter-details{
    margin-bottom: 0.5em;
}
.div-statblock{
    display: inline-block;
    height:calc(100vh - 6em);
    flex: 1;
    margin-left: 1em;
    margin-right: 1em;
}
.statblock-display{
    line-height: 1.5;
}
.layout-wide-spawner-conditions{
    width: 28em;
    height:calc(100vh - 6em);
    display: flex;
    flex-direction: column;
    overflow-y: hidden;
}
.spawner-holder{
    flex-grow: 1;
    overflow-y: hidden;
}
.spawner-holder-list{
    flex-grow: 1;
    height: 100%;
    overflow-y: scroll;
}


.health-bar-red{
    background-color: #6e2824;
}
.health-bar-green{
    background-color: #005713;
}
.progress-bar-container{
    display: grid;
    font-size: 0.9em;
    border-radius: 0.4em;
    width: 100%;
    background-color: grey;
}
.progress-bar{
    grid-column: 1;
    grid-row: 1;
    border-radius: 0.4em;
    height: 1.8em;
}
.progress-bar-text{
    grid-column: 1;
    grid-row: 1;
    padding: 0.3em;
    color: white;
}

.rounded-rectangle {
    box-sizing: border-box;
        -moz-box-sizing: border-box;
        -webkit-box-sizing: border-box;
    padding: 0.5em 1em 0.5em 1em;
	border-radius: 10px 10px 10px 10px;
    background: #222831;
}



.layout-player{
    position: relative;
    margin-bottom: 0.5em;
    vertical-align: top;
}
.top-div{
    display: flex;
    align-items: center;
 }

 .icon-visibility{
    display: inline-block;
    cursor: pointer;
    width: 24px;
    height: 24px;
 }



.icon-init-arrow{
    cursor: pointer;
    width: 1.5em;
    height: 1.5em;
}
.active-participant-initiative{
    display: inline-block;
    width: 5em;
    height: 7.6em;
    vertical-align: top;
    margin-right: 0.5em;
}
.active-participant-wide-saves{

    margin-left: 1em;
    display: inline-block;
    width: 10em;
}

.active-participant-main{
    display: inline-block;
    /* height: 7.6em; */
    width: 38em;
    vertical-align: top;
}
.border-invisible{
    border: 2px solid #171a1e;
}
.statblock-parsed .spell-link{
    font-style: italic;
    cursor: pointer;
    padding: 3px;
}
.adjustment-high{
    color: #fcba03;
}
.adjustment-low{
    color: red;
}

.div-indent {
display: block;
padding-left: 1.0em;
text-indent: -1.0em;
padding-bottom: 0;
padding-top: 0;
margin-top: 0;
margin-bottom: 0;
}

.hp-controls{
    width: 20.5em;
    cursor: pointer;
}


.ac-holder-new{
    display: inline-grid;
}
.ac-image-new{
    grid-column: 1;
    grid-row: 1;
    width: auto;
    height: 4em;
}
.ac-text-new{
    grid-column: 1;
    grid-row: 1;
    margin: auto;
    font-size: 1.4em;
    font-weight: bold;
}
.ac-label-new{
    grid-column: 1;
    grid-row: 1;
    margin: 0.4em auto;
    font-size: 0.8em;
}
.text-xp{
    margin-top: 1em;
    font-size: 0.9em;
    font-style: italic;
}

.participant-imageview-edit{
    width: auto;
    height: 1em;
    margin-left: 0.5em;
    vertical-align: middle;
    cursor: pointer;
}
.participant-text-name{
    display: inline-block;
    max-width: 220px;
    align-self: center;
    vertical-align: middle;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.div-list-players{
    display: inline-block;
    overflow-y: scroll;
    /* width: 100%; */
    min-height: 0px;
    /* flex-grow: 1;  */
 }

 .div-wide-spawner-controls{
    display: flex;
    vertical-align: middle;
 }
 .div-wide-spawner-filter{
    display: inline-block;
    margin-bottom: 1em;
    align-self:center;
 }
 .div-wide-spawner-slider{
    display: inline-block;
    flex-grow: 1;
 }
 .div-wide-spawner-filter-controls{
    position: absolute;
    left: 27em;
    top: 11.5em;
    width: 50em;
    z-index: 5;
    border: 2px solid #ff5722;
 }
 .button-filter{
    display: inline-block;
    align-items: flex-end;
    cursor: pointer;
    border-radius: 5px;
    border: 1px solid white;
    padding: 0.3em;
    width: 1.5em;
    height: 1.5em;
    align-self: flex-end;
    margin-left: 0.5em;
    margin-right: 0.2em;
}
.filter-controls{
    display: inline-block;
}


.button-filter-selected{
    border: 1px solid #ff5722;
}
 .button-filter-filtered{
    border: 2px solid green !important; 
 }
.spawner-text-name{
    max-width: 200px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.layout-player-select-name{
    max-width: 20em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4em;
    vertical-align: middle;
    padding: 5px;
    margin: 0px;
    display: inline-block;
    color: #ff5722;
}
.layout-prof-short{
    margin-bottom: 0.5em;
    white-space: nowrap;
    cursor: pointer;
}
.section-skill-name{
    max-width: 10em;
    overflow: hidden;
    white-space: nowrap;
    margin-left: 0.5em;
    display: inline-block;
    vertical-align: middle;
}
.edittext-import{
    margin-right: 1em;
    margin-bottom: 1em;
    max-width: 6em;
}
.button-import{
    height: 1.3em;
    margin-left: 1em;
    margin-top: 1em;
}
.subtitle{
    font-size: 1.2em;
    color: #ff5722 !important;
}
.subtitle-player{
    color: #ff5722 !important;
}
.action-icon {
    display: inline;
    margin-right: 0.3em;
    padding-bottom: 0.1em;
    vertical-align: middle;
}


/* XP BAR */
.xp-bar-container{
    position: relative;
    width: 99%;
    height: 1.2em;
    margin-bottom: 1em;
    background-image: linear-gradient(to right, green , red);
}
.xp-bar-label{
    position: absolute;
    font-size: 0.9em;
    padding-right: 5px; 
}
.border-white-right{
    border-right: 1px solid white;
}
.xp-bar{
    position: absolute;
    height: 1.2em;
    background: gray;
}
.div-xp{
    font-size: 0.9em;
    position: absolute;
    left: 10px;
}



/* SCROLLBARS */

::-webkit-scrollbar {
    width: 15px;
  }
::-webkit-scrollbar-track {
    background: #363636;
    border-radius: 6px;
  }
  ::-webkit-scrollbar-thumb {
    background: #2d4059;
    border-radius: 6px;
  }




.top-bar{
    padding-left: 0.5em;
    border-bottom: 2px solid #ff5722;
    margin-bottom: 1em;
}

.menu-bar{
    width: 100%;
    display: flex;
    overflow: hidden;
}

.hamburger{
    height: 2.5em;
    width: 2.5em;
    display: inline;
    vertical-align: middle;
    padding-right: 0.5em;
    cursor: pointer;
}
.menu-title{
    font-size: 2em;
    color: white;
    display: inline;
    vertical-align: middle;
}
#menu{
    display: inline-block;
    vertical-align: middle;
}
.active-builds{
    margin-left: 2em;
    color: white;
    overflow-x: auto;
    overflow-y: hidden;
    width: 100%;
    white-space: nowrap;
    flex: 1;
}
.active-build-section{
    display: inline-flex;
    margin-right: 0.5em;
    margin-bottom: 0.3em;
    margin-top: 0.3em;
    white-space: nowrap;
    color: white;
    align-self: flex-end;
    padding: 0.3em;
    align-items: flex-end;
    overflow: hidden;
}
.button-edit-encounter{
    display: inline-block;
    height: 1.5em;
    width: 1em;
    position: relative;
 }
 .icon-edit{
    display: inline-block;
    width: 0.9em;
    height: 0.9em;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    margin: auto;
 }
.button-active-build{
    /* font-size: 0.9em; */
    display: inline-block;
    padding: 0.3em;
    text-align: center;
    vertical-align: middle;
    white-space: nowrap; 
    text-overflow: ellipsis;
    height: 1.5em;
    flex: 1;
    cursor: pointer;
    -webkit-touch-callout: none; /* iOS Safari */
        -webkit-user-select: none; /* Safari */
         -khtml-user-select: none; /* Konqueror HTML */
           -moz-user-select: none; /* Old versions of Firefox */
            -ms-user-select: none; /* Internet Explorer/Edge */
                user-select: none; /* Non-prefixed version, currently
                                      supported by Chrome, Edge, Opera and Firefox */
}

.edittext-custom{
    background: #2a323d;
    color: white;
    padding: 0.3em;
    border-width: 0px;
    flex: 1;
    height: 1.4em;
    margin-bottom: 0.5em;
    vertical-align:top;
}


/* side navigation */
.sidenav {
    height: 100%;
    width: 0; 
    position: fixed; 
    z-index: 2; 
    top: 0; 
    left: 0;
    background-color: #222831; 
    overflow-x: hidden; 
    transition: 0.3s;
    white-space: nowrap;
  }
  .sidenav-link {
    text-decoration: none;
    font-size: 1.2em;
    display: block;
    margin-top: 0.5em;
    cursor: pointer;
    -webkit-user-select: none; 
  -moz-user-select: none; 
  -ms-user-select: none; 
  user-select: none; 
  }

  .sidenav .closebtn {
    position: absolute;
    top: 0;
    right: 25px;
    font-size: 36px;
    margin-left: 50px;
  }
  .backdrop {
      background-color: rgba(0, 0, 0, 0.5);
      width: 0%;
      height: 100%;
      z-index: 1;
      display: block;
      position: fixed;
  }
  #dice-backdrop{
      z-index: 8;
  }
  .sidenav-header{
      height: 5em;
      background-color: #171a1e;
      width: 100%;
      display: inline-block;
      color: white;
      padding: 0.5em;
      overflow: hidden;
      white-space: nowrap;
  }
  .sidenav-body{
      padding: 0.5em;
  }
  /* .sidenav-info{
    margin: 1em;
    font-size: 1em;
    white-space: normal;
    position: absolute;
    bottom: 5em;
  } */
  /* .sidenav-part{
    USED FOR IDING SIDENAV CLICKS
  } */
  /* .keep_filter{
    USED FOR IDING SPAWNER FILTER CLICKS
  } */
  /* .participant-drop-zone{
    used for drag and drop
  } */
  /* .spawn-drop-zone{
    used for drag and drop
  } */
  /* .named-roll{
    used for iding rolls
  } */

.dragged-item{
    background-color: #2d4059;
}
.potential-drop{
    box-shadow: 0 0 2px #fff inset;
}

.edittext-dark{
    background: #2a323d;
    color: white;
    padding: 0.3em;
    border: 0px solid white;
    outline: 0px;
}
.edittext-dark:focus{
    outline: none !important;
}
.spinner-dark{
    background: #2a323d;
    color: white;
    margin-top: 0.4em;
    margin-right: 0.4em;
    padding: 0.3em;

    outline: 0px;
    border: 0px solid white;
}
.spinner-dark:focus{
    outline: none !important;
}

.additional-input{
    width: 26em;
    margin: 1em;
    font-size: 1em;
    padding: 0.4em;
}


.condition-image{
    width: auto;
    height: 1.5em;
    cursor: pointer;
}
.condition-name-new{
    cursor: pointer;
    padding: 0.3em;
}

.condition{
    width: 100%;
    display: flex;
    align-items: center; 
}


/* //MENU STUFF */
.tabbed-area-menu{
    padding-bottom: 0.2em;
    border-bottom: 2px solid #ff5722;
}
.section-menu{
    margin-right: 1em;
    color: #a1a1a1;
    display: inline-block;
    cursor: pointer;
    font-size: 1.3em;
}

.section-menu-selected{
    color: #ff5722;
}
.custom-div{
    display: flex;
    flex-direction: column;
}




/* DICE TRAY UI */
.dice-tray{
    height: 100%;
  width: 30em;
  z-index: 10;
  top: 0; 
  position: fixed;
  right: -30em;
  background-color: #222831; 
  overflow-x: hidden; 
  transition: 0.3s;
  overflow-y: hidden;
  display: flex;
  flex-direction: column;
}
.dice-tray-inline{
    width: 26em;
    background-color: #222831; 
    height:calc(100vh - 6em);
    overflow-x: hidden; 
    transition: 0.3s;
    overflow-y: hidden;
    display: inline-block;
    flex-direction: column;
}
.dice-tray-hidden{
    visibility: hidden;
}

#canvas-container{
    width: 340px;
    height: 340px;
    position: relative;
}
#canvas{
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    border: 1px solid #ff5722;
}
#canvas-total{
    width: 100%;
    height: 100%;
    line-height: 340px;
    text-align: center;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    z-index: 9;
    font-size: 10em;
    -webkit-transition: opacity 0.3s ease-in-out;
  -moz-transition: opacity 0.3s ease-in-out;
  -ms-transition: opacity 0.3s ease-in-out;
  -o-transition: opacity 0.3s ease-in-out;
  transition: opacity 0.3 ease-in-out;
}
#canvas-total.fade {
    opacity:0.6;
  }

.dice-content{
    padding: 10px;
    display: flex;
    text-align: center;
    align-items: center;
    flex-direction: column;
    flex: 1;
    overflow: hidden;
}

.dice-button-on{
    color: #ff5722;
}

#dice-title{
    font-size: 1.4em;
    text-align: center;
    font-weight: bold;
    margin-top: 0.3em;
    margin-bottom: 0.3em;
}
#dice-summary{
    text-align: center;
    margin-bottom: 1em;
}
#dice-history{
    margin-top: 1em;
    width: 340px;
    white-space: normal;
    font-size: 0.9em;
    overflow-y: scroll;
    text-align: left;
    flex: 1;
}
.dice-history-item{
    margin-top: 1em;
}
#dice-result{
    font-size: 2em;
    font-weight: bold;
    margin-top: 1em;
    text-align: center;
}

.superscript-damage{
    font-size: 0.7em;
    margin-left: 0.2em;
    margin-right: 0.3em;
    color: silver;
}
.color-fire{
    color:#f69c85;
}
.color-cold{
    color: #a9f5f7;
}
.color-elec{
    color: #c1baf9;
}
.color-acid{
    color: #ccf4b0;
}
.color-precision{
    color: #f9faa2;
}

  /* SHOW DICE TRAY BUTTON */
  #dice-switch{
    bottom: 60px;
    right: 60px;
    z-index: 3;
    position: absolute;
    cursor: pointer;
 
 }
 .dice-switch-image:hover{
     animation: rotation 1s infinite linear;
 
 }
 .dice-proficiency:hover {
     animation: rotation 1s infinite linear;
   }
   .dice-button:hover .dice-proficiency{
     animation: rotation 1s infinite linear;
   }
   @keyframes rotation {
     from {
       transform: rotate(0deg);
     }
     to {
       transform: rotate(359deg);
     }
   }

   /* DICE STUFF */
.center_field {
    position: absolute;
    text-align: center;
    height: 100%;
    width: 100%;
}

.center_field * {
    position: relative;
    font-family: Trebuchet MS;
    background-color: rgba(255, 255, 255, 0.6);
    padding: 5px 15px;
}

.center_field br {
    background-color: rgba(0, 0, 0, 0);
}

.bottom_field {
    position: absolute;
    text-align: center;
    bottom: 5px;
    width: inherit;
    padding: 0px;
}



/* DICE STUFF NOT SURE IF NEEDED */

/* #label {
    font-size: 32pt;
    word-spacing: 0.5em;
    padding: 5px 15px;
    color: rgba(21, 26, 26, 0.6);
    top: 45%;
}

#labelhelp {
    font-size: 12pt;
    padding: 5px 15px;
    color: rgba(21, 26, 26, 0.5);
    bottom: 50px;
}

#set {
    text-align: center;
    font-size: 26pt;
    border: none;
    color: rgba(0, 0, 0, 0.8);
    background-color: rgba(255, 255, 255, 0);
    top: 60%;
}

#sethelp {
    font-size: 12pt;
    color: rgba(21, 26, 26, 0.5);
    background: none;
    top: 25%;
}

#selector_div button {
    font-size: 20pt;
    color: rgb(255, 255, 255);
    background-color: rgba(0, 0, 0, 0.6);
    cursor: pointer;
    border: none;
    width: 5em;
    top: 62%;
}

.dice_place {
    position: absolute;
    border: solid black 1px;
} */


/* PROGRESS SPINNER */
#ring-holder{
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
    /* background-color: rgba(0,0,0,0.4); */
  }

  .lds-ring {
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-top: 20em;
    text-align: center;
    width: 10em;
    height: 10em;
    z-index: 5;
    padding: 0.6em;
        border-radius: 10px 10px 10px 10px;
        background: #222831;
        border: 1px solid #ff5722;
        display: flex;
          justify-content: center;

  }
  .lds-ring div {
    box-sizing: border-box;
    display: block;
    position: absolute;
    width: 5em;
    height: 5em;
    margin-top: 3em;
    border: 8px solid #ff5722;
    border-radius: 50%;
    animation: lds-ring 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
    border-color: #ff5722 transparent transparent transparent;
  }
  .lds-ring div:nth-child(1) {
    animation-delay: -0.45s;
  }
  .lds-ring div:nth-child(2) {
    animation-delay: -0.3s;
  }
  .lds-ring div:nth-child(3) {
    animation-delay: -0.15s;
  }
  @keyframes lds-ring {
    0% {
      transform: rotate(0deg);
    }
    100% {
      transform: rotate(360deg);
    }
  }


  /* BUTTONS */
.div-button-simple {
    padding: 0.1em 0.3em 0.1em 0.3em;
    cursor: pointer;
    border: 2px solid #2d4059;
    border-radius: 4px; 
    vertical-align: middle; 
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-content: center;
}
.button-simple{
    text-align: center;
    padding: 0.3em;
}

.button-highlight{
    border: 2px solid #ff5722;
}
/* doesn't look like a button */

.button-spawn{
    display: inline-block;
    width: 3em;
    margin: 0 auto;
}
.button-text{
    cursor: pointer;
    -webkit-touch-callout: none; /* iOS Safari */
        -webkit-user-select: none; /* Safari */
         -khtml-user-select: none; /* Konqueror HTML */
           -moz-user-select: none; /* Old versions of Firefox */
            -ms-user-select: none; /* Internet Explorer/Edge */
                user-select: none; /* Non-prefixed version, currently
                                      supported by Chrome, Edge, Opera and Firefox */
}
.checkbox-standard{
    width: 1.2em;
    height: 1.2em;
}
.checkbox-container{
    display: inline-flex;
    vertical-align: middle;
    align-items: center; 
}

/* GENERAL LAYOUT AND GRIDS */
.grid-container {
    display: grid;
    grid-auto-columns: 1fr;
    grid-auto-flow: column;
 }
 .grid-item {
     display: inline-block;
 }
 .float-bottom-right{
    position: absolute; 
	bottom: 0;
	right:0;
    padding: 10px;
    font-style: italic;
    font-size: 0.9em;
}
.centred{
    grid-column: 1;
    grid-row: 1;
    margin: 0 auto;
}
.colspan-2{
    grid-column: span 2;
}



/* VISIBILITY */
.hidden{
    display: none;
}
.invisible{
    visibility: hidden;
}
.unselectable {
    -webkit-user-select: none; /* Safari */        
    -moz-user-select: none; /* Firefox */
    -ms-user-select: none; /* IE10+/Edge */
    user-select: none; /* Standard */
  }
  .break-word{
    word-wrap: break-word;
  }


/* FONT-STYLING */
.small-text{
    font-size: 0.9em;
}
.warning-text{
    color: #ec5f67 !important;
}
.green-text{
    color: #78f678;
}
.grey-text{
    color: #a1a1a1 !important;
}
.red-text {
    color: #5f6671 !important;
}


/* MARFINS AND PADDING */
.small-margin-right-bottom {
    margin-bottom: 0.3em;
    margin-right: 0.3em;
}


  /* #TRAIT COLORING; */
  .item-level-box{
    display: inline-block;
    background: #2d4059;
    width: 1.8em;
    height: 1.3em;
    font-size: 0.9em;
    padding: 0.2em;
    text-align: center;
    vertical-align: middle;
}
.trait{
    padding: 2px 5px 2px 5px;
    margin: 2px;
    font-size: 0.9em;
    color: white;
    display: inline-block;
}
.trait-common {
    background-color: #2d4059;
}

.trait-rare {
    background-color: #151a4b;
}
.trait-uncommon {
    background-color: #985420;
}

.trait-unique {
    background-color: #800080;
}
.trait-third {
    background-color: #284520;
}
.trait-size {
    background-color: #478c42;
}
.trait-alignment {
    background-color: #4287f5;
}




/* SLIDER CONTROLS */
#slider {
    height: 10px;
}
#slider .noUi-connect {
    background: #222831;
}
#slider .noUi-tooltip {
  display: block;
  position: absolute;
  border: 1px solid #ff5722;
  border-radius: 3px;
  background: #222831;
  color: #fff;
  padding: 5px;
  text-align: center;
  white-space: nowrap;
}

#slider .noUi-handle {
  /* border: 1px solid #ff5722; */
  border-radius: 3px;
  background: #222831;
  cursor: default;
  box-shadow: inset 0 0 1px rgb(0, 0, 0), inset 0 1px 7px #1f1f1f, 0 3px 6px -3px rgb(32, 32, 32);
}

#slider .noUi-base{
    background: #222831;
}


/* MODAL STUFF */
.modal-button {
    display:inline-block;
      padding: 0.3em;
      margin: 0.2em;
    width: 6em;
    text-align: center;
    color: white;
    border: 1px solid white;
    border-radius: 8px;
    cursor: pointer;
  }

.modal {
    position: absolute;
  display: none;
  z-index: 2;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgb(0,0,0); /* Fallback color */
  background-color: rgba(0,0,0,0.6);
}

.modal-content {
    display: flex;
    flex-direction: column;
    margin: auto auto; 
    padding: 0px;
    width: 80vw;
    max-width: 1250px; 
    max-height: 80vh;
    background: #171a1e;
    /* border-radius: 1.1em; */
    -webkit-box-shadow: 0px 0px 0px 1px black;
    -moz-box-shadow: 0px 0px 0px 1px black;
    box-shadow: 0px 0px 0px 1px black;
}
.modal-content-listview{
    height: 80vh;
}
.modal-buttons{
    display: inline-block;
    flex: 0 1 auto;
    padding: 0.6em;
    background: #171a1e;
}
.modal-content-listview{
    height: 80vh;
}

.dialog-top-bar{
    color: white;
    padding-left: 1em;
    padding-bottom: 0.3em;
 }
 .dialog-title{
    font-size: 1.5em;
    font-weight: bold;
 }
 .div-listview-scroller{
    display: inline-block;
    max-width: 24em;
    width: 24em;
    padding: 0.5em;
    overflow-y: scroll;
    min-height: 0px;
    flex-grow: 1; /* this needs to flex grow to fill the vertical space gained by parent*/
 }
 .div-listview-scroller-mobile{
    display: inline-block;
    padding: 0.5em;
    overflow-y: scroll;
    min-height: 0px;
    height: 100%;
    flex-grow: 1; /* this needs to flex grow to fill the vertical space gained by parent*/
 }
 .div-listview-info{
    display: inline-block;
    padding: 0.5em 2em 0.5em 2em;
    overflow-y: scroll;
    min-height: 0px;
    flex: 1; /*this needs to flex to use the horizontal space specified by parent as standard horizontal flex*/
 }
 .content-listview{
    background-color: #222831;
    display: flex; /* this flex makes it flex horizontally so the listview info box fills page*/
    min-height: 0px;
    flex-grow: 1; /*this makes the content-listview grow to fill the vertical space specified by the parent with flex columnn */
 }
.modal-content-restricted-30{
    width: 30em !important;
    margin: 15% auto !important;
}

/* LISTVIEWS ETC */
.listview-title{
    line-height: 1.4em;
    vertical-align: middle;
   padding: 5px;
   margin: 0px;
   display: inline-block; 
}

.listview-title-selected{
    color: #ff5722;
}
.listview-item{
    display: block;
    flex: 1;
    padding-right: 0.6em;
}
.listview-item-level{
    display: inline-block;
    float: right;
    font-size: 1em;
 }
 .listview-detail{
    margin-left: 2em;
    margin-top: 0.6em;
}
.copyright{
    color: #a1a1a1;
    font-style: italic;
}
   



 /* snackbar -*/
 #snackbar {
    visibility: hidden; 
    min-width: 15em; 
    margin-left: -7.5em; 
    background-color: #333; 
    color: #fff; 
    text-align: center; 
    border-radius: 2px;
    padding: 16px; 
    position: fixed; 
    z-index: 50;
    left: 50%; 
    bottom: 4em; 
    border-radius: 1em;
  }

  #snackbar.show {
    visibility: visible;
    -webkit-animation: fadein 0.5s, fadeout 0.5s 2.5s;
    animation: fadein 0.5s, fadeout 0.5s 2.5s;
    bottom: 30px;
  }
  @-webkit-keyframes fadein {
    from {opacity: 0;}
    to {opacity: 1;}
  }
  
  @keyframes fadein {
    from {opacity: 0;}
    to {opacity: 1;}
  }
  
  @-webkit-keyframes fadeout {
    from {opacity: 1;}
    to {opacity: 0;}
  }
  
  @keyframes fadeout {
    from { opacity: 1;}
    to {opacity: 0;}
  } 