@import url("../fonts/site.css");

@font-face {
  font-family: "Title";
  font-style: normal;
  font-stretch: 90%;
  font-weight: 650;
  src: url("../fonts/OpenSans-VariableFont_wdth,wght.ttf");
}

@font-face {
  font-family: "STIX2Math";
  src: url("../fonts/STIX2Math.woff");
}

* {
  box-sizing: border-box;
} /* https://every-layout.dev/rudiments/boxes/ */

.license { 
  font-size: 0.7em;
  position:absolute;
  bottom: 3em;
  height: 3em;
}

/* Don't want to deal with the toolbar */
.toolbar {
  display: none !important;
}

.attribution {
  font-size: 0.7em;
}

@page { size: A4 landscape }

blockquote {
  line-height: 1.4em;
}

code, pre { 
  font-family: "Mono";
  color: black;
  font-weight: normal;
  font-style: normal;
}

code del, pre del {
  color: #555;
}

body {
  font-family: "SansSerif", sans-serif; 
}

.u {
  text-decoration: underline;
}

samp, .pseudo, .pseudocode, .hand {
  font-style: normal;
  font-family: "Cursive";
}


div.slide h1 { 
  clear: both;
  margin-bottom: 0;
}

.progress {
  display: grid;
  grid-auto-flow: column;  
  grid-auto-columns: 1fr; 
  gap: 1px;
}

.progress > div {
  height: 10px;
  border: solid thin #505070;
}

.progress > div.completed {
  background: #505070;
}

h1, div.slide h1 {
  margin-right: 0em;
  

}

h1, h2, h3, h4 {
  font-family: "Title";
  font-weight: bold;
}

pre .comment, pre cite, pre .rm, pre .c, .var, var { 
  font-family: "Serif";
}

pre .comment, pre cite, pre .rm, pre .c { 
  font-style: normal;
  font-weight: normal;
  color: black;
}

pre strong .comment, pre strong cite, pre strong .rm, pre strong .c, pre b .comment, pre b cite, pre b .rm, pre b .c {
  color: red;
}

.var, var { 
  font-style: italic;
  color: black;
}

pre b var, pre strong var {
  color: red;
}

acronym, .black {  /* white on black */
  color: white;
  background: black;
}

pre {  
  background-color: #FFFEED;
  white-space: pre-wrap; /* Pixie dust for scaling on Android mobile */
}

blockquote { 
  background-color: #EDFEFF;
}

pre, blockquote { 
  clear: none;
  border-color: #EEEDDC;
  margin-top: 0.5em;
  margin-bottom: 0.5em;
  padding: 0.5em;
  border-style: solid;
  border-width: 1px;
}

/* TODO: Clean up terminology side->left */

.sideimage {
  margin-right: 3em;
  float: left;
}

.halfimage {
  margin-left: 3em;
  margin-right: 3em;  
}

.rightimage {
  margin-left: 3em;
  float: right;
}

.rightimage > img {
  padding-left: 1em;
  padding-bottom: 1em;
  z-inxex: 1;
  background: white;
}

.fullimage { 
  justify-content: center;
  display: flex;
  height: 65vh;
}

@media screen {
  .sideimage img, .rightimage img {
    object-fit: contain;
    width: 20vw;
  }

  .halfimage img {
    object-fit: contain;
    width: 40vw;
  }
  
  .fullimage img {
    object-fit: contain;
  }
}

/* Prince doesn't support object-fit */
@media print {
  .sideimage, .rightimage {
    width: 20%;
  }
  
  .halfimage {
    width: 40%;
  }
  
  .fullimage {
    width: 80%;
  }

  .sideimage img, .rightimage img, .halfimage img, .fullimage img {
    width: 100%  !important; 
    height: auto !important; 
  }

  .fullimage.portrait img {
    height: 100%  !important; 
    width: auto !important;
  }
}

ul li, ol li { margin-top: 0.25em; margin-bottom: 0.25em; }

li ul, li ol { margin-left: 2em; font-size: 0.9em; }

