/*! HTML5 Boilerplate v5.0.0 | MIT License | http://h5bp.com/ */

/*
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

   html {
    color: #222;
    font-size: 20px;
    line-height: 1.618;
    font-family: 'Roboto', sans-serif;
    font-weight: 300;
}

h1, h2, h3, h4, .lead{
 font-weight: 300;   
 font-family: 'Vollkorn', serif;
}

h2{
    font-size:1em;
    transition:all 0.2s ease-out;
}

/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * These selection rule sets have to be separate.
 * Customize the background color to match your design.
 */

 ::-moz-selection {
    background: #b3d4fc;
    text-shadow: none;
}

::selection {
    background: #b3d4fc;
    text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

 hr {
    display: block;
    height: 1px;
    border: 0;
    border-top: 1px solid #ccc;
    margin: 1em 0;
    padding: 0;
}

/*
 * Remove the gap between audio, canvas, iframes,
 * images, videos and the bottom of their containers:
 * https://github.com/h5bp/html5-boilerplate/issues/440
 */

 audio,
 canvas,
 iframe,
 img,
 svg,
 video {
    vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

 fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

 textarea {
    resize: vertical;
}

/* ==========================================================================
   Browser Upgrade Prompt
   ========================================================================== */

   .browserupgrade {
    margin: 0.2em 0;
    background: #ccc;
    color: #000;
    padding: 0.2em 0;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */


   .container{
    max-width:960px;
    margin:0 auto;
    text-align: center;
}

header{
    display: block;
    clear:both;
    background:#fff;
    color:#000;
    padding:2em 0 3em 0;
}

header p{
    color:rgba(0,0,0,0.54);
}

header p.lead{
    color:#ff5d0d;
}

nav{
    display: block;
    width:100%;
    background:#fff;
}

nav:after{
    content:"";
    display:block;
    clear:both;
}

nav ul{
    list-style: none;
    margin:0;
    padding:0;
    display: block;
    width: 100%;
}

nav h2{
  font-size: 0.618em;
  margin-bottom:0;
  font-family: "Roboto",sans-serif;
}

nav li{
    float:left;
    width:25%;
    transition:all 0.2s ease-out;
    text-align: center;
}

nav img.svg, nav svg, nav svg *{
    height:3em;
    transition:all 0.2s ease-out;
}

nav a{
    display: block;
    padding:1em 1em;
    text-decoration: none;
    color:#000;
    transition:all 0.2s ease-out;
}

nav a p{
    color:rgba(0,0,0,0.54);
}

nav a span.btn{
    display:block;
    background: #ff5d0d;
    color:#fff;
    padding:1em;
}

/*
nav:hover li:hover{
    background: #f5f5f5;
    opacity:1;
}

nav:hover li{
    opacity:0.5;
}

nav:hover li p, nav:hover li h2{
   color: transparent;
   text-shadow: 0 0 5px rgba(0,0,0,0.5);
}

nav:hover li:hover p{
    color:rgba(0,0,0,0.54);
    text-shadow:none;
}

nav:hover li:hover h2{
    color:#ff5d0d;
    text-shadow:none;
}

*/

nav:hover li:hover h2{
    color:#ff5d0d;
}


nav:hover li.active:hover h2{
    color:#fff;
}

nav:hover svg{
    transform:scale(0.9);
}

nav:hover li:hover svg{
 transform:scale(1);   
}


nav li.active a{
    background: #ff5d0d;
}

nav li.active a h2{
    color: #fff;
}

nav li.active a svg *{
  fill: #fff;
}

a.btn{
    display:inline-block;
    background: #ff5d0d;
    color:#fff;
    padding:1em;
    text-decoration: none;
}


.half{
    float:left;
    width:50%;
}

#slides .container{
    text-align: left;
        padding:3em 0;
}
#slides img{
    display:block;
    width:100%;
}

#slides .half:first-child{
    margin-top:5em
}


#slides img{
    opacity:0;
    transition:all 0.4s ease-out;
    transition-delay: 0s;
    position: relative;
    top:50px;
}
#slides .sy-active img{
    opacity:1;
    top:0;
    transition-delay: 0.7s;
}


#slides h1{
    opacity:0;
    transition:all 0.2s ease-out;
    transition-delay: 0s;    
}
#slides .sy-active h1{
    opacity:1;
    top:0;
    transition-delay: 0.2s;
}

