html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
  background: #ccc;
}

body {
    max-width: 1200px;
    font-size: 12pt;
    line-height: 18pt;
    margin: 0px auto;
    font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
    /* font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif; */
    /* background: rgba(180, 180, 0, 0.05); */
}

p {
  overflow-wrap: break-word;
}

a, a:visited {
  color: #0000EE;
}

sup {
  line-height: 0;
  /* font-size: 0.83em;
  vertical-align: super; */
}

.nav {
  font-size: 2rem;
  text-decoration: none;
  cursor: pointer;
  color: #0055BB;
}

nav > ul > li li {
  display: none;
}

.navleft::after {
  float: left;
  content: '⇦';
}

.navright::after {
  float: right;
  content: '⇨';
}

header {
  width: 100%;
  max-width: 1200px;
  position: sticky;
  top: 0;
  margin: 0px auto;
  text-align:center;
  background: #ccc;
  /* border: solid #036 2pt; */
  z-index: 10;
}

code {
  font-size: 0.9em;
  overflow: scroll;
  white-space: pre;
}

.content {
  position: relative;
  height: calc(100% - 95px);
  max-width: 1200px;
  /* padding: 0px 0 0px 0; */
  margin: 0 auto 0 auto;
  box-sizing: border-box;
}

.leftbar,
.rightbar {
  top: 0px;
  bottom: 20px;
  height: 100%;
  overflow-x: hidden;
  overflow-y: scroll;
  position: absolute;
  box-sizing: border-box;
  line-height: 14pt;
}

.leftbar {
  left: 0;
  width: 250px;
  font-size: 10pt;
  background: #C9CEE5;
}

.leftbar a {
    color:#036;
    text-decoration: none;
}

.rightbar {
  right: 0;
  width: 100px;
  display: none;
}

.scrollable {
  background:white;
  height: 100%;
  min-width: 300px;
  width: 950px;
  margin-left: 250px;
  margin-right: 100px;
  overflow: auto;
  padding: 5px 15px;
  box-sizing: border-box;
  display: none;
}

footer {
  width: 100%;
  max-width: 1200px;
  position: sticky;
  bottom: 0;
  height: 20px;
  overflow: scroll;
  margin: 0px auto;
  text-align:center;
  padding-right: 10px;
  font-size: 0.6em;
  line-height: 20pt;
  background: #ccc;
}

iframe {
    margin-left: 20px;
}

.coverpage {
    margin: 0px;
    font-weight: 400;
    font-size: 1.8rem;
    text-align: left;
}

.coverpage h1 {
    margin:20px;
}

.title {
    color: #b00;
    margin: 0px;
}

.subtitle {
    margin: 0px;
    color: #003080;
    padding: 10px 0 8px 0;
}

.author {
    display: none;
    margin: -5px 10px 10px 0px;
    text-align: right;
    font-weight: 400;
    font-size: 1.5rem;
}

.rightalign {
  text-align: right;
  display: block;
}

h1, h2, h3 {
    padding-top: 10px;
}

img {
    max-width: 700px;
    margin: 0px auto;
    display: block;
}

p em {
  color: #901820;
}

.inline {
  display: inline-block;
}

figure {
  display: block;
  text-align: center;
}

figcaption {
  margin: 0px auto;
  font-size: 0.9em;
  color: #03a;
  max-width: 70%;
  text-align: left;
  display: inline-block !important;
}

dl {
  border: 2px solid #036;
  border-radius: 15px;
  padding: 0.5em;
  margin-left: 40px;
  margin-right: 40px;
  background: #eff;
}

dt {
  font-weight: 600;
  color: #cf7000;
}

.mentor_settings dl {
  display: flex;
  flex-flow: row wrap;
  background: inherit;
  border: 2px solid #036;
  border-radius: 0;
  padding: 1px;
  width: 80%;
  margin: 0px auto;
}

.mentor_settings dt {
  flex-basis: 12%;
  padding: 2px 10px;
  background: #214B35;
  text-align: right;
  color: #ccc;
  /* font-size: 1.1em; */
  font-weight: 100;
}

.mentor_settings dt:after {
  content: ':';
}

.mentor_settings dd {
  flex-basis: 80%;
  flex-grow: 1;
  margin: 0;
  padding: 2px 4px;
  border-bottom: 1px solid #333;
}

.mentor_settings dd:last-child {
  border-bottom: none;
}

.patch {
  font-size: 0.9em;
}

.patch dl {
  background: #ffe;
}

.patch dt {
  color: #03c;
  font-style: italic;
}

.soundheader {
  vertical-align: middle;
  padding-left: 50px;
  display: inline-block;
}

.soundname {
  text-align: right;
  font-style: italic;
  color: #03C;
  padding-right: 5px;
  vertical-align: middle;
  display: inline-block;
  width: 100px;
}

audio {
  vertical-align: middle;
}

