/*

Kirby Starterkit

Author: Bastian Allgeier / Sascha Lack
URL:    http://getkirby.com
Email:  support@getkirby.com

*/


/* Source Sans Pro
-------------------------------------------------- */
@font-face {
  font-family: 'Source Sans Pro';
  font-style: normal;
  font-weight: 300;
  src: url(../fonts/sourcesanspro-300.woff) format('woff');
}
@font-face {
  font-family: 'Source Sans Pro';
  font-style: normal;
  font-weight: 400;
  src: url(../fonts/sourcesanspro-400.woff) format('woff');
}
@font-face {
  font-family: 'Source Sans Pro';
  font-style: normal;
  font-weight: 600;
  src: url(../fonts/sourcesanspro-600.woff) format('woff');
}
@font-face {
  font-family: 'Source Sans Pro';
  font-style: italic;
  font-weight: 400;
  src: url(../fonts/sourcesanspro-400-italic.woff) format('woff');
}


/* Clear Sans
-------------------------------------------------- */
@font-face {
    font-family: 'clear_sans_thinregular';
    src: url('../fonts/ClearSans-Thin-webfont.eot');
    src: url('../fonts/ClearSans-Thin-webfont.eot?#iefix') format('embedded-opentype'),
         url('../fonts/ClearSans-Thin-webfont.woff') format('woff'),
         url('../fonts/ClearSans-Thin-webfont.ttf') format('truetype'),
         url('../fonts/ClearSans-Thin-webfont.svg#clear_sans_thinregular') format('svg');
    font-weight: normal;
    font-style: normal;

}

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

}

@font-face {
    font-family: 'clear_sans_mediumitalic';
    src: url('../fonts/ClearSans-MediumItalic-webfont.eot');
    src: url('../fonts/ClearSans-MediumItalic-webfont.eot?#iefix') format('embedded-opentype'),
         url('../fonts/ClearSans-MediumItalic-webfont.woff') format('woff'),
         url('../fonts/ClearSans-MediumItalic-webfont.ttf') format('truetype'),
         url('../fonts/ClearSans-MediumItalic-webfont.svg#clear_sans_mediumitalic') format('svg');
    font-weight: normal;
    font-style: normal;

}

@font-face {
    font-family: 'clear_sans_mediumregular';
    src: url('../fonts/ClearSans-Medium-webfont.eot');
    src: url('../fonts/ClearSans-Medium-webfont.eot?#iefix') format('embedded-opentype'),
         url('../fonts/ClearSans-Medium-webfont.woff') format('woff'),
         url('../fonts/ClearSans-Medium-webfont.ttf') format('truetype'),
         url('../fonts/ClearSans-Medium-webfont.svg#clear_sans_mediumregular') format('svg');
    font-weight: normal;
    font-style: normal;

}

@font-face {
    font-family: 'clear_sans_lightregular';
    src: url('../fonts/ClearSans-Light-webfont.eot');
    src: url('../fonts/ClearSans-Light-webfont.eot?#iefix') format('embedded-opentype'),
         url('../fonts/ClearSans-Light-webfont.woff') format('woff'),
         url('../fonts/ClearSans-Light-webfont.ttf') format('truetype'),
         url('../fonts/ClearSans-Light-webfont.svg#clear_sans_lightregular') format('svg');
    font-weight: normal;
    font-style: normal;

}

@font-face {
    font-family: 'clear_sansitalic';
    src: url('../fonts/ClearSans-Italic-webfont.eot');
    src: url('../fonts/ClearSans-Italic-webfont.eot?#iefix') format('embedded-opentype'),
         url('../fonts/ClearSans-Italic-webfont.woff') format('woff'),
         url('../fonts/ClearSans-Italic-webfont.ttf') format('truetype'),
         url('../fonts/ClearSans-Italic-webfont.svg#clear_sansitalic') format('svg');
    font-weight: normal;
    font-style: normal;

}

