@import url("https://fonts.googleapis.com/css?family=Open+Sans");

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Open Sans", sans-serif;
  color: #222;
  padding-bottom: 50px;
}

.container {
  width: min(90%, 1200px);
  margin: 0 auto;
}

.nav {
  position: fixed;
  background-color: #222;
  top: 0;
  left: 0;
  right: 0;
  transition: all 0.3s ease-in-out;
}

.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 0;
  transition: all 0.3s ease-in-out;
}

/* nav in mobile */
.nav #toggle-nav {
  display: none;
  padding: 0.3rem 0;
}

.nav #toggle-nav i {
  color: #fff;
  font-size: 20px;
}

.nav.active #toggle-nav i {
  color: #000;
}

.nav ul {
  display: flex;
  align-items: center;
  justify-content: center;
  list-style-type: none;
}

.nav ul a {
  padding: 0.43rem 0.93rem;
  transition: all 0.3s ease-in-out;
}

.nav ul a,
.nav .logo a {
  color: #fff;
  text-decoration: none;
}

.nav.active {
  background-color: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.nav.active .container {
  padding: 10px 0;
}

.nav.active a {
  color: #000;
}

.nav a.current,
.nav a:hover {
  color: #c0392b;
  font-weight: bold;
}

.hero {
  background-image: url("https://images.wallpaperscraft.com/image/lake_mountains_trees_129959_1920x1080.jpg");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: bottom center;
  height: 100vh;
  color: #fff;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin-bottom: 1.5rem;
  z-index: -2;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  z-index: -1;
}

.hero h1 {
  font-size: 2.9rem;
  margin: -1.5rem 0 1.5rem;
}

.hero p {
  font-size: 1.25rem;
  letter-spacing: 1px;
}

.content h2,
.content h3 {
  font-size: 150%;
  margin: 1.5rem 0;
}
.content p {
  color: #555;
  line-height: 1.8rem;
  letter-spacing: 1.1px;
}

@media (max-width: 580px) {
  .nav #toggle-nav {
    display: block;
    margin-left: auto;
  }

  #nav-buttons {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 40vw;
    margin-top: 5rem;
    background-color: #222;
    transform: translateX(101%);
    transition: all 0.3s ease-in-out;
  }

  .nav.active #nav-buttons {
    margin-top: 3.25rem;
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  }

  #nav-buttons.show {
    transform: translateX(0);
  }

  #nav-buttons ul {
    justify-content: flex-start;
    flex-direction: column;
  }

  #nav-buttons ul li:first-child {
    margin-top: 1.5rem;
  }

  #nav-buttons ul li {
    margin-bottom: 1.5rem;
  }

  .hero h1 {
    font-size: 2.65rem;
  }

  .hero p {
    font-size: 1rem;
  }
}