.border {
  border: solid #ccc 1px;
  border-radius: 0px;
  padding-left: 25px;
  padding-right: 25px;
  background-color: #ffffff;
}

.border15 {
  border: solid #036 2px;
  border-radius: 15px;
  background-color: #f0ffff;
  padding: 3px;
}

.infobox {
	background:#ffd;
	margin:10px auto;
	/* font-style: italic; */
	color:#036;	
	display: table;
	-webkit-border-radius: 1em;
	-moz-border-radius: 1em;
	border-radius: 1em;
	text-align:left;
	max-width:80%;
	padding:0px 10px;
	border:2pt #369 solid;
}

.smaller {
  font-size: 0.95em;
}

table 
{
	min-width: 30%; 
	margin: 10px auto;
	border-collapse: collapse; 
}

th
{
	padding:0 10px 0 2px;
	border:1px #666 solid;
	background-color:#eee;
	font-style:italic;
	display: table-cell;
}

td
{
	padding:0 10px 0 2px;
	border:1px #ccc solid;
	display: table-cell;
}

details {
    font: 16px "Open Sans", Calibri, sans-serif;
    /* width: 620px; */
}

details > summary {
    /* outline:#36F;
    outline-width: 1px; */
    padding: 4px 6px;
    text-align: left;
    width: 400px;
    margin-bottom: 6px;
    background-color: #ccf;
    border: solid #555 1pt;
    /* box-shadow: 3px 3px 4px black; */
    cursor: pointer;
    -webkit-touch-callout: none; /* iOS Safari */
      -webkit-user-select: none; /* Safari */
              user-select: none; /* Non-prefixed version, currently
                                    supported by Chrome, Edge, Opera and Firefox */
}

details > p {
    border-radius: 0 0 10px 10px;
    background-color: #ccf;
    padding: 2px 6px;
    margin: 0;
    /* box-shadow: 3px 3px 4px black; */
}

details[open] > summary {
    background-color: #ddd;
}
  
#TOC {
  font-size: 14px;
}

#TOC a {
  padding: 7px 0 7px 0;
}

#TOC ul {
  margin: 0;
  padding: 0;
  list-style-type: none;
}

.navselected {
  background: #9aa;
  padding-bottom: 0px !important;
}

.navselected li:last-child {
  border-bottom: none !important;
}

#TOC ul li {
  padding: 7px;
  border-radius: 4px;
  border-bottom: 1px solid #E2E6EA;
}

#TOC > ul > li::first-line {
  font-weight: 600;
  text-align: left;
}

#TOC > ul > li:first-child a:first-child {
  font-weight: 700;
  text-align: center;
  color: #b00 !important;
}

.navselected > a
{
  padding: 2px 5px;
  border-radius: 3px;
  border-bottom: 1px solid #E2E6EA;
  width: auto;
  display: block;
}

.navselected > a:hover,
#TOC ul li:hover:not(.navselected),
#TOC ul li li:hover,
.navselected ul li li:hover {
  background-color: #e2e6ea;
}

.noselect {
  -webkit-touch-callout: none; /* iOS Safari */
    -webkit-user-select: none; /* Safari */
            user-select: none; /* Non-prefixed version, currently
                                  supported by Chrome, Edge, Opera and Firefox */
}
  
.applist
{
    margin: 0px auto;
    padding: 15px;
    padding-top: 0px;
    width: 90%;
    display: block;
    color: #049;
    font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
    font-size: 0.95em;    
    background: #eff;
    border: solid 1pt #039;
    border-radius: 10px;
    text-align: left;
    columns: 3;
}

.applist a
{
    color: #03B;
    text-decoration: none;
    display: block;
    /* font-size: 0.95em; */
    margin: 5px;
}

.applist a:visited
{
    color: #03B;
    text-decoration: none;
}

.applist h3
{
    color: #039;
}

.chapapps
{    
  display: inline-block;
}

.indextable
{
  columns: 2;
}

.indextable td 
{
  border: none;
  font-size: 0.9rem;
}

.indexword
{
  vertical-align: top;
  text-align: right;
  width: 120px;
}

.indexword::after 
{
  content: ':';
}

.indexlinks
{
  display: inline-block;
  /* width: 280px; */
  word-wrap: break-word;
  margin-right: 50px;
}

.indexlinks a 
{
  overflow-wrap: normal;
  word-break: keep-all;
}

.projectlist
{
  margin-left: 30px;
}

.colourscheme1 { 
  /* Cerulean  */
  color: #4484CE;
  /* Aluminium  */
  color: #D9D9D9;
  /* Light  */
  color: #F9CF00;
  /* Tangerine  */
  color: #F19F4D;
}

.colourscheme2 { 
  /* Prussian Blue  */
  color: #0B3C5D;
  /* Sky Blue  */
  color: #328CC1;
  /* Gold Leaf  */
  color: #D9B310;
  /* Ivory Black  */
  color: #1D2731;
}

