
/*
Adapted from and inspired by Allison Hill's css in this workshop:
https://github.com/rstudio-education/arm-workshop-rsc2019
*/

/* Colors */

:root {
  --color-white:      #FFFFFF;
  --color-red:        #E74A2F;
  --color-orange:     #fa7b3c;
  --color-yellow:     #EFB73E;
  --color-green:      #38B44A;
  --color-dark-green: #2c8475;
  --color-blue:       #007bff;
  --color-dodgerblue: #1E90FF;
  --color-purple:     #772953;
  --color-black:      #1A1917;
  --color-gray-light: #EAE9EA;
  --color-gray:       #696969;
  --color-tan:        #d9d9d9;
}

/* Background glow color around main slide container */
.remark-slide-scaler {
  -moz-box-shadow: 0 0 0px #000;
  -webkit-box-shadow: 0 0 0px #000;
}
/*.remark-slide-scaler {
  -moz-box-shadow: 0 0 30px #000;
  -webkit-box-shadow: 0 0 30px #000;
}*/

.remark-slide-container {
  background-color: var(--color-gray); /* Background color of container behind slide */
}

.remark-slide-content {
  background-color: var(--color-gray-light); /* Background color of slide */
  padding-top: 20px;
  padding-left: 60px;
  padding-right: 60px;
  padding-bottom: 20px;
}

.title-slide {
  padding: 0;
}

li {
  margin-block-start: 0.5em;
  margin-block-end: 0.5em;
}

/* In line code */

/* Background color for highlighted code */
.remark-code-line-highlighted {
  background-color: rgb(206, 233, 255);  /*light blue*/
}

/* Color of inline code, i.e. `code` */
.remark-inline-code {
  color: var(--color-dark-green);
  background-color: transparent;
  border-radius: 5px; /* Rounded edges */
}
.inverse .remark-inline-code {
  color: var(--color-orange);
  background-color: transparent;
}

/* Code chunk colors */
.hljs-github .hljs {
  background: #fff;
  border-radius: 5px; /* Rounded edges */
  border: 1px solid #000;
}

/* Code chunk output */
.remark-code {
  display: block;
  overflow-x: auto;
  padding: .5em;
  color: #fff;
  background: var(--color-gray);
}

.inverse {
  background-color: var(--color-black);
  color: var(--color-white);
  text-shadow: 0 0 0;
}

/* https://stackoverflow.com/questions/50919104/horizontally-scrollable-output-on-xaringan-slides */

pre {
  background-color: #000;
  border-radius: 5px; /* Rounded edges */
  max-width: 100%;
  overflow-x: auto;
  margin: 0.5em 0px;
  white-space: pre-wrap; /* Wraps R output, https://github.com/yihui/xaringan/issues/225 */
}

/* Links */

a, a:visited {
  color: var(--color-blue);
  border-bottom: none;
}

a:hover, a:focus {
  color: var(--color-purple);
  background: rgba(97, 172, 240, .5);
  border-bottom: none;
}

a > code {
  color: var(--color-blue);
  text-decoration: none;
}

.inverse a, .inverse a:visited {
  color: var(--color-dodgerblue );
  text-decoration: underline;
}

.inverse a:hover, a:focus {
  color: var(--color-purple);
}

/* Footer */

div.footer-large {
  position: absolute;
  bottom: 150px;
  right: 50px;
  height: 100px;
  width: 100%;
  margin-bottom: 0px;
}

div.footer-small {
  background-color: var(--color-black);
  position: absolute;
  bottom: 0px;
  left: 0px;
  height: 20px;
  width: 100%;
}

div.footer-small span {
  font-size: 10pt;
  color: var(--color-white);
  position: absolute;
  left: 15px;
  bottom: 2px;
}

.remark-slide-number {
  bottom: 18px;
  opacity: 0.5;
  position: absolute;
  right: 20px;
}

/* Images */

/* from the hygge css! */

.polaroid img {
  display: block;
  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;
}

