html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Ubuntu', sans-serif;
  font-size: 16px;
}

.nav-main {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  text-align: right;
  padding: 5px 10px;
  z-index: 100;
  font-size: 40px;
  text-transform: uppercase;
  font-family: 'Amatic SC', cursive;
}

.nav-main a {
  margin: 0 10px;
  color: white;
  text-decoration: none;
}

.nav-main a.active {
  display: inline-block;
  line-height: 38px;
  border-bottom: solid 1px white;
}

section {
  display: table;
  width: 100%;
  height: auto;
  min-height: 100vh;
  position: relative;
  margin: 0;
  padding: 60px;
  box-sizing: border-box;
}

.wrapper {
  width: 100%;
  height: 100%;
  border: solid 3px rgba(0, 0, 0, .15);
  box-sizing: border-box;
  padding: 100px;
  display: table-cell;
}

.table {
  width: 100%;
  height: 100%;
  display: table;
}

.table-cell {
  width: 50%;
  height: 100%;
  display: table-cell;
  vertical-align: middle;
}

h1 {
  font-family: 'Amatic SC', cursive;
  color: white;
  font-size: 30px;
  margin: 0;
  font-weight: normal;
  text-transform: uppercase;
}

h2 {
  font-family: 'Saira Extra Condensed', sans-serif;
  font-size: 60px;
  color: black;
  margin: 0;
  font-weight: normal;
  opacity: .8;
}

p {
  color: white;
}

a {
  color: white;
}

a:hover {
  opacity: .8;
}

#home {
  background: #A9C9BA;
}

#home .table-cell {
  width: 50%;
}

#home h1 {
  position: absolute;
  top: -99999em;
}

#home .table-cell:first-child {
  text-align: center;
}

#home .table-cell img {
  max-width: 100%;
}

#home h2 {
  font-size: 40px;
  opacity: .4;
}

#home .wrapper {
  border: none;
}

#home .page-image {
  width: 50%;
}

.page-image {
  width: 200px;
  position: absolute;
  bottom: 0;
  z-index: 10;
}

.page-image.left {
  left: 70px;
}

.page-image.left.small {
  width: 130px;
  left: 50px;
}

.page-image.right.small {
  width: 130px;
  right: 50px;
}

.page-image.right {
  right: 70px;
}

#about {
  background: #F18A89;
}

#about .table-cell:nth-child(2) {
  text-align: center;
}

#about .table-cell > img {
  width: 300px;
  max-width: 20vw;
}

#work {
  background: #C4A9C9;
}

#work .table-cell img {
  max-height: 200px;
  max-width: 100%;
}

#contact {
  background: #F6BF7A;
}

#contact .wrapper {
  padding-bottom: 150px;
}

.contact-paragraph {
  font-size: 19px;
}

#contact .page-image.right {
  width: 300px;
}

@media screen and (max-width: 900px) {
  h2 {
    font-size: 40px;
  }

  #home h2 {
    font-size: 30px;
  }

  #home .table-cell, #about .table-cell {
    width: 100%;
    display: block;
    height: auto;
  }

  .page-image {
    width: 130px !important;
  }

  .page-image.small {
    width: 80px !important;
  }

  #home .page-image {
    width: 300px !important;
    max-width: 100%;
  }

}

@media screen and (max-width: 600px) {
  .nav-main {
    font-size: 20px;
    padding: 0 5px;
  }

  .nav-main a.active {
    border: none;
    padding: inherit;
    text-decoration: underline;
  }

  section {
    padding: 30px;
  }

  .wrapper {
    padding: 30px;
  }
}

@media screen and (max-width: 500px) {
  .page-image.right {
    right: 20px;
  }

  .page-image.left {
    left: 20px;
  }
}
