html, .view body { background-color: black; }
body, .view section { border-radius: 0; }
section, .view head > title {
  font-family: 'DejaVu Sans Condensed',
    'Liberation Sans Narrow', 'Nimbus Sans L', 'Helvetica Condensed', 'Arial Narrow', sans-serif
}

/* We want 16:9 slides, so we need to override the default, which are
 * set _after_ we're loaded. But we can work around that using the
 * the .loaded selector
 */

body.loaded {
  width: 1600px; height: 900px;
  margin-left: -800px; margin-top: -450px;
}

.view section:after {
  bottom: -48px;
  right: 0;
  text-align: right;
  font-size: 36px;
}

.view body.loaded section {
  width: 1600px; height: 900px;
  margin: -250px -403px;
}

/* default sizing: all slides have a default font size of 48px */

section {
  font-size: 48px;
  padding: 18px 18px;
  padding-left: calc(64px + 18px);
}

p, ul, dl, figcaption {
  margin: 36px;
  font-size: 100%;
}

dl > dt { font-weight: bold; color: navy; margin-top: 36px; }
dl > dd { margin-left: 36px; }

h1, h2 {
  margin-top: 0;
  margin-bottom: 36px;
  padding-top: 8px;
  padding-bottom: 8px;
}

h1 { font-size: 80px; line-height: 96px }

h2 { font-size: 64px; line-height: 80px }

.slide h1, .slide h2 {
  background-color: navy;
  color: white;
}

figure {
  margin-top: -18px;
  background: transparent;
  width: 100%;
  max-width: calc(1600px - 18px * 2 - 64px);
  height: calc(900px - 18px * 3 - 96px);
  text-align: center;
  display: grid;
}

figure > * {
  position: static;
}

figcaption {
  margin: 18px;
}

#sidelogo {
  margin: 0;
  position: fixed;
  display: block;
  left: 0; top: 0; bottom: 0;
  background: navy;
  color: white;
  writing-mode: sideways-lr;
  font-size: 24px;
  line-height: 64px;
  width: 64px;
  text-orientation: sideways;
  font-weight: bold;
  font-family: 'DejaVu Sans', 'Liberation Sans', 'Nimbus Sans', helvetica, arial, serif;
  text-align: right;
}

#sidelogo span {
  display: inline-block;
  margin: 1em 0;
}
#sidelogo span+span {
  margin-bottom: 0;
}

#sidelogo .ingv-acro {
  color: gold;
}

#sidelogo img {
  margin: calc( (96px - 64px) / 2 );
  width: 64px;
}
#sidelogo .logo {
  position: fixed;
  display: block;
  background: white;
  bottom: calc(96px - 64px);
  left: 0;
  width: 96px;
  height: 96px;
  margin: 0;
  clip-path: circle( calc(96px / 2) );
}

@supports not (writing-mode: sideways-lr) {
  #sidelogo {
    writing-mode: vertical-lr;
    text-align: right;
    transform: rotate(180deg);
  }
  #sidelogo span+span {
    margin-bottom: 1em;
    margin-top: 0;
  }
  #sidelogo img {
    transform: rotate(180deg);
    margin-left: 10px;
  }
  #sidelogo .logo {
    top: calc(96px - 64px);
    right: 0;
    left: auto;
    bottom: auto;
  }
}

#progress-bar {
  background-color: navy;
}


/* title slide */


section.title {
  padding: 0;
  padding-left: 64px;
}

section.title .title {
  font-size: 80px;
  margin: 36px;
}

section.title .subtitle {
  font-size: 64px;
  margin: 36px;
}

section.title::after {
  display: block;
  position: absolute;
  top: 64px;
  left: calc(64px + 64px);
  right: 64px;
  bottom: calc(128px + 64px);
  opacity: .1;
  background: center no-repeat url("gpusph_logo_full.svg");
  content: "";
}

section.title footer {
  display: flex;
  justify-content: space-between;
  flex-grow: 1;
  left: 64px; right: 0;
  width: auto;
}

section.title .author {
  display: flex;
  justify-content: space-between;
  flex-grow: 1;
}

section.title .author span {
  font-size: 28px;
  width: 120px;
  text-align: center;
  position: relative;
}
section.title .author .affiliation {
  position: absolute;
  top: calc(100% + 1ex);
  left: 0;
  width: 100%;
  font-size: 18px;
  text-align: center;
  color: black;
}

section.title .author span:first-child {
  color: navy;
}

section.title .date {
  font-size: 36px;
  width: calc(36px * 7);
  text-align: right;
}

.title-slide h1 {
  margin-top: 320px;
}

/* common */

div.sourceCode {
  margin: 36px;
  font-size: 24px;
}

