@font-face {
  font-family: 'Chalkduster';
  src: url('../webfont/chalkduster-webfont.woff2') format('woff2'),
       url('../webfont/chalkduster-webfont.woff') format('woff'),
       url('../webfont/chalkduster-webfont.ttf') format('ttf');
  font-weight: normal;
  font-style: normal;
}

* {
  box-sizing: border-box;
}

body {
  position: relative;
  color: #174f63;
  background: #fff;
  font-size: 20px;
  line-height: 45px;
  font-family: "Chalkduster";
  margin: 0;
  padding: 0;
}

a {
  color: #000;
  text-decoration: none;
  transition: all 0.5s ease;
}

button {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background: none;
  border: none;
  cursor: pointer;
  outline: none;
}

h1, h2, h3 {
  margin: 0;
}

main {
  max-width: 1920px;
  margin: 0 auto;
  background: #14504e;
}

.home main {
  background: transparent;
}

header {
  position: relative;
  color: #174f63;
  z-index: 20;
}

footer {
  position: relative;
  text-align: center;
  min-height: 100px;
  z-index: 20;
}

nav {
  display: flex;
  flex-flow: row wrap;
  justify-content: center;
  align-items: center;
  width: 100%;
  font-size: 1em;
  line-height: 1em;
  padding-left: 1em;
  padding-right: 1em;
}

nav a {
  color: #174f63;
  margin: 0 1.5em;
}

nav a:hover {
  color: #000;
}

header nav {
  padding-top: 1em;
  padding-bottom: 0.5em;
}

footer nav {
  padding-bottom: 1em;
  padding-top: 0.5em;
}

section {
  position: relative;
  display: block;
  width: 100%;
  height: 100vh;
  min-height: 880px;
  max-height: 980px;
  border-top: 0.5em solid white;
  border-bottom: 0.5em solid white;
  border-left: 1em solid white;
  border-right: 1em solid white;
  overflow: hidden;
}

.container {
  position: relative;
  color: #fff;
  width: 100%;
  margin: 0 auto;
  overflow: auto;
  z-index: 10;
}

.background {
  position: absolute;
  display: block;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  pointer-events: none;
}

.background .scene {
  position: absolute;
  display: block;
  width: 100%;
  height: 100%;
  top: 0;
  right: 0;
  object-fit: cover;
  pointer-events: none;
}

.textsection {
  width: 100%;
  max-width: 680px;
  height: auto;
  margin: 0 auto;
  padding: 4em 2em;
  border: none;
  line-height: 2em;
}

.title {
  display: block;
  font-size: 4.5em;
  line-height: 1.5em;
  text-shadow: 3px 5px 20px #222222;
}

.cta {
  display: block;
  margin: 2em 0 0 2em;
}

.cta .linkroll {
  width: 5em;
  padding: 0 1em 0 0;
  transform: rotate(0);
  transition: transform 0.5s ease-in-out;
  vertical-align: middle;
}

.cta:hover .linkroll {
  transform: rotate(-360deg);
}

.z1 {
  z-index: 1;
}

.z2 {
  z-index: 2;
}

.z3 {
  z-index: 3;
}

.z4 {
  z-index: 4;
}

.z5 {
  z-index: 5;
}

.z6 {
  z-index: 6;
}

@media only screen and (max-width: 1024px) and (orientation: portrait) {

  section {
    min-height: 0;
    max-height: none;
  }
}

@media only screen and (max-width: 1024px) and (orientation: landscape) {

  body {
    font-size: 16px;
    line-height: 40px;
  }

  section {
    min-height: 640px;
  }
}

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

  section {
    min-height: 940px;
  }
}

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

  body {
    font-size: 16px;
    line-height: 40px;
  }

  .cta {
    margin: 2em 0 0;
  }
}

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

  body {
    font-size: 14px;
    line-height: 32px;
  }

  section {
    min-height: 480px;
    max-height: 740px;
    border-left: none;
    border-right: none;
  }

  .title {
    font-size: 3em;
  }

  .cta {
    margin: 1em 0 0;
  }

  .cta .linkroll {
    width: 4em;
  }
}

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

  body {
    font-size: 13px;
    line-height: 30px;
  }

  nav a {
    margin: 0 0.5em;
  }
}
