/***********
 Slide margins and spacings
 ***********/
.remark-slide-content {
  padding-top: 25px;
  padding-left: 50px;
  padding-right: 50px;
  padding-bottom: 25px;
}
/* 
To specify the margin of the first title h1
*/
.remark-slide-content > h1:first-of-type {
  margin-top: 5px;
  margin-bottom: 10px;
}
.remark-slide-content > h2:first-of-type {
  color: #285c4d;
  margin-top: 5px;
  margin-bottom: 10px;
}
.remark-slide-content > h3:first-of-type {
  margin-top: 5px;
  margin-bottom: 10px;
}
.remark-slide-content > h4:first-of-type {
  margin-top: 5px;
  margin-bottom: 10px;
}


/*************************
  Custom classes 
**************************/

.pull-left-2 {
  float: left;
  width: 60%;
}
.pull-right-1 {
  float: right;
  width: 36%;
}

.pull-left-1 {
  float: left;
  width: 36%;
}
.pull-right-2 {
  float: right;
  width: 60%;
}


/* use to position text at the bottom */
.pull-down {
  position: absolute;
  bottom: 50px;
}

/* Change default inverse background colour */
.inverse {
  background-color: #0148A4;
  text-shadow: 0 0 20px #333;
}
.inverse .remark-slide-number {
  display: none;
}
/* background colour classes */
.tulane-blue {
  background-color: #00558C;
  color: black;
}
.tulane-yellow {
  background-color: #CC9900;
}
.tulane-green {
  background-color: #285c4d;
  color: white;
}
.tulane-crawfest {
  background-color: #CC0033;
  color: black;
}

/* segue */
.segue {
  text-align: center;
  vertical-align: middle;
  background-color: #0148A4;
  color: #FFFFFF;  /* Updated color to white */
  text-shadow: 0 0 20px #333;
}
.segue .remark-slide-number {
  display: none;
}

.segue-green {
  text-align: center;
  vertical-align: middle;
  background-color: #285c4d;
  color: #FFFFFF;  /* Updated color to white */
  text-shadow: 0 0 20px #333;
}
.segue-green .remark-slide-number {
  display: none;
}

.segue-yellow {
  text-align: center;
  vertical-align: middle;
  background-color: #FFB800;
  color: #FFFFFF;  /* Updated color to white */
  text-shadow: 0 0 2px #333;
}
.segue-yellow .remark-slide-number {
  display: none;
}

/* example slide with background colour to distinguish
it from other content slides */
.eg {
  background-color: #F1F1F1;
  /* rgb(231, 238, 242); */
}
.eg.nobackground {
  background-color:white;
}

/* link colour */
a { 
    color: #white; 
} 

.columns-2 {
  -webkit-columns: 2;
  -moz-columns: 2;
  columns: 2;
  -webkit-column-gap: 1em;
  -moz-column-gap: 1em;
  column-gap: 1em;
}

.columns-21 {
  -webkit-columns: 66%, 33%;
  -moz-columns: 66%, 33%;
  columns: 66%, 33%;
  -webkit-column-gap: 1em;
  -moz-column-gap: 1em;
  column-gap: 1em;
}



/******************
 * Slide scrolling
 * (non-functional)
 * not sure if it is a good idea anyway
slides > slide {
  overflow: scroll;
 padding: 5px 40px;
}
.scrollable-slide .remark-slide {
  height: 400px;
  overflow: scroll !important;
}
 ******************/

.scroll-box-8 {
  height:8em;
  overflow-y: scroll;
}
.scroll-box-10 {
  height:10em;
  overflow-y: scroll;
}
.scroll-box-12 {
  height:12em;
  overflow-y: scroll;
}
.scroll-box-14 {
  height:14em;
  overflow-y: scroll;
}
.scroll-box-16 {
  height:16em;
  overflow-y: scroll;
}
.scroll-box-18 {
  height:18em;
  overflow-y: scroll;
}
.scroll-box-20 {
  height:20em;
  overflow-y: scroll;
}
.scroll-output {
  height: 90%;
  overflow-y: scroll;
}



 
 /* inline code background */
 .remark-inline-code {
   /* until the link between code and mathjax 
   is broken, we need to use transparent */
  background: transparent; /* #F5F5F5; /* lighter */
  /* background: #e7e8e2; /* darker */
  border-radius: 3px;
  padding: 2px;
}



/******************
 * Coloured content boxes
 ****************/
