.input-block-level {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  display: block;
  width: 100%;
  min-height: 16px;
}
/*
 * HTML5 Boilerplate
 *
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */
/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */
html,
button,
input,
select,
textarea {
  color: #222;
}
html {
  height: 100%;
}
body {
  font-size: 1em;
  height: 100%;
  line-height: 1.4;
}
/*
 * Remove text-shadow in selection highlight: h5bp.com/i
 * These selection declarations have to be separate.
 * Customize the background color to match your design.
 */
::-moz-selection {
  background: #b3d4fc;
  text-shadow: none;
}
::selection {
  background: #b3d4fc;
  text-shadow: none;
}
/*
 * A better looking default horizontal rule
 */
hr {
  display: block;
  height: 1px;
  border: 0;
  border-top: 1px solid #ccc;
  margin: 1em 0;
  padding: 0;
}
/*
 * Remove the gap between images and the bottom of their containers: h5bp.com/i/440
 */
img {
  vertical-align: middle;
}
/*
 * Remove default fieldset styles.
 */
fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}
/*
 * Allow only vertical resizing of textareas.
 */
textarea {
  resize: vertical;
}
/* ==========================================================================
   Chrome Frame prompt
   ========================================================================== */
.chromeframe {
  margin: 0.2em 0;
  background: #ccc;
  color: #000;
  padding: 0.2em 0;
}
/* ==========================================================================
   Helper classes
   ========================================================================== */
/*
 * Image replacement
 */
.ir {
  background-color: transparent;
  border: 0;
  overflow: hidden;
  /* IE 6/7 fallback */

  *text-indent: -9999px;
}
.ir:before {
  content: "";
  display: block;
  width: 0;
  height: 100%;
}
/*
 * Hide from both screenreaders and browsers: h5bp.com/u
 */
.hidden {
  display: none !important;
  visibility: hidden;
}
/*
 * Hide only visually, but have it available for screenreaders: h5bp.com/v
 */
