/* General */
body {
  margin: 0;
}

h1, h2 {
  text-transform: uppercase;
  font-family: 'Cabin', sans-serif;
  display: inline-block;
}

h2, .column h1 {
  color: #3c3c3c;
  font-weight: 300;
}

p, li, pre {
  color: #606060;
}

p, li, label, button, .button, a, pre {
  line-height:1.2em;
  font-family: Open Sans, sans-serif;
}

a {
  text-decoration: none;
  color: #f3554e;
  font-weight: 400;
}

pre {
  width: 90%;
  max-width: 90%;
  overflow: auto;
  background: #F9F9F9;
  padding: 5%;
  border: 1px solid #D2CECE;
}

/* General layout */
header div, .content_wrapper{
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
}

section {
  background-image: url('../images/white.png');
  border-top: 1px solid #e6e6e6;
  display: inline-block;
  width: 90%;
  padding: 60px 5%;
  margin-bottom: 75px;
}

section:nth-child(odd) {
     -webkit-transform: skewY(-1deg);
    -moz-transform: skewY(-1deg);
    -ms-transform: skewY(-1deg);
    -o-transform: skewY(-1deg);
    transform: skewY(-1deg);
    -webkit-backface-visibility: hidden;
}

section:nth-child(odd) .content_wrapper {
       -webkit-transform: skewY(1deg);
    -moz-transform: skewY(1deg);
    -ms-transform: skewY(1deg);
    -o-transform: skewY(1deg);
    transform: skewY(1deg);
    -webkit-backface-visibility: hidden;
}

section:nth-child(even) {
     -webkit-transform: skewY(1deg);
    -moz-transform: skewY(1deg);
    -ms-transform: skewY(1deg);
    -o-transform: skewY(1deg);
    transform: skewY(1deg);
    -webkit-backface-visibility: hidden;
}

section:nth-child(even) .content_wrapper {
    -webkit-transform: skewY(-1deg);
    -moz-transform: skewY(-1deg);
    -ms-transform: skewY(-1deg);
    -o-transform: skewY(-1deg);
    transform: skewY(-1deg);
    -webkit-backface-visibility: hidden;
}

section:last-child {
  margin-bottom: 0;
}

section h1, section p, pre {
  color: #4d4d4d;
  font-weight: 200;
}

section p {
  font-size: 1.1em;
}

section button, section .button {
  background-color: #3bbd8e;
  padding: 10px 40px;
  color: #fff;
  border: 0;
  border-radius: 2px;
  float: right;
  font-size: 1em;
  margin-top: 20px;
  font-weight: 200;
}

section button:hover, section .button:hover {
  background-color: #46D8A3;
}

.half {
  width: 100%;
  float: left;
  margin-bottom: 40px;
}

@media screen and (min-width: 800px) {
  .half {
    width: 50%;
  }
}

.two_third {
  width: 100%;
  float: left;
}

@media screen and (min-width: 800px) {
  .two_third {
    width: 66.66%;
  }
}

.third {
  width: 33.33%;
  float: left;
}

/* Header */
header nav {
  background-color: transparent;
  float: left;
  width: 100%;
  height: 75px;
  position: relative;
  z-index: 2;
}

header nav ul{
  float:right;
  display:block;
  overflow:visible;
  margin-top: 35px;
  margin-right: 5%;
}

header nav li{
  padding: 0;
  margin-bottom: .6em;
  margin-left: 40px;
  float: left;
  display: inline;
}

header nav li:last-child{
  padding-right:0;
}

header nav ul a{
  text-transform: uppercase;
  color: #fff;
  font-size: 1.1em;
  font-weight: 300;
  font-family: 'Open Sans', sans-serif;
}

header nav ul a:hover,
header nav ul a.active{
  border-bottom: 2px solid #fff;
}

header nav button{
  display: none;
}

.logo {
  width: 130px;
  margin-top: 15px;
  margin-left: 5%;
}


  #logo_white {
    display: inline-block;
    float: left;
  }

  #logo_color {
    display: none;
  }