.content-box { 
    box-sizing: border-box;
    background-color: #e2e2e2;
}
.content-box-blue,
.content-box-gray,
.content-box-grey,
.content-box-army,
.content-box-green,
.content-box-purple,
.content-box-red,
.content-box-yellow {
  box-sizing: border-box;
  border-radius: 15px;
  margin: 0 0 15px;
  overflow: hidden;
  padding: 0px 20px 0px 20px;
  width: 100%;
}
.content-box-blue { background-color: #F0F8FF; }
.content-box-gray { background-color: #e2e2e2; }
.content-box-grey {	background-color: #F5F5F5; }
.content-box-army {	background-color: #737a36; }
.content-box-green { background-color: #d9edc2; }
.content-box-purple { background-color: #e2e2f9; }
.content-box-red { background-color: #ffcccc; }
.content-box-yellow { background-color: #fef5c4; }
.content-box-blue .remark-inline-code,
.content-box-blue .remark-inline-code,
.content-box-gray .remark-inline-code,
.content-box-grey .remark-inline-code,
.content-box-army .remark-inline-code,
.content-box-green .remark-inline-code,
.content-box-purple .remark-inline-code,
.content-box-red .remark-inline-code,
.content-box-yellow .remark-inline-code { 
  background: none;
}

.full-width {
    display: flex;
    width: 100%;
    flex: 1 1 auto;
}



/***********
 Changed CSS
 **************/

.opacity{ opacity: 0.5; }
.blur {
    -webkit-filter: blur(5px);
    -moz-filter: blur(10px);
    -o-filter: blur(5px);
    -ms-filter: blur(5px);
    filter: blur(5px);
}
.grayscale img {
    -webkit-filter: grayscale(100%); /* Safari 6.0 - 9.0 */
    filter: grayscale(100%);
}

/**************
 * Fancy stuff
 **************/
.rotate-left {
    -webkit-transform: rotate(-2deg);
    -moz-transform: rotate(-2deg);
    transform: rotate(-2deg); 
}
.rotate-right {
    -webkit-transform: rotate(2deg);
    -moz-transform: rotate(2deg);
    transform: rotate(2deg);     
}
/********** 
 * Image stuff
 ************/
.polaroid img {
    border: 10px solid #fff;
    border-bottom: 45px solid #fff;
    -webkit-box-shadow: 3px 3px 3px #111;
    -moz-box-shadow: 3px 3px 3px #111;
    box-shadow: 3px 3px 3px #111;
}
.shadow {
    -moz-border-radius: 5px;
    -moz-box-shadow: 5px 5px 5px #aaa;
    -webkit-box-shadow: 5px 5px 5px #aaa;
    box-shadow: 5px 5px 5px #aaa;
    border-radius: 2px;  
}


/* disable background colour when printing */

@page { margin: 0; }
@media print {
  
  .inverse, .segue, .segue-yellow, .segue-green, .Tulane-teal,
  .Tulane-gold, .Tulane-red {
    background-color: transparent;
    color: black;
    text-shadow: none;
  }
  .inverse h1, .inverse h2, .inverse h3, .inverse h4, .inverse h5, .segue {
    background-color: transparent;
    color: black;
    text-shadow: none;
  }
  .eg {
    background-color: transparent;
  }
  .remark-slide-scaler {
    width: 100% !important;
    height: 100% !important;
    transform: scale(1) !important;
    top: 0 !important;
    left: 0 !important;
  }
  .has-continuation {
    display: block !important;
  }
}



/*~~~~~~~~~~~~~~~~*/
/* USYD additions */
/*~~~~~~~~~~~~~~~~*/

/* Title slide */
/* Add image and change bg color
.title-slide {
  background-image: url(TulaneLogo-black.svg), url("title-image.jpg");
  /* background-image: url(https://sydney.edu.au/etc/designs/corporate-commons/bower_components/corporate-frontend/dist/assets/img/TulaneLogo.svg); */
  /*
  background-position: 10% 90%, 100% 50%;
  background-size: 160px, 50% 100%;
  background-color: #285c4d;
  /*padding-left: 100px;   delete this for 4:3 aspect ratio */
/*
}
*/
 
.title-slide {
  background-image: url(TulaneLogo-black.svg);
  /* background-image: url(https://sydney.edu.au/etc/designs/corporate-commons/bower_components/corporate-frontend/dist/assets/img/TulaneLogo.svg); */
  background-position: 10% 90%;
  background-size: 320px;
  background-color: #285c4d;
  text-align:left;
  vertical-align: top;
  text-shadow: none;
  /*text-shadow: 0 0 5px #333;*/
  /*padding-left: 100px;   delete this for 4:3 aspect ratio */
}

/* H1 fonts  */
.title-slide h1 {
  color: #ffffff;
  font-weight: normal;
  font-size: 45px;
  padding: 20px;
  text-align: left;
  vertical-align: middle;
  margin-bottom: 18px;
}

/* H2 fonts */
.title-slide h2 {
  color: black !important; /* first of type is master brand red */
  font-size: 35px;
  padding-left: 20px;
  padding-bottom: 10px;
  margin-top: 0px;
  text-align: left;
  vertical-align: middle;
}

/* H3 fonts */
.title-slide h3 {
  font-size: 28px;
  font-weight: normal;
  color: black;
  padding-left: 20px;
  margin: 0px;
  line-height: 1;
  text-align: left;
  vertical-align: middle;
}

/* Remove slide count */
.title-slide .remark-slide-number {
  display: none;
}

/* Custom CSS for better date visibility and positioning */
.title-slide .date,
.title-slide .remark-slide-content .date {
  position: absolute !important;
  bottom: 80px !important;
  right: 30px !important;
  font-size: 22px !important;
  font-weight: bold !important;
  color: #ffffff !important;
  background-color: transparent !important;
  padding: 0 !important;
  border: none !important;
  border-radius: 0 !important;
  text-shadow: none !important;
  text-align: right !important;
  margin: 0 !important;
  line-height: 1 !important;
}

/* Keep existing h3 styles for authors unchanged */
.title-slide h3 {
  /* This should maintain your existing author styling */
}

/* USYD blockquote */
blockquote, .blockquote {
  display: block;
  margin-top: 0.1em;
  margin-bottom: 0.2em;
  margin-left: 5px;
  margin-right: 5px;
  border-left: solid 10px #0148A4;
  border-top: solid 2px #0148A4;
  border-bottom: solid 2px #0148A4;
  border-right: solid 2px #0148A4;
  box-shadow: 0 0 6px rgba(0,0,0,0.5);
  /* background-color: #285c4d; */
  color: #285c4d;
  padding: 0.5em;
  -moz-border-radius: 5px;
  -webkit-border-radius: 5px;
}

.blockquote p {
  margin-top: 0px;
  margin-bottom: 5px;
}
.blockquote > h1:first-of-type {
  margin-top: 0px;
  margin-bottom: 5px;
}
.blockquote > h2:first-of-type {
  margin-top: 0px;
  margin-bottom: 5px;
}
.blockquote > h3:first-of-type {
  margin-top: 0px;
  margin-bottom: 5px;
}
.blockquote > h4:first-of-type {
  margin-top: 0px;
  margin-bottom: 5px;
}

.text-shadow {
  text-shadow: 0 0 4px #424242;
}

/* if wanted to change mathjax formatting
.remark-inline-code .mjx-chtml {
  color: blue;
}
*/

/* References: many customisations adapted from the examples here:
https://github.com/yihui/xaringan/tree/master/inst/rmarkdown/templates/xaringan/resources
*/



/* 
Masterbrand charcoal #424242; 
C=0 M=0 Y=0 K=90 
R=66 G=66 B=66 

Masterbrand red #285c4d;
C=0 M=0 Y=0 K=90
R=66 G=66 B=66 

Masterbrand white #ffffff;
C=0 M=0 Y=0 K=0
R=255 G=255 B=255

Masterbrand black #000000;
C=0 M=0 Y=0 K=100
R=10 G=10 B=10

Accent yellow #FFB800
C=0 M=25 Y=98 K=0
R=255 G=184 B=0 

Accent blue #0148A4
C=100 M=61 Y=0 K=0
R=1 G=72 B=164 

Accent grey - supportive #F1F1F1
C=0 M=0 Y=0 K=10
R=241 G=241 B=241 
*/


.tulane-blue h1, .tulane-blue h2, .tulane-blue h3, .tulane-blue h4, .tulane-blue h5, .tulane-blue h6,
.tulane-blue .remark-slide-content h1, .tulane-blue .remark-slide-content h2, .tulane-blue .remark-slide-content h3, .tulane-blue .remark-slide-content h4, .tulane-blue .remark-slide-content h5, .tulane-blue .remark-slide-content h6 {
  color: #FFFFFF !important;
}

.tulane-yellow h1, .tulane-yellow h2, .tulane-yellow h3, .tulane-yellow h4, .tulane-yellow h5, .tulane-yellow h6,
.tulane-yellow .remark-slide-content h1, .tulane-yellow .remark-slide-content h2, .tulane-yellow .remark-slide-content h3, .tulane-yellow .remark-slide-content h4, .tulane-yellow .remark-slide-content h5, .tulane-yellow .remark-slide-content h6 {
  color: #FFFFFF !important;
}

.tulane-green h1, .tulane-green h2, .tulane-green h3, .tulane-green h4, .tulane-green h5, .tulane-green h6,
.tulane-green .remark-slide-content h1, .tulane-green .remark-slide-content h2, .tulane-green .remark-slide-content h3, .tulane-green .remark-slide-content h4, .tulane-green .remark-slide-content h5, .tulane-green .remark-slide-content h6 {
  color: #FFFFFF !important;
}

.tulane-crawfest h1, .tulane-crawfest h2, .tulane-crawfest h3, .tulane-crawfest h4, .tulane-crawfest h5, .tulane-crawfest h6,
.tulane-crawfest .remark-slide-content h1, .tulane-crawfest .remark-slide-content h2, .tulane-crawfest .remark-slide-content h3, .tulane-crawfest .remark-slide-content h4, .tulane-crawfest .remark-slide-content h5, .tulane-crawfest .remark-slide-content h6 {
  color: #FFFFFF !important;
}
