/*
 * GENERAL
 */
 * {
  box-sizing: border-box;
  -moz-box-sizing: border-box;
  -webkit-box-sizing: border-box;
 }
body,
html {
  background: #F7F7F7;
  -webkit-font-smoothing: antialiased;
}

body {
  overflow: hidden;
}


/* 
 *FONT 
 */
@font-face {
    font-family: "gt-am-com-lt";
    src: url("../fonts/Moderat-Regular.woff") format('woff');   
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: "gt-am-com-mono-lt";
    src: url("../fonts/Moderat-Regular.woff") format('woff');   
    font-weight: light;
    font-style: normal;
}



h1 {
  font-family: "gt-am-com-mono-lt";
  font-size: 1.1em;
  font-weight: normal;
}

blockquote {
  font-size: 2em;
  line-height: 1.2em;
  font-weight:normal;
  text-align: center;
}

p, ol {
  font-size: 1.25em;
  line-height: 1.5;
}

::-webkit-scrollbar {
    width: 0!important;
}






/*
 * UTILITY
 */
 .clearfix:after {
  content: '';
  clear: both;
  display: block;
}
.mono {
  font-family: "gt-am-com-mono-lt";
}
.text {
  font-family: "gt-am-com-lt";
}



/*
 * NAV
 */

 
 /* Logo + Bio */
 
 .nav {
  position: fixed;
  top: 0;
  /*left: 2em;*/
  padding-left: 3em;
  z-index: 200;
 }
.nav--main {
  display: flex;
  justify-content: space-between;
}

.nav--main__menu {
  margin-top: .85em;
  margin-left: 1em;
  color: #4A90E2;
}

.nav--main__menu a {
  text-decoration: none;
  color: inherit;
}

.nav--main__menu span {
  display: none;
}
.nav--main__menu span.active {
  display: inline;
}


 /* Projects and Case Studies switcher */

.nav--sub__slide {
  z-index: 301;
  display: none;
  pointer-events: none;
}

.nav--sub {
  z-index: 300;
  display: flex;
  justify-content: space-between;
  margin-bottom: 1em;
  margin-left: 1em;
  padding: 0 .5em;
}

.nav--sub a, .nav--sub__slide a {
  text-decoration: none;
}

.scroll--ind {
  opacity: 0;
  position: absolute;
  top: 70vh;
  right: 150px;
}

.scroll--ind.hidden {
  opacity: 0;
  transition: opacity 1s;
}

.scroll--ind.active {
  opacity: 1;
  transition: opacity 1s;
}

.nav--sub__projects {
  padding: .25em 1em .25em .5em;
}
.nav--sub__projects.active {
  color: #000 !important;
  text-decoration: line-through;
}
.nav--sub__case-studies {
  padding: .25em .5em .25em 1em;
}
.nav--sub__case-studies.active {
  color: #000 !important;
  text-decoration: line-through;
}


@media all and (max-width: 767px) {
  .nav {
    padding-left: .5em;
  }
  .nav--sub {
    margin-left: 1em;
    margin-right: 1em;
    margin-top: 5em;
    padding: 0;
  }
  .nav--sub a{
    padding: 0;
  }
  .nav--sub__projects {
    color: #4A90E2 !important;
  }
  .nav--sub__projects.active {
    text-decoration: line-through;
    opacity: 1;
  }
  .nav--sub__case-studies {
    color: #4A90E2 !important;
  }
  .nav--sub__case-studies.active {
    text-decoration: line-through;
    opacity: 1;
  }



}

@media all and (min-width: 768px) {
  .nav {
    padding-bottom: 1em;

  }
  .nav--sub {
    display: none;
  }
  .nav--sub__slide {
    z-index: 305;
    display: block;
    position: absolute;
    top: 6em;
    right: -120px;
  }
}




/*
 * BIO STYLE
 */
.bio {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 170;
  display: none;
  visibility: hidden;
  width: 100%;
  height: 100vh;
  background-color: #EFEFEF;
  overflow: scroll;
  -webkit-overflow-scrolling: touch;
}
.bio.open {
  display: block;
  visibility: visible;
  overflow: auto;
}
.bio__content {
  font-size: 2em;
}

.bio__content p {
  margin: 0 1em 2em .75em;
}

.bio__content img {
  display: block;
  width: 100%;
  margin-bottom: -30;
}

@media all and (min-width: 768px) {
  .bio {
    width: 50%;
  }
}

/*
 * PROJECT
 */
.projects--container {
  z-index: 0;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  max-width: 100%;
  min-height: 100%;
  background: #fff;
}

.projects--container.active {
  z-index: 150;
}
.projects--container.active a {
  color: #fff;
}
.ui-widget-content {
  border: 0px;
}
.ui-resizable-e {
  width: 75px;
  right: -40px;
}
.projects--list {
  padding-left: 6.25em;
  height: 100vh;
  overflow-y: scroll;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}
