/* Small devices (landscape phones, 576px and above)*/
@media (min-width: 576px) {
    #hairstyles ul {
        justify-content: center;
    }
    .hero .sub-hero, img {
        width: 400px;
    }

    nav {
        font-size: 16px;
    }
}

/* Media devices (tablets, 768px and above)*/
@media (min-width: 768px) {
      .sub-hero h2 {
        max-width: 550px;
        margin: 0 auto;
      }

      #contact h3 {
        max-width: 400px; }

   #contact form {
       width: 300px;
   }     

   nav {
    font-size: 16px;
}
}

/* Large devices (desktop, 992px and above)*/
@media (min-width: 992px) {
    .sub-hero{
        flex-direction: row;
        justify-content: center;
        align-items: center;
    }
    .sub-hero img {
        width: 400px;
    }

    .sub-hero h2 {
        text-align: left;
        width: 400px;
        margin: 0;
    }

    nav {
        font-size: 16px;
    }

    #hairstyles {
        max-width: 900px;
       }
}

/* X-large devices (large desktop, 1200px and above)*/
@media (min-width: 1200px) {
       #hairstyles {
        max-width: 900px;
       }
     
     #pricing {
        max-width: 900px;
        margin-left: auto;
        margin-right: auto;
     }  

     #about {
        max-width: 1000px;
        margin-left: auto;
        margin-right: auto;
     }

     #about h4 {
        line-height: 1.5;
     }

     #about h2 {
        font-size: 40px;
     }
}