	/*******************************************************************************
*                                                                              *
* Custom css for Reveal.js by Dr. Richard M. Crowley, 2023                     *
*                                                                              *
*******************************************************************************/

/* Text styling */

strong {
  color: rgb(158,0,64);
}

.callout {
  margin-top: 0em !important;
}

.callout-title > p > strong {
  color: rgb(34,34,34);
}

em {
  color: rgb(138, 112, 76);
}

/*Highlight text*/
span.smuhi {
  color: rgb(123,93,52);
  font-style: italic;
}
span.hi1 {
  color: #22aa22;
}
span.hi2 {
  color: #aa2222;
}

/*Tiny text*/
p.tiny {
  font-size:8px;
  line-height:0px;
}

/* big centered text*/
div.bigtext {
  font-size:250%;
  text-align: center;
}

/* blockquote styling */
.level2  blockquote {
  margin-left:5%;
  margin-right:5%;
  border-left:8px solid rgb(21,28,85);
  background:rgb(235,236,240);
  color:rgb(21,28,85)
}

.level2 > blockquote:has(cite) {
  padding-left: 75px;
  border-left:8px solid rgb(111,111,111);
  background:#EDEDED;
}
blockquote:has(cite)::before{
  font-family:Arial;
  content: "\201C";
  color:rgb(111,111,111);
  font-size:4em;
  position: absolute;
  left: 10px;
  top:-10px;
}

blockquote cite::before {
	content: "— ";
  font: inherit;
	color: #333333;
}

blockquote cite{
  display:block;
  margin-left: 5%;
  color:#333333;
  font-style: normal;
  font-weight: bold;
  margin-top:0em;
}

/* qr code positioning */
div.qrcode > img {
  margin-left: auto;
  margin-right: auto;
}

/*text bullet margin fix*/
.reveal section.level2 ul li, .reveal section.level2 ol li {
  margin: 0;
}

/* Header adjustments */
.reveal section.level2 > h2 {
  margin-bottom: 20px;
}


/* Tooltips for definitions*/
/*smu blue: rgb(39,54,133); smu gold: rgb(123,93,52)*/
[tooltip]:before {
    position : fixed;
    content : attr(tooltip);
    font-size: 60%;
    opacity : 0;
    
    transition: all 0.15s ease 0.3s;
    padding: 5px;
    color: rgb(39,54,133);
    border-radius: 5px;
}
[tooltip]:hover:before {
    opacity : 1;
    
    background: #ddd;
    margin-top: 50px;
    margin-left: 0px;
    transition: all 0.10s ease;
}


/* Slide styling*/

.quarto-title-block:not(.slide-background) {
  background-color: rgb(0,0,0,0.75);
  color: rgb(255,255,255);
  -webkit-box-sizing: border-box; /* Safari/Chrome, other WebKit  */
  -moz-box-sizing: border-box;    /* Firefox, other Gecko         */
  box-sizing: border-box; 
  border: 5px;
  border-color: rgba(255,255,255,0.75);
  padding: 20px !important;
}

.quarto-title-block:not(.slide-background) > h1.title {
  color: rgb(255,255,255);
}

section.slide:not(.level1):not([data-background-iframe]):not(.photo) {
  background-color: rgb(255,255,255,0.85);
  -webkit-box-sizing: border-box; /* Safari/Chrome, other WebKit  */
  -moz-box-sizing: border-box;    /* Firefox, other Gecko         */
  box-sizing: border-box; 
  border: 5px;
  border-color: rgba(255,255,255,0.5);
  padding: 20px !important;
}

/* Attribution fix to avoid overlapping arrow */
.attribution > .content > p {
  margin-top: 10%;
  text-align: left;
  display:table;
  background-color: rgb(255,255,255,0.85);
  padding-top: 1%;
  padding-bottom: 1%;
}

section.level1 > h1 {
  color: rgb(255,255,255);
}

/* Optional smaller font slides */
section.small :not(.callout):not(h2) {
  font-size: 30px
}

