

@font-face {
    font-family: 'display'; 
    src: url('/theme/deadsands/fonts/RewardPersonalUseRegular-qZAl5.ttf');
}
@font-face {
    font-family: 'headers'; 
    src: url('/theme/deadsands/fonts/edmunds.otf');
}
@font-face {
    font-family: 'body'; 
    src: url('/theme/deadsands/fonts/LibreBaskerville-Regular.ttf');
    font-weight: normal;
}
@font-face {
    font-family: 'body'; 
    src: url('/theme/deadsands/fonts/LibreBaskerville-Bold.ttf');
    font-weight: bold;
}
@font-face {
    font-family: 'body'; 
    src: url('/theme/deadsands/fonts/LibreBaskerville-Italic.ttf');
    font-style: italic;
    font-weight: normal;
}
@font-face {
    font-family: 'nav';
    src: url('/theme/deadsands/fonts/marlboro.regular.ttf');
}
@font-face {
    font-family: 'dropcase';
    src: url('/theme/deadsands/fonts/edmunds_distressed.otf');
}
@font-face {
    font-family: 'note';
    src: url('/theme/deadsands/fonts/ReenieBeanie-Regular.ttf');
}

html, body {
    width:100%;
    height:100%;
}

/* Space out content a bit */
body {
  background: #702623;
  padding-bottom: 20px;
}

#background {
  position: relative;
  z-index: 1;
  min-height: 500px;
  background: #EFDFBE;
  background-image: url("/theme/deadsands/background.jpg");
  background-position: center;
  background-repeat: no-repeat;
  background-size: 100% auto;
  background-position: bottom;
}

a {
    color: #702623;
    text-decoration: none;
    font-weight: bold;
}

h1 a, h2 a, h3 a, h4 a, h5 a, h5 a {
    font-weight: inherit;
}

h1, h2, h3, h4, h5, h6 {
    letter-spacing: 0.05em;
    padding:0px;
    font-family: 'headers';
    text-align: center;
    color: #692F28;
    margin: 0px auto;
    margin-bottom: 0.5em;
    width: 100%;
}

h4, h5, h6 {
    color: inherit;
}

h1 { font-size: 4.0em; }
h2 { font-size: 3.5em; }
h3 { font-size: 2.5em; }
h4 { font-size: 2.0em; }
h5 { font-size: 1.5em; }
h6 { font-size: 1.25em; }

.container h3:before, .container h3:after {
    content: "★";
    font-size: 0.75em;
    padding: 0px 5px;
    color:#cca138;
}
.container a:hover, .container a:active {
    color:#cca138;
}

.container .box h2:first-of-type {
  text-transform: capitalize;
  text-align: center;
}

.container .box h2:first-of-type a {
    color: inherit;
}

.container .box {
    position: relative;
    width: 100%;
    max-width:960px;
    text-align: justify;
    font-family: 'body';
    background: rgb(244,241,232);
    background: radial-gradient(circle, rgba(255,255,255,1) 35%, rgba(244,241,232,1) 100%);
}

.container .box p:last-of-type {
    padding-bottom: 1.5em;
}

.container .box p:first-of-type::first-letter {
    font-family: 'dropcase';
    font-size: 5em;
    float: left;
    margin: 0px;
    margin-top: -0.25em;
    margin-bottom: -0.5em;
    padding: 0px;
    padding-right: 5px;
    color: #692F28;
}

.container .box article.recent p:first-of-type::first-letter {
    font-family: inherit;
    font-size: inherit;
    float: inherit;
    margin: inherit;
    padding: inherit;
    color: inherit;
}

article.recent {
    font-style: italic;
    margin-bottom: 1em;
    width: 100%;
}
article.recent a.title {
    font-weight; bold;
    font-style: normal;
}

/* Custom page header */
.header {
  position: relative;
  display: block;
  margin: 0px auto;
  padding: 0px;
  text-align: center;
}

#header_background {
  width: 100%;
  background: #EFDFBE;
}
/* Make the masthead heading the same height as the navigation */
.header .title {
  position: relative;
  display: block;
  z-index: 2;
}

.header .sun {
    position: absolute;
    top: 1.5em;
    left: 62%;
    display: inline-block;
    width: 6em;
    height: 6em;
    border-radius: 50%;
    background-color: #D9B645;
    z-index: 1;
}

.header .title h1 {
  font-family: 'display';
  font-size: 7em;
  margin: 0;
  padding: 0;
  letter-spacing: 0.15em;
}
.header .title h1 a{
    color: #692F28;
    text-decoration:none;
    font-weight: normal;
}

.byline {
    font-size: 1.25em;
    font-family: 'nav'; 
    text-transform: uppercase;
    margin-bottom: 0.5em;
}