@font-face {
    font-family: 'clear_sansbold_italic';
    src: url('../fonts/ClearSans-BoldItalic-webfont.eot');
    src: url('../fonts/ClearSans-BoldItalic-webfont.eot?#iefix') format('embedded-opentype'),
         url('../fonts/ClearSans-BoldItalic-webfont.woff') format('woff'),
         url('../fonts/ClearSans-BoldItalic-webfont.ttf') format('truetype'),
         url('../fonts/ClearSans-BoldItalic-webfont.svg#clear_sansbold_italic') format('svg');
    font-weight: normal;
    font-style: normal;

}

@font-face {
    font-family: 'clear_sansbold';
    src: url('../fonts/ClearSans-Bold-webfont.eot');
    src: url('../fonts/ClearSans-Bold-webfont.eot?#iefix') format('embedded-opentype'),
         url('../fonts/ClearSans-Bold-webfont.woff') format('woff'),
         url('../fonts/ClearSans-Bold-webfont.ttf') format('truetype'),
         url('../fonts/ClearSans-Bold-webfont.svg#clear_sansbold') format('svg');
    font-weight: normal;
    font-style: normal;

}




/* Reset
-------------------------------------------------- */
*, *:before, *:after {
  margin: 0;
  padding: 0;
  border: 0;
  -webkit-box-sizing: border-box;
     -moz-box-sizing: border-box;
          box-sizing: border-box;
}
article, aside, details, figcaption, figure,
footer, header, hgroup, main, nav, section, summary {
  display: block;
}


/* Pix
-------------------------------------------------- */
img {
  display: block;
  max-width: 100%;
}


/* Videos
-------------------------------------------------- */
.video-container {
    position: relative;
    padding-bottom: 56.3333%;
    padding-top: 0px; height: 0; overflow: hidden;
    margin-bottom: 35px;
}
 
.video-container iframe,
.video-container object,
.video-container embed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}


/* Links
-------------------------------------------------- */
a {
  color: #1f848e !important;
  text-decoration: none;
  transition: color .3s, background .3s, border .3s;
}
a:hover {
  color: #0c4e54 !important;
}


/* Clearfix
-------------------------------------------------- */
.cf:after {
  content: "";
  display: table;
  clear: both;
}


/* Site
-------------------------------------------------- */
html {
  height: 101%;
  font-family: 'clear_sans_thinregular', sans-serif;
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
}
body {
  margin: 0 auto;
  font-size: 1.15em;
  line-height: 1.5em;
  xpadding: 1.5em;
  xmax-width: 50em;
  background: #f4f4f4;
  color: #6a6a6a;
  background-image: url("/assets/images/sketched-border.png");
  background-repeat: repeat-x;
  background-position: center top;
}

/* Columns
-------------------------------------------------- */

.columns {
  font-size: .9em;
  line-height: 1.5em;
  margin-right: -2rem;
}
.column {
  display: inline-block;
  vertical-align: top;
  padding-right: 2rem;
}
.columns-1 .column {
  width: 100%;
}
.columns-2 .column {
  width: 50%;
}

@media screen and (max-width: 500px) {

    .columns-2 .column {
      width: 100%;
      display:block;
    }

}

.columns-3 .column {
  width: 33.33%;
}
.columns-4 .column {
  width: 25%;
}
.columns-5 .column {
  width: 20%;
}

/* Header
-------------------------------------------------- */
.header {
  height: auto;
  background-color: #4bcbc9;
  padding-top: 7%;
  padding-bottom: 7%;
  text-align: center;
  background-image: url("/assets/images/header-background.jpg");
  background-size: auto 100%;
  background-repeat: no-repeat;
  background-position: center top;
}


.logo {
  width: 100px;
  height: auto;
  xborder: 1px solid red;
  display: block;
  margin-top: auto;
  margin-bottom: auto;
  margin-left: auto;
  margin-right: auto;

}
.logo img {
  margin: 0 auto;
  width: 100%;
  height: auto;
  xborder: 1px solid red;
}

@media screen and (max-width: 1000px) {
  .header {
    height: 200px;
    width: auto;
    background-size: auto 300px;
    background-attachment: fixed;
    background-position: center -40px;

  }

  .logo {
 display: none;

}    

}


