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

body {
  font-family: "Open Sans", sans-serif;
  font-weight: 300;
}

/*navigation bar*/
#links {
  overflow: hidden;
  position: fixed;
  background: white;
  top: 0;
  left: 0;
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
  align-items: center;
  width: 100%;
  height: 70px;
  font-size: 1.1rem;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
  padding: 1rem;
  list-style-type: none;
}

.nav-link {
  text-transform: uppercase;
  font-family: "Open Sans", sans-serif;
  font-weight: 300;
  text-decoration: none;
  color: black;
  padding: 1rem 2rem;
  
}

.nav-link:hover {
  background: hsla(0, 0%, 95%, 0.9);
}

.nav-link:active {
  color: hsl(0, 12%, 87%);
}

.logo {
  position: fixed;
  z-index: 1;
}

.logo > #header-img {
  height: 3em;
  width: 3em;
  margin-top: 10px;
  margin-left: 10px;
}

/*title and cover*/
.header-text {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: center;
  font-family: "Abril Fatface", cursive;
}

section h1 {
  font-size: 4rem;
  padding: 0.1rem;
  margin-top: 70px;
  letter-spacing: 0.1rem;
}

section p {
  font-size: 1.3rem;
  text-transform: uppercase;
  word-spacing: 1rem;
  letter-spacing: 0.1rem;
}

#cover {
  object-fit: cover;
  width: 100%;
  height: 350px;
  margin-top: 20px;
}

/*services*/
.main-container {
  max-width: 800px;
  width: 100%;
  margin: 0 auto;
}

.grid {
  display: flex;
}

.icon {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

i img {
  width: 3em;
  height: 3em;
}

.text {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  font-size: 1.2rem;
}

.features {
  display: block;
  width: 90%;
  margin: 30px auto 0 auto;
}

/*video*/
.video-container {
  display: flex;
  justify-content: center;
  overflow: hidden;
  margin: 10px 10px 0 10px;
}

/*three boxes */
.flex-container {
  max-width: 1200px;
  display: flex;
  flex-direction: row;
  justify-content: center;
  padding: 2rem;
  margin: 5px auto auto auto;
}

.offer {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: calc(100% / 3);
  border: 1px solid hsla(0, 0%, 80%, 0.5);
  border-radius: 3px;
  margin: 30px;
  padding: 1rem;
}

.bullet-points:last-of-type {
  flex-grow: 1;
}

.bullet-points {
  font-family: inherit;
  font-size: 1.2rem;
  text-align: center;
  line-height: 1.2;
  list-style-type: circle;
  list-style-position: inside;
  margin: 0;
  padding: 0;
}

.bullet-points li {
  padding: 0.5rem;
}

.box-title {
  font-family: "Abril Fatface", cursive;
  font-size: 2rem;
  text-align: center;
  margin-bottom: 10px;
  color: hsl(0, 0%, 30%);
}

.btn {
  font-family: inherit;
  font-weight: 700;
  color: white;
  letter-spacing: 0.2rem;
  text-transform: uppercase;
  margin: 15px 0 auto 0;
  padding: 0.5rem 1rem;
  border: 0;
  border-radius: 3px;
  outline: none;
  background-size: 300% 300%;
  background-image: linear-gradient(
    to left,
    #c19b9b 0%,
    #eccfcf 50%,
    #ddb1b1 100%
  );
  transition: 0.5s;
}

.btn:hover {
  background-position: right center;
  cursor: pointer;
}

.btn:active {
  background: hsl(0, 0%, 90%);
}

/*contact form*/
.form-group {
  display: flex;
  justify-content: center;
  padding: 1.5rem;
}

#form {
  text-align: center;
  background: hsla(0, 0%, 90%, 0.6);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 600px;
  width: 100%;
  margin: 5px auto 50px auto;
}

#contact-title {
  font-family: "Abril Fatface", cursive;
  font-weight: 700;
  font-size: 2rem;
  letter-spacing: 0.1rem;
  color: hsl(0, 0%, 30%);
  margin: 0.7em 0em 0.4em 0em;
}

#contact-call-action {
  font-family: "Open Sans", sans-serif;
  text-transform: uppercase;
  color: hsl(0, 0%, 30%);
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 1em;
}

#free {
  color: hsl(0, 30%, 75%);
}

.form-control-input {
  width: 90%;
  height: 2.5em;
  padding: 0.8em;
  font-family: inherit;
  font-weight: 300;
  font-size: 1rem;
  border-radius: 7px;
  border-style: hidden;
  outline-color: grey;
}

#message {
  font-family: inherit;
  font-weight: 300;
  font-size: 1rem;
  padding: 10px;
  width: 90%;
  min-height: 100px;
  resize: vertical;
  border-radius: 5px;
  border: none;
  outline-color: grey;
}

.gradient-btn {
  display: block;
  color: white;
  font-family: inherit;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2rem;
  text-align: center;
  outline: none;
  border: none;
  margin-bottom: 0.7em;
  padding: 1em 6em;
  border-radius: 5px;
  background-size: 300% 300%;
  background-image: linear-gradient(
    to left,
    #c19b9b 0%,
    #eccfcf 50%,
    #ddb1b1 100%
  );
  transition: 0.5s;
}

.gradient-btn:hover {
  background-position: right center;
  cursor: pointer;
}

.gradient-btn:active {
  background: hsl(0, 0%, 80%);
}

/*footer*/
footer ul {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  padding: 10px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
  font-size: 0.9rem;
  list-style-type: none;
  overflow: hidden;
}

.social-icons img {
  width: 2em;
  height: 2em;
}

.social-icons {
  width: 250px;
  text-align: center;
}

#made-by {
  width: 250px;
  text-align: right;
}

