@font-face {
    font-family: 'Rosario Regular';
    src: url('../lib/rosario-regular-webfont.eot');
    src: url('../lib/rosario-regular-webfont.eot?#iefix') format('embedded-opentype'),
         url('../lib/rosario-regular-webfont.woff') format('woff'),
         url('../lib/rosario-regular-webfont.ttf') format('truetype'),
         url('../lib/rosario-regular-webfont.svg#rosarioregular') format('svg');
    font-weight: normal;
    font-style: normal;

}


body {
    font-size: 20px;
    font-family: 'Nunito', sans-serif;
    margin: 0;
    background-color: rgb(255, 255, 255);
    color: rgb(39, 60, 45);
    height: 100%;
}

a {
    color: rgb(70, 119, 83);
    text-decoration: none;
}

h1, h2, h3, h4, h5,
.heading-font {
    font-family: 'Rosario Regular', sans-serif;
}

h1, h2, h3, h4, h5 {
    margin: 0;
    padding: 0;
    font-weight: normal;
    color: #272525;
}


h1 {
    font-size: 3em;
}

h2 {
    font-size: 2em;
}

h3 {
    font-size: 1.2em;
    margin-top: 3em;
    line-height: 1.2em;
}

code {
    font-size: .85em;
    color: #2f292b;
}

/* Header
 * ---------------------------------------------- */

header.page-header {
    background-color: rgb(42, 180, 78);
    color: #fff;
    height: 4em;
    position: fixed;
    top: 0;
    width: 100%;
    line-height: 4em;
    z-index:100;
}

header.page-header h1 {
    padding: 0 0.5em;
}


header.page-header a {
    color: #f3faf5;
    text-decoration: none;
}

header.page-header h1 {
    color: #fff; 
}

header .fl {
    border-radius: 5px;
    background: #fff;
    color: #62ad76;
}

header .byline {    
    font-size: .6em;
    display: inline-block;
    vertical-align: top;
    margin-top: .16em;
}


header i {
    float: right;
}

/* section page-content
 * ---------------------------------------------- */
section.page-content {
    height: 100%;
    padding-top: 4em;
    overflow: auto;
}



/* Nav
 * ---------------------------------------------- */

.index nav.page-nav {
    margin-top: 4em;
}

.post-page nav.page-nav {
    position: fixed;
    height: 100%;
    width: 25%;
    display: inline-block;
    vertical-align: top;
    overflow: auto;
    margin-top: 4em;
    background: rgb(251, 255, 252);
}

nav .synopsis {
    font-size: .75em;
    color: #675258;
    padding: .5em 0 0 .5em;
}


.post-page nav .synopsis {
    display: none;
}

.post-page nav .nav-content {
    height: 100%;
    margin-bottom: 4em;
}

.post-page nav .link-bar {
    position: fixed;
    bottom: 0;
}

.post-page ul.post-menu li {
    font-size: .65em;
    line-height: 1em;
    text-align: center;
}


.post-page ul.post-menu li {
    border-bottom: 1px solid;
    color: rgb(68, 115, 80);
}


ul.post-menu {
    list-style: none;
    padding: 0;
    margin: 0 0 4em;
    display: block;
}

ul.post-menu li {
    padding: 0;
    padding: 0em;
}

ul.post-menu a {
    font-size: 1em;
    padding: 2em;
    display: block;
}

ul.post-menu a:hover {
    background: rgb(231, 246, 235);
}

ul.post-menu li.current a {
    background: rgb(199, 237, 209);
    font-size: 1.15em;
    line-height: 1.25em;
    font-weight: bold;
    color: rgb(68, 115, 80);
}



/* Post content
 * ---------------------------------------------- */

.post-full {
    display: inline-block;
    vertical-align: top;
    width: 65%;
    max-width: 32em;
    padding: 1em 0 4em 30%;
    line-height: 1.4em;
}

.post-full h2 {
    line-height: 1em;
    margin: 0;
    text-align: center;
}

.post-full .body {
    font-size: .92em;
}

.post-full .body a {
    text-decoration: underline;
}

.post-full .meta {
    text-align: center;
    margin-bottom: 2.5em;
}


.post-full pre.highlight {
    font-size: .8em;
    line-height: 1.4em;
    white-space: pre-wrap;
}

.post-full .date {
    font-size: .75em;   
}


.post-full .social a {
    font-size: 1.5em;
}

.post-full ul.social {
    margin: 1em 0 .5em;
    list-style: none;
    padding: 0;
    text-align: center;
}

.post-full .social li {
    display: inline-block;
    padding-right: .5em;
}

.post-full .social li:last-child {
    padding-right: 0;
}

/* Navigation
 * ---------------------------------------------- */
nav.page {
    font-family: 'Rosario Regular', sans-serif;
    text-align: center;
}


nav.page-next {
    margin-bottom: 4em;
}

nav.page .arrow {
    position: relative;
    z-index: 10;    
    width: 0;
    height: 0;
    margin: .5em auto;
    border-color: #7c618d;
    opacity: .5;
}

nav.page a:hover .arrow {
    opacity: 1;
}

nav.page-next .arrow {
    border-left: 30px solid transparent;
    border-right: 30px solid transparent;
    border-bottom: 30px solid;  
}

nav.page-next .arrow:after {
    border-left: 30px solid transparent;
    border-right: 30px solid transparent;
    border-bottom: 20px solid #fff;    
    content: ' ';
    position: absolute;
    left: -30px;
    top: 11px;
    z-index: 50;
    opacity: 1;
}

nav.page-prev {
    margin-top: 4em;
}

nav.page-prev .arrow {
    border-left: 30px solid transparent;
    border-right: 30px solid transparent;
    border-top: 30px solid;
}

nav.page-prev .arrow:after {
    border-left: 30px solid transparent;
    border-right: 30px solid transparent;
    border-top: 20px solid #fff;    
    content: ' ';
    position: absolute;
    left: -30px;
    top: -30px;
    z-index: 50;
}



.post-full .hljs {
    display: inline-block;
    width: 100%;
    border-radius: 5px;
}

.body img {
    max-width: 100%;   
}

@media only screen and (max-device-width: 768px) {
    
    header.page-header {
        padding: 0;   
    }
    
    h1 {
        font-size: 10vw;   
    }

    
    
    section.page-content {
        padding: 4em 1em 0;   
    }
    
    .post-full {
        padding: 0;
        margin: 0;
        width: 100%;
    }
    
    .post-full pre.highlight {
        width: 100%;
        overflow: auto;
        white-space: pre-wrap;
    }
    
    .post-full .body p {
        width: 100%;
    }
    
    .post-page nav.page-nav {
        display: none;   
    }
}
