/*
Theme Name: Demian flexible
Theme URI: http://demianlabs.com/lab/
Description: Thefirst version of the flexible and responsibe, mobile first theme for "the lab". The Demian Labs blog
Version: 1.0
Author: DemianLabs.com
Author URI:http://demianlabs.com/
Tags: white

License: All copyrights Demian Labs

*/

@IMPORT url("./css/html5boilerplate40.css");
@IMPORT url("./css/normalize101.min.css");

/** Global, resolution independent styling **/

@font-face {
  font-family:Damion;
  src:url('/themes/demian/fonts/Damion/Damion-Regular.ttf');
}

body {
    font: 16px/26px "Lucida Grande",Verdana,"Bitstream Vera Sans",Arial,sans-serif;
    padding: 0;
}

body, html {height: 100%;}

h1, h2, h3, h4, h5, h6  {font-family: Arial, Verdana, sans-serif;}

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

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

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

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

.invisible {
    visibility: hidden;
}

.clearfix:before,
.clearfix:after {
    content: " ";
    display: table;
}

.clearfix:after {
    clear: both;
}

.clearfix {
    *zoom: 1;
}


.wrapper {
   /* width: 90%;
    margin: 0 5%; */
    padding: 0 25px;
}

/* Responsive friendly images and videos */
img, object, embed {
    max-width: 100%; height: auto;
}

.video_container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0; 
    overflow: hidden;
}
 
.video_container iframe,
.video_container object,
.video_container embed {
    position: absolute;
    top: 0;
    left: 0;
    max-width: 700px;
    width: 100%;
    max-height: 394px;
    height: 100%;
}

.mobile {
  display: none;
}

a {
  color: #010000;
}

h1 {
  font-family: Damion, serif;
  font-size: 2.8em;
  line-height: 0.9em;
  text-align: center;
  margin-bottom: 50px;
}

.section p {
  font-family: 'Open Sans', arial, verdana, sans-serif;
  font-size: 18px;
  font-weight: 400;
  word-spacing: -1px;
  line-height: 1.45em;
}

img {
  max-width: 100%;
  height: auto;
}

img.center, a.center {
  display: block;
  margin: 0 auto;
}

a.center {
  text-align: center;
}

a.center {
  display: block;
}

a.center img {
  max-widh: 100%;
  margin: 0 auto;
}

img.logo {
  margin: 50px auto 0px auto;
}

code, pre {
    display: block;
    background-color: #f6f6f6;
    border: 1px solid #dddddd;
    padding: 15px;
    margin: 10px 0;
    border-radius: 3px;
}

#content {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 25px;
}

#content {
  margin-top: 140px;
}

#menu_container {
  display: block;
  max-width: 960px;
  padding: 0 25px;
  margin: 0 auto;
  height: inherit;
}

#menu {
  overflow: hidden;
  padding: 0;
  height: inherit;
}

#menu a{
  min-width: 155px;
  width: auto;
}

#menu ul {
  list-style: none;
  float: right;
  margin: 0;
}


#menu a, #menu li {
  font-family: 'Open Sans', arial, sans-serif;
  font-size: 22px;
  line-height: 47px;
  text-decoration: none;
  padding-top: 7px;  
}

#menu li:child {
  margin-left: 0;
}

#menu li {
  float: left;
  margin-left: 37px;
}

#menu >a {
  float: left;
  margin: 0;
}

#menu img{
  padding-left: 1px;
}

#menu #info_link {
  margin-left: 0;
}

#body_block {
  margin-top: 64px;
  padding-bottom: 50px;
}

.project {
  padding-bottom: 200px;
}

.project h1 {
  margin-bottom: 0px;
  font-weight: lighter;
}

#menu a{
  vertical-align: middle;
  height: inherit;
}
#nav_logo {
  vertical-align: inherit;
}

.header-container{
  height: 64px;
}

#top_bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 64px;
  box-shadow: 0 0 15px 5px #dbdbdb;
  background: url('/themes/demian/images/layout/top_bar_navigation_bg.png');
  border-bottom: solid 1px #d1d1d1;
}

