html,
body {
  display: flex;
  font-family: 'Open Sans', sans-serif;
}
html {
  height: 100%;
}
body {
  flex: 1;
  margin: 0;
  background: #1f407b url(../img/steven-thailand.jpg) no-repeat -1200px center fixed;
  color: #fff;
  overflow: hidden;
}
body.mywork-details .main {
  padding-top: 1rem;
}
.wrapper {
  position:relative; 
  display: flex;
  flex-direction: column;
  flex: 1;
  width: 100vw;
  overflow: hidden;
}
/* Header */
.header {
  display: flex;
  flex: none;
  flex-direction: column;
  justify-content: flex-start;
  background-color: #1f407b;
  z-index: 1;
}
.header__main {
  display: flex;
  justify-content: center;
  flex: 1;
}
.header__secondary {
  flex: 1;
  display: none;
  background-color: #1a3362;
}
.header__secondary.showFlex {
  display: flex;
}
.header__secondary h1 {
  display: flex;
  justify-content: center;
  align-items: center;
  flex: none;
  margin: 0;
}
.header__secondary-inner {
  display: flex;
  margin: 4vw;
}
.header__logo {
  flex: none;
  height: 50px;
  width: 204px;
  height: 105px;
  background-image: url(../img/steven-elston-logo.svg);
  background-position: 0 6px;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  align-self: center;
}
.header__nav {
  display: flex;
  position: absolute;
  bottom: 5vh;
  left: 0;
  right: 0;
  margin: 0 auto;
  flex: 1;
  padding: 0;
  height: 50px;
  width: 85vw;
}
.header__nav li {
  display: flex;
  list-style-type: none;
  flex: 1;
  text-align: center;
  align-items: center;
  margin: 0 1rem;
}
.header__nav li:first-child {
  margin-left: 0;
}
.header__nav li:last-child {
  flex: none;
}
.header__nav li a {
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  color: #fff;
  text-decoration: none;
  display: block;
  padding: .5rem;
  border-bottom: 3px solid transparent;
}
.header__nav li a:hover {
  opacity: .8;
}
.header__nav li a:active {
  opacity: 1;
}
.header__nav li a.current {
  color: #2abed3;
}
.header__nav li a.linkedin {
  background-image: url(../img/LinkedIn.svg);
  background-repeat: no-repeat;
  width: 5px;
  height: 5px;
}
.header__projectsnav {
  display: flex;
  justify-content: flex-end;
  flex: none;
  z-index: 1;
  list-style-type: none;
  height: 10px;
  margin-top: -7px;
  flex: 1;
}
.header__projectsnav li {
  margin-left: .4rem;
}
.header__projectsnav li a {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #2abed3;
  color: #1a3362;
  border-radius: 500rem;
  padding: .5rem;
  text-decoration: none;
}
.header__projectsnav-forward:hover,
.header__projectsnav-back:hover,
.header__projectsnav-list:hover {
  opacity: .8
}
.header__projectsnav-forward.disabled,
.header__projectsnav-back.disabled {
  opacity: .4;
}

/* Main */
.main {
  display: flex;
  flex-direction: column;
  flex: 1;
  overflow: auto;
  margin-top: 4vw;
  margin-bottom: 20vh;
  margin-left: 4vw;
  margin-right: 4vw;
}
.main.tiles {
  display: flex;
  align-content: flex-start;
  overflow: auto;
  flex: 1;
  flex-flow: row wrap;
  background-color: #1a3362;
  padding-top: 1rem;
}
.main__landing-text {
  display: flex;
  flex-direction: column;
  flex: 1;
  color: #fff;
  text-align: center;
  justify-content: center;
  align-items: center;
}
.main__landing-text p {
  font-size: 10vw;
  letter-spacing: -.6vw;
  line-height: 9vw;
  font-weight: 600;
}
.main__landing-text .button {
  font-size: 1.1rem;
  padding: .5rem 1.4rem;
}

/* Text styles */
h1 {
  font-size: 24px;
  text-transform: uppercase;
  font-weight: 600;
  margin-top: 0;
  margin-bottom: 1rem;
}
h2 {
  font-size: 20px;
  font-weight: 600;
  margin-top: 0;
  margin-bottom: 1rem;
}
p {
  line-height: 1.4rem;
  margin: 0;
  margin-bottom: 1rem;
}
.emphasis {
  color: #2abed3;
}

/* Buttons */
.button-bar {
  margin-top: 16px;
}
.button {
  display: block;
  background-color: #2abed3;
  border-radius: 500rem;
  padding: .5rem 1.4rem;
  font-size: 1rem;
  color: #1f407b;
  font-weight: 600;
  text-decoration: none;
  text-transform: uppercase;
}