.ui-widget-content .projects--list .nav--sub__case-studies {
  color: #333333;
}

.project--container {
  background-color: #fff;
}
.project--images {
  margin-top: 8em;
  position: relative;
  min-height: 400px;
}
.project--images .bb {
/*  max-width: 100%;
*/  display: block;
  z-index: 1;
}

.project--images .bb.active {
  -webkit-box-shadow: -10px 15px 25px rgba(0, 0, 0, 0.25);
  -moz-box-shadow: -10px 15px 25px rgba(0, 0, 0, 0.25);
  box-shadow: -10px 15px 25px rgba(0, 0, 0, 0.25);
  transition: box-shadow .2s ;
  z-index: 10;
}

p.project-title  {
  margin: 4em 0 0 0;
  width: 70%;
}

p.project-text  {
  margin: 2em 0 0 0;
  width: 70%;
}

@media all and (max-width: 767px) {

  .projects--list {
    padding-left: 0;
  }

  .project--images {
    height: auto !important;
    min-height: 100px;
    margin-top: 3em;  
  }

  .project--images .bb {
    margin: 0 0 1em !important;
    width: 100%;
  }


  .project--images .bb.active {
    -webkit-box-shadow: none;
    -moz-box-shadow: none;
    box-shadow: none;
  }

  p.project-title,
  p.project-text  {
    margin: 2em 0 0 1em;
    width: 90%;
  }

  p.project-text  {
    margin-top: .5em;
  }

  .projects--container.active a {
  color: #000;
  }

  .nav--sub__projects a {
    color: #4A90E2;
  }

  .nav--sub__case-studies a{
    color: #4A90E2;
  }
}

@media all and (min-width: 768px) {
  .projects--container {
    transition: width 0.5s ease-out;
    -webkit-transition: width 0.5s ease-out;
    z-index: 30;
    width: 15%;
  }
  .projects--container.active {
    transition: width 0.5s ease-out;
    -webkit-transition: width 0.5s ease-out;
    width: 85%;
  }

  .projects--container.ro {
    transition: 0.5s ease-out;
    -webkit-transition: width 0.5s ease-out;
    width: 84%;
  }

  .projects--container a {
    color: #000;
    transition: color 0.5s, text-decoration 0.5s linear;
  }

  .projects--container.active a {
    color: #000;
    transition: color 0.5s linear;
  }

  .project--images .bb {
    cursor: e-resize;
    z-index: 1;
    position: absolute;
    /*-webkit-box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.2), 0 12px 32px 0 rgba(0, 0, 0, 0.19);
    -moz-box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.2), 0 12px 32px 0 rgba(0, 0, 0, 0.19);
    box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.2), 0 12px 32px 0 rgba(0, 0, 0, 0.19);*/
  }
  .project--images .bb.active {
    
  }
}
@media all and (min-width: 1024px) {
  .projects--container {
    transition: width 0.5s ease-out;
    -webkit-transition: width 0.5s ease-out;
    width: 20%;
  }
  .projects--container.active {
    transition: width 0.5s ease-out;
    -webkit-transition: width 0.5s ease-out;
    width: 88%;
  }
  .projects--container.ro {
    transition: width 0.5s ease-out;
    -webkit-transition: width 0.5s ease-out;
    width: 86%;
  }
  .projects--container.ro2 {
    transition: width 0.5s ease-out;
    -webkit-transition: width 0.5s ease-out;
    width: 22%;
  }
}


/*
 * CASE STUDIES
 */
.case-studies--container {
  z-index: 10;
  top: 0;
  right: 0;
  max-width: 100%;
  height: 100vh;
  position:fixed;
  overflow-y: hidden;
  overflow-x: hidden;
}

.case-studies--container.active {
  position: absolute;
  overflow-y: scroll;
  -webkit-overflow-scrolling: touch;
}

.case-study--container {
  margin-top: 1em;
  margin-bottom: 20em;
}

.case-study--container h2 {
  text-align: center;
  width: 60%;
  margin: 2em auto 0em auto;
  font-size: 2em;
  line-height: 1.2em;
}

.case-study--container h3 {
  text-align: center;
  margin: 2em auto 0em auto;
  font-size: 1.2em;
  font-weight: bold;
}

.case-study--container p, ol {
  text-align: left;
  margin: 2em auto 0em auto;
  width: 70%;
}

.case-study--container ol {
  font-size: 1.25em;
  line-height: 1.5em;
  font-style: italic;
  margin-top: .5em;
  padding-left: 1.5em;
  width: 70%;
}

.case-studies--nav {
  visibility: hidden;
  transition: opacity .5s ease-out;
  -webkit-transition: opacity .5s ease-out;
  opacity: 0;
}

.case-studies--nav.active {
  visibility: visible;
  transition: opacity 1.5s ease-out;
    -webkit-transition: opacity 1.5s ease-out;
  opacity: 1;
  
}

