/*
  HTML 'Powerpoint' core styles
  © 2014 Derek Bridge
  Based on: 
    html5slides: http://code.google.com/p/html5slides/
    Shower: https://github.com/pepelsbey/shower/
	S5: http://meyerweb.com/eric/tools/s5/
*/

html, body {
    padding: 0;
    margin: 0;
}

body {
    background: rgb(215, 215, 215);
}

.slide {
    display: none;
    background-color: white;
    box-sizing: border-box;
    width: 920px;
    height: 600px;
    margin: 20px auto;
    padding: 40px 60px;
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, .3);
    box-shadow: 0 2px 6px rgba(0, 0, 0, .1);
	overflow: auto;
}

.slide.current {
    display: block; 
}

.slide .to-reveal {
    opacity: 0;
}

#controls {
    position: fixed;
    bottom: 0%;
    width: 100%;
    text-align: center;
    opacity: 0;
}

#controls button, #controls select {
    padding: 0;
    margin: 0;
	vertical-align: bottom;
}

#controls select{
	font-size: 48px;
}

#controls:hover {
    opacity: 0.8;
}

/* Styles for slides */

.slide {
    font-family: 'Open Sans', Arial, sans-serif;

    color: rgb(102, 102, 102);
    text-shadow: 0 1px 1px rgba(0, 0, 0, .1);

    font-size: 30px;
    line-height: 36px;

    letter-spacing: -1px;
}

b {
    font-weight: 600;
    color: rgb(51, 51, 51);
}

.blue {
    color: rgb(0, 102, 204);
}

.yellow {
    color: rgb(255, 211, 25);
}

.green {
    color: rgb(0, 138, 53);
}

.red {
    color: rgb(255, 0, 0);
}

.black {
    color: black;
}

.white {
    color: white;
}

a {
    color: rgb(0, 102, 204);
}

a:visited {
    color: rgba(0, 102, 204, .75);
}

a:hover {
    color: black;
}

p {
    margin: 0;
    padding: 0;

    margin-top: 20px;
}

p:first-child {
    margin-top: 0;
}

.slide > h1 {
    font-size: 45px;
    line-height: 45px;

    padding: 0;
    margin: 0;
    margin-bottom: 20px;
  
    font-weight: 600;

    letter-spacing: -3px;

    color: rgb(51, 51, 51);
}

.slide > h2 {
    font-size: 30px;
    line-height: 30px;

    padding: 0;
    margin: 0;
    margin-bottom: 15px;

    font-weight: 600;

    letter-spacing: -2px;

    color: rgb(51, 51, 51);
}

.slide > h3, .slide > h4, .slide > h5, .slide > h6 {
    font-size: 20px;
    line-height: 20px;

    padding: 0;
    margin: 0;
    margin-bottom: 10px;

    font-weight: 600;

    letter-spacing: -1px;

    color: rgb(51, 51, 51);
}

ul, ol {
    margin: 0;
    padding: 0;

    margin-top: 40px;

    margin-left: .75em;
}

ul ul, ol ol, ul ol, ol, ul {
    margin-top: .5em;
}

li {
    padding: 0;
    margin: 0;

    margin-left: 0.75em;
    margin-bottom: .5em;
}

pre {
    font-family: 'Droid Sans Mono', 'Courier New', monospace;

    font-size: 20px;
    line-height: 28px;
    padding: 5px 10px;
  
    letter-spacing: -1px;

    margin-top: 40px;
    margin-bottom: 40px;

    color: black;
    background: rgb(200, 200, 200);
    border: 1px solid rgb(224, 224, 224);
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, .1);
}

code {
    font-size: 95%;
    font-family: 'Droid Sans Mono', 'Courier New', monospace;

    color: black;
}

iframe {
    width: 100%;

    height: 540px;

    background: white;
    border: 1px solid rgb(192, 192, 192);
    margin: -1px;
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, .1);
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 40px;
}

th {
    font-weight: 600;
    text-align: left;
}

td, th {
    border: 1px solid rgb(224, 224, 224);
    padding: 5px 10px;
    vertical-align: top;
}

.source { /* Use this class on a div that cites the source of an img */
    display: block;
    text-align: right;
    font-size: 0.2em
}

q { /* A large quotation - pretty much the only thing on a slide */
    display: block;
    font-size: 60px;
    line-height: 72px;
  
    margin-left: 20px;
  
    margin-top: 100px;
    margin-right: 150px;    
}

q::before {
    content: '“';
  
    position: absolute;
    display: inline-block;
    margin-left: -2.1em;
    width: 2em;
    text-align: right;
  
    font-size: 90px;
    color: rgb(192, 192, 192);
}

q::after {
    content: '”';

    position: absolute;  
    margin-left: .1em;

    font-size: 90px;
    color: rgb(192, 192, 192);  
}

div.author { /* Use this class on a div to give the author of a quotation */
    text-align: right;  
    font-size: 40px;
  
    margin-top: 20px;
    margin-right: 150px;    
}

div.author::before { 
    content: '—';
}

/* The fill class layout for iframes and images that must fill the width of the slide */

.slide.fill img {

   height: 100%;
   display: block;
    max-height: 440px;
    max-width: 760px;
    
    border: 0;
    margin: 0 auto;
    padding: 0;
}

.slide.fillwidth iframe, .slide.fillwidth img {  
    display: block;
    width: 100%;
    max-height: 440px;
    max-width: 760px;
    border: 0;
    margin: 0 auto;
    padding: 0;
}

.slide.fillheight iframe, .slide.fillheight img {  
    display: block;
    height: 100%;
    max-height: 440px;
    max-width: 760px;
    border: 0;
    margin: 0 auto;
    padding: 0;
}


/* The centered class layout for images */

img.centered {
    margin: 0 auto;
    display: block;
}

/* Size variants */

.slide.smaller p,
.slide.smaller ul,
.slide.smaller ol {
  font-size: 20px;
  line-height: 24px;
  letter-spacing: 0;
}
.slide.smaller table {
  font-size: 20px;
  line-height: 24px;
  letter-spacing: 0;
}
.slide.smaller pre {
  font-size: 15px;
  line-height: 20px;
  letter-spacing: 0;
}
.slide.smaller q {
  font-size: 40px;
  line-height: 48px;
}
.slide.smaller q::before,
.slide.smaller q::after {
  font-size: 60px;
}

/* Highlighting lonly (lecture only) material */
.lonly {
	background-color: rgb(250, 160, 122);
}

/* Pretty print */

.prettyprint .str, /* string content */
.prettyprint .atv { /* a markup attribute value */
    color: rgb(0, 138, 53); 
}  

.prettyprint .kwd, /* a keyword */
.prettyprint .tag { /* a markup tag name */
    color: rgb(0, 102, 204);
}

.prettyprint .com { /* a comment */
    color: rgb(127, 127, 127); 
    font-style: italic; 
}  

.prettyprint .lit { /* a literal value */
    color: rgb(127, 0, 0);
}  

.prettyprint .pun, /* punctuation, lisp open bracket, lisp close bracket */
.prettyprint .opn, 
.prettyprint .clo { 
    color: rgb(127, 127, 127); 
}

.prettyprint .typ, /* a type name */
.prettyprint .atn, /* a markup attribute name */ 
.prettyprint .dec, 
.prettyprint .var { /* a declaration; a variable name */
    color: rgb(127, 0, 127);
}  

