/* Left align everything by default! */
.reveal .slides section {
  text-align: left;
}

.centered {
  text-align: center;
}

th.rotated {
  vertical-align: bottom;
  text-align: center;
}

th.rotated span {
  -ms-writing-mode: tb-rl;
  -webkit-writing-mode: vertical-rl;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  white-space: nowrap;
}

.alternatecolors table tr.odd {
  background-color: #E7E7E7;
}

table.alternatecolors tr.odd {
  background-color: #E7E7E7;
}

table.alternatecolors tr.odd td {
  background-color: #E7E7E7;
}

.statetransition table {
  border: 1px solid #000;
}

.statetransition tbody {
  border: 0px;
}

.statetransition table tr.odd {
  background-color: #E7E7E7;
}

.statetransition table td:nth-child(1) {
  border-right: 1px solid #000;
}

.statetransition table th:nth-child(1) {
  border-right: 1px solid #000;
}

.nobullets ul {
  list-style-type: '';
}

.checkbullets ul {
  list-style-type: '✅  ';
}

.questionbullets ul {
  list-style-type: '❓  ';
}

.tapecell {
  display: inline-block;
  border: 1px solid #000;
  text-align: center;
  width: 50px;
}

.tapecellactive {
  display: inline-block;
  background-color: var(--emphColor);
  text-align: center;
  color: #FFF;
  border: 1px solid #000;
  width: 50px;
}

/*********************************************
* special rules for dark mode
*********************************************/

@media (prefers-color-scheme: dark) {
  table {
    color: #000;
  }

  .defbox {
    color: #000;
  }

  .media .figure {
    background-color: #FFF;
  }

  .media figure {
    background-color: #FFF;
  }
}

ol {
  counter-reset: list;
}

.parenalphalist ol>li {
  list-style: none;
}

.parenalphalist ol>li:before {
  content: "(" counter(list, lower-alpha) ")  ";
  counter-increment: list;
}

/*********************************************
 * Julian: Lists without bottom margins.
 *********************************************/
/* Enable removal of margin below <ul> */
.reveal .unpaddedlists ol,
.reveal .unpaddedlists dl,
.reveal .unpaddedlists ul {
  margin-bottom: 0em;
}

.reveal .compactlist ol li,
.reveal .compactlist dl li,
.reveal .compactlist ul li {
  margin-bottom: 0.25em;
}

.reveal .indent {
  margin-left: 2em;
}

.reveal .shadowed {
  text-shadow: 2px 2px 5px #666;
}

.reveal .smallish {
  font-size: 0.9em;
}

.reveal .smallisher {
  font-size: 0.75em;
}

.reveal .huge {
  font-size: 1.5em;
}

.reveal .defbox {
  padding: 8px 16px 8px 16px;
  background-color: #f7f7f7;
  border: 4px solid var(--emphColor);
  border-radius: 5px;
  font-size: 0.95em;
  text-align: left;
  transition: all 0.25s ease;
  max-width: max-content;
  margin: auto;
}

.defbox p {
  margin: 0px;
}

.reveal .quizbox {
  padding: 8px 16px 8px 16px;
  background-color: #EEE;
  border-radius: 5px;
  font-size: 0.95em;
  text-align: left;
  transition: all 0.25s ease;
  box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.25);
}

.quizbox p {
  margin: 0px;
}

.hintbox,
.notebox,
.warnbox {
  position: absolute;
  padding: 10px;
  border-radius: 5px;
  margin: 0 auto;
  text-align: center;
  box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.25);
}

.hintbox {
  color: #fff;
  background-color: var(--emphColor);
}

.notebox {
  color: #000;
  background-color: #EEE;
}

.warnbox {
  color: #fff;
  background-color: #C00;
}

.warnbox a {
  color: #DDD;
  font-weight: bold;
}

.hintbox p,
.notebox p,
.warnbox p {
  margin: 0;
}

.reveal .slides .withtransition .fragment {
  transition: all 0.25s ease;
}

.reveal .slides .withtransition {
  transition: all 0.25s ease;
}

.greentext {
  color: #009900;
}

.redtext {
  color: #EE0000;
}

.graytext {
  color: #999;
}

.reveal table {
  margin: 0px 0px 0px 0px;
  background-color: #F7F7F7;
}

.reveal .slides section .fragment {
  transition: all 0.25s ease;
}

.reveal .ghostlist>ul {
  list-style: none;
  list-style-type: none;

  margin: 0 !important;
  /*
    margin-block-start: 0 !important;
    margin-block-end: 0 !important;
    margin-inline-start: 0 !important;
    margin-inline-end: 0 !important;
    padding-inline-start: 0 !important;
    */
}

.reveal .ghostlist>ul>li {
  margin: 0px !important;
  margin: 0 !important;
  /*
    margin-block-start: 0 !important;
    margin-block-end: 0 !important;
    margin-inline-start: 0 !important;
    margin-inline-end: 0 !important;
    padding-inline-start: 0 !important;
    */
}

.reveal span.figcaption {
  margin: 5px 0px 0px 0px;
}

/* JP: hack around issue where figures inserted after `.col` divs
 * end up off-screen to the right rather than below */
div.media {
  display: block;
}

div.media figure {
  margin: auto;
}

.cleared {
  display: block;
  clear: left;
}

/* JP: ensure large images are resized to fit within their enclosing div rather
 * than overflowing */
.reveal img,
video {
  max-width: 100%;
}

/* Work around thin outline around some videos seen in Safari */
.reveal video {
  clip-path: inset(1px 1px);
}

div.center90 {
  width: 90%;
  margin-left: auto;
  margin-right: auto;
}

div.center80 {
  width: 80%;
  margin-left: auto;
  margin-right: auto;
}

div.center70 {
  width: 70%;
  margin-left: auto;
  margin-right: auto;
}

div.center60 {
  width: 60%;
  margin-left: auto;
  margin-right: auto;
}

/* Prevent larger margin below the mathjax display equations */
.reveal section mjx-container[display="true"] {
  margin: 0.7em 0em 0.7em 0em;
}

.reveal pre code {
  font-size: 0.5em;
}

.red {
  color: red;
}

.blue {
  color: blue;
}

.orange {
  color: darkorange;
}

.green {
  color: green;
}

.black {
  color: black;
}

.footnotes {
  font-size: 0.8em;
  text-align: left;
}


.codemask {
  position: absolute;
  background-color: #f7f7f7;
}

/* Make sure the `fade-out` fragments are not visible in the print PDF
 * (so that the fully built slide is printed) */
html.print-pdf .reveal .slides section .fragment.fade-out {
  visibility: hidden;
}

.reveal .quizcompact ul {
  margin-top: 0em;
}

.phantom {
  visibility: hidden;
}