 
@import url('https://fonts.googleapis.com/css?family=Nunito+Sans:600|Roboto:300,400,400i,700,700i|DM+Serif+Text:400,400i&display=swap');

/* Captions */




/*
.md-main {
   background: #000916 url(basebg.png) !important;
} 
 
.md-content {
   background: #211c19 none !important;
   box-shadow: 0 400px 0 #211c19,  0 -128px 0 #211c19;
}
 */


.md-nav, .md-tabs, .md-header {
  font: 600 16px Nunito Sans, Roboto, sans-serif;
  font-weight: 600;
}
 
.md-typeset table:not([class]) {
  box-shadow: 0 1px 4px rgba(0,0,0,0.54);
  margin-top: 1px;
}
 
.md-typeset img {width: 100%;}
 
.md-typeset img.side {
  width: 300px;
  max-width: 45%;
  height: auto;
  float: right;
  margin-left: 1em;
}
.md-typeset img.side.left {
  width: 300px;
  max-width: 45%;
  height: auto;
  float: left;
  margin-right: 1em;
}


.md-typeset figure img,
.md-typeset figure img.side,
.md-typeset figure img.side.left {width: 100%; max-width: 100%; float: none; margin:0; padding:0;display: block;}
 
.md-typeset figure.side {
  width: 300px;
  max-width: 45%;
  height: auto;
  float: right;
  margin-left: 1em;
}
.md-typeset figure.side.left {
  width: 300px;
  max-width: 45%;
  height: auto;
  float: left;
  margin-right: 1em;
}

.md-content figure {
  position:relative;  
}
.md-content figure img {
	width: 100%; height: auto;
	}
.md-content figcaption {
  padding: 2px 8px;
  position: absolute;
  bottom:0;
  width:100%;
  background: rgba(0,0,0,0.6);
  font: bold 12pt Roboto, sans-serif;
  color: rgba(255,255,255,1);
}

figcaption:empty { display: none; }


@media only screen and (max-width: 600px) {
  img.side {
    width:100%;
  }
}
 
/************************************* Night Mode **********/
 
html.night .md-nav, html.night .md-nav__title, html.night .md-nav__list, html.night .md-nav__item {
  background: #211c19 none !important;
}
html.night .md-nav hr { 
  margin: 4px 0; 
  background: rgba(255,255,255,0.17);
}
html.night .md-main {
  color: #F5F5F5 !important;
  background-color: #212121 !important;
  color: rgba(255,255,255,0.81) !important;
  background-color: #211c19 !important;
}
html.night body div.md-hero, html.night body .md-tabs {
  background-color: #580707 !important;
}
html.night .md-content h1 + div.md-typeset__scrollwrap .md-typeset__table table:not([class]) tbody { 
  background-color: rgba(0,0,0,.74) !important; 
}
html.night .md-content h1 + div.md-typeset__scrollwrap .md-typeset__table table:not([class]) td:hover { 
  background-color: rgba(255,255,255,0.07) !important; 
}
@media only screen and (max-width: 1219px) {
  html.night .md-nav__title {
    background: #580707 none !important;
  }
}

@media only screen and (max-width: 960px) {
  #nightlight {
  }
  label[for="__search"] {
    margin-left: 0px;
  }
}
#nightlight {
  cursor: pointer;
  display: inline-block;
  width: 32px;
  background:transparent;
  float: left;
  height: 48px;
  font-size: 24px;
  padding-top: 8px;
}
.md-search {
  margin-left: 40px;
}
body > header.md-header > .md-grid > .md-flex > div:last-of-type {
  min-width: 96px;
}

/*******************************************************/

.md-sidebar { padding-top: 44px; }
.md-footer-copyright { display: none; }
a.md-nav__link > img {
  vertical-align: middle;
}

a.link.btn {
  background: #580707;
  font: 15px/15px Roboto;
  color: rgba(255,255,255,0.87);
  border-radius: 6px;
  display: inline-block;
  padding: 8px 16px;
  margin: 0 4px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.54);
  color: rgba(255,255,255,0.87);
  font-family: Nunito Sans;
}
a.btn:hover {
  background: #400808;
}
/*************************************** Reds **********/
html body header.md-header {
  background-color: #400808 !important;
}
html body div.md-hero, html body .md-tabs {
  background-color: #580707 !important;
}


/********************************************************/

.md-tabs__link--active {
  text-shadow: 0 0 2px #000, 0 0 4px #000, 0 0 8px #000;
}

/*main > .md-grid > .md-content {
  filter: invert(100%);
}*/

tr:hover { box-shadow: none !important; }

/************************** Hero ******/

.md-hero img {
  width: 100%;
  visibility: hidden;
}
.md-hero__inner { opacity: 1 !important; transition: none !important; transform: none !important; -webkit-transform: none !important; } 

.md-hero {
  background-size: cover;
  max-height: calc( 100vh - 2.4rem );
  position: relative;
}

