/**
 * University of Chicago Theme for reveal.js
 * Based on UChicago brand colors: Maroon #800000
 */

/*********************************************
 * GLOBAL STYLES
 *********************************************/

:root {
    --r-background-color: #fff;
    --r-main-font: 'Avenir', 'Avenir Next', Helvetica, sans-serif;
    --r-main-font-size: 40px;
    --r-main-color: #222;
    --r-block-margin: 20px;
    --r-heading-margin: 0 0 20px 0;
    --r-heading-font: 'Avenir', 'Avenir Next', Helvetica, sans-serif;
    --r-heading-color: #800000;
    --r-heading-line-height: 1.2;
    --r-heading-letter-spacing: normal;
    --r-heading-text-transform: none;
    --r-heading-text-shadow: none;
    --r-heading-font-weight: 600;
    --r-heading1-text-shadow: none;
    --r-heading1-size: 2.5em;
    --r-heading2-size: 1.6em;
    --r-heading3-size: 1.3em;
    --r-heading4-size: 1em;
    --r-code-font: monospace;
    --r-link-color: #800000;
    --r-link-color-dark: #5a0000;
    --r-link-color-hover: #a50000;
    --r-selection-background-color: rgba(128, 0, 0, 0.5);
    --r-selection-color: #fff;
}

.reveal-viewport {
    background: #fff;
    background-color: var(--r-background-color);
}

.reveal {
    font-family: var(--r-main-font);
    font-size: var(--r-main-font-size);
    font-weight: normal;
    color: var(--r-main-color);
}

/*********************************************
 * TEXT AND LISTS - LEFT ALIGNED
 *********************************************/

.reveal p {
    margin: var(--r-block-margin) 0;
    line-height: 1.3;
    text-align: left;
}

.reveal ul,
.reveal ol {
    display: block;
    text-align: left;
    margin: 0 0 0 1em;
}

.reveal ul {
    list-style-type: disc;
}

.reveal ul ul {
    list-style-type: square;
}

.reveal ul ul ul {
    list-style-type: circle;
}

.reveal ol {
    list-style-type: decimal;
}

.reveal ol ol {
    list-style-type: lower-alpha;
}

.reveal ol ol ol {
    list-style-type: lower-roman;
}

.reveal li {
    margin: 0.2em 0;
}

.reveal blockquote {
    display: block;
    position: relative;
    width: 70%;
    margin: var(--r-block-margin) auto;
    padding: 5px;
    font-style: italic;
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0px 0px 2px rgba(0, 0, 0, 0.2);
    text-align: left;
}

.reveal table {
    margin: auto;
    border-collapse: collapse;
    border-spacing: 0;
}

.reveal table th,
.reveal table td {
    text-align: left;
    padding: 0.2em 0.5em;
    border-bottom: 1px solid;
}

.reveal table th {
    font-weight: bold;
}

.reveal table tbody tr:last-child th,
.reveal table tbody tr:last-child td {
    border-bottom: none;
}

/*********************************************
 * HEADERS
 *********************************************/

.reveal h1,
.reveal h2,
.reveal h3,
.reveal h4,
.reveal h5,
.reveal h6 {
    margin: var(--r-heading-margin);
    color: var(--r-heading-color);
    font-family: var(--r-heading-font);
    font-weight: var(--r-heading-font-weight);
    line-height: var(--r-heading-line-height);
    letter-spacing: var(--r-heading-letter-spacing);
    text-transform: var(--r-heading-text-transform);
    text-shadow: var(--r-heading-text-shadow);
    word-wrap: break-word;
}

.reveal h1 {
    font-size: var(--r-heading1-size);
}

.reveal h2 {
    font-size: var(--r-heading2-size);
}

.reveal h3 {
    font-size: var(--r-heading3-size);
}

.reveal h4 {
    font-size: var(--r-heading4-size);
}

/*********************************************
 * LINKS
 *********************************************/

.reveal a {
    color: var(--r-link-color);
    text-decoration: none;
    transition: color .15s ease;
}

.reveal a:hover {
    color: var(--r-link-color-hover);
    text-shadow: none;
    border: none;
}

/*********************************************
 * CUSTOM ELEMENTS
 *********************************************/

.reveal .maroon {
    color: #800000;
}

.reveal .gold {
    color: #FFA319;
}

.reveal .dark-gray {
    color: #767676;
}

.reveal .light-gray {
    color: #D6D6CE;
}

.reveal .citation {
    font-size: 0.6em;
    color: #767676;
    font-style: italic;
}

/*********************************************
 * SLIDE BACKGROUNDS
 *********************************************/

/* Title slide with maroon accent */
.reveal .slides section.title-slide {
    background: linear-gradient(135deg, #800000 0%, #a50000 100%);
    color: white;
}

.reveal .slides section.title-slide h1,
.reveal .slides section.title-slide h2,
.reveal .slides section.title-slide h3 {
    color: white;
}

/* Section divider slides */
.reveal .slides section.section-slide {
    background: #800000;
    color: white;
}

.reveal .slides section.section-slide h1,
.reveal .slides section.section-slide h2 {
    color: white;
}

/*********************************************
 * CODE BLOCKS
 *********************************************/

.reveal pre {
    display: block;
    position: relative;
    width: 90%;
    margin: var(--r-block-margin) auto;
    text-align: left;
    font-size: 0.55em;
    font-family: var(--r-code-font);
    line-height: 1.2em;
    word-wrap: break-word;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.15);
}

.reveal code {
    font-family: var(--r-code-font);
    text-transform: none;
    tab-size: 2;
}

.reveal pre code {
    display: block;
    padding: 5px;
    overflow: auto;
    max-height: 400px;
    word-wrap: normal;
}

/*********************************************
 * SLIDE NUMBER
 *********************************************/

.reveal .slide-number {
    color: #800000;
    background-color: rgba(255, 255, 255, 0.8);
}

/*********************************************
 * PROGRESS BAR
 *********************************************/

.reveal .progress {
    background: rgba(0, 0, 0, 0.2);
    color: #800000;
}

.reveal .progress span {
    background: #800000;
    transition: width 800ms cubic-bezier(0.26, 0.86, 0.44, 0.985);
}

/*********************************************
 * CONTROLS
 *********************************************/

.reveal .controls {
    color: #800000;
}