table {
    padding: 1em;
    width: 100%;
    margin: 1em 0em;
}
th {
    border-bottom: 1px solid #999;
}
td {
    width: auto;
    padding-right: 1em;
}
tr:nth-child(even) {
    background: rgba(244,241,232, 0.5);
}
tr:nth-child(odd) {
    background: rgba(255,255,255, 0.5);
}

tr td:last-of-type: {
    width: 100%;
    padding-right: 0;
}

table.archive-list td.date, td.category {
    white-space: nowrap;
    width: auto;
    font-size: 1.25em;
    font-family: 'nav'; 
    text-transform: uppercase;
}
table.archive-list td.title {
    width: 100%;
    text-transform: capitalize;
}

/* Column-first tables /*
/* don't delete */

ol {
    display: block;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: start;
    width: 100%;
    margin: 0;
    list-style: none;
    padding: 0;
    text-justify: left;
}

/* row */
ol > li {
    width: 100%;
}

ol > li:nth-child(even) {
    background: rgba(244,241,232, 0.5);
}
ol > li:nth-child(odd) {
    background: rgba(255,255,255, 0.5);
}

ol > li:first-of-type {
    background: transparent;
    font-weight: bold;
    border-bottom: 1px solid #999;
}
ol > li > ul {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: start;
    justify-content: space-between;
    padding: 0px;
}

ol > li ul > li {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    list-style-type: none;
    padding: 0.5em;
    text-align: left;
}

ol > li > ul > li:first-child:nth-last-child(1) { min-width: 100%; }
ol > li > ul > li:first-child:nth-last-child(2), ol > li > ul > li:first-child:nth-last-child(2) ~ li { width: 100%; }
ol > li > ul > li:first-child:nth-last-child(3), ol > li > ul > li:first-child:nth-last-child(3) ~ li { width: 50%; }
ol > li > ul > li:first-child:nth-last-child(4), ol > li > ul > li:first-child:nth-last-child(4) ~ li { width: 33%; }
ol > li > ul > li:first-child:nth-last-child(5), ol > li > ul > li:first-child:nth-last-child(5) ~ li { width: 25%; }
ol > li > ul > li:first-child:nth-last-child(6), ol > li > ul > li:first-child:nth-last-child(6) ~ li { width: 20%; }

ol > li:first-child > ul > li:last-of-type {
    display: none;
}
ol > li > ul li:last-of-type {
    flex-direction: column;
    width: 100% !important;
    margin-left: 3em;
    margin-bottom: 1em;
}

.archive-list {
}
.archive-list  ul {
}
.archive-list li {
    list-style: none;
    font-family: 'nav'; 
    font-size: 1.25em;
}

/* Custom page footer */
.footer {
    text-align: right;
}

#content {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: start;
    width: 100%;
}

.content {
    font-family: 'body';
    position: relative;
}

.column {
    margin: 1em 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    flex-direction: row;
}

.cards {
    flex-direction: row;
    margin: 1em auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: start;
    width: 100%;
}

.cards .card {
    display: flex;
    flex: 0 1 calc(50% - 2em);
    margin: 1em auto;
    width: 100%;
    min-height: 200px;
}
.cards .card article {
    width: 100%;
    min-height: 100px;
}

.scrap {
    display: block;
    float: right;
    padding-left: 10px;
    padding-right: 10px;
    padding-bottom: 10px;
    
}

.scrap .note {
    font-family: 'note';
    font-size: 1.5em;
    line-height: 1.0em;
    text-align: left;
    width: 200px;
    padding: 10px;
    min-height: 200px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 60%), 0 0 25px rgba(0, 0, 0, 20%) inset;
    background: #e8d4b3;

}
.note address{
    display:inline;
}

.bottom-nav{display:none;}
.bottom-nav a{margin-left:15px;}

.container {
    position: relative;
    z-index: 1;
    padding: 20px 0px;
    max-width:960px;
}

.container:after {
    content:"";
    display:block;
    clear:both;
    visibility:hidden;
    height:0;
    font-size:0;
}

hr {
  font-size: 2em;
  position: relative;
  outline: 0;
  border: 0;
  color: #692F28;
  text-align: center;
  margin: 10px auto;
  opacity: 1;
}

