body {
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #3f3f3f;
  font-size: 20px;
  text-align: justify;
}

.header {
  background-image: url('https://images.unsplash.com/photo-1557599443-2071a2df9c19?ixid=MXwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHw%3D&ixlib=rb-1.2.1&auto=format&fit=crop&w=1382&q=80');
  padding-bottom: 150px;
  width: auto;
  background-size: cover;
}

.section {
  margin: 0 80px;
}

nav {
  text-align: right;
  padding: 30px 10px 0 0;
  font-weight: 500;
}

.nav-elements {
  margin: 20px 0 0 0;
  font-size: 20px;
  padding: 10px 10px 10px 0;
  color: white;
}

.nav-elements:hover {
  border: 4px solid white;
  border-radius: 25px;
  padding: 5px 10px 5px 10px;
  margin: 0 5px 0 0;
  transition-duration: 0.35s;
}

a {
  text-decoration: none;
}

.hero-text {
  text-align: center;
  vertical-align: middle;
  font-size: small;
  width: auto;
  padding: 70px 0 0 0;
}

.hero-main {
  color: white;
  font-size: 75px;
  margin-bottom: 10px;
}

.hero-sub {
  color: white;
  font-size: 25px;
  margin-top: 0;
}

.hero-button-row {
  text-align: center;
  margin: 55px 0 0 0;
}

.hero-button {
  color: white;
  font-weight: 500;
  font-size: 20px;
  margin: 0 10px;
  border: 3px solid white;
  padding: 5px 25px;
  border-radius: 25px;
}

.hero-button:hover {
  border: 4px solid white;
  border-radius: 0;
  transition-duration: 0.25s;
}

.main-subheading {
  margin-bottom: 10px;
  font-size: 35px;
  margin-top: 40px;
}

.button-row {
  margin: 35px 30px 20px 30px;
  text-align: center;
  justify-content: space-evenly;
}

.button {
  width: 110px;
  justify-content: space-evenly;
  display: inline-block;
  border: 5px solid black;
  color: white;
  background-color: black;
  padding: 10px 25px;
  border-radius: 35px;
  text-align: center;
  vertical-align: middle;
  margin-top: 10px;
}

a:hover {
  font-weight: 600;
}

.button:hover {
  width: 130px;
  transition-duration: 0.5s;
}

.footer {
  background-color: black;
  margin: 10px 0 0 0;
  padding: 20px;
}

.footer-text {
  text-align: center;
  font-size: 20px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: white;
}

.project-box {
  width: auto;
  border: 4px solid black;
  background-color: white;
  height: auto;
  text-align: center;
  padding: 20px;
  color: #3f3f3f;
  margin: 20px 0 0 0;
}

.project-box:hover {
  background-color: black;
  color: white;
  transition-duration: 1s;
}

@media screen and (max-width: 600px) {
  .section {
    margin: 0 20px;
  }

  .hero-main {
    font-size: 55px;
    text-align: center;
  }

  .hero-sub {
    color: white;
    font-size: 18px;
    margin-top: 0;
  }

  nav {
    text-align: center;
    padding: 30px 5px 0 5px;
    font-weight: 500;
  }

  .nav-elements {
    margin: 15px 0 0 0;
    font-size: 17px;
    padding: 10px 7px 10px 0;
    color: white;
    font-weight: 500;
    justify-content: space-around;
  }

  .nav-elements:hover {
    border: none;
    margin: 20px 0 0 0;
    font-size: 20px;
    padding: 10px 10px 10px 0;
    color: white;
  }

  .nav-button:hover {
    border: none;
  }

  .project-box:hover {
    background-color: black;
    color: white;
    transition-duration: 1s;
  }

  .button-row {
    margin: 25px 0 20px 0;
    text-align: center;
    justify-content: space-evenly;
  }

  .button {
    width: 230px;
    justify-content: space-around;
    display: inline-block;
    border: 5px solid black;
    color: white;
    background-color: black;
    padding: 10px 25px;
    border-radius: 35px;
    text-align: center;
    vertical-align: middle;
    margin: 10px 10px;
  }

  .button:hover {
    width: 250px;
    transition-duration: 0.5s;
  }
}