li ul li, li ol li { color: #333; font-style: normal }

li p {
  margin-left: 0;
  margin-top: 0.2em;
  margin-bottom: 0.2em;
}

@media print {
  ul {
    font-size: 1.2em;
  }
}

@page {
  size: 8in 6in; 
  margin: 0.25in;
}

a {
  text-decoration: underline;   
}

a:visited { color: purple }

.strike {
  text-decoration: line-through;
}

.poll li {
  list-style-type: decimal;
}

pre strong, code strong, pre b, code b { 
  color: red;
  font-weight: normal;
}

table { 
  border-collapse: collapse;
  border-style: none;
  font-size: 0.8em;
  margin-left: 2em;
  margin-top: 0.5em;
  margin-bottom: 0.5em;
}

table caption, table caption code {
  background: firebrick;
  color: white;
  padding: .4em;
  margin-bottom: .4em;
}

tr { 
  background: #eee;
  border-bottom-style: solid;
  border-bottom-width: thin;   
  border-bottom-color: white;
}

tr:hover { 
  background: #ccc;
}

th, th code, thead > tr, thead > tr code { 
  border-style: none;
  background: firebrick;
  color: white;
  padding-left: 0.5em;
  padding-right: 0.5em;
}

th code { 
  color: white;
  font-weight: bold;
}

td { 
  border-style: solid thin white;
  padding-top: 0em;
  padding-bottom: 0em;
  padding-left: 0.5em;
  padding-right: 0.5em;
  margin: 1em;
}

td.selected { 
  background: #7cccc8;
}

td.gray { 
  background: #bde4e1;
}

/* A td preceded by a td */

table.stack tr.alt > td + td { 
  background: blue;
}

table.stack tr > td + td { 
  text-align: left;
  background: lightsteelblue;
}

table.stack tr > td { 
  text-align: right;
}

.lower-alpha > li, .la > li { 
  list-style-type: lower-alpha;
}

.highlight { 
  background: lightsteelblue;
}

.todo {
  color: red;
}

.clicker {
  background-repeat: no-repeat; 
  padding-left: 120px;
  min-height: 50px;
  margin-top: 0.5em;
  margin-bottom: 0.5em;
  padding-top: 0.2em;
  padding-bottom: 0.2em;
  background-image: url(clicker.png)
}

.clicker > li {
  list-style-type: upper-alpha;
}

.gray { 
  color: #aaa;
}

.help { /* Turn off confusing Slidy help */
  display: none; 
}

kbd {
  border: thin solid black;
  border-radius: 0.15em;
  padding: 0.05em 0.1em;
  margin: 0.05em 0.1em;
  font-size: 0.85em;
  font-style: normal;
  font-family: "SansSerif", sans-serif;
}

li > ul > li {
  font-size: 100%;
  margin-top: 0em;
  margin-bottom: 0em;  
}

h1 .pageCounter {
  float: right;
  font-weight: normal;
  font-size: 0.5em;
  color: gray;
}
.demo::before {
  content: "Demo ";
  font-size: 60%;
  background: lightseagreen;
  color: white;
  padding: 0.2em 0.4em;
  border: solid thin white;
  border-radius: 0.5em;
  margin-right: 1em;
}
.demo pre {
  background: white;
  border: none;
  font-size: 75%;
  margin: 0em;
}

#qrcode {
  position: absolute;
  bottom: 1em;
  right: 2em;
  z-index: 30;
}

.first-slide blockquote {
  margin-right: 12em;
}

@media print {  
  body {
    font-size: 15px;
    font-family: "SansSerif", "STIX2Math", "NotoEmoji";
  }
  code, pre { 
    font-family: "Mono", "NotoEmoji";
  }
  pre .comment, pre cite, pre .rm, pre .c, .var, var { 
    font-family: "Serif", "NotoEmoji";
  }
  h1, div.slide { 
    page-break-before: always; page-break-inside: avoid; 
  }
  h1 {
    border-bottom: thin solid blue;
  }
}