#slides p{
    opacity:0;
    transition:all 0.2s ease-out;
    transition-delay: 0s;    
}
#slides .sy-active p{
    opacity:1;
    top:0;
    transition-delay: 0.5s;
}


/*
section{
    display: table;
    width:100%;
    background:#f5f5f5;
}

section:after{
    content:"";
    display:block;
    clear:both;
}

article{
    display:table-cell;
    width:33.33%;
    transition:all 0.2s ease-out;
}

article img.svg{
    height:4em;
    transition:all 0.2s ease-out;
}

article img.png{
    width:50%;
}

article a{
    display: block;
    padding:2em 2em 3em 2em;
    text-decoration: none;
    color:#000;
}

article a p{
    color:rgba(0,0,0,0.54);
}

article a span.btn{
    display:block;
    background: #ff5d0d;
    color:#fff;
    padding:1em;
}

section:hover article:hover{
    background: #f5f5f5;
    opacity:1;
}

section:hover article{
    opacity:0.5;
}

section:hover article p, section:hover article h2{
   color: transparent;
   text-shadow: 0 0 5px rgba(0,0,0,0.5);
}

section:hover article:hover p{
    color:rgba(0,0,0,0.54);
    text-shadow:none;
}

section:hover article:hover h2{
    color:#ff5d0d;
    text-shadow:none;
}

article:hover h2{
    color:#ff5d0d;
}

section:hover img.svg{
    transform:scale(0.9);
}

section:hover article:hover img.svg{
 transform:scale(1);   
}
*/

section.share{
    background:#ff5d0d;
    color:#fff;
}

section.author{
  background:#c03f00;
  padding:1em 0;
  color:#fff;
}

section.author .btn{
  background:#fff;
  color:#ff5d0d;
}

footer{
    background:#ff5d0d;
    color:#fff;
    padding:0.5em 0;
}

footer p.small a{
    color:rgba(255,255,255,0.54);
    text-decoration: none;
}

footer p.small a:hover{
    color:#fff;
}

.lead{
    font-size: 1.618em;
}

.small{
    font-size:0.618em;
}

#share{
    margin:0 10%;
}

#share:after{
    content:"";
    display: block;
    clear:both;
}

#share a{
    transition:all 0.2s ease-out;
    float:left;
    width:20%;
    text-align: center;
    padding:3em 0;
    color:rgba(255,255,255,0.7);
    position:relative;
    text-decoration: none;
}
#share a span{
    display:none;
}

#share a span.count{
  font-size: 0.618em;
  display: block;
  position:absolute;
  top:50%;
  left:50%;
  margin:-2em 0 0 2em;
  border-radius: 20px;
  min-width:1.618em;
  box-sizing:border-box;
  padding:0 0.309em;
  background: #fff;
  color:#ff5d0d;
}

#share:hover a:hover{
    color:#fff;
    -webkit-animation: tada 1s infinite;
    animation: tada 1s infinite;
}

#share:hover a{
    color:rgba(255,255,255,0.3);

    -webkit-animation: pulse 1s infinite;
    animation: pulse 1s infinite;

}











/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Hide visually and from screen readers:
 * http://juicystudio.com/article/screen-readers-display-none.php
 */

 .hidden {
    display: none !important;
    visibility: hidden;
}

/*
 * Hide only visually, but have it available for screen readers:
 * http://snook.ca/archives/html_and_css/hiding-content-for-accessibility
 */

 .visuallyhidden {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}

/*
 * Extends the .visuallyhidden class to allow the element
 * to be focusable when navigated to via the keyboard:
 * https://www.drupal.org/node/897638
 */

 .visuallyhidden.focusable:active,
 .visuallyhidden.focusable:focus {
    clip: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    position: static;
    width: auto;
}

/*
 * Hide visually and from screen readers, but maintain layout
 */

 .invisible {
    visibility: hidden;
}

/*
 * Clearfix: contain floats
 *
 * For modern browsers
 * 1. The space content is one way to avoid an Opera bug when the
 *    `contenteditable` attribute is included anywhere else in the document.
 *    Otherwise it causes space to appear at the top and bottom of elements
 *    that receive the `clearfix` class.
 * 2. The use of `table` rather than `block` is only necessary if using
 *    `:before` to contain the top-margins of child elements.
 */

 .clearfix:before,
 .clearfix:after {
    content: " "; /* 1 */
    display: table; /* 2 */
}