.case-studies--nav p, .case-studies--nav ol  {
  font-family: "gt-am-com-mono-lt";
  position: fixed;
  text-align: right;
  margin-top: -2.75em;
  font-size: .8em;
  width: 79%;
  color: #4A90E2;
}

.case-studies--nav li a {
  text-decoration: underline;
}

.case-study--container li {
  margin-top: .5em;
}

.case-study--container blockquote {
  width: 80%;
  margin: auto;
}

.bquote {
  margin-bottom: 8em;
}

.bquote p {
  font-size: .5!important;
  text-align: center;
  margin-top: 1em;
}

.case-study--container img {
  width: 100%;
  display: block;
  margin: 8em auto 8em auto;
}

.case-study--container img:first-of-type {
  margin-top: 12.75em;
}

figcaption {
  font-style: italic;
  text-align: center;
  margin-bottom: 8em;
}

.case-study--container figure > img {
  margin: 8em auto 1em auto;
}

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

@media all and (max-width: 767px) {
  .case-study--container {
    margin-bottom: 10em;
  }

  .case-study--container img:first-of-type {
    margin-top: 6em;
  }

  .case-study--container img {
    padding-left: 0;
    margin: 4em auto 4em auto;
  }

  .case-study--container p, ol {
    margin-left: 1em;
    width: 90% !important;
  }

  figcaption {
    margin-bottom: 4em;
  }

  .case-study--container blockquote {
    text-align: left;
    padding: 0;
    width: 90%;
    margin: 0;
    margin-left: .75em;
  }

  .bquote {
    margin-bottom: 2em;
  }

  .bquote p {
    text-align: left;
  }

  .case-study--container figure > img {
    margin: 4em auto 1em auto;
  }
  figure {
    margin: 0;
  }

}

@media all and (min-width: 768px) {
  .case-studies--container {
    padding-left: 20%;
  }

}


/*
 * STYLING
 */
/* Case Studies */
.case-studies--container {
  background: #FFF;
}

.case-studies--nav ol {
  list-style: none;
}
/* unvisited link */
.case-studies--container a:link, .case-studies--nav a:link {
    color: #4A90E2;
}
/* visited link */
.case-studies--container a:visited, .case-studies--nav a:visited {
    color: #4A90E2;
}



 /* Bio */
.bio {
  font-family: "gt-am-com-lt";
  font-style: Normal;
  line-height: 1.45;
  color: #000000;
}
/* unvisited link */
.bio a:link {
    color: #000;
}
/* visited link */
.bio a:visited {
    color: #D9CFC5;
}



@media all and (max-width: 767px) {

  .proj--overlay.active {
    visibility: hidden !important;
  }
  .studies--overlay.active {
    visibility: hidden !important;
  }
  .case-studies--nav.active {
    visibility: hidden;
  }
}
@media all and (min-width: 768px) {
  .proj--overlay {
    visibility: hidden;
    position: absolute; /* Sit on top of the page content */
    width: 100%; /* Full width (cover the whole page) */
    height: 100%; /* Full height (cover the whole page) */
    top: 0; 
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #50E3C2; /* Black background */
    opacity: 0;
    z-index: 200; /* Specify a stack order in case you're using a different order for other elements */
    cursor: pointer; /* Add a pointer on hover */
    transition: visibility 0.5s, opacity 0.5s ease-out;
}
.proj--overlay.active {
    visibility: visible;
    opacity: .8;
    transition: visibility 0.5s, opacity 0.5s ease-out;
  }
  .studies--overlay {
    visibility: visible;
    position: absolute; /* Sit on top of the page content */
    width: 100%; /* Full width (cover the whole page) */
    height: 100vh; /* Full height (cover the whole page) */
    top: 0; 
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #F8E71C; /* Yellow background*/
    opacity: .8;
    z-index: 2; /* Specify a stack order in case you're using a different order for other elements */
    cursor: pointer; /* Add a pointer on hover */
    transition: visibility 0.5s, opacity 0.5s ease-out;
  }
  .studies--overlay.active {
    visibility: hidden;
    opacity: 0;
    transition: visibility 0.5s, opacity 0.5s ease-out;
  }
}


#preloader {
  position:fixed;
  top:0;
  left:0;
  right:0;
  bottom:0;
  background-color: #F8E71C; /* change if the mask should have another color then white */
  z-index:6000; /* makes sure it stays on top */
  overflow-x: scroll;
  -webkit-overflow-scrolling: touch;
}

#preloader div {
  margin-top: 8rem;
  margin-left: 3.5em;
  width: 60%;
}


#preloader h1 {
  font-size: 3em;
}


@media all and (max-width: 767px) {
    #preloader div {
    margin-top: 4rem;
    margin-left: 1em;
    width: 90%;
    }
}

.load-text {
  color: #4A90E2;
}

.load-text a {
  text-decoration: none;
  color: #4A90E2;
}




