html {
    height: 100%;
}

body {
    margin: 0;
    padding: 0;
    height: 100%;
    width: 40em;
    font-family: "Gill Sans", "Gill Sans MT", Calibri, sans-serif;
}

section.slide {
    border: 1px solid black;
    width: 32em;
    height: 24em;
    background: #ffffff;
    background: -moz-linear-gradient(top, #ffffff 0%, #f8f8f8 100%);
/*    background: #f4fafe;
    background: -moz-linear-gradient(top, #f4fafe 0%, #ccf0f0 100%);*/
    position: relative;
}

section.slide div.slide-number {
    position: absolute;
    bottom: 0;
    right: 0;
}

section.slide p, section.slide ul, section.slide ol, section.slide dl {
    margin-top: 0.5em;
    margin-bottom: 0.5em;
}

section.slide > object, section.slide > img {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

section.slide > table {
    margin-left: auto;
    margin-right: auto;
    border-collapse: collapse;
}

section.slide table.tight {
    border-spacing: 0;
}

section.slide table.tight td, section.slide table.tight th {
    padding: 0;
}

section.slide tr {
    vertical-align: top;
}

section.slide td {
    padding: 0.5em;
    border: 1px solid white;
}

section.slide td.slideshow-current, section.slide td.slideshow-before {
    border: 1px solid black;
}

section.slide > h2:first-child {
    display: block;
    background: #a3abb7 url('rag-logo.png') no-repeat left top;
    background-size: contain;
    border-bottom: 1px solid black;
    height: 2em;
    margin-top: 0;
    padding-left: 3em; /* space for logo */
    padding-top: 0.5em;
    line-height: 1.5em;
    text-align: center;
    color: #ffffff;
}

section.slide > h1 {
    display: block;
    background: #a3abb7;
    background-size: contain;
    border-bottom: 1px solid black;
    border-top: 1px solid black;
    height: 4em;
    margin: 0;
    margin-top: 2em;
    padding-top: 0.5em;
    text-align: center;
    font-size: 1.5em;
    color: #ffffff;
}

section.slide figure {
    margin: 0.5em;
}

section.slide figcaption {
    font-size: 75%;
    text-align: center;
}

body.slideshow {
    overflow: hidden;
}

section.slide.slideshow-current-slide {
    border-style: none;
    z-index: 101;
    position: fixed;
    top: 0px;
    left: 0px;
}

section.slide .slideshow-after {
    opacity: 0.25;
}

section.slide .step.slideshow-current {
    -moz-transition: opacity 500ms ease;
    -webkit-transition: opacity 500ms ease;
    transition: opacity 500ms ease;
}

#slideshow-backdrop {
    height: 100%;
    width: 100%;
    z-index: 100;
    position: fixed;
    top: 0px;
    left: 0px;
    background: #000000;
    display: none;
}

p,ul,ol,dl,h1,h3 {
    margin-left: 1em;
    margin-right: 1em;
}

li {
    margin-top: 0.5em;
    margin-bottom: 0.5em;
}

ul.tight li {
    margin-top: 0;
    margin-bottom: 0;
}

dt {
    margin-top: 0.5em;
    font-weight: bold;
}

em {
    font-weight: bold;
}

span.cite {
    font-size: 75%;
    color: #222222;
}

.underlay { position: absolute; }
.overlay { position: relative; z-index: 1; }
.overlay p { background: white; }
.overlay li { margin-right: auto; }
.overlay.slideshow-before { background: white; }
.overlay.slideshow-current { background: white; }
.overlay:not(.step) { background: white; }

@media print {
    section.slide {
	font-size: 50%;
    }
    .permalink, .view-slideshow {
	display: none;
    }
}