html {
  height: 100%;
}

body {
  margin: 0 auto;
  min-height: 100%;
  background-color: #F3F8F8;
}

header {
  position: relative;
  margin: 0 auto;
  height: 60vh;
  background-image: url('../images/home/background.jpg');
  background-repeat: no-repeat;
  background-size: cover;
  background-position: top;
}

header img {
  position: absolute;
  display: block;
  width: 180px;
  margin: 0 auto;
  top: 5rem;
  left:0;
  right:0;
  z-index: 10;
}

@media (max-width: 1440px) {
  header img {
    top: 3.4rem;
    width: 150px;
  }
}

@media (max-width: 1280px) {
  header img {
    top: 3.4rem;
    width: 150px;
  }
}

@media (max-width: 1024px) {
  header img {
    top: 3rem;
    width: 130px;
  }
}

@media (max-width: 768px) {
  header img {
    top: 3rem;
    width: 100px;
  }
}

.container {
  position: relative;
  margin: -30vh auto 0;
  max-width: 80%;
  display: block;
}

@media (max-width: 768px) {
  .container {
    margin: -45vh auto 0;
  }
}

img.boardfinder {
  position: absolute;
  width: 180px;
  top: -4rem;
  left: -4rem;
  z-index: 10;
}

img.foilfinder {
  position: absolute;
  width: 180px;
  top: -4rem;
  right: -4.5rem;
  z-index: 10;
}

@media (max-width: 768px) {
  img.boardfinder {
    left: -2rem;
    top: -2rem;
    width: 150px;
  }

  img.foilfinder {
    left: -2rem;
    top: 80rem;
    width: 150px;
  }
}

.tile {
  display: block;
  float: left;
  width: 100%;
  text-align: center;
  position: relative;
  color: #fff;
  margin: 0;
  overflow: hidden;
  height: 50vh;
  border-radius: 8px;
  box-shadow: 0px 0px 14px #777777;
  transition: ease-in-out 100ms;
}

.tile:hover {
  box-shadow: 0px 0px 20px #777777;
  transform: scale(105%);
}

.tile--fourth {
  width: 23%;
  margin-right: 2.666666666%;
}

.tile--fourth.last {
  margin-right: 0%;
}

@media (max-width: 768px) {
  .tile {
    height: 400px;
    transition: none;
  }
  .tile:hover {
    box-shadow: 0px 0px 20px #777777;
    transform: none;
  }
  .tile--fourth {
    width: 100%;
    margin-bottom: 40px;
  }
}

.tile--cover {
  background-size: cover;
  background-position: 50%;
}

.tile__inner {
  width: 100%;
  height: 100%;
  overflow: hidden;
  position: absolute;
}

.tile__link {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  z-index: 10;
}

.tile__content {
  position: absolute;
  pointer-events: none;
  left: 2%;
  right: 2%;
  bottom: 4rem;
  width: 96%;
  z-index: 20;
}

.tile__content a {
  pointer-events: all;
}

@media (max-width: 768px) {
  .tile__content {
    position: absolute;
    pointer-events: none;
    left: 2%;
    right: 2%;
    bottom: 2rem;
    width: 96%;
    z-index: 20;
  }
}

.text {
  float: left;
  width: 100%;
  margin: 1rem 0 0;
  text-align: center;
}

.overlay-dark, .overlay-light {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.overlay-dark {
  background-color: rgba(0,0,0,.1);
}

h1 {
  margin: 0 0 2rem 0;
  font-size: 2rem;
  font-family: "Brandon Grotesque Black", Helvetica, Arial, sans-serif;
  line-height: 1.2;
  text-transform: uppercase;
  color: #fff;
  text-align: center;
  text-shadow: 0px 0px 5px #333;
}

@media (max-width: 768px) {
  h1 {
    margin: 0 0 1rem 0;
  }
}

h2 {
  font-size: 1.8rem;
  font-family: "Brandon Grotesque Bold", Helvetica, Arial, sans-serif;
  text-align: center;
}

a {
  background-color: transparent;
  text-decoration: none;
  color: #333;
}

.btn {
  display: inline-block;
  font-family: "Brandon Grotesque Regular", Helvetica, Arial, sans-serif;
  font-weight: 400;
  text-align: center;
  white-space: nowrap;
  vertical-align: middle;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  border: 1px solid transparent;
  margin: .25em;
  padding: .75rem 2rem;
  font-size: 1rem;
  line-height: 1.5;
  border-radius: .25rem;
  border: 1px solid white;
  background-color: #12707f;
  -webkit-transition: color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,-webkit-box-shadow .15s ease-in-out;
  transition: color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,-webkit-box-shadow .15s ease-in-out;
  transition: color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;
  transition: color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out,-webkit-box-shadow .15s ease-in-out;
  color: #fff;
}

.btn:hover {
  background-color: #0d525d;
}

.footer {
  position: fixed;
  left: 0;
  bottom: 1rem;
  width: 100%;
  font-family: "Brandon Grotesque Regular", Helvetica, Arial, sans-serif;
  font-size: 1rem;
  color: #333;
  text-align: center;
}

.footer a {
  text-decoration: underline;
}

.footer a:hover {
  text-decoration: none;
}

@media (max-width: 768px) {
  .footer {
    position: relative;
    display: block;
  }
}