/*
    The mechanics of this is made on top of the example
    in the following, with great respect.
    https://www.sitepoint.com/make-a-simple-javascript-slideshow-without-jquery/?utm_content=buffer33876&utm_medium=social&utm_source=twitter.com&utm_campaign=buffer
*/

/*
essential styles:
these make the slideshow work
*/

#slides {
    height: 100%;           /* nml */
    list-style-type: none;
    margin: 0;
    padding: 0;
    position: relative;
    overflow: hidden;       /* nml */
}

.slide {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    z-index: 1;

    -webkit-transition: opacity 1s;
    -moz-transition: opacity 1s;
    -o-transition: opacity 1s;
    transition: opacity 1s;
}

.print {
    position: relative;
}

#showing {
    opacity: 1;
    z-index: 2;
}
                            /* nml */
.controls {
    float: right;
    position: absolute;
    bottom: 1%;
    right: 1%;
    margin: 0;
    text-align: right;
    width: 40%;
    z-index: 3;
}
#pcounter {
    background: transparent;
    color: yellow;
    float: left;
    position: absolute;
    bottom: .2em;
    left: .2em;
    margin: .5em;
    width: 5%;
    z-index: 3;
}
/*
non-essential styles:
just for appearance; change whatever you want
*/
                            /* nml */
body, html {
    background-color: #222222;
    background-image: url(./logo.svg);
    background-repeat: no-repeat;
    background-position: 99% 1%;
    background-size: 79px 30px;
    font-family: 'DejaVu Sans', sans-serif;
    height: 100%;           /* activates height:100% in #slides */
    margin: 0;
    padding: 0;
}

.slide {
    color: #eeeeee;
    font-size: 1.6em;
    line-height: 1.8em;
    padding: 0 3% 0 10%;
}
.frontmatter, .separator {
    font-family: 'inconsolata', 'Liberation Mono', sans-serif;
    padding: 0 0 0 20%;
}
.frontmatter h1, .separator h1 {
    font-size: 2.6em;
}
.frontmatter h2 {
    font-size: 1.4em;
    margin-top: 1em;
}
.frontmatter h3 {
    font-size: 1.2em;
    margin-top: 1em;
}

.slide > h1 {
    font-family: 'inconsolata', 'Liberation Mono', sans-serif;
    font-size: 2.6em;
    margin: 0.1em 0 0 0;
    outline: 0px solid green;
    position: absolute;
    top: 0;
}

section {
    outline: 0px solid yellow;
    position: absolute;
    top: 55%;
    left: 10%;
    transform: translate(0, -50%);
    margin: 0;
    width: 70%;
}

object {
    margin: 0;
    padding: 0;
}
pre, code, kbd {
    font-family: inconsolata;
}
kbd {
    color: yellow;
    font-style: oblique;
    font-weight: 900;
}

pre, p , ol, .slide ul, dl {
    margin: 0 0 1em 0;
}
blockquote {
    font-style: oblique;
    margin: 0 0 1em 3em
}
blockquote pre {
    margin: 0 0 1em 3em;
}
pre:last-child, p:last-child, ol:last-child, .slide ul:last-child, dl:last-child  {
    margin-bottom: 0;
}
.slide ul li, ol li, dl dt {
    outline: 0px solid yellow;
    margin-left: 1.2em;
}
dl dt {
    font-weight: 900;
}
dl dd {
    margin-left: 2.4em;
}

pre.big {
    max-height: 400px;
    overflow-y: auto;
    overflow-x: hidden;
}
table, th, td {
    border: 1px solid yellow;
    font-size: .8em;
}
th, td {
	padding: .2em;
}
a {
    color: #0ff;
}


.rotr{
    -ms-transform: rotate(90deg); /* IE 9 */
    -webkit-transform: rotate(90deg); /* Chrome, Safari, Opera */
    transform: rotate(90deg);
}
.spanem {
    color: yellow;
    font-style: oblique;
    font-weight: 900;
}
.backright {
    float: right;
    margin: 0;
    padding: 1px;
    width: 40%;
}
.frontleft {
    float: left;
    width: 55%;
}
.frontmatter {
    padding: 0 0 0 8em;
}
.separator {
    padding: 0 0 0 8em;
}
.email:after {
    content: 'nmla''\03b1''iba''\a4f8''dk';
}

@media print {
    body {
        font-family: sans-serif;
        height: auto;
    }
    li {
        border: 2px solid black;
    }
    li a {
        color: blue;
    }
    li.page-break {
        margin: 10em 6em;
        page-break-after: always;
    }
    li h1 {
        font-family: serif;
        font-size: 2.4em;
    }
    li p, li ul li {
        font-size: 1.2em;
    }
    .controls {
        display:none;
    }
    .spanem {
        color: #008000;
    }
}
sup {
    vertical-align: super;
    font-size: smaller;
}
sub {
    vertical-align: sub;
    font-size: smaller;
}