@media screen and (max-width: 749px){
  #logo_color {
    display: inline-block;
    float: left;
    margin: 10px 20px;
  }

  #logo_white {
    display: none;
  }
}

/* Main header */
main header {
  background-image: url('../images/low_poly.png');
  background-repeat: repeat;
  background-position: center top, 0 0;
  background-size: auto;
   -webkit-transform: skewY(-1deg);
    -moz-transform: skewY(-1deg);
    -ms-transform: skewY(-1deg);
    -o-transform: skewY(-1deg);
    transform: skewY(-1deg);
    -webkit-backface-visibility: hidden;
  position: relative;
  z-index: 1;
  top: -75px;
}

@media screen and (min-width: 800px) {
  main header {
    min-height: 550px;
  }
}

main header .header_wrapper {
     -webkit-transform: skewY(1deg);
    -moz-transform: skewY(1deg);
    -ms-transform: skewY(1deg);
    -o-transform: skewY(1deg);
    transform: skewY(1deg);
    -webkit-backface-visibility: hidden;
}

@media screen and (min-width: 700px) {
  main header{
    background-image: url('../images/header_ninja.png'), url('../images/low_poly.png');
    background-repeat: no-repeat, repeat;
    background-position: center 80px, 0 0;
    background-size: auto, auto;
  }
}

header h1, header h2, header p{
  color:#fff;
  font-family: 'Cabin', sans-serif;
  display:inline-block;
  font-weight:400;
}

header h1 {
  font-size: 3em;
  margin-left: 5%;
  margin-top: 180px;
  margin-bottom: 15px;
  width: 90%;
}

header h2{
  font-size: 1.8em;
  margin-bottom: 90px;
  margin-left: 5%;
  margin-top: 0;
  width: 90%;
}

@media screen and (min-width: 600px) {
  header h1 {
    width: 100%; 
  }

  header h2 {
    max-width: 430px;
  }
}

/*------------------ Top menu ------------------*/
#menutoggle {
  background-image: url('../images/hamburger.svg');
  background-size: contain;
  width: 25px;
  height: 20px;
  background-color: transparent;
  border: none;
  margin-top: 30px;
}

#menutoggle:focus, #menutoggle:hover, #menutoggle:active {
  outline: -webkit-focus-ring-color auto 0px;
}

@media (max-width: 749px) { 
/* top menu */
   header, header nav {
    background-color: #fff;
     -webkit-backface-visibility: hidden;
   }

   header nav ul{
    display: none;
    width: 100%;
    position:relative;
    background-color: #f0f0f0;
    margin: 0;
  }

  header nav ul li{
    width: 100%;
    margin: 0 auto;
    text-align: center;
    height: 3em;
    margin-bottom: 2px;
    padding-top: 20px;
  }

  header nav ul li a {
    color: #4d4d4d;
  }

  header nav ul li:hover {
    background-color: #E8E8E8;
  }

  header nav ul li:hover a {
    border-bottom: 2px solid #f2534a;
  }

  header{
    overflow:visible;
  }
  header nav{
    height:auto;
  }
  header nav ul{
    margin-top:0;
  }
  header,
  header nav{
    display: inline-block;
    width: 100%; 
    float: left;   
  }
  header nav button{
    display: block;
    float: right;
    margin: 20px;
    height: 40px;
    width: 64px;
  }

  .header_container {
    padding: 40px 0 40px 0;
  }

  .column_wrapper h1 {
    padding-top: 0;
  }

  .is-open {
    display: block;
  }

  .is-open, .is-open li {
    -webkit-transition: all 0.3s ease;
    -moz-transition: all 0.3s ease;
    transition: all 0.3s ease;
  }
}

/* Footer */
footer{
  background-color:#393938;
  color:#f0f0f0;
  overflow:auto;
  width:100%;
  text-transform: uppercase;
  padding: 15px 0;
  position: relative;
  z-index: 1;
  margin-top: -20px;
}

footer ul{
  max-width: 1100px;
  width: 90%;
  margin:0 auto;
  padding: 0 5%;
}

footer li{
  float:left;
  list-style: none;
  color: #AFAEAE;
}