section[aria-selected] a.sourceLine {
  pointer-events: auto;
  width: 100%;
}

.sourceCode a.sourceLine:hover {
  background-color: lightgreen;
}

.smallnote, .smallnote p,
.boxed, .boxed p {
  font-size: 36px;
  margin: 1ex;
  position: relative;
}

span.smallnote { margin: 0 }

.smallnote.padded,
.smallnote.disclaimer {
  margin-left: 200px;
}

.disclaimer:before {
  color: red;
  content: 'Disclaimer: ';
  position: absolute;
  left: -200px;
  width: 200px;
  top: 0;
  text-align: right;
}

.boxed math {
  font-size: 36px;
}

.boxed h2 {
  background-color: transparent;
  font-size: 48px;
  color: navy;
}

.boxed .smallnote, .boxed .smallnote p
{
  font-size: 24px;
}

em {
  color: navy;
}

table {
  width: 100%;
  margin: 24px auto;
  caption-side: bottom;
  border-collapse: collapse;
}

table caption:before {
  content: "Table ";
  font-weight: bold;
  color: navy;
}
table caption {
  padding-top: 1ex;
}

table td {
  padding: .5ex 1ex;
}

#laminartable th {
  text-align: right;
}

#rheologytable {
  font-size: 36px;
}

#rheologytable tr + tr > td,
#rheologytable tr + tr > th
{
  border-bottom: 1px solid lightgray;
}

#rheologytable th:first-child {
  border-right: 1px solid lightgray;
}

td.empty {
  background-color: lightgray;
  border: 1px solid lightgray;
  padding: 0;
  margin: 0;
}

/* special */

#gpusph ul {
  display: flex;
  justify-content: space-between;
}

#gpusph li {
  flex-basis: 400px;
  flex-grow: 1;
  display: block;
}

#gpusph li dl {
  margin-top: 0;
}
#gpusph li dt:first-child {
  margin-top: 0;
}

#gpusph li dt:first-child + dd {
  min-height: 180px;
}


#gpusph li dt:not(:first-child){
  font-size: 80%;
}

#examples figure,
#credits div {
  grid-template-columns: 54% 46%;
  grid-template-rows: 50% 50%;
}
#credits div {
  height: 100%;
  font-size: 24px;
}

#sfinae p, #sfinae ul {
  font-size: 36px;
}

#sfinae div.sourceCode {
  font-size: 36px;
}

#simulation-framework > ul,
#strategy > ul
{
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

#simulation-framework > ul > li,
#strategy > ul > li
{
  flex-grow: 1;
  font-weight: bold;
  color: navy;
  margin: 16px;
  display: block;
}

#simulation-framework > ul > li
{
  flex-basis: 250px;
  min-width: 250px;
  font-size: 26px;
  margin-top: 0;
}

#simulation-framework > ul > li > ul,
#strategy > ul > li > ul
{
  font-weight: normal;
  color: black;
  font-size: 66%;
  margin: 4px 8px;
}

#strategy > ul > li > ul
{
  margin: auto 1em;
  list-style-type: square;
}

#simulation-framework > ul > li > ul > li
{
  display: block;
}

#simulation-framework .boxed {
  position: absolute;
  width: 1040px;
  height: 420px;
  bottom: 16px;
  right: 16px;
}

/* A hack to detect Chrome, whose grid autosizing sucks */
@supports not (writing-mode: sideways-lr) {
  #indirection figure {
    grid-template-rows: 80% 20%;
  }
}

#what-we-want-rheology li {
  font-size: 36px;
}

#cb5-8, #cb5-13, #cb8-15
{
  background: lightyellow;
}

#split-neighbors2 figure {
  grid-template-columns: repeat(2, 33%) 34%;
  grid-template-rows: 56% 44%;
  align-items: start;
  justify-items: start;
}

#split-neighbors2 #fig-splitneibs {
  grid-row: span 2;
}

#split-neighbors2 figcaption {
  font-size: 36px;
  grid-column: span 2;
  align-self: end;
}

#split-neighbors2 figcaption th
{
  text-align: right;
  padding-right: 1ex;
}
#split-neighbors2 figcaption td
{
  text-align: left;
  padding-left: .2ex;
  padding-right: .2ex;
}

#thanks::before {
  display: block;
  top: 160px;
  font-size: 24px;
  background-color: white;
  color: lightgray;
  white-space: pre;
  content: "«So, what did you like best in my presentation?»\A«That it's finally over.»"
}

#objectives img {
  height: 400px;
  margin: 0 auto;
  margin-top: -16px;
  z-index: -1;
  display: block;
  opacity: 0.5;
}
