body {
  background: #eceee5;
font-family: 'Architects Daughter', cursive;
font-family: 'Ubuntu', sans-serif;
background-image: url(img/page-back.png);
background-position: top center;
background-repeat: no-repeat;
background-attachment: fixed;
background-size: auto;
}

h1 {margin:30px 0 0 0;}

#solution
{
z-index:99;
position:fixed;
bottom:0;
right:0;
background-color: #FFFFFF;
border-radius: 16px;
  box-shadow: 0 5px 18px rgba(0, 0, 0, 0.6);
  padding:10px;

}


#solution button {
  margin:0 0 10px 0;
}

#viewrec
{
font-size:10px;
z-index:99;
position:absolute;
top:0;
left:0;
background-color: #FFFFFF;
border-radius: 16px;
  box-shadow: 0 5px 18px rgba(0, 0, 0, 0.6);
  padding:10px;
width:200px;
}

#viewrecright{
font-size:10px;
z-index:99;
position:absolute;
top:0;
right:0;
background-color: #FFFFFF;
border-radius: 16px;
  box-shadow: 0 5px 18px rgba(0, 0, 0, 0.6);
  padding:10px;
width:200px;
}


#dm_solution img {
max-width:250px;
}

#dm_scenario { clear:both;}

.solution {max-width:250px;float:left;}

.title {
  color: #20263f;
  font-weight: 400;
  font-size: 40px;
  display: block;
  text-align: center;
}

/*CARD STYLES*/

.cards {
  display: flex;
  flex-direction: column;
  position: relative;
  perspective: 1000px;
  justify-content: center;
  align-content: center;
  align-items: center;
}
.cards
{
background-image: url(img/bb-bw-back-img.png);
background-repeat:no-repeat;
background-position: center;

}

.cards__single {
  display: flex;
  flex-direction: column;
  margin-top: 20px;
  width:80%;
  border-radius: 16px;
  box-shadow: 0 5px 18px rgba(0, 0, 0, 0.6);
  cursor: pointer;
  text-align: center;
  -webkit-transition: transform 0.6s;
  transform-style: preserve-3d;
  transition: 0.5s;
  -webkit-transition: 0.5s;
  position: relative;
transition: transform 0.6s;
  -webkit-transition: transform 0.6s;
  ;
}

.cards__image {
  text-align: center;
  width: 100%;
  border-radius: 16px;
}

.cards__single.flip {
  transform: rotateY(180deg);
  -webkit-transform: rotateY(180deg);
}

.cards__artist,
.cards__album {
  color: #20263f;
}

.cards__front img {
  margin: 0;
  height: 250px;
}

.cards__album {
  font-style: italic;
}

h2 {
  margin: 0;
  text-align: center;
}

li {
  line-height: 21px;
}

.cards__front,
.cards__back {
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  display: flex;
  flex-direction: column;
}
.cards__front {
  height: 100%;
  transform: rotateX(0deg);
  -webkit-transform: rotateX(0deg);
}

.cards__back {
  transform: rotateY(180deg);
  -webkit-transform: rotateY(180deg);
  position: absolute;
  text-align: center;
  right: 0;
  left: 0;
  /*top: 10px;*/
  color: #20263f;
  background-color:#FFF;
  border-radius: 16px;
}


@media (min-width: 768px) {
  .cards {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-content: center;
    position: relative;
    perspective: 1000px;
    align-items: stretch;
  }
  .cards__single {
    width: 20%;
    max-width:380px;
  }
}

/*CONTROL BOXES*/

#mydiv, #injectdiv, #dicebox, #initinject, #consultantdiv {
  position: absolute;
  z-index: 9;
  background-color: #f1f1f1;
  border: 1px solid #d3d3d3;
  text-align: center;
  border-radius: 16px;
  box-shadow: 0 5px 18px rgba(0, 0, 0, 0.6);
}
#injectdiv{
  left:400px; top:800px;
  display:none;
  min-width: 285px;
}
#consultantdiv {
  left:400px; top:800px;
  display:none;
  min-width: 285px;
}

#gmnotes
{
  left:620px; top:800px;
  position: absolute;
  z-index: 9;
  background-color: #ffe6a8;
  border: 1px solid #d3d3d3;
  text-align: center;
  box-shadow: 0 5px 18px rgba(0, 0, 0, 0.6);
  display:none;
}