.clearfix:after {
    clear: both;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */

   @media only screen and (max-width: 50em) {
    /* Style adjustments for viewports that meet the condition */
    .container{
      padding:0 1em;
      font-size: 0.7em;
    }
nav li{
  float:none;
  display: block;
  width:100%;
}

nav li svg{
  height:1em;
}

.half{
  float:none;
  width:100%;
}

#slides .container{
  padding:3em 1em 0 1em;
  text-align: center;
}

.sy-controls{
  display: none !important
}

}

@media print,
(-o-min-device-pixel-ratio: 5/4),
(-webkit-min-device-pixel-ratio: 1.25),
(min-resolution: 120dpi) {
    /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid the additional HTTP request:
   http://www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */

   @media print {
    *,
    *:before,
    *:after {
        background: transparent !important;
        color: #000 !important; /* Black prints faster:
        http://www.sanbeiji.com/archives/953 */
        box-shadow: none !important;
        text-shadow: none !important;
    }

    a,
    a:visited {
        text-decoration: underline;
    }

    a[href]:after {
        content: " (" attr(href) ")";
    }

    abbr[title]:after {
        content: " (" attr(title) ")";
    }

    /*
     * Don't show links that are fragment identifiers,
     * or use the `javascript:` pseudo protocol
     */

     a[href^="#"]:after,
     a[href^="javascript:"]:after {
        content: "";
    }

    pre,
    blockquote {
        border: 1px solid #999;
        page-break-inside: avoid;
    }

    /*
     * Printing Tables:
     * http://css-discuss.incutio.com/wiki/Printing_Tables
     */

     thead {
        display: table-header-group;
    }

    tr,
    img {
        page-break-inside: avoid;
    }

    img {
        max-width: 100% !important;
    }

    p,
    h2,
    h3 {
        orphans: 3;
        widows: 3;
    }

    h2,
    h3 {
        page-break-after: avoid;
    }
}



@-webkit-keyframes tada {
  0% {
    -webkit-transform: scale3d(1, 1, 1);
            transform: scale3d(1, 1, 1);
  }

  10%, 20% {
    -webkit-transform: scale3d(.9, .9, .9) rotate3d(0, 0, 1, -3deg);
            transform: scale3d(.9, .9, .9) rotate3d(0, 0, 1, -3deg);
  }

  30%, 50%, 70%, 90% {
    -webkit-transform: scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, 3deg);
            transform: scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, 3deg);
  }

  40%, 60%, 80% {
    -webkit-transform: scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, -3deg);
            transform: scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, -3deg);
  }

  100% {
    -webkit-transform: scale3d(1, 1, 1);
            transform: scale3d(1, 1, 1);
  }
}

@keyframes tada {
  0% {
    -webkit-transform: scale3d(1, 1, 1);
            transform: scale3d(1, 1, 1);
  }

  10%, 20% {
    -webkit-transform: scale3d(.9, .9, .9) rotate3d(0, 0, 1, -3deg);
            transform: scale3d(.9, .9, .9) rotate3d(0, 0, 1, -3deg);
  }

  30%, 50%, 70%, 90% {
    -webkit-transform: scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, 3deg);
            transform: scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, 3deg);
  }

  40%, 60%, 80% {
    -webkit-transform: scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, -3deg);
            transform: scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, -3deg);
  }

  100% {
    -webkit-transform: scale3d(1, 1, 1);
            transform: scale3d(1, 1, 1);
  }
}

.tada {
  -webkit-animation-name: tada;
          animation-name: tada;
}


@-webkit-keyframes pulse {
  0% {
    -webkit-transform: scale3d(1, 1, 1);
            transform: scale3d(1, 1, 1);
  }

  50% {
    -webkit-transform: scale3d(1.05, 1.05, 1.05);
            transform: scale3d(1.05, 1.05, 1.05);
  }

  100% {
    -webkit-transform: scale3d(1, 1, 1);
            transform: scale3d(1, 1, 1);
  }
}

@keyframes pulse {
  0% {
    -webkit-transform: scale3d(1, 1, 1);
            transform: scale3d(1, 1, 1);
  }

  50% {
    -webkit-transform: scale3d(1.05, 1.05, 1.05);
            transform: scale3d(1.05, 1.05, 1.05);
  }

  100% {
    -webkit-transform: scale3d(1, 1, 1);
            transform: scale3d(1, 1, 1);
  }
}

.pulse {
  -webkit-animation-name: pulse;
          animation-name: pulse;
}