@media screen and (min-width: 1920px) {
  .header {  
    background-size: auto 300px;
    height: 450px;
    width: auto;
    padding-top: 155px;
    padding-bottom: 0px;
    text-align: center;
    background-size: auto 100%;

  }

  .logo {
  width: 135px;
  height: auto;
  xborder: 1px solid red;
  margin-top: auto;
  margin-bottom: auto;
  margin-left: auto;
  margin-right: auto;

}  

}


/* Header (Project)
-------------------------------------------------- */
.header-project {
  background-color: #4bcbc9;
  xpadding: 1em 0 0 0;
  xmargin-bottom: 1em;
}

.nextprev-wrapper {
  display: block;
  max-width:50em;
  margin-left: auto;
  margin-right: auto;
  padding: 0px 21px 0px 20px;
}

.logo-project {
  width: 80px;
  height: auto;
  display: inline-block;
  position: absolute;
    left: 0;
    right:0;
    top: 16px;
    z-index: 1;
    margin: 0 auto;
}
.logo-project img {
  width: 80px;
}


/* Navigation
-------------------------------------------------- */
.menu a {
  display: block;
  color: #222;
}
.menu a:hover {
  color: red;
  text-decoration: none;
}
.menu .active {
  color: red;
}
.menu li {
  list-style: none;
}
.menu > li {
  position: relative;
}
.menu > li > a {
  padding: .35em 0;
  border-top: 1px solid #ddd;
  font-weight: 600;
}

.submenu {
  position: absolute;
  z-index: 1;
  display: none;
  left: 1em;
}
.submenu:before {
  position: absolute;
  z-index: -1;
  content: '';
  top: -.5em;
  left: 0;
  border-top: .5em solid transparent;
  border-bottom: .5em solid transparent;
  border-left: .5em solid #222;
}
.submenu li {
  border-bottom: 1px solid #444;
}
.submenu a {
  padding: .5em 1.5em;
  font-size: .9em;
  font-weight: 300;
  color: #fff;
  background: #222;
  white-space: nowrap;
}
.submenu a:hover {
  background: #333;
  color: #fff;
}

@media screen and (min-width: 40em) {
  body {
    xpadding: 3em;
  }
  .logo {
    xfloat: left;
  }
  .menu {
    float: right;
    margin-right: -1em;
  }
  .menu > li {
    float: left;
  }
  .menu > li > a {
    padding: .35em 1em;
    border: 0;
  }
  .menu > li:hover .submenu {
    display: block;
  }
}

.stickymenu {
  width: auto;
  max-width: 50em;
  position: fixed;
  left: 89%;
  transform: translateX(-19%);
  top: 30px;
  margin-left: auto;
  margin-right: auto;
  xborder-width: 1px;
  xborder-style: solid;
  xborder-color: red;
  background-color: white;
  border-radius: 4px;
  padding: 5px;
}


/* Headings
-------------------------------------------------- */
h1 {
  font-size: 2em;
  line-height: 1.25em;
  font-weight: 400;
  margin-bottom: .75em;
  color: #47bcba;
}

h1.name {
  color: white;
  margin-bottom: 0;
  font-size: 30px;
}

h2 {
  font-size: 2em;
  line-height: 1.25em;
  font-weight: 300;
  margin-bottom: .25em;
  color: rgba(0,0,0,0.8);
}

h2.section-header {
  font-size: 1.5em;
  letter-spacing: .05em;
  text-transform: uppercase;
  margin-bottom: 30px;
  text-align: center;
}

.section-header:after {
  content: url('/assets/images/divider.svg');
  display: block;
  width: 80px;
  margin: -5px auto;
  margin-bottom: 45px;
}

h3 {
  font-size: 1.4em;
  line-height: 1.5em;
  font-weight: 400;
  margin-bottom: .25em;
  color: rgba(0,0,0,0.8);
}
h4 {
  font-size: 1.125em;
  font-weight: 600;
  line-height: 1.5em;
  margin-bottom: .25em;
  color: rgba(0,0,0,0.8);
}

h4.project-title {
  font-family: 'clear_sansregular';
  margin-top: .75em;
  text-align: center;
  font-size: 1em;
  text-transform: uppercase;
  letter-spacing: normal;

}