#dicebox{
  right:20px;
  display:none;
  width:150px;
}

#initinject{
  /*right:50%;*/
  right:60px;
  /*margin-left:200px;*/
  top:50%;

  display:none;
  width:400px;
}

#initconsultant{
  /*right:50%;*/
  right:60px;
  /*margin-left:200px;*/
  top:50%;

  display:none;
  width:400px;
}


#injectdiv h1 { margin:0px; }
#consultantdiv h1 { margin:0px; }
#mydiv h1 { margin:0px; }
#gmnotes h1 { margin:0px; }
#dicebox h1 {margin:0px;}
#initinject h1 {margin:0px;}

#mydivheader {
  padding: 10px;
  cursor: move;
  z-index: 10;
  background-color: #2196F3;
  color: #fff;
}

#diceboxheader {
  padding: 10px;
  cursor: move;
  z-index: 10;
  background-color: #2196F3;
  color: #fff;
}

#initinjectheader {
  padding: 10px;
  cursor: move;
  z-index: 10;
  background-color: #FF0000;
  color: #fff;
}

#injectdivheader {
  padding: 10px;
  cursor: move;
  z-index: 10;
  background-color: #EEEEEE;
  color: #fff;
}

#initconsultantheader {
  padding: 10px;
  cursor: move;
  z-index: 10;
  background-color: #FF0000;
  color: #fff;
}

#consultantheader {
  padding: 10px;
  cursor: move;
  z-index: 10;
  background-color: #EEEEEE;
  color: #fff;
}

#gmnotesheader {
  padding: 10px;
  cursor: move;
  z-index: 10;
  background-color: #634e18;
  color: #fff;
}

#gmnotes textarea { font-size:30px; background-color:#ffe6a8;}

.establishedprocs
{
  /*background-color: #FFEE00;*/
  background-image: url(img/bb-proc-back-img.png);
  background-repeat: no-repeat;
  background-position: center;
  padding:10px;
  height:160px;
}

.big_num
{
font-size:50px;
}

.success
{background-color: #00FF00;
padding: 5px 0 5px 0;
margin-bottom:5px;
}
.fail
{ background-color: #FF0000; padding: 5px 0 5px 0;
  margin-bottom:5px;
}
.inject
{
  padding: 5px 0 5px 0;
  margin-bottom:5px;
}
.inject img { height:300px; }

.consultant
{
  padding: 5px 0 5px 0;
  margin-bottom:5px;
}
.consultant img { height:300px; }

.proc
{
  float:left;
  height: 150px; /* height of container */
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 5px 18px rgba(0, 0, 0, 0.6);
  margin:0px 5px 0px 5px;
  background-color:#FFF;
}

.procimg
{
width:300px;
}

.otherprocs .procimg
{
width:220px;
}
.otherprocs .proc
{
  height:125px;
}

#dice, #d20
{
  background-image: url(img/d20-back.png);
  background-size: contain;
  background-repeat: no-repeat;
}

.init {
height:250px;
overflow: hidden;
}

.initinject {
/*height:400px;
overflow: hidden; */
}

#injectbox .inject img {
  height: 400px;
}

.scenimg
{
width:100%;
}

.full{width:100%;height:100%;}

#copyright
{

}
#bb
{
  float:right;
  width:200px;
  background-size: contain;
  background-image: url(img/bb-logo-transparent.png);
  background-repeat: no-repeat;
  float:right;
  height:70px;
}
#bh
{ 
  width:200px;
  background-size: contain;
  background-image: url(img/blackhills-logo.png);
  background-repeat: no-repeat;
  float:right;
  height:70px;
}

.sponsor
{ 
  width:200px;
  background-size: contain;
  background-repeat: no-repeat;
  float:right;
  height:70px;
}

#counter1, #counter2, #counter3 {
width: 75px;
    height: 75px;
    position: absolute;
  z-index: 6;
  /*background-image: url(img/clock.png);*/
  background-color: #AA1122;
  background-repeat: no-repeat;
  border: 5px dashed #000;
    -moz-border-radius: 60px;
    -webkit-border-radius: 60px;
    border-radius: 60px;
    top:825px;
    left:520px;
    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.6);
}