hr:before {
    content: '';
    background: linear-gradient(to right, transparent, #000, transparent);
    background: #000;
    position: absolute;
    left: 0;
    top: 50%;
    width: 100%;
    height: 1px;
}
hr:after {
    content: '⭑';
    position: relative;
    display: inline-block;
    color: #000;
    font-weight: bold;
    padding: 0 0.25em;
    line-height: 1.5em;
    background: transparent;
    text-shadow: -2px 0 #FFF, 0 2px #FFF, 2px 0 #FFF, 0 -2px #FFF;
}


hr.divider {
  font-size: 2em;
  font-weight: bold;
  line-height: 1em;
  position: relative;
  outline: 0;
  border: 0;
  color: #000;
  text-align: center;
  height: 1.5em;
  margin: 0px auto;
  width: 100%;
}
hr.divider:before {
    content: '';
    background: #000;
    position: absolute;
    left: 0;
    top: 50%;
    width: 100%;
    height: 1px;
  }
hr.divider:after {
    content: '☠';
    position: relative;
    display: inline-block;
    color: #000;
    font-weight: bold;
    padding: 0 0.25em;
    line-height: 1.5em;
    background-color: transparent;
    text-shadow: none;
}

.pager {
    font-family: 'nav';
    text-align:center;
    text-justify: center;
}
.pager .prev {
    flex: 0 1 calc(50% - 2em);
    line-height: 2em;
}
.pager .middle {
    display: none;
    flex: 0 1 2em;
    font-size: 2em;
    line-height: 1em;
    padding: 0px;
}
.pager .next {
    flex: 0 1 calc(50% - 2em);
    line-height: 2em;
}

ul.nav {
    font-family: 'nav';
    display: block;
    padding: 0px;
    margin: 0px;
}
ul.nav li {
    width: 100%;
    display: block;
    padding: 0px 10px;
}
ul.nav li:hover, ul.nav li:active {
    background-color: #D9B645;
}

ul.nav li a, .pager a {
    text-transform: uppercase;
    font-size: 1.5em;
    color: #000;
}
ul.nav li:first-child:before {
    display: none;
    content: '⭑';
    padding-right: 1em;
}
ul.nav li:after {
    display: none;
    content: '⭑';
    padding-left: 1em;
}

ul.nav li a:hover, ul.nav li a:active {
    text-decoration: underline;
}

ul.cloud {
  list-style: none;
  padding-left: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  line-height: 2.75rem;
  width: 450px;
}

ul.cloud a {
  /*
  Not supported by any browser at the moment :(
  --size: attr(data-weight number);
  */
  --size: 4;
  --color: #a33;
  color: var(--color);
  font-family: 'headers';
  font-size: calc(var(--size) * 1.0rem + 0.5rem);
  display: block;
  padding: 0.125rem 0.25rem;
  position: relative;
  text-decoration: none;
  /*
  For different tones of a single color
  opacity: calc((15 - (9 - var(--size))) / 15);
  */
}

ul.cloud a[data-weight="1"] { --size: 1; }
ul.cloud a[data-weight="2"] { --size: 2; }
ul.cloud a[data-weight="3"] { --size: 3; }
ul.cloud a[data-weight="4"] { --size: 4; }
ul.cloud a[data-weight="5"] { --size: 6; }
ul.cloud a[data-weight="6"] { --size: 8; }
ul.cloud a[data-weight="7"] { --size: 10; }
ul.cloud a[data-weight="8"] { --size: 13; }
ul.cloud a[data-weight="9"] { --size: 16; }

ul[data-show-value] a::after {
  content: " (" attr(data-weight) ")";
  font-size: 1rem;
}

ul.cloud li:nth-child(2n+1) a { --color: #181; }
ul.cloud li:nth-child(3n+1) a { --color: #33a; }
ul.cloud li:nth-child(4n+1) a { --color: #c38; }

ul.cloud a:focus {
  outline: 1px dashed;
}

ul.cloud a::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 0;
  height: 100%;
  background: var(--color);
  transform: translate(-50%, 0);
  opacity: 0.15;
  transition: width 0.25s;
}

a.disabled,
a.disabled:active,
a.disabled:hover {
    color: #333;        
}

.statblock h4, .statblock h5, .statblock  h6 {
    border: none;
}

.statblock table, 
.statblock table tr { 
    width: 100%;
}
.statblock table th {
    border: none;
    white-space: nowrap;
    vertical-align: top;
}

.statblock table th, .statblock table td {
    padding: 0.5em;
    width: 1%;
    text-align: left;
}

.statblock table ul {
    padding-left: 1em;
}


.two-column {
    column-count: 2;
    display: block;
}

.two-column div {
    break-inside: avoid-column;
}

.statblock table, 
.statblock table tr {
    break-inside: avoid-column;
    width: 100%;
}

.statblock table th {
    width: 1%;
    font-weight: bold;
}

table.last-wide tr:last-child {
    width: 100%;
}

table.auto, table.auto tr, table.auto th, table.auto td { 
    width: auto;
}


.statblock, dl.spoiler {
    margin: 20px auto;
    padding: 10px;
    /*
    background: rgb(255,255,255);
    background: linear-gradient(135deg, rgba(255,255,255,1) 40%, #A2B672 100%);  
    */
    border: 1px solid #AAA;
}

.statblock .separator {
    content: "";
    display:block;
    width: 100%;
    margin: 10px 0px;
    border-top: 3px solid #28371C;
}

/* Stat block typography */

.statblock {
    font-size: 0.75em;
}

.statblock h2, h3, h4, h5, h6 {
    padding-bottom: 5px;
    border-bottom: 1px solid #28371C;
    text-transform: capitalize;
}


.statblock .name {
    font-weight: 700;
    font-size: 2em;
    font-variant: small-caps;
    margin: 0;
    margin-top: -10px;
}

.statblock .name:hover {
    color: #28371C;
}

.statblock .size {
    font-style: italic;
    margin-top: -3px;
    padding-left:2px;
}

.statblock .stat {
    font-size:0.9em;
    color: #28371C;
    font-weight: bold;
}
.statblock .stat .value {
    color: #333;
    font-weight:normal;
    padding-left: 3px;
}

.statblock .ability-scores ul {
  font-size: 1.2rem;
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  list-style: none;
  margin: 0 auto;
  padding: 0;
  color: #28371C;
  font-weight: bold;
}
.statblock .ability-scores ul li {
    width: calc(100% / 6);
    font-size: 0.8em;
    text-align: center;
}

.statblock .ability-scores ul.score li small {
    font-weight: normal;
    color: #333;
}

.statblock p {
    font-family: Roboto,Helvetica,sans-serif !important;
    text-align: justify;
}

.statblock p strong::after {
    content: '.';
    display: inline;
}

.statblock p em {
    padding-right: 5px;
}

.statblock p em::after {
    content: ':';
    display:inline;
}




@media screen and (min-width: 900px) {
  .column {
      flex: 0 1 calc(50% - 2em);
      flex-direction: column;
      margin: 0px;
  }
}
@media screen and (min-width: 768px) {

  /* affix the background */
  #background {
      background-attachment: fixed;
      min-height: 100%;
  }

  /* set nav bars to horizontal */
  ul.nav {
    display: inline-flex;
    justify-content: space-between;
  }
  ul.nav li {
      display: flex;
      width: auto;
  }

  .pager {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
  }

  .pager .middle {
      display: block;
  }

  .pager .prev {
    text-align: right;
  }
  .pager .next {
      text-align: left;
  }

  /* enable fancy star decorations */
  ul.nav li:first-child:before,ul.nav li:after {
      display: inherit;
  }

  /* disable background highlight on hover */
  ul.nav li:hover, ul.nav li:active {
      background: inherit;
  }

  .scrap {
      margin-top: -7.5em;
      margin-right: -4em;
      padding: 20px;
  }
  .scrap .note {
      transform: rotate(6deg);
  }

}

/* Curled corners */
.curled {
    position: relative;
    border: 1px solid #efefef;
    -moz-border-radius: 0 0 120px 120px / 0 0 6px 6px;
    border-radius: 0 0 120px 120px / 0 0 6px 6px;
    padding: 1em;
    margin: 2em 10px 4em;
    background: #fff;
    -webkit-box-shadow: 0 1px 4px rgb(0 0 0 / 60%), 0 0 40px rgb(0 0 0 / 30%) inset;
    -moz-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.6), 0 0 40px rgba(0, 0, 0, 0.3) inset;
    box-shadow: 0 1px 4px rgb(0 0 0 / 60%), 0 0 40px rgb(0 0 0 / 30%) inset;
}


.curled:before,
.curled:after {
    content:"";
    position:absolute;
    z-index:-2;
    bottom:17px;
    left:10px;
    width:50%;
    height:55%;
    max-width: 200px;
    max-height: 100px;

    -webkit-box-shadow:0 26px 6px rgba(0, 0, 0, 0.6);
    -moz-box-shadow:0 26px 6px rgba(0, 0, 0, 0.6);
    box-shadow:0 26px 6px rgba(0, 0, 0, 0.6);
    -webkit-transform:skew(-8deg) rotate(-3deg);
    -moz-transform:skew(-8deg) rotate(-3deg);
    -ms-transform:skew(-8deg) rotate(-3deg);
    -o-transform:skew(-8deg) rotate(-3deg);
    transform:skew(-8deg) rotate(-3deg);
}

.curled:after {
    right:10px;
    left:auto;
    -webkit-transform:skew(8deg) rotate(3deg);
    -moz-transform:skew(8deg) rotate(3deg);
    -ms-transform:skew(8deg) rotate(3deg);
    -o-transform:skew(8deg) rotate(3deg);
    transform:skew(8deg) rotate(3deg);
}
