/*! HTML5 Boilerplate v4.3.0 | MIT License | http://h5bp.com/ */

html, button, input, select, textarea {
    color: #4e5f7e;
}

html, body { 
    font-size: 2.8vw; /* What should this be */
    line-height: 1.5;
	  font-family: 'Proxima Nova W02', Arial, sans-serif;
}

img {
    vertical-align: middle;
    display: block;
}

/* Monnet Styles */

body { 
	background: #f9f9f9;
}

header {
  width: 100%;
  position: relative;
  padding: 3vw 4vw 4vw;
}

  header div {
    top: -155px;
    transition: top 1s ease-out;
  }

  header div.fixed {
    position: fixed;
    background: #f9f9f9;
    background: rgba(249, 249, 249, 0.9);
    padding: 3vw 4vw 4vw;
    width: 100%;
    top: 0;
    left: 0;
    transition: top 1s ease-out;
    z-index: 100;
  }

  #logo {
    width: 100%;
    float: left;
    position: relative;
    left: -1px;
  }
 
  #bravis, #bravistext {
    display: none;
    float: right;
  }
 
  header img {
    width: 100%;
  }

main {
  padding: 0 4vw;
}

  article {
    margin: 0 0 2vw;
    width: 100%;
  }

  #projects .imagecontainer {
    margin: 0;
    position: relative;
  }

  #projects img {
    width: 100%;
    height: auto;
    position: absolute;
    top: 0;
    left: 0;
  }

  article.project {
    display: none;
    opacity: 0;
  }

p {
  margin: 1.5em 0;
}

#next {
  display: none;
}



/* ==========================================================================
   Media Queries
   ========================================================================== */


@media only screen and (orientation: landscape) {


}

@media only screen and (min-width: 568px) {	
  
  body {
    font-size: 1.25vw;
  }

  #logo {
    width: 50%;
    left: 0;
  }

  #bravis {
    display: block;
    width: calc(50% / 3.88421052631579); /* maybe just % */
  }

  .about, .clients {
    width: 50%;
    float: left;
  }

  .about {
    padding-right: 1vw;
  }

  .clients {
    padding-left: 1vw;
  }
  
}

@media only screen and (min-width: 768px) { 

  #bravistext {
    display: block;
    width: calc(50.333% / 1.8);
    margin-right: 1vw;
  }

}

@media only screen and (min-width: 960px) {

  body {
    overflow-y: hidden;
  }

  body, article {
    font-size: 0.9vw;
  }

  header, header div.fixed {
    padding: 1.5vw 2vw 2vw;
    transition: top 0s ease-out;
  }

	#logo {
    width: 33.333%;
  }

  #bravis {
    width: calc(33.333% / 3.88421052631579); /* maybe just % */
  }

  #bravistext {
    width: calc(33.333% / 1.8);
  }
  
  main {
	  padding: 0 2vw;
    white-space: nowrap;
    font-size: 0;
  }

  #projects {
    height: 100%;
  }

  article {
    display: inline-block;
    white-space: normal;
    vertical-align: top;
    margin-right: 4vw;
    height: 100%;
    position: relative;
    width: auto;
  }

  article.last {
    margin-right: 2vw;
  }

  article.introduction {
    width: 70vw;
  }

  #projects div.imagecontainer {
    padding: 0 !important;
    height: 100%;
  }

  #projects .cover img {
    position: relative;
    width: 96vw;
    height: auto;
    display: block;
  }

  #projects .project img {
    height: 100%;
    width: auto;
    position: relative;
  }

  aside {
    white-space: normal;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
  }

  .about {
    padding-right: 2vw;
  }

  .clients {
    padding-left: 2vw;
  }

}


@media only screen and (min-width: 1440px) {

  body, article {
    font-size: 0.66vw;
  }

  #logo {
    width: 25%;
    left: -1px;
  }

  #bravis {
    width: calc(25% / 3.88421052631579); /* maybe just % */
  }

  #bravistext {
    width: calc(25% / 1.8);
  }

  article.introduction {
    width: 40vw;
  }
	
}

/* Loading animation */

.spinner {
  margin: -5px auto;
  width: 70px;
  text-align: center;
  display: none;
  position: relative;
  top: 50%;
}

.spinner.loading {
  display: block;
}

.spinner > div {
  width: 10px;
  height: 10px;
  background-color: #4e5f7e;

  border-radius: 100%;
  display: inline-block;
  -webkit-animation: bouncedelay 1.4s infinite ease-in-out;
  animation: bouncedelay 1.4s infinite ease-in-out;
  /* Prevent first frame from flickering when animation starts */
  -webkit-animation-fill-mode: both;
  animation-fill-mode: both;
}

.spinner .bounce1 {
  -webkit-animation-delay: -0.32s;
  animation-delay: -0.32s;
}

.spinner .bounce2 {
  -webkit-animation-delay: -0.16s;
  animation-delay: -0.16s;
}

@-webkit-keyframes bouncedelay {
  0%, 80%, 100% { -webkit-transform: scale(0.0) }
  40% { -webkit-transform: scale(1.0) }
}

@keyframes bouncedelay {
  0%, 80%, 100% { 
    transform: scale(0.0);
    -webkit-transform: scale(0.0);
  } 40% { 
    transform: scale(1.0);
    -webkit-transform: scale(1.0);
  }
}

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

.ir{background-color:transparent;border:0;overflow:hidden}.ir:before{content:"";display:block;width:0;height:150%}.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:after,.clearfix:before{content:" ";display:table}.clearfix:after{clear:both}