html {
    background: #555;
}

body {
    margin: 1%;
    position: relative;
    width: 98%;
    background: white;
    border-radius: 2px;
    overflow: hidden;
    font-size: 2.5vw;
    line-height: 1.25em;
}

body:before {
    content: "";
    display: block;
    padding-top: 57%;
}

#slideshow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: auto;
    overflow-x: hidden;
}

.slide {
    background: white;
    background: -moz-linear-gradient(left, rgba(125,185,232,1) 0%, rgba(255,255,255,1) 3em); /* FF3.6+ */
    box-sizing: border-box;
    -moz-box-sizing: border-box;

    display: block;
    width: 100%;
    height: 100%;
    border-bottom: 1px solid #888;
    border-top: 1px solid #ccc;
    padding: 0 2%;
    overflow: hidden;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
}

.title {
    z-index: 1;
}

.slide:target {
    z-index: 2;
}

.title h1, .title h2 {
    text-align: center;
}

/* --------------------- */

html {
    font-family: Arial,sans-serif;
    color: #222;
}

h1, h2, h3 {
    font-family: Georgia,Times,serif;
}

.title h1 {
    margin-top: 15vw;
    color: #800;
}

h2 {
    font-size: 125%;
    color: #395792;
    border-bottom: 1px dotted #555;
    margin: 0.25em;
}

h2 a {
    color: inherit;
    text-decoration: none;
}

h2 a:hover {
    color: navy;
}

#date, #author {
    border-bottom: none;
}

#author img {
    vertical-align: middle;
    width: 15vw;
    height: auto;
}

.diagram {
    width: 38vw;
    height: auto;
    vertical-align: middle;
}

img {
    height: auto;
    width: auto;
    max-height: 70vh;
    max-width: 75vw;
    vertical-align: middle;
}

.float-left {
    float: left;
    margin-right: 1ex;
    max-width: 60vw;
}

.figure {
    text-align: center;
}

.center {
    text-align: center;
}

#foot-nav {
    display: table;
    z-index: 3;
    position: absolute;
    bottom: 0;
    right: 0;
    color: #888;
    font-size: 75%;
    margin: 1ex;
}

.slide-link {
    display: table-cell;
    padding: 0.25em;
    width: 1.5em;
    box-shadow: inset 0 -2px 3px #555;
    border-radius: 0.25em;
    color: #ccc;
    font-weight: bold;
    text-decoration: none;
    text-align: center;
}

.slide-message {
    display: table-cell;
    padding-right: 1ex;
}

var {
    font-family: monospace;
    font-style: normal;
    font-size: 90%;
    font-weight: bold;
}

table {
    margin: 0 auto;
}

td {
    vertical-align: top;
}