@media print {
  .leftbar, .rightbar {
    display: none;
  }

  .scrollable {
    height:auto;
    margin-left: 50px;
    margin-right: 50px;
    max-width: auto;
  }

  .nav {
    display: none;
  }

  h1 {
    clear: both;
    page-break-before: always;
  }
}

.timeline {
  border-left: solid #333 1px;
  margin-left: 30px;
  padding-left: 30px;
  margin-right: 50px;
}

.timeline h3 {color: #039;
  font-style: italic;
  width: 100%;
  background: white;
  padding: 5px;
  /* text-align: center; */
  margin-left: -60px;
  display: flex;
}

/* .timeline h3::before {
  content: '—';
} */

.timeline h3::after {
  /* content: '—'; */
  content: '';
  flex: 1;
  margin-left: 1rem;
  height: 1px;
  margin: 10px -60px 0 10px;
  background-color: #000;
}

.imagecredit {
  float: right;
  color: #999;
  font-size: 0.6em;
  display: block;
  width: 100%;
  text-align: right;
}

@media (max-width: 1000px) {

  body {
      max-width: 1200px;
      font-size: 11pt;
      line-height: 15pt;
      -webkit-text-size-adjust: 100%;
  }

  h1 {
    font-size: 15pt;
    line-height: 20pt;
  }

  h2 {
    font-size: 13pt;
    line-height: 18pt;
  }

  h3 {
    font-size: 12pt;
    line-height: 15pt;
  }

  .leftbar, .rightbar {
    width: auto;
    position: initial;
  }

  .scrollable {
    height:auto;
    margin-left: 5px;
    margin-right: 5px;
    width: auto;
  }

  img {
    max-width: 100%;
  }

  /* These values should be calculated dynamically */
  iframe {
    -webkit-transform: scale(0.7) translateX(-200px);
    transform: scale(0.7) translateX(-200px);
    -moz-transform: scale(0.7) translateX(-200px);
  }

  .applist
  {
    columns: 1;
  }

  .mentor_settings dt {
    flex-basis: 15%;
    font-size: 0.95em;
  }

  .mentor_settings dd {
    flex-basis: 75%;
    font-size: 0.95em;
  }

  .indextable
  {
    columns: 1;
  }

  .indexlinks
  {
    width: 550px;
  }
}

.imagecredits {
  font-size: 0.8rem;
  color: #555;
}

.floatL {
  float: left;
  padding-top: 5px;
  padding-right: 20px;
}

.floatR {
  float: right;
  padding-top: 5px;
  padding-left: 20px;
}

.endFloat {
  clear: both;
}

/* Image sizing classes */

.imgH100 {
  max-height: 100px;
  width: auto;
}

.imgH120 {
  max-height: 120px;
  width: auto;
}

.imgH140 {
  max-height: 140px;
  width: auto;
}

.imgH180 {
  max-height: 180px;
  width: auto;
}

.imgH200 {
  max-height: 200px;
  width: auto;
}

.imgH220 {
  max-height: 220px;
  width: auto;
}

.imgH300 {
  max-height: 300px;
  width: auto;
}

.imgH350 {
  max-height: 350px;
  width: auto;
}

.imgH400 {
  max-height: 400px;
  width: auto;
}

.imgH450 {
  max-height: 450px;
  width: auto;
}

.imgH500 {
  max-height: 500px;
  width: auto;
}

.imgW240 {
  max-width: 240px;
  height: auto;
}

.imgW300 {
  max-width: 300px;
  height: auto;
}

.imgW350 {
  max-width: 350px;
  height: auto;
}

.imgW400 {
  max-width: 400px;
  height: auto;
}

.imgW450 {
  max-width: 450px;
  height: auto;
}

.imgW500 {
  max-width: 500px;
  height: auto;
}

.imgH100W300 {
  max-height: 100px;
  max-width: 300px;
}

.imgH100W500 {
  max-height: 100px;
  max-width: 500px;
}

.imgH150W450 {
  max-height: 150px;
  max-width: 450px;
}

.imgH150W620 {
  max-height: 150px;
  max-width: 620px;
}

.imgW700H250 {
  max-height: 700px;
  max-width: 250px;
}

.loading {
	position: fixed;
	top: 40%;
	left: calc(50vw + 125px - 200px);
	z-index: 100;
  font-size: 32pt;
  font-style: italic;
  text-align: center;
	width: 400px;
	height: 40px;
  color: #036;
}

.loader {
	position: fixed;
	top: 0;
	left: 250px;
	z-index: 90;
	width: calc(100% - 250px);
	height: 100vw;
}

.spinner {
	position: fixed;
	top: 50%;
	left: calc(50vw + 125px - 30px);
	z-index: 100;
	border: 16px solid #f3f3f3;
	border-top: 16px solid #3498db;
	border-radius: 50%;
	width: 60px;
	height: 60px;
	animation: spin 1s linear infinite;
}

@keyframes spin {
	0% { transform: rotate(0deg); }
	100% { transform: rotate(360deg); }
}