/* Add image border by default */
img {
  display: block;
  border: 1px solid #000;
}

/* No border on inverse layout */
.inverse img {
  display: block;
  border: 0px solid #000;
}

.noborder img {
  display: block;
  border: 0px solid #000;
}

.borderthick img {
  display: block;
  border: 5px solid #000;
}

.whiteborder img {
  display: block;
  border: 1px solid #fff;
}

.whiteborderthick img {
  display: block;
  border: 5px solid #fff;
}

.circle img {
  border-radius:50%;
}

.circleborder img {
  display: block;
  border: 3px solid #000;
  border-radius:50%;
}

.thumbnail img {
  width: 15%;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* split rows*/

.wrapper {
  display: grid;
  width: 60vw;
  height: 90vh;
  place-items: center;
  place-content: center;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(4, 1fr);
}

.top-left {
  grid-row: 1 / 2;
  grid-column: 1 / 2;
}

.top-right {
  grid-row: 1 / 2;
  grid-column: 3 / 4;
}

.bottom-left {
  grid-row: 3 / 4;
  grid-column: 1 / 2;
}

.bottom-right {
  grid-row: 3 / 4;
  grid-column: 3 / 4;
}

/* 3  columns */
.cols3 {
  float: left;
  width: 32%;
  margin-left: 5px;
  margin-right: 5px;
}

/* 2 columns */
.cols2 {
  float: left;
  width: 49%;
}
.leftcol {
  float: left;
  width: 49%;
}
.rightcol {
  float: right;
  width: 49%;
}
.leftcol55 {
  float: left;
  width: 54%;
}
.rightcol45 {
  float: right;
  width: 44%;
}
.leftcol45 {
  float: left;
  width: 44%;
}
.rightcol55 {
  float: right;
  width: 54%;
}
.leftcol60 {
  float: left;
  width: 59%;
}
.rightcol40 {
  float: right;
  width: 39%;
}
.leftcol40 {
  float: left;
  width: 39%;
}
.rightcol60 {
  float: right;
  width: 59%;
}
.leftcol65 {
  float: left;
  width: 64%;
}
.rightcol35 {
  float: right;
  width: 34%;
}
.leftcol35 {
  float: left;
  width: 34%;
}
.rightcol65 {
  float: right;
  width: 64%;
}
.leftcol70 {
  float: left;
  width: 69%;
}
.rightcol30 {
  float: right;
  width: 29%;
}
.leftcol30 {
  float: left;
  width: 29%;
}
.rightcol70 {
  float: right;
  width: 69%;
}
.leftcol75 {
  float: left;
  width: 74%;
}
.rightcol25 {
  float: right;
  width: 25%;
}
.leftcol25 {
  float: left;
  width: 25%;
}
.rightcol75 {
  float: right;
  width: 74%;
}
.leftcol80 {
  float: left;
  width: 79%;
}
.rightcol20 {
  float: right;
  width: 19%;
}
.leftcol20 {
  float: left;
  width: 19%;
}
.rightcol80 {
  float: right;
  width: 79%;
}

/* Clear floats after the columns */
.row:after {
  content: "";
  display: table;
  clear: both;
}

/* Table Row Highlighting */

.remark-slide table {
  border-collapse: collapse;
}

.remark-slide table thead th {
  border-bottom: 1px solid #666;
}

.remark-slide .inverse table, .remark-slide .inverse table thead th {
  border-top: 3px solid #666;
  border-bottom: 3px solid #666;
}

.remark-slide thead, .remark-slide tfoot, .remark-slide tr:nth-child(even) {
  background: var(--color-tan);
}

.remark-slide .inverse thead, .remark-slide .inverse tfoot, .remark-slide .inverse tr:nth-child(even) {
  background: transparent;
}

.table-blank tr:nth-child(even) {
  background: transparent;
}

/* turns off slide numbers for title page: https://github.com/gnab/remark/issues/298 */
.title-slide .remark-slide-number {
  display: none;
}

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