@import url('https://fonts.googleapis.com/css?family=Droid+Sans:400,700|Source+Code+Pro:400,700');

/* Presentation details */

/* Twitter handle on all slides */
.remark-slide-content:after {
  content: var(--twitter);
  color: white;
  position: absolute;
  top: 60px;
  right: 20px;
}

.nologo.remark-slide-content:after {
  content:"";
  background-image: none;
}

.nologo.remark-slide-content {
  background-image: none;
}

.nologo h1 {
  color: var(--h1-alt);
}

/* Title Slide */

.title-slide {
  /* Background image or logo */
  background-position: var(--logo-pos) !important;
  background-image: var(--logo);
  background-size: var(--logo-size);
  border-color: var(--head1);
  border-style: solid;
  border-width: 0 0 0 100px;
  padding-left: 20px !important;
}

.title-slide h1 {
  font-size: var(--t1) !important;
  color: var(--colour1) !important;
  text-align: left;
  padding-top: var(--t1pad);
  margin-bottom: 20px;
}

.title-slide h2 {
  font-size: var(--t2) !important;
  line-height: 1.4;
  text-align: left;
  font-style: italic;
  color: black;
  margin-top: var(--t2mar);
}

.title-slide h3 {
  font-size: var(--t3) !important;
  text-align: left;
  line-height: 1.4;
  margin-top: var(--t3mar);
}

.title-slide .align-bottom-left {
  left: 125px;
}

.title-slide .footnote {
  font-size: 80%;
  position: absolute;
  bottom: 2%;
  line-height: 1.4;
}

.title-slide .remark-slide-number {
  display: none;
}

/* Sections */

.section {
  color: var(--h1);
  background-color: var(--head1);
  text-align: center;
  vertical-align: middle;
}

.section h1 {
  color: var(--h1);
  font-weight: bold;
}

.section h2 {
  color: var(--h1);
  font-weight: bold;
}

.section .remark-inline-code {
  color: var(--h1);
}

.section .remark-slide-number {
  display: none;
}

.section a{
  color: var(--h1);
}

/* Labels (box with arrow) */
.label-container {
  -webkit-transform: translate(100%, 0);
}
.label {
  background-color: var(--colour2);
  padding: 10px;
  box-shadow: 10px 10px #888888;
  text-align: center;
  position: relative;
  line-height: 1.3;
}

.label:before {
  content: "";
  position: absolute;
  right: 100%;
  top: 0;
  padding: 0;
  margin: 0;
  width: 0;
  height: 0;
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
  border-left: 12px solid transparent;
  border-right:12px solid var(--colour2);
  -webkit-transform: translate(0, 50%);
}



/* General Styling */

@page { margin: 0; }
@media print {
  .remark-slide-scaler {
    width: 100% !important;
    height: 100% !important;
    transform: scale(1) !important;
    top: 0 !important;
    left: 0 !important;
  }

  /* Print incremental slides separately */
  .has-continuation {
    display: block !important;
  }
}

body {
  font-family: 'Droid Sans', sans-serif;
  line-height: 1.5;
}

p {
  margin-top: 5px;
  margin-bottom: 5px;
}

h1, h2, h3, h4 {
  font-weight: bold;
  line-height: 1.1;
}

h1 {
  font-size: 180% !important;
  margin-top: 0px;
  margin-bottom: 45px;
  color: var(--h1);
}

h2 {
  font-size: 130% !important;
  color: var(--colour1);
  margin-bottom: 15px;
  line-height: 1.5;
}

h3 {
  margin-bottom: 0px;
  font-weight: bold;
  font-size: 110% !important;
}

/* h4 is same as h3, but less spacing below */
h4 {
  font-size: 120% !important;
  margin-top: 25px;
  margin-bottom: 10px;
  color: var(--colour1);
}