.visuallyhidden {
  border: 0;
  clip: rect(0 0 0 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
}
/*
 * Extends the .visuallyhidden class to allow the element to be focusable
 * when navigated to via the keyboard: h5bp.com/p
 */
.visuallyhidden.focusable:active,
.visuallyhidden.focusable:focus {
  clip: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  position: static;
  width: auto;
}
/*
 * Hide visually and from screenreaders, but maintain layout
 */
.invisible {
  visibility: hidden;
}
/*
 * Clearfix: contain floats
 *
 * For modern browsers
 * 1. The space content is one way to avoid an Opera bug when the
 *    `contenteditable` attribute is included anywhere else in the document.
 *    Otherwise it causes space to appear at the top and bottom of elements
 *    that receive the `clearfix` class.
 * 2. The use of `table` rather than `block` is only necessary if using
 *    `:before` to contain the top-margins of child elements.
 */
.clearfix:before,
.clearfix:after {
  content: " ";
  /* 1 */

  display: table;
  /* 2 */

}
.clearfix:after {
  clear: both;
}
/*
 * For IE 6/7 only
 * Include this rule to trigger hasLayout and contain floats.
 */
.clearfix {
  *zoom: 1;
}
/* ==========================================================================
   Print styles.
   Inlined to avoid required HTTP connection: h5bp.com/r
   ========================================================================== */
@media print {
  * {
    background: transparent !important;
    color: #000 !important;
    /* Black prints faster: h5bp.com/s */
  
    box-shadow: none !important;
    text-shadow: none !important;
  }
  a,
  a:visited {
    text-decoration: underline;
  }
  a[href]:after {
    content: " (" attr(href) ")";
  }
  abbr[title]:after {
    content: " (" attr(title) ")";
  }
  /*
       * Don't show links for images, or javascript/internal links
       */
  .ir a:after,
  a[href^="javascript:"]:after,
  a[href^="#"]:after {
    content: "";
  }
  pre,
  blockquote {
    border: 1px solid #999;
    page-break-inside: avoid;
  }
  thead {
    display: table-header-group;
    /* h5bp.com/t */
  
  }
  tr,
  img {
    page-break-inside: avoid;
  }
  img {
    max-width: 100% !important;
  }
  @page  {
    margin: 0.5cm;
  }
  p,
  h2,
  h3 {
    orphans: 3;
    widows: 3;
  }
  h2,
  h3 {
    page-break-after: avoid;
  }
}
body {
  background: url('../img/body.png') repeat left top #7bdcd2;
  padding: 0.5em 1em;
}
a:link,
a:visited {
  color: #028e9b;
  text-decoration: underline;
}
a:hover,
a:active {
  text-decoration: none;
}
h1,
h2,
h3,
h4,
h5,
h6 {
  color: #ff7800;
  font-family: 'Cabin Condensed', arial, sans-serif;
}
.btn {
  background-color: #028996;
  background-image: -moz-linear-gradient(top, #02a5b4, #016069);
  background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#02a5b4), to(#016069));
  background-image: -webkit-linear-gradient(top, #02a5b4, #016069);
  background-image: -o-linear-gradient(top, #02a5b4, #016069);
  background-image: linear-gradient(to bottom, #02a5b4, #016069);
  background-repeat: repeat-x;
  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff02a5b4', endColorstr='#ff016069', GradientType=0);
  -webkit-border-radius: 0.25em;
  -moz-border-radius: 0.25em;
  border-radius: 0.25em;
  border: 1px solid #02a5b4;
  color: white;
  cursor: pointer;
  display: block;
  font-size: 1em;
  line-height: 1.5;
  margin: 0.5em auto;
  padding: 0.25em 0.5em;
  text-align: center;
  text-transform: uppercase;
  width: 85%;
}
a.btn {
  color: white;
  text-decoration: none;
}
.btn:hover {
  background-color: #0293a0;
  background-image: -moz-linear-gradient(top, #02a5b4, #027782);
  background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#02a5b4), to(#027782));
  background-image: -webkit-linear-gradient(top, #02a5b4, #027782);
  background-image: -o-linear-gradient(top, #02a5b4, #027782);
  background-image: linear-gradient(to bottom, #02a5b4, #027782);
  background-repeat: repeat-x;
  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff02a5b4', endColorstr='#ff027782', GradientType=0);
}
.btn[disabled] {
  opacity: 0.45;
  filter: alpha(opacity=45);
  cursor: not-allowed;
}
.btn[disabled]:hover {
  background: #028e9b;
}
.show-dice,
.show-marker {
  display: none;
  text-align: center;
}
@media only screen and (max-width: 35em) {
  .show-dice,
  .show-marker {
    display: block;
  }
  li.show-dice,
  li.show-marker {
    display: list-item;
    text-align: left;
  }
}
header {
  text-align: center;
}
header a:link {
  text-decoration: none;
}
header h1 {
  font-weight: normal;
  text-transform: uppercase;
}
header h1 em {
  font-style: normal;
  font-weight: 700;
}
body > section,
header,
footer {
  background: white;
  background: rgba(255, 255, 255, 0.85);
  padding: 0.5em 1em;
}
body > section h1:first-child,
header h1:first-child,
footer h1:first-child,
body > section h2:first-child,
header h2:first-child,
footer h2:first-child {
  margin-top: 0;
}
#board {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  height: 200%;
  margin: 0 auto 2% auto;
  position: relative;
}
#board ol {
  list-style: none;
  margin: 0;
  padding: 0;
  position: absolute;
}
#board li {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  line-height: 6;
  text-align: center;
}
#row_1 {
  border: 1px solid black;
  border-right: none;
  height: 9%;
  left: 0;
  top: 0;
  width: 83.33%;
}
#row_1 li {
  background: #981b1b;
}
#row_1 li + li {
  background: #98301b;
}
#row_1 li + li + li {
  background: #98441b;
}
#row_1 li + li + li + li {
  background: #98591b;
}
#row_1 li + li + li + li + li {
  background: #986e1b;
}
#row_1 li {
  border-left: 1px solid black;
  float: left;
  height: 100%;
  width: 20%;
}
#row_1 li:first-child {
  border-left: none;
}
#row_2 {
  border: 1px solid black;
  border-bottom: none;
  height: 45%;
  right: 0;
  top: 0;
  width: 16.67%;
}
#row_2 li {
  background: #98981b;
}
#row_2 li + li {
  background: #83981b;
}
#row_2 li + li + li {
  background: #6e981b;
}
#row_2 li + li + li + li {
  background: #59981b;
}
#row_2 li + li + li + li + li {
  background: #44981b;
}
#row_2 li {
  border-top: 1px solid black;
  height: 20%;
  width: 100%;
}
#row_2 li:first-child {
  border-top: none;
}
#row_3 {
  border: 1px solid black;
  border-left: none;
  top: 45%;
  height: 9%;
  right: 0;
  width: 83.33%;
}
#row_3 li {
  background: #1b981b;
}
#row_3 li + li {
  background: #1b9830;
}
#row_3 li + li + li {
  background: #1b9844;
}
#row_3 li + li + li + li {
  background: #1b9859;
}
#row_3 li + li + li + li + li {
  background: #1b986e;
}
#row_3 li {
  border-right: 1px solid black;
  float: right;
  height: 100%;
  width: 20%;
}
#row_3 li:first-child {
  border-right: none;
}
#row_4 {
  border: 1px solid black;
  border-bottom: none;
  top: 45%;
  height: 45%;
  left: 0;
  width: 16.67%;
}
#row_4 li {
  background: #1b9898;
}
#row_4 li + li {
  background: #1b8398;
}
#row_4 li + li + li {
  background: #1b6e98;
}
#row_4 li + li + li + li {
  background: #1b5998;
}
#row_4 li + li + li + li + li {
  background: #1b4498;
}
#row_4 li {
  border-top: 1px solid black;
  height: 20%;
  width: 100%;
}
#row_4 li:first-child {
  border-top: none;
}
#row_5 {
  border: 1px solid black;
  height: 9%;
  left: 0;
  top: 90%;
  width: 83.33%;
}
#row_5 li {
  background: #1b1b98;
}
#row_5 li + li {
  background: #301b98;
}
#row_5 li + li + li {
  background: #441b98;
}
#row_5 li + li + li + li {
  background: #591b98;
}
#row_5 li + li + li + li + li {
  background: #6e1b98;
}
#row_5 li {
  border-left: 1px solid black;
  float: left;
  height: 100%;
  width: 20%;
}
#row_5 li:first-child {
  border-left: none;
}
@media only screen and (max-width: 35em) {
  #board {
    border: none;
    height: auto;
  }
  #board ol {
    position: static;
  }
  #row_1,
  #row_2,
  #row_3,
  #row_4,
  #row_5 {
    border: none;
    border-left: 1px solid black;
    border-right: 1px solid black;
    height: auto;
    width: 98%;
  }
  #row_1 li,
  #row_2 li,
  #row_3 li,
  #row_4 li,
  #row_5 li,
  #row_2 li:first-child,
  #row_4 li:first-child {
    border: none;
    border-top: 1px solid black;
    float: none;
    height: auto;
    min-height: 110px;
    width: 100%;
  }
  #row_5 {
    border-bottom: 1px solid black;
  }
}
#marker {
  color: white;
  font-size: 5em;
  line-height: 1.3;
  text-shadow: 1px 1px 4px black;
}
#marker a:link,
#marker a:visited {
  color: white;
  font-size: 0.2em;
}
#marker .show-dice {
  padding-bottom: 0.5em;
}
#life-cards {
  right: 23%;
  height: 30%;
  margin-bottom: 1em;
  overflow: hidden;
  position: absolute;
  top: 12%;
  width: 32%;
}
#life-cards.lower {
  bottom: 12%;
  right: 6%;
  top: auto;
}
#life-cards h3 {
  margin: 0;
  padding: 0;
  text-align: center;
}
#life-cards ul {
  list-style: none;
  height: 80%;
  margin: 0 auto;
  overflow: hidden;
  padding: 0;
  position: relative;
  width: 96%;
}
#life-cards li {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  background: white;
  border: 2px solid black;
  border-radius: 0.35em;
  display: block;
  height: 100%;
  line-height: 1.5;
  margin: 0 0 1em 0;
  overflow: auto;
  position: relative;
  text-align: left;
  width: 100%;
}
#life-cards li span {
  display: block;
}
#life-cards .face {
  font-size: 3em;
  text-align: center;
}
#life-cards img {
  display: block;
  margin: 0 auto;
  max-height: 80%;
  max-width: 100%;
}
#life-cards .life-event {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  padding: 0.25em 0.5em;
  width: 100%;
}
#life-cards .drawn {
  position: absolute;
  top: 0;
  z-index: 10;
}
#life-cards .forward {
  color: green;
}
#life-cards .backward {
  color: red;
}
@media only screen and (max-width: 35em) {
  #life-cards {
    height: 570px;
    position: static;
    width: 98%;
  }
  #life-cards ul {
    height: 500px;
  }
}
#dice {
  left: 6%;
  height: 30%;
  margin-bottom: 1em;
  overflow: hidden;
  position: absolute;
  top: 12%;
  width: 32%;
}
#dice.lower {
  bottom: 12%;
  left: 23%;
  top: auto;
}
#dice h3 {
  margin: 0;
  padding: 0;
  text-align: center;
}
#die {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  background: white;
  border: 1px solid black;
  border-radius: 0.35em;
  height: 50px;
  margin: 1em auto 0 auto;
  overflow: hidden;
  position: relative;
  width: 50px;
}
#die span {
  display: block;
  font-size: 2em;
  height: 30%;
  line-height: .5;
  position: absolute;
  text-align: center;
  visibility: hidden;
  width: 30%;
  z-index: 1;
}
/* --------------------------
    Side 1
-------------------------- */
#die.side_1 #dot_1 {
  left: 50%;
  margin: -15% 0 0 -15%;
  top: 50%;
  visibility: visible;
}
/* --------------------------
    Side 2
-------------------------- */
#die.side_2 #dot_1 {
  left: 0;
  margin: 5% 0 0 5%;
  top: 0;
  visibility: visible;
}
#die.side_2 #dot_2 {
  bottom: 0;
  margin: 0 5% 5% 0;
  right: 0;
  visibility: visible;
}
/* --------------------------
    Side 3
-------------------------- */
#die.side_3 #dot_1 {
  left: 0;
  margin: 5% 0 0 5%;
  top: 0;
  visibility: visible;
}
#die.side_3 #dot_2 {
  bottom: 0;
  margin: 0 5% 5% 0;
  right: 0;
  visibility: visible;
}
#die.side_3 #dot_3 {
  left: 50%;
  margin: -15% 0 0 -15%;
  top: 50%;
  visibility: visible;
}
/* --------------------------
    Side 4
-------------------------- */
#die.side_4 #dot_1 {
  left: 0;
  margin: 5% 0 0 5%;
  top: 0;
  visibility: visible;
}
#die.side_4 #dot_2 {
  bottom: 0;
  margin: 0 5% 5% 0;
  right: 0;
  visibility: visible;
}
#die.side_4 #dot_3 {
  right: 0;
  margin: 5% 5% 0 0;
  top: 0;
  visibility: visible;
}
#die.side_4 #dot_4 {
  bottom: 0;
  margin: 0 0 5% 5%;
  left: 0;
  visibility: visible;
}
/* --------------------------
    Side 5
-------------------------- */
#die.side_5 #dot_1 {
  left: 0;
  margin: 5% 0 0 5%;
  top: 0;
  visibility: visible;
}
#die.side_5 #dot_2 {
  bottom: 0;
  margin: 0 5% 5% 0;
  right: 0;
  visibility: visible;
}
#die.side_5 #dot_3 {
  right: 0;
  margin: 5% 5% 0 0;
  top: 0;
  visibility: visible;
}
#die.side_5 #dot_4 {
  bottom: 0;
  margin: 0 0 5% 5%;
  left: 0;
  visibility: visible;
}
#die.side_5 #dot_5 {
  left: 50%;
  margin: -15% 0 0 -15%;
  top: 50%;
  visibility: visible;
}
/* --------------------------
    Side 6
-------------------------- */
#die.side_6 #dot_1 {
  left: 0;
  margin: 5% 0 0 5%;
  top: 0;
  visibility: visible;
}
#die.side_6 #dot_2 {
  bottom: 0;
  margin: 0 5% 5% 0;
  right: 0;
  visibility: visible;
}
#die.side_6 #dot_3 {
  right: 0;
  margin: 5% 5% 0 0;
  top: 0;
  visibility: visible;
}
#die.side_6 #dot_4 {
  bottom: 0;
  margin: 0 0 5% 5%;
  left: 0;
  visibility: visible;
}
#die.side_6 #dot_5 {
  left: 0;
  margin: -15% 0 0 5%;
  top: 50%;
  visibility: visible;
}
#die.side_6 #dot_6 {
  right: 0;
  margin: -15% 5% 0 0;
  top: 50%;
  visibility: visible;
}
@media only screen and (max-width: 35em) {
  #dice {
    position: static;
    width: 98%;
  }
}
#winning {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  background: white;
  left: 0;
  min-height: 100%;
  position: absolute;
  top: 0;
  visibility: hidden;
  width: 100%;
  z-index: 99;
}
.duh {
  padding: 0;
}
.duh header,
.duh #game,
.duh #legend,
.duh #board,
.duh footer {
  display: none;
}
.duh #winning {
  visibility: visible;
}
