:root {
    /* Configurable variables: https://github.com/hakimel/reveal.js/blob/master/css/theme/template/exposer.scss */
    /* --r-main-font: Helvetica; */
    --primary-color: #4078f2;
    --selection-color: #296bf99c;
    --r-main-font-size: 33px;
    --r-link-color: var(--primary-color);
    --r-link-color-hover: #1e366c;
}

#title-slide::after {
    content: "";
    background-image: url('images/qr.png');
    background-size: contain;
    position: absolute;
    display: block;
    top: 8em;
    right: 0em;
    width: 10em;
    height: 10em;
}

.reveal {
    font-weight: 300;
    color: #444;
}

.reveal .slides {
    text-align:left;
}

.reveal pre {
    box-shadow: none;
    line-height: 1.5;
}

.reveal small,
.reveal small * {
    vertical-align: inherit;
}

.reveal pre {
    font-size: 1em;
    width: auto;
}

.reveal ul ul {
    margin: 0;
}

pre code.hljs {
    border-radius: 6px;
}

code {
    background-color: #fafafa;
    font-size: 0.8em;
}

:not(pre) code {
    background-color: #fafafa;
    display: inline-block;
    padding: 0.1em 0.3em;
    border-radius: 6px;
}

.katex {
    font-size: 1em;
}

.reveal h1 {
    margin-bottom: 0.5em;
}

.reveal h1::after {
    content: "";
    display: block;
    width: 3em;
    height: 0.3em;
    background-color: var(--primary-color);
}


.reveal h2 {
    margin-bottom: 1em;
}

.reveal h2::after {
    content: "";
    display: block;
    width: 2em;
    height: 0.2em;
    background-color: var(--primary-color);
}

.reveal h3 {
    margin-bottom: 1em;
}

.reveal h3::after {
    content: "";
    display: block;
    width: 1.5em;
    height: 0.15em;
    background-color: var(--primary-color);
}

.reveal ul, .reveal ol {
    display: block;
    padding-left: 1.5em;
}

.reveal ul, .reveal ol, .reveal p {
    margin: 1em 0em;
}

.reveal .slides section .fragment {
    opacity: 0.2;
    visibility: visible;
}

.reveal .slides section .fragment.visible {
    opacity: 1;
}

.reveal ::selection {
    background-color: var(--selection-color);
}

#TOC ul {
    columns: 2;
}

div.column {
    flex: 1;
}

div.column *:first-child {
    margin-top: 0;
}

#title-slide {
    display: flex;
    justify-content: center;
    align-items: center;
}

.reveal hr {
    border: none;
    border-top: 1px solid #ddd;
    margin: 1em 0;
}

.reveal img {
    margin: 0;
}

.reveal figcaption {
    font-size: 0.4em;
    margin-top: -0.4em;
}

.reveal .slide-number {
    font-size: 3vh;
    padding: 0.5vh 1vh;
    right: 1.5vh;
    bottom: 1.5vh;
}