/* Callouts have a background*/

div.callout {
  background-color: rgb(255,255,255,0.7);
}

/* animated footer */

img.slide-logo {
  -webkit-animation: rubberband 30s infinite both ease-in-out;
          animation: rubberband 30s infinite both ease-in-out;
}

/* images for R and python code */
.sourceCode.python {
  background: url(../Logos/python.png) no-repeat;
  background-position: top left;
}

.sourceCode.Python {
  background: url(../Logos/python.png) no-repeat;
  background-position: top left;
}

.sourceCode.r {
  background: url(../Logos/R.png) no-repeat;
  background-position: top left;
}

.sourceCode.R {
  background: url(../Logos/R.png) no-repeat;
  background-position: top left;
}

/* formatting for R and python code */

/* Temporary fix for incompatibility between linking source and line numbers */
/* Quarto bug in the 1.3.433 version and earlier */
.reveal .cell:not(:has(pre.sourceCode.number-lines)) {
	counter-reset: line;
}
.reveal pre.sourceCode:not(.number-lines) code.sourceCode > span {
	counter-increment: line;
}
.reveal pre.sourceCode:not(.number-lines) code.sourceCode > span:before{
	padding-right:5px;
	margin-right:5px;
	margin-left:20px;
	border-right:ridge;
    content: counter(line);
	-webkit-user-select: none;
	color: rgb(170, 170, 170);
	display: inline-flex;
	width: 25px;
}

.reveal div.sourceCode {
  background-color:#ffffff00;
  margin-top: 20px;
  margin-bottom: 20px;
}

.reveal pre.sourceCode {
  background-color:#ffffff00;
  padding-left: 0%;
  padding-right: 0%;
}

.reveal pre.sourceCode code {
  background-color:rgb(240, 240, 255)
}

.reveal pre.sourceCode code.r {
  background-color:rgb(240, 240, 255)
}

.reveal pre.sourceCode code.R {
  background-color:rgb(240, 240, 255)
}

.reveal pre.sourceCode code.python {
  background-color:rgb(255, 255, 225)
}

.reveal pre.sourceCode code.Python {
  background-color:rgb(255, 255, 225)
}

div.cell:not(.colums):has(.sourceCode) {
  border: 3px solid rgb(39,54,133);
  border-left: 10px solid rgb(39,54,133);
  padding: 3px;
}
div.cell:has(.sourceCode) > div.column:has(.sourceCode) {
  border-left: none; 
  padding: 0px;
}

/*.reveal pre:not(.sourceCode){
  padding-left: 0%;
  padding-right: 0%;
  margin-bottom: 20px;
}*/

/* Column formatting */
.columns > div.column {
  padding-left:3%;
  width: 49% !important;
  box-sizing: border-box;
  outline: 3px solid rgb(255,255,255);
  border-left:10px solid rgb(255,255,255);
  margin-right: 1%;
  background-color: rgb(255,255,255, 0.5);
  margin-bottom: 1em;
}
.columns > div.column ~ .column {
  border-left:10px solid rgb(255,255,255);
  border-right: none;
  margin-left: 1%;
  margin-right: 0;
}

div.cell {
  margin-bottom: 1em;
}




.columns > div.column > p {
  margin-left: 0.25em !important;
}




/* Printing compatibility */

div.pdf-page > section.slide:not(.stack):not(.level1) {
  padding: 20px !important;
  height: 90% !important;
}

div.pdf-page > section.slide:not(.stack).level1 {
  padding: 20px !important;
}

div.pdf-page {
  height: 949px !important
}

/*********
* Tables *
*********/

.reveal .table {
  width: 100%;
  max-width: 100%;
  border-top: none;
  border-left: none;
  border-right: none;
  border-color: #808080;
  border-bottom: 1px solid #808080;
}

