
/*
Keith Andrews: extra CSS for my rslidy slides
*/


/* Configure Rslidy */

#rslidy-content-section .slide {
  font-family: Verdana, Arial, sans-serif;
  font-size: 1.5em;
  color: black;
  background: white;
  line-height: 1.3;
  hyphens: auto;
}




/* My Own Look and Feel */

a { overflow-wrap: anywhere; }


p {
  margin: 0 0 1em 0;
  padding: 0;
  max-width: 70ch;
}


p.small {
  font-size: 80%;
  max-width: 75ch;
}


p.note {
  font-size: 80%;
  max-width: 75ch;
}

p.note:before {
  content: "[" ;
}

p.note:after {
  content: "]" ;
}



p.small {
  font-size: 80%;
  max-width: 75ch;
}


li p {
  margin: 0 0 0.5em 0;
}



pre {
  margin: 0 0 1em 0;
  padding: 0;
  max-width: 80ch;
}


pre code {
  display: block;
  margin: 0;
  padding: 0;
}


code {
  font-size: 1em;
}







li {
  max-width: 70ch;
  margin: 0 0 1em 0;
  padding: 0;
}



ul {
  margin: 0 0 1em 0;
  padding: 0 0 0 1em;
  list-style: disc;
}



ol {
  margin: 0 0 1em 0;
  padding: 0 0 0 1.3em;
  list-style: decimal;
}


ol.compact li, ul.compact li {
  margin: 0 0 0.4em 0;
}

ol.loose > li, ul.loose > li {
  margin: 0.5em 0 2.5em 0;
}


ul ul, ol ol, ul ol, ol ul {
  font-size: 0.85em;
  margin-top: 0.5em;
}


ul ul, ol ol ul ul, ol ul ol ul, ul ol ol ul, ol ul ul, ul ol ul {
  list-style: circle;
}

ol ul ul ul, ul ol ul ul, ul ul ol ul, ul ul ul {
  list-style: square;
}

ul ul ul ul {
  list-style: disc;
}




ul ul ol ol, ul ol ul ol, ol ul ol ol, ol ol ul ol, ol ul ol, ol ol {
  list-style: lower-alpha;
}

ol ul ol ol, ol ol ul ol, ul ol ol ol, ol ol ol {
  list-style: lower-roman;
}

ol ol ol ol {
  list-style: decimal;
}





span.li-intro {
  font-style: italic;
}



span.li-heading {
  font-weight: bold;
}

p:has(span[class="li-heading"]) {
  margin: 0 0 0.4em 0;
}





ul.credits {
  font-size: 0.8em;
}


div#location {
  margin-top: 2em;
  text-align: right;
}

div#location p {
  display: inline;
  background-color: #eee;
  padding: 0.2em;
  border-radius: 0.2em;
  font-size: 60%;
}



span.isbn:before {
  content: "ISBN";
}

span.isbn {
  font-size: 80%;
}


.centred
{
  text-align: center;
}



/* title slide has larger and centered text*/


.titleslide
{
  text-align: center;
}

.titleslide h1
{
  padding-top: 0.5em;
  font-size: 1.6em;
  margin-bottom: 1.4em;
}

.titleslide h2
{
  font-size: 1.2em;
  margin-bottom: 1.4em;
}

.titleslide h3
{
  font-size: 1em;
  margin-bottom: 1.2em;
}

.titleslide p
{
  padding: 0.5em 0;
}




.sectiondivider {
  text-align: center;
}

.sectiondivider h1 {
  margin: 4em 0 1em 0;
  font-size: 2em;
  hyphens: none;
}

.sectiondivider h2 {
  font-size: 1.6em;
  hyphens: none;
}






/* bullets and figures */


div.grid-2col {
  margin: 0 0 5em 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2em;
}

figure.gallery {
  width: 100%;
  height: 100%;
}






.columns {
  display: flex;
  flex-wrap: wrap;
  gap: 1em;
  justify-content: flex-start;
  align-items: flex-start;
  align-content: flex-start;
}

.columns-spaced {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1em;
}

.columns-even {
  display: flex;
  justify-content: space-evenly;
  align-items: flex-start;
  gap: 1em;
}



.bullets-half {
  padding: 1em;
  width: 50%;
}

.figures-half {
  padding: 1em;
  width: 50%;
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  gap: 1em;
  justify-content: center;
  align-items: flex-start;
  align-content: flex-start;
}

.figures-half figure figcaption {
  margin: 0.5em auto 0 auto;

}


/* figures */


figure {
  margin: 0 auto;
}

div.images {
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 2em;
  justify-content: center;
  align-items: flex-end;
  align-content: flex-start;
}

div.images img {
  max-width: 100%;
  max-height: 21em;
}

img.frame {
  border-style: solid;
  border-width: 0.005em;
}




figcaption {
  margin: 1em 0;
  font-size: 80%;
  text-align: left;
}

figcaption span.label {
  font-weight: bold;
}

figcaption span.credit {
  font-size: 80%;
}