/* Over mij */
.overmij-text {
  display: flex;
  flex: 1;
  align-items: center;
}
.overmij-text p {
  text-align: center;
  font-size: .8rem;
  font-weight: 600;
  line-height: 1.4rem;
  margin: 1rem;
}
.overmij-button {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

/* Mijn werk */
.projects__project {
  display: flex;
  flex: 1;
  height: 120px;
  flex-basis: calc(50% - 2rem);
  margin: 0 1rem 1rem 1rem;
}
.projects__project:nth-child(even) {
  margin-left: 0;
}
.projects__project:nth-child(odd) {
  background-color: #1a3362;
}
.projects__project:nth-child(even) {
  background-color: #172f5b;
}
.projects__thumbnail {
  display: flex;
  flex: 1;
  overflow: hidden;
}
.projects__thumbnail-img {
  flex: 1;
  background-size: 320%;
  background-repeat: no-repeat;
}
.projects__text {
  display: none;
}
.projects__customer {
  display: none;
}

/* Mijn werk details */
.projectdetails__section {
  display: block;
}
.projectdetails__section h2 {
  margin: 0;
}
.projectdetails__section-img {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  flex: 5;
  padding-bottom: 1rem;
}
.projectdetails__section-text {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex: 3;
  padding-bottom: 1rem;
  flex-direction: column;
}
.projectdetails__section:nth-child(odd) {
  flex-direction: row-reverse;
}

/* Portrait and Landscape */
@media only screen 
  and (min-width: 1024px) {
  body {
    background: #1f407b url(../img/steven-thailand.jpg) no-repeat center 50px fixed;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
  }
  body.aboutme {
    background: #1f407b url(../img/steven-thailand.jpg) no-repeat -525px -200px fixed;
  }
  body.home .header {
    background-color: transparent;
  }
  body.mywork-details .main {
    background-color: #1a3362;
  }
  /* Header */
  .header {
    box-sizing: border-box;
  }
  .header__main {
    display: flex;
    padding: 52px 52px 22px 52px; 
  }
  .header__secondary {
    padding: 0 calc(22vw + 52px);
  }
  .header__secondary h1 {
    display: flex;
    justify-content: center;
    align-items: center;
    flex: none;
    margin: 0;
  }
  .header__secondary-inner {
    display: flex;
    margin: 0;
    padding: 2rem 0;
  }
  .header__logo {
    align-self: auto;
    margin: 0;
    width: 244px;
    height: 20px;
    background-position: 0 -4px;
  }
  .header__nav {
    margin: 0;
    align-items: center;
    justify-content: flex-end;
    position: relative;
    bottom: 0;
    left: 0;
    right: 0;
    margin: 0;
    width: auto;
    z-index: 1;
  }
  .header__nav li {
    flex: none;
  }
  .header__nav li a {
    font-size: 1.3rem;
  }
  .header__nav li a.linkedin {
    width: 25px;

  }
  .header__projectsnav {
    display: flex;
    justify-content: flex-end;
    flex: 1;
    z-index: 1;
    list-style-type: none;
    margin-top: 0;
  }
  .header__projectsnav li {
    margin-left: .4rem;
  }
  .header__projectsnav li a {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #2abed3;
    color: #1a3362;
    border-radius: 500rem;
    padding: .5rem;
    text-decoration: none;
  }
  .header__logo {
    display: block;
    width: 244px;
    height: 60px;
  }

  /* Main */
  .main {
    margin: 0;
    overflow: auto;
  }
  .main__landing-text {
    margin-top: -26vh;
  }
  .main.tiles {
    padding: 0;
  }
  .main__landing-text .button {
    position: absolute;
    bottom: 25vh;
    font-size: 1.4rem;
    padding: .5rem 1.4rem;
  }

  /* Over mij */
  .overmij-text {
    display: flex;
    align-items: center;
    position: absolute;
    top: 130px;
    right: 0;
    background-color: #1a3362;
    width: 50%;
    height: calc(100% - 130px);
    box-sizing: border-box;
  }
  .overmij-text p {
    font-size: 1.4rem;
    line-height: 2.2rem;
    margin: 52px;
  }
  .overmij-button {
    position: absolute;
    top: 105px;
    left: 0;
    width: 50%;
    height: calc(100% - 130px);
  }

  /* Buttons */
  .button {
    background-color: #2abed3;
    border-radius: 500rem;
    font-size: 1.4rem;
    padding: .5rem 1.4rem;
    color: #1f407b;
    font-weight: 600;
    text-decoration: none;
    text-transform: uppercase;
  }
  .button.small {
    font-size: 1rem;
  }
  .button:hover {
    opacity: .8;
  }

  /* Mijn werk */
  .projects__project {
    height: auto;
    margin: 0 20vw;
  }
  .projects__project:nth-child(even) {
    margin: 0 20vw;
  }
  .projects__text,
  .projects__customer {
    display: block;
  }
  .projects__thumbnail {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 3;
    margin: 1rem;
  }
  .projects__thumbnail-img {
    height: 250px;
    background-size: 320%;
    background-repeat: no-repeat;
  }
  .projects__text {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    flex-direction: column;
    flex: 3;
    margin: 52px;
  }
  .projects__customer {
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: center;
  }
  .projects__customer-img {
    width: 200px;
    height: 50px;
    margin: 52px;
    background-repeat: no-repeat;
    background-size: 70%;
    display: none
  }

  /* Mijn werk details */
  .projectdetails__section {
    padding: 0;
    display: block;
    margin: 0 22vw;
  }
  .projectdetails__section h2 {
    margin: 0 0 1rem 0;
  }
  .projectdetails__section:first-child {
    margin-top: 25px;
  }
  .projectdetails__section:last-child {
    margin-bottom: 25px;
  }
  .projectdetails__section-img {
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    flex: 5;
    padding: 0 52px;
    margin-bottom: 2rem;
  }
  .projectdetails__section-text {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    flex: 3;
    padding: 0 52px;
    flex-direction: column;
  }
  .projectdetails__section:nth-child(odd) {
    flex-direction: row-reverse;
  }
}
@media only screen
  and (min-width: 1280px) {
  .projects__customer-img {
      width: 200px;
      height: 50px;
      margin: 52px;
      background-repeat: no-repeat;
      background-size: 70%;
      display: flex;
    }
  }
@media only screen 
  and (min-width: 1600px) {
  .main__landing-text p {
    font-size: 8vw;
    line-height: 7vw;
  }
  .overmij-text {
    padding: 52px;
  }
}