body {
    font-family:  'Roboto', 'Segoe UI', sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    font-weight: 300;
    line-height: 1.5;
    color: #354046;
    font-size: 11pt;
    word-wrap: break-word;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}


/* Remark ------------------------------------------------------------------- */

.remark-container {
    background: #eee;
}

.remark-slide-content {
    font-size: 1.4em;
}

.remark-slide-content h1 {
    font-family: Lato, sans-serif;
    font-weight: bold;
    font-size: 2em;
    margin: 0 0 .5em 0;
    color: #356aaf;
    letter-spacing: -0.02em;
}

.remark-slide-content h2 {
    font-family: Lato, sans-serif;
    font-weight: bold;
    font-size: 1.2em;
    margin: 0 0 .5em 0;
}

.remark-slide-content h3 {
    font-size: 1.0em;
    font-weight: normal;
    margin: 0 0 .5em 0;
}

.remark-slide-number {
    font-size: 0.5em;
    bottom: 2em;
}

.remark-slide-scaler {
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
}


/* Styles ------------------------------------------------------------------- */

.footnote:before {
    content: "";
    display: block;
    width: 3em;
    height: 1px;
    background: #ccc;
    margin-bottom: 0.5em;
}

a {
    color: #5b82b5;
    text-decoration: none;
    transition: color 0.15s ease;
}

a:hover {
    text-decoration: underline;
}

a:focus {
    outline: 2px solid #5b82b5;
    outline-offset: 2px;
}

.red {
    color: #d11a01;
}

.Q, .green {
    color: #009933;
}

.italic {
    font-style: italic;
}

.bold {
    font-weight: bold;
}

em {
    color: #0288d1;
    font-style: normal;
}

strong {
    color: #d11a01;
    font-style: normal;
    font-weight: 300;
}

.highlight {
    background-color: #ffff00;
}

.smaller, .smaller .katex {
    font-size: 0.9em;
}

.smaller2, .smaller2 .katex {
    font-size: 1.0em;
}

.katex {
    color: #356aaf;
    font-size: 18pt;
}

.black-slide .katex, .black-slide h1 {
    color: white;
}

.black-slide a, .black-slide .footnote a {
    color: #89c2ce;
}

.remark-code, .remark-inline-code {
    font-size: 0.9em;
    background: rgba(53, 106, 175, 0.06);
    padding: 0.15em 0.4em;
    border-radius: 3px;
}

ul > li, ol > li {
    margin: 0.6em 0;
}

ul > li > ul > li {
    font-size: 0.8em;
}

table {
    border-spacing: 0;
    border: none;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    font-size: .8em;
    margin: auto;
    padding: 0;
}

thead {
    border: 0;
    margin: 0;
}

th {
    background: #f5f7fa;
    border: 0;
    border-bottom: 2px solid #e2e2e2;
    font-weight: bold;
    margin: 0;
    padding: 7px 8px;
    text-align: center;
}

tbody {
    background: white;
    font-size: .8em;
    margin: 0;
}

tr {
    margin: 0;
    padding: 0;
}

tr:nth-child(odd) {
    background: #fafbfc;
}

td {
    margin: 0;
    padding: 5px 8px;
}

.caption {
    display: block;
    text-align: center;
    font-size: 0.8em;
    font-style: italic;
}

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

.stretch img {
    width: 100%;
    height: auto;
}

img {
    image-rendering: -webkit-optimize-contrast;
}

.avatars {
    position: absolute;
    right: 1em;
    top: 1em;
}

.avatars img {
    width: 2.5em;
    border-radius: 50%;
}

.footnote {
    position: absolute;
    bottom: 2em;
    font-size: 0.5em;
    opacity: 0.75;
    left: 2.5em;
    text-align: left;
}

.larger {
    font-size: 2.25em;
}

.larger .katex {
    font-size: 1.2em;
}

.footnote a {
    color: #0288d1;
}

.inactive {
    color: lightgray;
}

.question, .success, .alert, .quote {
    border-radius: 0 5px 5px 0;
    border: none;
    border-left: 4px solid;
    width: 95%;
    display: block;
    padding: 1em;
}

.question, .success {
    background-color: rgba(40, 167, 69, 0.08);
    border-left-color: rgb(40, 167, 69);
}

.alert {
    color: #721c24;
    background-color: rgba(220, 53, 69, 0.08);
    border-left-color: #dc3545;
}

.quote {
    font-style: italic;
    background-color: rgba(53, 106, 175, 0.06);
    border-left-color: #356aaf;
}

