	/*******************************************************************************
*                                                                              *
* 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); }
}