h1 a, h2 a, h3 a, h4 a {
  color: inherit;
  border: 0 !important;
}

p.title {
  color: #efefef;
  font-size: 21px;
}

p.abouttext {
  max-width: 40em;
  margin: auto;
}

/* Main
-------------------------------------------------- */
.wrapper {
  width:100%;
  background-image: url("/assets/images/sketched-border.png"), url("/assets/images/sketched-border-footer.png");
  background-size: 400px auto, 400px auto;
  background-repeat: repeat-x, repeat-x;
  background-position: center top, center bottom;
}

.main {
  max-width: 60em;
  padding-bottom: 1.5em;
  padding: 5em 1.5em 1.5em 1.5em;
  max-width: 65em;
  margin: 0 auto;
}

#projectwidth {
  max-width: 50em;
}

.main hr {
  margin: 5em 0 3em 0;
  height: 2px;
  background: #ddd;
}
.main p,
.main figure,
.main ul,
.main ol {
  margin-bottom: 1.5em;
}
.main a {
  border-bottom: 2px solid #ddd;
}
.main a:hover {
  border-color: #222;
}

.main-home {
  text-align: center;
}


/* Text blocks */
.text ul,
.text ol {
  margin-left: 1em;
}

.skills {
  margin: 0 auto;
  padding-bottom: 4em;
  text-align: center;
  max-width:600px;
}

.skills li {
  display: inline;
  padding-right: 2px;
}

.skills li:last-child:after {
  content: none;
}

.skills li:after {
 padding-left: 8px;
 color: rgba(0,0,0,0.25);
 content:"/";
 font-family: 'clear_sans_mediumregular';
 font-size: .9em;
}

strong {
  font-family: 'clear_sans_mediumregular';
}

/* Project meta
-------------------------------------------------- */
.meta {
  margin-bottom: 1.5em;
  float: left;
  max-width:50%;
}
.meta li {
  float: left;
  display: block;
  list-style: none;
  margin-right: 2em;
  color: red;
}
.meta li b {
  font-weight: 400;
  color: #000;
  padding-right: .25em;
}


/* Project teaser
-------------------------------------------------- 
.teaser {
  list-style: none;
}
.teaser li {
  margin-bottom: 1.5em;
  list-style: none;
}
@media screen and (min-width: 50em) {
  .teaser li {
    float: left;
    width: 30%;
    margin-left: 5%;
  }
  .teaser li:first-child {
    margin-left: 0;
  }
}
*/

/* Project teaser
-------------------------------------------------- */
.teaser {
  xborder: 1px solid blue;
  list-style: none;
}
.teaser li {
  margin-bottom: 1.5em;
  list-style: none;
  margin-right: 2.4%;
}

  .teaser li:nth-of-type(4n) {
    margin-right: 0;
  }

   .teaser li:nth-of-type(4n+1) {
    clear: left;
  }

  

@media screen and (min-width: 50em) {
  .teaser li {
    float: left;
    width: 23.125%;
  }
}

@media screen and (max-width: 50em) {
    .teaser li:nth-of-type(3n+1) {
    margin-right: 0;
  }
  .teaser li:nth-of-type(3n+2) {
    margin-left: 0;
  }
  .teaser li:nth-of-type(3n+3) {
    margin-left: 0;
  }
  .teaser li:nth-of-type(3n+4) {
    clear: left;
  }
}

/* Next/Prev nav
-------------------------------------------------- */
.nextprev {
  font-family: 'clear_sans_lightregular';
  padding: 1em 0;
}
.nextprev a {
  border: 0;
}
.nextprev .prev {
  margin-top: 4px;
  float: left;
}
.nextprev .next {
  margin-top: 4px;
  float: right;
}


/* Footer
-------------------------------------------------- */
.footer {
  background-color: #4BCBC9;
  padding: 1.15em 0 2.25em;
  font-size: .8em;
}
.contact {
  margin: 0 auto;
  text-align: center;
}

.contact a {
  font-size: 1.5em;
  color: white !important;
}

.contact img {
  width: 28px;
  margin-bottom: -2px;
  display: inline;
  margin-right: 15px;
  height: auto;
  text-align: right;
}