
#navbar {
    flex-direction: column;
    align-items: center;
}

#navbar ul {
  margin: 0.5rem 0;
}

#navbar ul li {
  margin: 0.3rem 0;
}

/* Arrange the items vertically and center horizontally */
#services .flex-items {
  flex-direction: column;
  align-items: center;
}

#services .flex-items .item {
  width: 90%;
  flex-direction: row;
  text-align: left;
  justify-content: center;
  align-items: flex-start;
  margin-bottom: 2rem;
}
/* So icon doesn't get squashed down */
#services .item div {
  flex-basis: 70%;
}
#services i {
  margin-top: 0;
  margin-right: 1.2rem;
}

/* Make the contact form and map stack */ 
#contact {
  flex-direction: column;
}

#contact .contact-form {
  width: 100%;
}

#contact .map {
  display: none;
}

/* Smartphones 500px width or less only --------------------- */

@media (max-width:500px) {
  .lg-heading {
    font-size: 3rem;
  }
  .md-heading {
    font-size: 1.75rem;
  }
  .lead {
    font-size: 1rem;
    margin-bottom: 2rem;
  }

  #navbar {
    position: static;
  }

  #navbar ul {
    flex-wrap: wrap;
    justify-content: center;
  }

  #navbar ul li a {
    color: #666;
    padding: 0.5rem;
    margin: 0 0.5rem;
  }
  
  #navbar .logo {
    margin-bottom: 0.75rem;
    text-align: center;
  }
  #showcase {
    height: 80vh;
  }
  /* Make the icons a bit smaller */
  #services i {
    height: 3.5rem;
    width: 3.5rem;
  }

  /* stack the about img adn info using wrap and making each 100% */
  #about {
    flex-wrap: wrap;
  }
  #about .about-img,
  #about .about-info {
    flex-basis: 100%;
  }
  /* height needed to display the img */
  #about .about-img {
    height: 30vh;
  }

  /* Make the image gallery grid 1 image wide on mobile */ 
  .gallery {
    grid-template-columns: 1fr;
  }

  /* Wrap the customer icons and give them each a width of 30% */
  #portfolio .flex-items {
    flex-wrap: wrap;
    justify-content: center;
  }
  #portfolio .flex-items div {
    width: 30%;
  }
  #portfolio .flex-items img {
    margin-bottom: 1rem;
  }

  /* Stack the footer content */
  footer .container {
    flex-wrap: wrap;
    text-align: center;
  }
  footer .social-wrapper {
    margin-bottom: 1rem;
  }
}