.quote .author {
    display: block;
    margin-top: 0.5em;
    text-align: right;
    font-style: normal;
    font-size: 0.8em;
}

.quote .author:before {
    content: "— ";
}

.prompt-box {
    background: #e0eef8;
    border-left: 3px solid #0095ff;
    border-radius: 4px;
    padding: 0.8em 1em;
    font-family: 'Source Code Pro', 'Menlo', monospace;
    font-size: 1em;
    color: #2a2a2a;
}

.top-right {
    position: absolute;
    top: 1em;
    right: 1em;
}

.top-right img {
    width: 4em;
    height: auto;
}


/* Placement ---------------------------------------------------------------- */

.pull-right {
    float: right;
    margin-left: 1em;
}

.width-5 * {
    width: 5%;
}

.width-10 * {
    width: 10%;
}

.width-15 * {
    width: 15%;
}

.width-20 * {
    width: 20%;
}

.width-25 * {
    width: 25%;
}

.width-30 * {
    width: 30%;
}

.width-35 * {
    width: 35%;
}

.width-40 * {
    width: 45%;
}

.width-45 * {
    width: 45%;
}

.width-48 * {
    width: 48%;
}

.width-49 * {
    width: 49%;
}

.width-50 * {
    width: 50%;
}

.width-55 * {
    width: 55%;
}

.width-60 * {
    width: 60%;
}

.width-65 * {
    width: 65%;
}

.width-70 * {
    width: 70%;
}

.width-75 * {
    width: 75%;
}

.width-80 * {
    width: 80%;
}

.width-85 * {
    width: 85%;
}

.width-90 * {
    width: 90%;
}

.width-93 * {
    width: 93.7%;
}

.width-95 * {
    width: 95%;
}

.width-100 * {
    width: 100%;
}

.width-105 * {
    width: 105%;
}

.width-110 * {
    width: 110%;
}

.width-115 * {
    width: 115%;
}

.width-120 * {
    width: 120%;
}

.width-125 * {
    width: 125%;
}

.width-130 * {
    width: 130%;
}

.width-135 * {
    width: 135%;
}

.width-140 * {
    width: 140%;
}

.width-145 * {
    width: 145%;
}

.width-150 * {
    width: 150%;
}

.width-155 * {
    width: 155%;
}

.width-160 * {
    width: 160%;
}

.width-165 * {
    width: 165%;
}

.width-170 * {
    width: 170%;
}

.width-175 * {
    width: 175%;
}

.width-180 * {
    width: 180%;
}

.width-185 * {
    width: 185%;
}

.width-190 * {
    width: 190%;
}

.width-195 * {
    width: 195%;
}

.width-200 * {
    width: 200%;
}


/* Specials ----------------------------------------------------------------- */

.title-slide:after {
    content: '';
    background: url("../assets/logo_ulg.png") no-repeat;
    background-size: 75% 75%;
    width: 150px;
    height: 73px;
    position: absolute;
    bottom: -0.5em;
    left: 0.5em;
    display: inline-block;
}

.title-slide, .section {
    vertical-align: middle;
}

.title-slide {
    border-top: 4px solid #356aaf;
}

.end-slide {
    background-color: #356aaf;
    color: white;
    vertical-align: middle;
}

.black-slide {
    background-color: black;
    color: white;
}

.red-slide {
    background-color: red;
    color: white;
}


/* Print -------------------------------------------------------------------- */