.table > thead > tr > th,
.table > thead > tr > td,
.table > tbody > tr > th,
.table > tbody > tr > td,
.table > tfoot > tr > th,
.table > tfoot > tr > td, {
/*    padding: $table-cell-padding;
        line-height: $line-height-base;*/
  vertical-align: top;
  border-top: 1px solid $table-border-color;
}

/*Bottom align for column headings*/
.table > thead > tr > th {
  vertical-align: bottom;
  border-bottom: 2px solid #808080;
  border-left: none;
  border-right: none;
  border-top: none;
}
/*Remove top border from thead by default*/
.table > caption + thead > tr:first-child > th,
.table > colgroup + thead > tr:first-child > th,
.table > thead:first-child > tr:first-child > th,
.table > caption + thead > tr:first-child > th,
.table > colgroup + thead > tr:first-child > th,
.table > thead:first-child > tr:first-child > th
.table > caption + thead > tr:first-child > td,
.table > colgroup + thead > tr:first-child > td,
.table > thead:first-child > tr:first-child > td,
.table > caption + thead > tr:first-child > td,
.table > colgroup + thead > tr:first-child > td,
.table > thead:first-child > tr:first-child > td {
  border-top: 0;
}
/* Account for multiple tbody instances*/
.table > tbody + tbody {
  border-top: 2px solid #000000;
}

/* Nesting*/
/*Adjusted below
.table .table {
    background-color: #dddddd;
}*/
.table-striped > tbody > tr:nth-of-type(even) {
    background-color: rgba(221,221,221,0.5);
	transition: 0.2s;
}

.table-striped > tbody > tr:nth-of-type(odd) {
  background-color: rgba(187,187,187,0.5);
  transition: 0.2s;
}

.table-hover > tbody > tr:hover {
  background-color:rgba(39,54,133,0.6) !important;
}

.table-hover > tbody > tr >td {
  transition: 0.2s;
}

.table-hover > tbody > tr >td:hover {
  background-color:rgba(147,155,194,1) !important;
}

.lightable-paper.lightable-hover tbody tr:hover {
  background-color: #F9EEC1 !important;
}


/**********
* Mathjax *
**********/

p:has(span.math) {
  margin: 0;
}

div.MathJax_Display {
  margin-top: 10px;
  margin-bottom: 10px;
}



/*************
* Animations *
*************/


@-webkit-keyframes bounce-right-small {
  0%, 20%, 70%, 100% {
    -webkit-transform: translateX(0);
            transform: translateX(0); }
  40% {
    -webkit-transform: translateX(5px) rotateY(-30deg);
            transform: translateX(5px) rotateY(-30deg); }
}
@keyframes bounce-right-small {
  0%, 20%, 70%, 100% {
    -webkit-transform: translateX(0);
            transform: translateX(0); }
  40% {
    -webkit-transform: translateX(5px) rotateY(-30deg);
            transform: translateX(5px) rotateY(-30deg); }
}

@-webkit-keyframes bounce-down-small {
  0%, 20%, 70%, 100% {
    -webkit-transform: translateY(0);
            transform: translateY(0); }
  40% {
    -webkit-transform: translateY(5px) rotateY(-30deg);
            transform: translateY(5px) rotateY(-30deg); }
}

@keyframes bounce-down-small {
  0%, 20%, 70%, 100% {
    -webkit-transform: translateY(0);
            transform: translateY(0); }
  40% {
    -webkit-transform: translateY(5px) rotateY(-30deg);
            transform: translateY(5px) rotateY(-30deg); }
}

.reveal .controls .navigate-right {
  -webkit-animation: bounce-right-small 5s infinite both ease-in-out;
          animation: bounce-right-small 5s infinite both ease-in-out;
}

.reveal .controls .navigate-down {
  -webkit-animation: bounce-down-small 5s infinite both ease-in-out;
          animation: bounce-down-small 5s infinite both ease-in-out;
}

/*Used to add logo to slides*/
@-webkit-keyframes rotate-small {
  0%, 20%, 70%, 100% {
    -webkit-transform: translateY(0);
            transform: translateY(0); }
  40% {
    -webkit-transform: translateY(5px) rotateY(-180deg);
            transform: translateY(5px) rotateY(-180deg); }
}