.main_container {
    min-height: 100%;
    height: auto !important;
    height: 100%;
    margin: 0 auto -64px;
}

.footer-container{
  padding: 0;
  min-height: 64px;
  box-shadow: 0 0 15px 5px #dbdbdb;
  background: url('/themes/demian/images/layout/footer_background.png');
  background-repeat: repeat-x;
  background-size: contain;
  border-top: 1px solid #d1d1d1;

  font-family: 'Open Sans', arial, sans-serif;
  text-decoration: none;
}

.wrapper {
  max-width: 960px;
  margin: 0 auto;
}

.footer-container{
  padding: 0 25px;
}

.footer-container footer {
  color: #000;
  padding: 20px 0 20px 0;
  height: auto;
}

.footer-container footer a {
  color: #000;
}

@media (max-width: 960px) {
  .section p {
    margin: 0 10px 30px 10px;
  }

  body {
    padding-right: 0;
    padding-left: 0;
  }
}

/** Page specific styles **/

/* Home page */
#home_page {
  text-align: center;
}

#quote {
  font-family: 'Open Sans', arial, sans-serif;
  font-size: 2.5em;
  letter-spacing: 0px;
  /*word-spacing: 2px;*/
  text-align: center;
  margin: 20px 0;
  display: block;
  line-height: 1.2em;
}

#work_samples {
  font-family: Damion, serif;
  font-size: 2.88em;
  display: block;
  color: #000000;
  margin: -22px 0 70px 0;
  letter-spacing: 0px;
  text-decoration: none;
}

#sub_quote {
  font-family: Damion, serif;
  font-size: 1.88em;
  color: #8d8d8d;
  text-align: center;
  margin: 30px 0 70px 0;
  letter-spacing: 0px;
}

@media (max-width: 500px) {
    #quote {
        font-size: 1.6em;
        font-weight: 600;
    }
    
    #sub_quote {
        font-size: 1.3em;
    }
}

/** Info page **/
#info {
  margin: 0 auto;
  padding-top: 8px;
  max-width: 631px;
}

#info h1 {
  font-weight: 400;
  padding-top: 4px;
  margin-bottom: 1.08em;
}

#info h1:FIRST-CHILD {
  padding-top: 0px;
}

#info .section {
  margin-bottom: 109px;
}

.project h3 {
  font-family: Damion, serif;
  font-size: 1.4em;
  line-height: 0.9em;
  color: #8d8d8d;
  text-align: center;
  margin: 10px 0 50px 0;
}


/** The rest is the navigation of the blog **/

.navigation {
    margin: -30px auto 120px auto;
}


.clearfix:before,
.clearfix:after {
    content: " ";
    display: table;
}

.clearfix:after {
    clear: both;
}

.clearfix {
    *zoom: 1;
}


.navigation a,
.navigation a:visited {
    color: black;
    width: 49%;
    display: block;
    font-size: 0.8em;
    text-decoration: none;
    
    padding: 5px 12px;
    box-sizing: border-box;
}