@media print {
    .remark-container {
        background: white;
    }

    .remark-slide-scaler {
        box-shadow: none;
    }

    .remark-slide {
        page-break-after: always;
        page-break-inside: avoid;
    }

    /* Restore vertical centering for middle-aligned slides, and print the
       backgrounds as on screen, even from a browser set not to */
    .remark-slide-content {
        display: table-cell;
        vertical-align: top;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .remark-slide-content.middle,
    .remark-slide-content.title-slide,
    .remark-slide-content.section,
    .remark-slide-content.end-slide {
        vertical-align: middle;
    }

    .remark-slide-content.bottom {
        vertical-align: bottom;
    }

    /* Prevent breaking inside key elements */
    img, pre, table, .katex-display {
        page-break-inside: avoid;
    }
}

/* Big captions at the bottom of full-screen image slides: keep them clear of the footnote */
.remark-slide-content.bottom .larger {
    display: inline-block;
    margin-bottom: 0.35em;
    text-shadow: 0 0 0.4em rgba(0, 0, 0, 0.9), 0 0 0.1em rgba(0, 0, 0, 0.9);
}

/* Rows of the prior / likelihood recipe (slide 15) */
.recipe {
    font-size: 0.85em;
}

.recipe .grid {
    padding: 0.15em 0;
}

/* Collaborator photos on the thanks slide */
.width-13 * {
    width: 13%;
}

/* Small icons above a table header */
.icons img {
    height: 2.2em;
    margin: 0 0.15em 0.3em;
}

/* Translucent caption box over a full-screen image */
.overlay-box {
    position: absolute;
    width: 45%;
    padding: 0.9em 1.1em;
    background: rgba(10, 20, 30, 0.6);
    backdrop-filter: blur(4px);
    border-radius: 6px;
    color: white;
    font-size: 0.85em;
    line-height: 1.4;
    text-align: left;
}

.overlay-box p {
    margin: 0;
}

.overlay-title {
    display: block;
    font-family: Roboto, sans-serif;
    font-weight: 900;
    font-size: 1.9em;
    line-height: 1.1;
    margin-bottom: 0.4em;
}

.overlay-bottom-left {
    left: 2.5em;
    bottom: 3.2em;
}

.overlay-top-left {
    left: 2.5em;
    top: 2em;
}

.overlay-bottom-right {
    right: 2.5em;
    bottom: 3.2em;
}

/* Intro examples: anchored from the top, so that the title stays put between the y and x slides */
.overlay-intro {
    left: 2.5em;
    top: 70%;
}

.overlay-intro-right {
    right: 2.5em;
    top: 70%;
}

.overlay-top-right {
    right: 2.5em;
    top: 2em;
}

/* Open challenges on the conclusions slide */
.challenge {
    display: block;
    width: 95%;
    margin-top: 1em;
    padding: 1em;
    border-left: 4px solid #356aaf;
    border-radius: 0 5px 5px 0;
    background-color: rgba(53, 106, 175, 0.07);
}

.challenge p {
    margin: 0;
}

.challenge ul {
    margin: 0;
    padding-left: 1.2em;
}

.challenge li {
    margin: 0.3em 0;
}

/* Figure spanning the full slide width, minus a small margin */
.bleed {
    display: block;
    margin: 0 -3.5em;
    text-align: center;
}

.bleed img {
    display: block;
    width: 100%;
    max-width: none;
}

.overlay-center {
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

/* A single large equation in an overlay box */
.overlay-equation {
    width: auto;
    padding: 0.2em 1.2em;
    font-size: 1.8em;
}

.overlay-equation .katex {
    color: white;
    font-size: 2.6em;
}

.overlay-equation .katex-display {
    margin: 0.3em 0;
}

/* Title slide over an animated background */
.overlay-title-slide {
    left: 2.5em;
    top: 50%;
    transform: translateY(-50%);
    width: 55%;
    padding: 1.2em 1.4em;
    font-size: 1em;
}

.overlay-title-slide .overlay-title {
    font-size: 1.9em;
    margin-bottom: 0.7em;
}

.title-author {
    display: flex;
    align-items: center;
    gap: 0.8em;
    margin-bottom: 0.9em;
}

.title-author img {
    width: 3.2em;
    height: 3.2em;
    border-radius: 50%;
    object-fit: cover;
}

.title-footer {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    line-height: 1.3;
}

.title-footer img {
    height: 2.4em;
}

/* Full-slide looping video background */
.bg-video video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.shadowed {
    position: relative;
    z-index: 1;
    text-shadow: 0 0 0.4em rgba(0, 0, 0, 0.9), 0 0 0.1em rgba(0, 0, 0, 0.9);
}

/* Generation / inference arrows around the recipe table (slide 15) */
.flow {
    display: block;
    position: relative;
    margin: 0 4% 1.2em;
    padding-bottom: 0.3em;
    text-align: center;
    font-size: 0.8em;
    color: #555;
    border-bottom: 3px solid #888;
}

.flow::after {
    content: "";
    position: absolute;
    bottom: -9.5px;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
}

.flow-right::after {
    right: -3px;
    border-left: 14px solid #888;
}

.flow-left::after {
    left: -3px;
    bottom: auto;
    top: -9.5px;
    border-right: 14px solid #888;
}

/* Inference: the label sits below the arrow */
.flow-left {
    margin-top: 1.4em;
    margin-bottom: 0;
    padding-bottom: 0;
    padding-top: 0.3em;
    border-bottom: none;
    border-top: 3px solid #888;
}