table {
  margin: auto;
  border-top: 2px solid #000;
  border-bottom: 2px solid #000;
  border-spacing: 0;
}
table thead th { border-bottom: 2px solid #000; }
th, td { padding: 5px; text-align: left;}
tr:nth-child(even) { background: #eee }

.small-table table {
  font-size: var(--small);
}

.medium-table table {
  font-size: var(--med);
}

.table-left table {
  margin: 0;
}

.full-width table {
  width: 100%;
  max-width:100%;
}

.full-width-compressed table {
  width: 100%;
  max-width:100%;
  line-height: 1;
}

.footnote {
  font-size: 80%;
  position: absolute;
  bottom: 2%;
  line-height: 1.4;
}

.footnote-right {
  font-size: 80%;
  position: absolute;
  bottom: 2%;
  right: 2%;
  line-height: 1.4;
}

ul {
  margin-top: 10px;
  margin-bottom: 10px;
}

li > ul {
  margin-top: 0px;
  margin-bottom: 0px;
  font-size: 90%;
}

li + li {
  /*margin-top: 10px;*/
}


.left.MathJax_SVG_Display  {
  text-align:left;
}

.space-list li {margin-bottom: 1em;}
.space-list li > ul > li { margin-bottom: 0em;}
.space-list li > ol > li { margin-bottom: 0em;}

.space h3 {margin-top: 2em;}


a {
  color: var(--colour1);
}

/* Classes */

.anchorl {
  -webkit-transform: translate(-50%, 0);
  -moz-transform: translate(-50%, 0);
  -o-transform: translate(-50%, 0);
  -ms-transform: translate(-50%, 0); /* IE 9 */
  transform: translate(-50%, 0);
}

.anchorr {
  -webkit-transform: translate(50%, 0);
  -moz-transform: translate(50%, 0);
  -o-transform: translate(50%, 0);
  -ms-transform: translate(50%, 0); /* IE 9 */
  transform: translate(50%, 0);
}

.attr {
  color: white;
  text-shadow: 1px 1px #919191;
  font-size: var(--small);
  position: absolute;
  right: 5px;
  bottom: 5px;
  line-height: 1;
  text-align: right;
}

.caption {
  display: block;
  text-align: center;
  position: relative;
  max-width: 100%;
  line-height: 1.4;
  font-size: var(--small);
  right: 0;
  bottom: -0.5em;
}

.fig {
  position: absolute;
  line-height: 0;
}

.fig img {
  width: 100%;
}


.hanging {
  padding-left: 22px;
  text-indent: -22px;
}

.note {
  border-style:solid;
  border-width:1px 0 1px 20px;
  border-image:url(https://upload.wikimedia.org/wikipedia/commons/5/5b/Accolade_fermante.png) 1 200 stretch;
  padding-left:0.5em;
  line-height: 1.25;
  font-size: var(--small);
}

.remark-slide-number {
  display: var(--page-numbers);
}

.nobar.remark-slide-content:before {
  display: none;
}

.remark-slide-content::before {
  content:"";
  background-color: var(--head1);
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100px;
  display:inline-block;
}

.remark-slide-content h1 {
  position: relative;
}

.remark-slide-content {
  background-position: right 5% center;
  font-size: var(--size);
  padding-top: 30px;
  padding-left: 40px;
  padding-right: 40px;
  padding-bottom: 5px;
}

blockquote {
  padding: 2px 2px 2px 10px;
  margin: 5px;
  border-left: 10px solid var(--colour1);
  background-color: var(--colour2);
}

.spacer {
  margin: 3px;
}

.col {
  color: var(--colour1)
}

.colourbox {
  font-weight: bold;
  font-size: 120%;
  padding: 10px !important;
  /*position: absolute;*/
  border: solid 5px var(--colour1);
  border-radius: 15px;
}

.highlightbox {
  position: absolute;
  background-color: var(--colour1);
  opacity: 0.3;
}

.squish {
  margin-top: -20px;
}

.box, .box-r, .box-br, .box-l, .box-bl, .box-b {
  position: absolute;
  background-color: var(--colour2);
  width: 40%;
  padding: 10px;
  box-shadow: 10px 10px #888888;
  text-align: center;
  line-height: 1.25;
}

.box h3 {
  font-size: 100%;
  font-weight: bold;
  margin-top: 5px;
  margin-bottom: 5px;
  padding: 0;
}

.box {
 -webkit-transform: translate(50%, 0);
}
.box-b {
  right: 50%;
  bottom: 5%;
  -webkit-transform: translate(50%, 0);
}

.box-r {
  right: 5%;
  bottom: 35%;
}

.box-br {
  right: 5%;
  bottom: 5%;
}

.box-l {
  left: 5%;
  bottom: 35%;
}

.box-bl {
  left: 5%;
  bottom: 5%;
}

.align-centre {
  text-align: center;
}
.align-middle {
  vertical-align: middle;
}
.align-left {
	float: left;
}
.align-right {
	float: right;
}

.align-top-right {
  position: absolute;
  right: 40px;
  top: 40px;
}

.align-top-left {
  position: absolute;
  left: 40px;
  top: 40px;
}

.align-bottom-left {
  position: absolute;
  left: 40px;
  bottom: 40px;
}

.align-bottom-right {
  position: absolute;
  right: 40px;
  bottom: 40px;
}

.centre {
  left: 50%;
  -webkit-transform: translate(-50%, 0);
  position: absolute;
}

.large, .large code{
  font-weight: bold;
  font-size: var(--large);
}

.regular, .regular code{
  font-size: var(--med-large);
}

.medium {
  font-size: var(--med);
}

.small {
  font-size: var(--small);
  line-height: 1.5;
}

.extra-small {
  font-size: var(--extra-small);
  line-height: 1.5;
}

.small .remark-code {
  font-size: var(--small);
  line-height: 1.5;
}

.medium .remark-code {
  font-size: var(--med);
  line-height: 1.5;
}

.extra-small .remark-code {
  font-size: 70%;
  line-height: 1.5;
}

.spread .remark-code {
  line-height: 2.6;
}

.compact {
  line-height: 1.2;
}

.compact .remark-code {
  line-height: 1.5;
}

.narrow .remark-code {
  font-size: 65%;
}

/* Code layout */

/* Squish headers a bit closer to code blocks */
.remark-code, .remark-inline-code {
  font-family: 'Source Code Pro', 'Lucida Console', Monaco, monospace;
}

code.hljs {
  background: #e6e6e6 !important;
  border-radius: 3px !important;
}

code .remark-code-line {
  background-color: #e6e6e6;
  border-radius: 3px !important;
  padding-left: 0.5em;
}

/* code highlights */
code .remark-code-line-highlighted {
  background-color: rgba(255,255,0,0.5);
}


h4 + pre {
  margin-top: 10px;
}

pre + h4 {
  margin-top: 40px;
}

pre{
  white-space: pre-wrap;
  margin-bottom: 15px;
  font-size: var(--code-size);
}

/* reduce spacing when around other bits */
p + pre, ul + pre, h2 + pre, h3 + pre, h4 + pre, pre + pre {
  margin-top: 5px;
}

pre + p, pre + ul, pre + h2, pre + h4 {
  margin-top: 5px;
}


/* Ribbons */

.corner-ribbon {
  width: 200px;
  background: #000000;
  position: absolute;
  top: 25px;
  right: -50px;
  left: auto;
  text-align: center;
  line-height: 50px;
  letter-spacing: 1px;
  color: #FFFFFF;
  transform: rotate(45deg);
  -webkit-transform: rotate(45deg);
  box-shadow: 0 0 3px rgba(0,0,0,.3);
}

.corner-ribbon:after {
  content: "Extra";
}

.spread {
 line-height: 3;
}

/* Columns */

.columnl {float:left}
.columnr {float:right}

.split-10 .columnl {width: 9%}
.split-10 .columnr {width: 89%}

.split-15 .columnl {width: 14%}
.split-15 .columnr {width: 84%}

.split-20 .columnl {width: 19%}
.split-20 .columnr {width: 79%}

.split-25 .columnl {width: 24%}
.split-25 .columnr {width: 74%}

.split-30 .columnl {width: 29%}
.split-30 .columnr {width: 69%}

.split-35 .columnl {width: 34%}
.split-35 .columnr {width: 64%}

.split-40 .columnl {width: 39%}
.split-40 .columnr {width: 59%}

.split-45 .columnl {width: 44%}
.split-45 .columnr {width: 54%}

.split-50 .columnl {width: 49%}
.split-50 .columnr {width: 49%}

.split-55 .columnl {width: 54%}
.split-55 .columnr {width: 44%}

.split-60 .columnl {width: 59%}
.split-60 .columnr {width: 39%}

.split-65 .columnl {width: 64%}
.split-65 .columnr {width: 34%}

.split-70 .columnl {width: 69%}
.split-70 .columnr {width: 29%}

.split-75 .columnl {width: 74%}
.split-75 .columnr {width: 24%}

.split-80 .columnl {width: 79%}
.split-80 .columnr {width: 19%}

.split-85 .columnl {width: 84%}
.split-85 .columnr {width: 14%}

.split-90 .columnl {width: 89%}
.split-10 .columnr {width: 9%}

.columnl h2:first-child,
.columnl h3:first-child,
.columnl h4:first-child,
.columnl pre:first-child,
.columnr h2:first-child,
.columnr h3:first-child,
.columnr h4:first-child,
.columnr pre:first-child{
  margin-top: 0;
}

.columnl ul:first-child,
.columnr ul:first-child,
.columnl ol:first-child,
.columnr ol:first-child{
  margin-top: 10px;
}