.navigation a:first-child {
    float: left;
    text-align: left;
    border-radius: 5px 0 0 5px;
    border-right: 1px solid #fff;

    background: #eeeeee;
    background: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiA/Pgo8c3ZnIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgdmlld0JveD0iMCAwIDEgMSIgcHJlc2VydmVBc3BlY3RSYXRpbz0ibm9uZSI+CiAgPGxpbmVhckdyYWRpZW50IGlkPSJncmFkLXVjZ2ctZ2VuZXJhdGVkIiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgeDE9IjAlIiB5MT0iMCUiIHgyPSIxMDAlIiB5Mj0iMCUiPgogICAgPHN0b3Agb2Zmc2V0PSIxJSIgc3RvcC1jb2xvcj0iI2VlZWVlZSIgc3RvcC1vcGFjaXR5PSIxIi8+CiAgICA8c3RvcCBvZmZzZXQ9IjEwMCUiIHN0b3AtY29sb3I9IiNmZmZmZmYiIHN0b3Atb3BhY2l0eT0iMSIvPgogIDwvbGluZWFyR3JhZGllbnQ+CiAgPHJlY3QgeD0iMCIgeT0iMCIgd2lkdGg9IjEiIGhlaWdodD0iMSIgZmlsbD0idXJsKCNncmFkLXVjZ2ctZ2VuZXJhdGVkKSIgLz4KPC9zdmc+);
    background: -moz-linear-gradient(left,  #eeeeee 1%, #ffffff 100%);
    background: -webkit-gradient(linear, left top, right top, color-stop(1%,#eeeeee), color-stop(100%,#ffffff));
    background: -webkit-linear-gradient(left,  #eeeeee 1%,#ffffff 100%);
    background: -o-linear-gradient(left,  #eeeeee 1%,#ffffff 100%);
    background: -ms-linear-gradient(left,  #eeeeee 1%,#ffffff 100%);
    background: linear-gradient(to right,  #eeeeee 1%,#ffffff 100%);
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#eeeeee', endColorstr='#ffffff',GradientType=1 );
}

.navigation a:last-child {
    float: right;
    text-align: right;
    border-radius: 0 5px 5px 0;

    background: #ffffff;
    background: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiA/Pgo8c3ZnIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgdmlld0JveD0iMCAwIDEgMSIgcHJlc2VydmVBc3BlY3RSYXRpbz0ibm9uZSI+CiAgPGxpbmVhckdyYWRpZW50IGlkPSJncmFkLXVjZ2ctZ2VuZXJhdGVkIiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgeDE9IjAlIiB5MT0iMCUiIHgyPSIxMDAlIiB5Mj0iMCUiPgogICAgPHN0b3Agb2Zmc2V0PSIwJSIgc3RvcC1jb2xvcj0iI2ZmZmZmZiIgc3RvcC1vcGFjaXR5PSIxIi8+CiAgICA8c3RvcCBvZmZzZXQ9Ijk5JSIgc3RvcC1jb2xvcj0iI2VlZWVlZSIgc3RvcC1vcGFjaXR5PSIxIi8+CiAgPC9saW5lYXJHcmFkaWVudD4KICA8cmVjdCB4PSIwIiB5PSIwIiB3aWR0aD0iMSIgaGVpZ2h0PSIxIiBmaWxsPSJ1cmwoI2dyYWQtdWNnZy1nZW5lcmF0ZWQpIiAvPgo8L3N2Zz4=);
    background: -moz-linear-gradient(left,  #ffffff 0%, #eeeeee 99%);
    background: -webkit-gradient(linear, left top, right top, color-stop(0%,#ffffff), color-stop(99%,#eeeeee));
    background: -webkit-linear-gradient(left,  #ffffff 0%,#eeeeee 99%);
    background: -o-linear-gradient(left,  #ffffff 0%,#eeeeee 99%);
    background: -ms-linear-gradient(left,  #ffffff 0%,#eeeeee 99%);
    background: linear-gradient(to right,  #ffffff 0%,#eeeeee 99%);
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ffffff', endColorstr='#eeeeee',GradientType=1 );

}

.post {
    padding: 60px 0 60px 0;
    clear: both;
}

.post a,
.post a:visited {
    color: blue;
}

.post h2 {
    margin: 0;
}

.post h2 a {
    font-size: 1.4em;
    color: #000 !important; 
    font-family: 'Open Sans',Arial,Helvetica, sans-serif; 
    font-weight: 700;
    text-decoration: none;
    line-height: 1.3em;
}

p.postmetadata {
    margin: 10px 0 0px 0;
    font-size: 0.8em;
    line-height: 1.2em;
}


/* ==========================================================================
   Print styles
   ========================================================================== */

@media print {
    * {
        background: transparent !important;
        color: #000 !important; /* Black prints faster: h5bp.com/s */
        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 for images, or javascript/internal links
     */

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

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

    thead {
        display: table-header-group; /* h5bp.com/t */
    }

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

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

    @page {
        margin: 0.5cm;
    }

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

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