#photo-credit {
  text-align: left;
  width: 250px;
}

a {
  color: black;
}

a:unvisited {
  color: black;
}

a:visited {
  color: grey;
}

/*tablet*/
@media screen and (max-width: 768px) {
  .nav-link {
    font-size: 0.8em;
    padding: 1rem 1.8rem;
  }

  .main-container {
    width: 100vw;
    padding: 0;
    margin: -40px 0 -30px 0;
  }

  .flex-container {
    width: 95vw;
    margin-top: -20px;
  }

  .offer {
    margin-right: 5px;
    margin-left: 5px;
  }

  .bullet-points {
    font-size: 1rem;
  }

  .text {
    font-size: 1rem;
  }

  .header-text h1 {
    font-size: 3rem;
  }

  .header-text p {
    font-size: 1rem;
  }

  .box-title {
    font-size: 1.6rem;
  }

  #email-submit {
    margin: -40px 20px 0 20px;
  }

  #contact-title {
    font-size: 1.5rem;
  }

  #contact-call-action {
    font-size: 0.9rem;
  }

  footer ul li {
    padding: 0 2px;
    height: 40px;
  }

  .social-icons {
    margin-top: 4px;
    margin-bottom: -3px;
    text-align: center;
  }

  footer ul {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex-wrap: nowrap;
    align-items: center;
    height: 110px;
  }

  #photo-credit,
  #made-by {
    text-align: center;
  }

  a {
    -webkit-tap-highlight-color: transparent;
  }
}

/*mobile*/
@media screen and (max-width: 600px) {
  section h1 {
    padding: 0.1rem;
    margin: 0;
  }

  .header-text {
    margin-top: 55px;
  }

  #header-img {
    display: none;
  }

  .main-container {
    width: 95vw;
    padding: 0;
    margin-top: -30px;
    margin-bottom: -20px;
  }

  .text {
    font-size: 1rem;
    padding: 0;
  }

  .header-text h1 {
    font-size: 2.5rem;
  }

  .header-text p {
    font-size: 0.9rem;
  }

  .box-title {
    font-size: 1.4rem;
  }

  .bullet-points {
    font-size: 0.9rem;
  }

  .video-container {
    display: flex;
    justify-content: center;
    overflow: hidden;
    margin: 30px 30px 0 30px;
  }

  .flex-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 90vw;
    margin-top: 10px;
    margin-bottom: 10px;
    padding: 0;
  }

  .offer {
    width: 80vw;
    margin-top: 10px;
    margin-bottom: 10px;
  }

  .bullet-points {
    line-height: 1;
  }

  #email-submit {
    margin-left: 20px;
    margin-right: 20px;
  }

  #form {
    margin-top: 50px;
  }

  .form-group {
    padding: 1rem;
  }

  footer {
    margin-top: -20px;
  }

  footer ul {
    height: 110px;
  }

  footer ul li {
    padding: 0 2px;
    height: 40px;
  }

  .social-icons {
    margin-top: 3px;
    margin-bottom: -2px;
    text-align: center;
  }

  #made-by,
  #photo-credit {
    text-align: center;
  }

  /*hamburger menu*/
  html,
  body {
    overflow-x: hidden;
    height: 100%;
  }

  body {
    padding: 0;
    margin: 0;
  }

  #nav-bar {
    height: auto;
    position: fixed;
    background: white;
    left: 0;
    width: 250px;
    margin-top: 50px;
    transform: translateX(-250px);
  }

  #links {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    height: auto;
    max-width: 50vw;
    overflow: hidden;
    position: fixed;
    margin: 0;
    padding: 0;
  }

  .nav-link {
    display: block;
    text-align: center;
    margin: 1px;
    background: hsla(0, 0%, 90%, 0.5);
    width: auto;
    font-weight: 700;
  }

  .nav-link:hover {
    background: hsla(0, 0%, 95%, 0.5);
  }

  .nav-link:active {
    background: hsla(0, 0%, 98%, 0.3);
  }

  a {
    -webkit-tap-highlight-color: transparent;
  }

  #menu-wrap {
    position: fixed;
    display: block;
    max-width: 100%;
    width: 100%;
    height: 50px;
    overflow: hidden;
    z-index: 1;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
    background: white;
  }

  input[type="checkbox"] {
    display: none;
  }

  input[type="checkbox"]:checked ~ #nav-bar {
    transform: translateX(0px);
  }

  .hamburger-menu {
    display: block;
    box-sizing: border-box;
    cursor: pointer;
    position: absolute;
    z-index: 2;
    top: 17px;
    left: 25px;
    height: 25px;
    width: 25px;
    -webkit-tap-highlight-color: transparent;
  }

  .line {
    transition: all 0.3s;
    box-sizing: border-box;
    position: absolute;
    height: 3px;
    width: 100%;
    background: black;
  }

  .line:nth-child(2) {
    box-sizing: border-box;
    position: relative;
    margin-top: 3px;
  }

  .line:nth-child(1) {
    box-sizing: border-box;
    position: relative;
  }

  .line:nth-child(3) {
    box-sizing: border-box;
    position: relative;
    margin-top: 3px;
  }

  input[type="checkbox"]:checked ~ .hamburger-menu > .line:nth-child(2) {
    box-sizing: border-box;
    opacity: 0;
  }

  input[type="checkbox"]:checked ~ .hamburger-menu > .line:nth-child(1) {
    box-sizing: border-box;
    transform: rotate(135deg);
    margin-top: 8px;
  }

  input[type="checkbox"]:checked ~ .hamburger-menu > .line:nth-child(3) {
    box-sizing: border-box;
    transform: rotate(-135deg);
    margin-top: -9px;
  }
}