.md-hero big {
  font-size: 64px;
  text-shadow: 0 0 4px  #000,0 0 4px  #000,0 0 4px  #000,0 0 4px  #000,0 0 4px  #000,
               0 0 12px #000,0 0 12px #000,0 0 12px #000,0 0 12px #000,0 0 12px #000;
  display: inline-block;
  bottom: 16px;
  left: 16px;
  position: absolute;
  background: rgba(0,0,0,0.47);
  box-shadow: 0 0 0 16px rgba(0,0,0,0.47);
}

@media only screen and (max-width: 600px) {
  .md-hero big {
    font-size: 32px;
  }
}




/*************************** Admonition *****/

.admonition { background: rgba(0,0,0,0.17); }


/*************************** Person or Character Block ***/


img.medicon { float: right; height: 128px; border-radius: 50%; }

.md-content dl { margin-bottom: 1em;  }
.md-content dt { font-size: 1.5em; font-weight: bold; }
.md-content dd { margin:0 0 0 2em !important; font-size: 90%; }
.md-content dd + dt { margin-top: 1em; padding-top: 1em; border-top: 1px solid rgba(255,255,255,0.17); clear: both; }


/*************************** Content *******/

.md-main style + h1 { display: none; }




.md-content h1:first-child { margin-top:0; padding-top:16px; }


.md-main p {
  line-height: 1.8em;
}
/*.md-main p + p {
  text-indent: 1.5em;
  margin-top:0;
  padding-top:0;
}*/


img.big {
  border: 0 solid #400808;
  border-left-width: 4px;
  width: 100%;
  border-radius: 6px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.47);
}

.md-content blockquote { font: 1.5em 'DM Serif Text', serif; }


.md-content .md-typeset .footnote { color: rgba(255,255,255,0.54); }
.md-content .md-typeset .footnote li:target { color: rgba(255,255,255,1); }

div.admonition.quote {
  border-width: 0 !important; 
    display: flex;
    flex-direction: column;
}

div.admonition.quote p {
 font: italic normal 2em/1.5em 'DM Serif Text', serif; 
 padding: 0 16px;
}
div.admonition.quote  p.admonition-title { 
    order: 1;
    background: transparent none !important;
    text-align: right;
    border-width: 0;
    font: normal normal 1.2em/1.3em 'DM Serif Text', serif; 
}
div.admonition.quote > p.admonition-title:before { 
  display: none;
}

.md-content .md-typeset table:not([class]) th:empty { padding: 0; }
.md-content .md-typeset table:not([class]) td:empty { padding: 0; }

.md-content h1 + div.md-typeset__scrollwrap .md-typeset__table { 
  width: 100%;
}
.md-content h1 + div.md-typeset__scrollwrap .md-typeset__table table:not([class]) { 
  width: 100%;
  border-radius: 4px;
  table-layout: fixed;
}

.md-content h1 + div.md-typeset__scrollwrap .md-typeset__table table:not([class]) td { 
  width: 50%; 
  padding: 4px;
  text-align: center;
}
.md-content h1 + div.md-typeset__scrollwrap .md-typeset__table table:not([class]) td:first-child { 
  background-color: rgba(0,0,0,.17) !important; 
}


/***************************** Plaster *******/

.plaster {
  position: fixed;
  width: 100vw;
  height: calc( 100vh - 2.4rem );
  top: 2.4rem;
  left: 0;
  
}

.plasterBtns {
  width: 64px;
  bottom: 32px;
  right: 32px;
  position: fixed;
  display: block;  
}

.plasterBtns > a {
  display: block;
  background: #580707 none;
  border-radius: 50%;
  color: #fff !important;
  height: 48px;
  width: 48px;
  z-index: 5000;
  text-align: center;
  font: bold 32px Roboto, sans-serif;
  padding:4px 2px 0 0;
  box-shadow: 0 2px 6px rgba(0,0,0,0.54);
}

/************************ Slideshow *****/

@keyframes slideshowfade2 {
  0%   { opacity: 1; }
  5%   { opacity: 0; }
  50%  { opacity: 0; }
  55%  { opacity: 1; }
  100% { opacity: 1; }
}
@keyframes slideshowfade3 {
  0%   { opacity: 1; }
  3%   { opacity: 0; }
  66%  { opacity: 0; }
  69%  { opacity: 1; }
  100% { opacity: 1; }
}

.slideshow {
  border: 0 solid #400808;
  border-left-width: 4px;
  margin: 1.5em 0px 1em 2em;
  width: 300px;
  height: 225px;
  overflow: hidden;
  position: relative;
  text-align: left;
  border-radius: 6px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.47);
}

.slideshow.ssright {
  float: right;
}

@media only screen and (max-width: 600px) {
  .slideshow.ssright {
    width:100%;
  }
  .slideshow.ssright img {
    width:100%;
    height: auto;
  }
}

.slideshow > * {
    position: absolute;
    top: 0px;
  }
  .slideshow > *:nth-child(1) {
    animation: none !important;
  }
  .slideshow[data-slides="2"] > *:nth-child(2) {
    animation: 8s infinite slideshowfade2 4s;
  }
  .slideshow[data-slides="3"] > *:nth-child(2) {
    animation: 12s infinite slideshowfade3 8s;
  }
  .slideshow[data-slides="3"] > *:nth-child(3) {
    animation: 12s infinite slideshowfade3 4s;
  }