#hold1, #hold2, #hold3 {
width: 75px;
    height: 75px;
    position: absolute;
  z-index: 6;
  /*background-image: url(img/clock.png);*/
  background-color: #AA1122;
  background-repeat: no-repeat;
  border: 5px dashed #000;
    -moz-border-radius: 60px;
    -webkit-border-radius: 60px;
    border-radius: 60px;
    top:925px;
    left:520px;
    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.6);
}
.counter
{
  text-align: center;
  font-size:50px;
  vertical-align:middle;
  line-height:75px;
  top:357px;
  left:258px;
}
.xcounter
{
  text-align: center;
  font-size:50px;
  vertical-align:middle;
  line-height:60px;
  top:357px;
  left:268px;
}

.lb-nav
{display:none;}

.lb-number
{display:none;}


.warn
{
padding:10px;
margin:10px;
background-color:#FF3333;
}

/*EXPANSION ADD-ON STYLES */

#addonscenarioheader
{
  padding: 0 0 20px 0;
  cursor: move;
  z-index: 10;
  /*color: #fff;*/
}

#addonscenario {
  /*width:75%;*/
  left:100px; top:100px;
  position: absolute;
  z-index: 9;
  background-color: #FFF;
  border: 1px solid #d3d3d3;
  text-align: center;
  border-radius: 16px;
  box-shadow: 0 5px 18px rgba(0, 0, 0, 0.6);
  padding:0 0 25px 0;
  display:none;
}

#addonscenario button {
  margin:0 0 10px 0;
}

#addonscenario .expcards {
 /* display: flex; */
 /* flex-direction: column; */
  position: relative;
  perspective: 1000px;
  justify-content: center;
  align-content: center;
  align-items: center;
  margin: 0 auto;
}
#addonscenario .expcards
{
background-image: url(img/bb-bw-back-img.png);
background-repeat:no-repeat;
background-position: center;

}

#addonscenario [class^="cards__single_"] {
 /* display: flex; */
 /* flex-direction: column; */
  margin-top: 20px;
  margin: 0 auto;
  width:80%;
  max-height:165px;
  border-radius: 16px;
  box-shadow: 0 5px 18px rgba(0, 0, 0, 0.6);
  cursor: pointer;
  text-align: center;
  -webkit-transition: transform 0.6s;
  transform-style: preserve-3d;
  transition: 0.5s;
  -webkit-transition: 0.5s;
  position: relative;
transition: transform 0.6s;
  -webkit-transition: transform 0.6s;
}

#addonscenario .cards__image {
  text-align: center;
  width: 100%;
  border-radius: 16px;
}

#addonscenario [class^="cards__single_"].flip {
  transform: rotateY(180deg);
  -webkit-transform: rotateY(180deg);
}

#addonscenario .cards__artist,
#addonscenario .cards__album {
  color: #20263f;
}

#addonscenario .cards__front img {
  margin: 0;
  height: 250px;
  height: 90%;
}

#addonscenario .cards__album {
  font-style: italic;
}


#addonscenario .cards__front,
#addonscenario .cards__back {
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  display: flex;
  flex-direction: column;
}
#addonscenario .cards__front {
  height:auto;
  max-height:165px;
  transform: rotateX(0deg);
  -webkit-transform: rotateX(0deg);
}

#addonscenario .cards__back {
  transform: rotateY(180deg);
  -webkit-transform: rotateY(180deg);
  position: absolute;
  text-align: center;
  right: 0;
  left: 0;
  top: 0px;
  color: #20263f;
  background-color:#FFF;
  border-radius: 16px;
  max-height:180px;
}


@media (min-width: 768px) {
 #addonscenario .expcards {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-content: center;
    position: relative;
    perspective: 1000px;
    align-items: stretch;
    margin: 0 auto;
  }
#addonscenario  [class^="cards__single_"] {
    /*width: 75%;
    max-width:380px;*/
  }
}

.addons
{
  width:290px;
  margin-left:30px;
}

#dm_addonsolution {
clear:both;
}

#dm_addonsolution img {
max-width:150px;
}
.addonsol { 
  max-width:300px; 
float:left;}

.addonbutt {
display:none;
}

#clearIC, #clearPE, #clearCE, #clearPER {
display:none;
color:red;
}