@keyframes rubberband {
  from {
    transform: scale3d(1, 1, 1);
  }

  3% {
    transform: scale3d(1.125, 0.875, 1);
  }

  4% {
    transform: scale3d(0.875, 1.125, 1);
  }

  5% {
    transform: scale3d(1.075, 0.925, 1);
  }

  6.5% {
    transform: scale3d(.975, 1.025, 1);
  }

  7.5% {
    transform: scale3d(1.025, .975, 1);
  }
  10% {
    transform: scale3d(1, 1, 1);
  }
}

@keyframes rotate-fast {
  0%, 1%, 4%, 5% {
    -webkit-transform: translateY(0);
            transform: translateY(0); }
  1.5%, 3.5% {
    -webkit-transform: translateY(0) rotateY(-180deg) scale3d(0.98,0.98,1);
            transform: translateY(0) rotateY(-180deg) scale3d(0.98,0.98,1); }
  2%, 2.5%, 3% {
    -webkit-transform: translateY(0) scale3d(0.98,0.98,1);
            transform: translateY(0) scale3d(0.98,0.98,1);}
  2.25%, 2.75% {
    -webkit-transform: translateY(0) rotateY(-180deg) scale3d(0.98,0.98,1);
            transform: translateY(0) rotateY(-180deg) scale3d(0.98,0.98,1); }
}



/* Glitchy Text - Start */

/* The "clip" in ".glitch" is depreciated, so technically you should use the "clip-path" that's in ".glitchy" instead, however IE doesn't support "clip-path", and most browsers still support "clip". */

.glitch {
  color: white;
  position: relative;
}
.glitch::before {
  content: attr(data-text);
  width: calc(100% + 0.5em);
  position: absolute;
  left: -9px;
  text-shadow: 1px 0 blue;
  top: -5px;
  color: #FFD;
  background: #111;
  overflow: hidden;
  clip: rect(0, 900px, 0, 0);
  animation: noise-anim-2 3s infinite linear alternate-reverse;
  -webkit-animation: noise-anim-2 3s infinite linear alternate-reverse;
}
.glitch::after {
  content: attr(data-text);
  width: calc(100% + 0.5em);
  position: absolute;
  left: -5px;
  text-shadow: -1px 0 red;
  top: -5px;
  color: #DFF;
  background: #111;
  overflow: hidden;
  clip: rect(0, 900px, 0, 0);
  animation: noise-anim 2s infinite linear alternate-reverse;
  -webkit-animation: noise-anim 2s infinite linear alternate-reverse;
}
@keyframes noise-anim {
  0% {
    clip: rect(80px, 9999px, 16px, 0);
  }
  5% {
    clip: rect(94px, 9999px, 17px, 0);
  }
  10% {
    clip: rect(9px, 9999px, 92px, 0);
  }
  15.0% {
    clip: rect(37px, 9999px, 4px, 0);
  }
  20% {
    clip: rect(53px, 9999px, 47px, 0);
  }
  25% {
    clip: rect(99px, 9999px, 69px, 0);
  }
  30.0% {
    clip: rect(15px, 9999px, 49px, 0);
  }
  35% {
    clip: rect(83px, 9999px, 81px, 0);
  }
  40% {
    clip: rect(55px, 9999px, 43px, 0);
  }
  45% {
    clip: rect(28px, 9999px, 27px, 0);
  }
  50% {
    clip: rect(64px, 9999px, 28px, 0);
  }
  55.0% {
    clip: rect(76px, 9999px, 91px, 0);
  }
  60.0% {
    clip: rect(29px, 9999px, 72px, 0);
  }
  65% {
    clip: rect(70px, 9999px, 10px, 0);
  }
  70% {
    clip: rect(5px, 9999px, 84px, 0);
  }
  75% {
    clip: rect(46px, 9999px, 81px, 0);
  }
  80% {
    clip: rect(7px, 9999px, 85px, 0);
  }
  85.0% {
    clip: rect(17px, 9999px, 89px, 0);
  }
  90% {
    clip: rect(41px, 9999px, 59px, 0);
  }
  95% {
    clip: rect(53px, 9999px, 90px, 0);
  }
  100% {
    clip: rect(10px, 9999px, 30px, 0);
  }
}
@keyframes noise-anim-2 {
  0% {
    clip: rect(84px, 9999px, 3px, 0);
  }
  5% {
    clip: rect(31px, 9999px, 69px, 0);
  }
  10% {
    clip: rect(37px, 9999px, 33px, 0);
  }
  15.0% {
    clip: rect(18px, 9999px, 6px, 0);
  }
  20% {
    clip: rect(25px, 9999px, 87px, 0);
  }
  25% {
    clip: rect(100px, 9999px, 8px, 0);
  }
  30.0% {
    clip: rect(24px, 9999px, 87px, 0);
  }
  35% {
    clip: rect(39px, 9999px, 16px, 0);
  }
  40% {
    clip: rect(96px, 9999px, 25px, 0);
  }
  45% {
    clip: rect(16px, 9999px, 100px, 0);
  }
  50% {
    clip: rect(92px, 9999px, 76px, 0);
  }
  55.0% {
    clip: rect(29px, 9999px, 40px, 0);
  }
  60.0% {
    clip: rect(40px, 9999px, 39px, 0);
  }
  65% {
    clip: rect(94px, 9999px, 44px, 0);
  }
  70% {
    clip: rect(2px, 9999px, 78px, 0);
  }
  75% {
    clip: rect(86px, 9999px, 50px, 0);
  }
  80% {
    clip: rect(2px, 9999px, 46px, 0);
  }
  85.0% {
    clip: rect(41px, 9999px, 71px, 0);
  }
  90% {
    clip: rect(75px, 9999px, 15px, 0);
  }
  95% {
    clip: rect(41px, 9999px, 8px, 0);
  }
  100% {
    clip: rect(23px, 9999px, 75px, 0);
  }
}