figcaption span.credit:before {
  content: "[";
}

figcaption span.credit:after {
  content: "]";
}





div.footnotes {
  margin: 1em auto 0 auto;
  font-size: 75%;
}




/* adjust prismjs settings for code */

code[class*="language-"],
pre[class*="language-"] {
  font-size: 0.8em;
  white-space: pre-wrap;
  line-height: 1.1;
}

pre[class*="language-"] {
  padding: 0.5em;
  margin:  0;
}






/* tables */

.table-wrapper {
  overflow-x: auto;
}

table {
  margin: 0 0 1em 0;
  caption-side: bottom;
  border-style: solid;
  border-width: thin;
  border-collapse: collapse;
  empty-cells: show;
  line-break: loose;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

table caption {
  margin: 1em 0;
  font-size: 80%;
  text-align: left;
}

table caption span.label {
  font-weight: bold;
}

table caption span.credit {
  font-size: 80%;
}

table caption span.credit:before {
  content: "[";
}

table caption span.credit:after {
  content: "]";
}







tr:nth-child(even) {
  background: #f8f8f8;
}

tr:nth-child(odd) {
  background: #ffffff;
}


th {
  font-weight: bold;
  background-color: #dddddd;
  padding: 0.50ex;
  border-style: solid;
  border-width: thin;
  text-align: left;
  vertical-align: top;
}

td {
  padding: 0.50ex;
  border-style: solid;
  border-width: thin;
  text-align: left;
  vertical-align: top;
}



th.number, td.number {
  text-align: right;
}

th.date, td.date {
  text-align: center;
}



span.arole {
  font-family: "Lucida Console", Courier, monospace;
}

span.aprop {
  font-family: "Lucida Console", Courier, monospace;
}


span.elname {
  font-family: "Lucida Console", Courier, monospace;
}

span.elname::before {
  content: "<";
}

span.elname::after {
  content: ">";
}







/*
Alternative way of aligning table cells right or center
<table class="col2r col3r col4r col5r">
*/

.col1r td:nth-child(1), .col1r th:nth-child(1),
.col2r td:nth-child(2), .col2r th:nth-child(2),
.col3r td:nth-child(3), .col3r th:nth-child(3),
.col4r td:nth-child(4), .col4r th:nth-child(4),
.col5r td:nth-child(5), .col5r th:nth-child(5),
.col6r td:nth-child(6), .col65 th:nth-child(6),
.col7r td:nth-child(7), .col7r th:nth-child(7),
.col8r td:nth-child(8), .col8r th:nth-child(8),
.col9r td:nth-child(9), .col9r th:nth-child(9),
.col10r td:nth-child(10), .col10r th:nth-child(10),
.col11r td:nth-child(11), .col11r th:nth-child(11),
.col12r td:nth-child(12), .col12r th:nth-child(12) { text-align:right }

.col1c td:nth-child(1), .col1c th:nth-child(1),
.col2c td:nth-child(2), .col2c th:nth-child(2),
.col3c td:nth-child(3), .col3c th:nth-child(3),
.col4c td:nth-child(4), .col4c th:nth-child(4),
.col5c td:nth-child(5), .col5c th:nth-child(5),
.col6c td:nth-child(6), .col6c th:nth-child(6),
.col7c td:nth-child(7), .col7c th:nth-child(7),
.col8c td:nth-child(8), .col8c th:nth-child(8),
.col9c td:nth-child(9), .col9c th:nth-child(9),
.col10c td:nth-child(10), .col10c th:nth-child(10),
.col11c td:nth-child(11), .col11c th:nth-child(11),
.col12c td:nth-child(12), .col12c th:nth-child(12) { text-align:center }









/*
Responsive table for narrow widths
*/

@media only all and (max-width: 50rem)  {
  table {
    border: 0;
  }

  /* Hide table headers (but not display: none;, for accessibility) */
  thead tr {
    position: absolute;
    top: -9999px;
    left: -9999px;
  }

  tr {
    display: flex;
    flex-direction: column;
    margin-bottom: 0.8em;
  }

  td {
    border-bottom: 0.04em solid black;
    display: flex;
    justify-content: flex-start;
    font-size: 0.8em;
    text-align: right !important;
  }

  td::before {
    font-weight: bold;
  }


  /* Label the data columns (per table)*/

  table.aria-roles td:nth-of-type(1):before { content: "Role: "; }
  table.aria-roles td:nth-of-type(2):before { content: "Element: "; }
  table.aria-roles td:nth-of-type(3):before { content: "Ancestor: "; }
  table.aria-roles td:nth-of-type(4):before { content: "Content: "; }
  table.aria-roles td:nth-of-type(5):before { content: "Meaning: "; }

  table.aria-properties td:nth-of-type(1):before { content: "Property: "; }
  table.aria-properties td:nth-of-type(2):before { content: "Object: "; }
  table.aria-properties td:nth-of-type(3):before { content: "Value: "; }
  table.aria-properties td:nth-of-type(4):before { content: "Meaning: "; }
}