footer a {
  opacity: 0.8;
}

footer a:hover {
  opacity: 1;
}

footer li.copy,
footer li a {
  display:block;
  padding:1.2em 2em;
  font-weight: 300;
  font-size: 1em;
}

footer li a:first-child{
  padding-left:0;
}

footer li.copy{
  padding-right:0;
  float:left;
  padding: 0;
  margin: 0;
}

@media screen and (min-width: 500px) {
  footer li.copy{
    float: right;
    padding-top: 1.2em;
  }
}

/* Section about */
.about h1:before, 
.blog h1:before {
  content:url('../images/ninja_icon.svg');
  padding-right: 20px;
}

.contact img {
  float: right;
  margin-right: 20%;
  width: 60%;
  margin-top: 20px;
  margin-bottom: 20px;
}

@media screen and (min-width: 500px) {
  .contact img {
    margin-right: 30%;
    width: 40%;
  }
}

@media screen and (min-width: 800px) {
  .contact img {
    float: left;
    margin-right: auto;
    margin-left: 35%;
  }
}

.contact a p {
  float: left;
  margin-left: 0%;
  margin-bottom: 15px;
  text-align: center;
  color: #999;
  margin-top: 5px;
  font-size: 1em;
}

.contact a p:hover {
  color: #f3554e;
}

.contact_element {
  float: left;
  width: 60%;
  margin-left: 20%;
}

@media screen and (min-width: 500px) {
  .contact_element {
    width: 50%;
    margin-left: 25%;
  }
}

@media screen and (min-width: 600px) {
  .contact_element {
    width: 40%;
    margin-left: 30%;
  }
}

@media screen and (min-width: 700px) {
  .contact_element {
    width: 30%;
    margin-left: 35%;
  }
}

@media screen and (min-width: 800px) {
  .contact_element {
    float: left;
    margin-left: 0;
    width: 100%;
  }
}

.contact_element img {
    margin-right: 15px;
    width: 20px;
    float: left;
    margin-top: 0;
}

/* Blog */
.post_overview {
  display: none;
}

@media screen and (min-width: 800px) {
  .post_overview {
    display: block;
  }

  .post_overview h1 {
    background-color: #f3554e;
    color: #fff;
    text-transform: uppercase;
    padding: 10px 0;
    text-align: center;
    width: 100%;
    font-size: 1.2em;
    margin-bottom: 20px;
    font-size: 18px;
    max-width: 250px;
  }

  .post_overview h1:before {
    content: none;
  }

  .post_overview a {
    margin-bottom: 5px;
    color: #4d4d4d;
    width: 100%;
    float: left;
    font-weight: 200;
    font-size: 16px;
  }

  .post_overview a:hover {
    color: #f3554e;
  }

  .post_overview .date {
    float: left;
    width: 100%;
    font-size: 0.8em;
    margin-top: 0;
    margin-bottom: 20px;
    color: #999;
  }
}

@media screen and (min-width: 800px) {
  .blog button {
    margin-top: 0;
    margin-right: 10%;
  }
}

.blogpost {
  background-color: #fff;
  width: 90%;
  padding: 5%;
  margin-bottom: 50px;
  box-shadow: 0px 2px 0px 0px rgba(1,2,2,0.15);
  display: inline-block;
}

@media screen and (min-width: 800px) {
  .blogpost {
    width: 80%;
  }
}

.blogpost h1 {
  color: #f3554e;
  margin-bottom: 10px;
}

.blogpost h1:before {
  content: none;
}

.blogpost .date {
  text-align: right;
  color: #ccc;
  font-weight: 400;
  font-size: 16px;
  margin: 0;
}

.blogpost img {
  width: 100%;
}

.signed {
  float: right;
}

/* pagination */
section button.read {
  margin-top: 10px;
  margin-right: 0;
  cursor: pointer;
}

section button.read,
section button#forward,
section button#back  {
  background-color: #c0c0c0;
}
section button.read:hover,
section button#forward:hover,
section button#back:hover {
  background-color: #ccc;
}