.glitchy {
  color: black;
  position: relative;
}
.glitchy::before {
  content: attr(data-text);
  width: calc(100% + 0.5em);
  position: absolute;
  left: -9px;
  text-shadow: 1px 0 blue;
  top: -5px;
  color: #112;
  background: #ddd;
  overflow: hidden;
  clip-path: polygon(0 0);
  animation: noise-animY-2 3s infinite linear alternate-reverse;
  -webkit-animation: noise-animY-2 3s infinite linear alternate-reverse;
}
.glitchy::after {
  content: attr(data-text);
  width: calc(100% + 0.5em);
  position: absolute;
  left: -5px;
  text-shadow: -1px 0 red;
  top: -5px;
  color: #211;
  background: #ddd;
  overflow: hidden;
  clip-path: polygon(0 0);
  animation: noise-animY 2s infinite linear alternate-reverse;
  -webkit-animation: noise-animY 2s infinite linear alternate-reverse;
}
@keyframes noise-animY {
  0% {
    clip-path: polygon(0 80px, 100% 80px, 100% 16px, 0 16px);
  }
  5% {
    clip-path: polygon(0 94px, 100% 94px, 100% 17px, 0 17px);
  }
  10% {
    clip-path: polygon(0 9px, 100% 9px, 100% 92px, 0 92px);
  }
  15.0% {
    clip-path: polygon(0 37px, 100% 37px, 100% 4px, 0 4px);
  }
  20% {
    clip-path: polygon(0 53px, 100% 53px, 100% 47px, 0 47px);
  }
  25% {
    clip-path: polygon(0 99px, 100% 99px, 100% 69px, 0 69px);
  }
  30.0% {
    clip-path: polygon(0 15px, 100% 15px, 100% 49px, 0 49px);
  }
  35% {
    clip-path: polygon(0 83px, 100% 83px, 100% 81px, 0 81px);
  }
  40% {
    clip-path: polygon(0 55px, 100% 55px, 100% 43px, 0 43px);
  }
  45% {
    clip-path: polygon(0 28px, 100% 28px, 100% 27px, 0 27px);
  }
  50% {
    clip-path: polygon(0 64px, 100% 64px, 100% 28px, 0 28px);
  }
  55.0% {
    clip-path: polygon(0 76px, 100% 76px, 100% 91px, 0 91px);
  }
  60.0% {
    clip-path: polygon(0 29px, 100% 29px, 100% 72px, 0 72px);
  }
  65% {
    clip-path: polygon(0 70px, 100% 70px, 100% 10px, 0 10px);
  }
  70% {
    clip-path: polygon(0 5px, 100% 5px, 100% 84px, 0 84px);
  }
  75% {
    clip-path: polygon(0 46px, 100% 46px, 100% 81px, 0 81px);
  }
  80% {
    clip-path: polygon(0 7px, 100% 7px, 100% 85px, 0 85px);
  }
  85.0% {
    clip-path: polygon(0 17px, 100% 17px, 100% 89px, 0 89px);
  }
  90% {
    clip-path: polygon(0 41px, 100% 41px, 100% 59px, 0 59px);
  }
  95% {
    clip-path: polygon(0 53px, 100% 53px, 100% 90px, 0 90px);
  }
  100% {
    clip-path: polygon(0 10px, 100% 10px, 100% 30px, 0 30px);
  }
}
@keyframes noise-animY-2 {
  0% {
    clip-path: polygon(0 84px, 100% 84px, 100% 3px, 0 3px);
  }
  5% {
    clip-path: polygon(0 31px, 100% 31px, 100% 69px, 0 69px);
  }
  10% {
    clip-path: polygon(0 37px, 100% 37px, 100% 33px, 0 33px);
  }
  15.0% {
    clip-path: polygon(0 18px, 100% 18px, 100% 6px, 0 6px);
  }
  20% {
    clip-path: polygon(0 25px, 100% 25px, 100% 87px, 0 87px);
  }
  25% {
    clip-path: polygon(0 100px, 100% 100px, 100% 8px, 0 8px);
  }
  30.0% {
    clip-path: polygon(0 24px, 100% 24px, 100% 87px, 0 87px);
  }
  35% {
    clip-path: polygon(0 39px, 100% 39px, 100% 16px, 0 16px);
  }
  40% {
    clip-path: polygon(0 96px, 100% 96px, 100% 25px, 0 25px);
  }
  45% {
    clip-path: polygon(0 16px, 100% 16px, 100% 100px, 0 100px);
  }
  50% {
    clip-path: polygon(0 92px, 100% 92px, 100% 76px, 0 76px);
  }
  55.0% {
    clip-path: polygon(0 29px, 100% 29px, 100% 40px, 0 40px);
  }
  60.0% {
    clip-path: polygon(0 40px, 100% 40px, 100% 39px, 0 39px);
  }
  65% {
    clip-path: polygon(0 94px, 100% 94px, 100% 44px, 0 44px);
  }
  70% {
    clip-path: polygon(0 2px, 100% 2px, 100% 78px, 0 78px);
  }
  75% {
    clip-path: polygon(0 86px, 100% 86px, 100% 50px, 0 50px);
  }
  80% {
    clip-path: polygon(0 2px, 100% 2px, 100% 46px, 0 46px);
  }
  85.0% {
    clip-path: polygon(0 41px, 100% 41px, 100% 71px, 0 71px);
  }
  90% {
    clip-path: polygon(0 75px, 100% 75px, 100% 15px, 0 15px);
  }
  95% {
    clip-path: polygon(0 41px, 100% 41px, 100% 8px, 0 8px);
  }
  100% {
    clip-path: polygon(0 23px, 100% 23px, 100% 75px, 0 75px);
  }
}
/* Glitchy Text - End */