.container {
    font-size: 100%;
    line-height: 1.5;
}

h1,
h2,
h3,
h4{
    font-family: 'Playfair Display', serif;
}

p,
a,
li {
    font-family: 'Roboto', sans-serif;
}

h1,
h2 {
    font-size: 1.5rem;
}

h3, 
p {
    font-size: 1rem;

}

/*Header*/

.sticky {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1;
}

header h1 {
    padding: 0.5rem 1rem;
    color: white;
    font-size: 1rem;
}


.secondary-menu {
    background-color: white;
}

.secondary-menu ul li {
    list-style: none;
}

.secondary-menu ul li a span{
    display: none;

}

.secondary-menu ul {
    display: flex;
    justify-content: flex-end;
    margin: 0;
    padding-left: 0;
}

.secondary-menu ul li a img {
    width: 2rem;
    height: 2rem;
}

.mobile-header {
    display: flex;
    justify-content: space-between;
   
}

.mobile-header a {
    padding-top: 0.5rem;
}

.mobile-header a img {
    width: 50%;
    padding: 0;
    height: 50%;
    margin-top: 0.5rem;
    margin-left: 0.5rem
}

.flex-header {
    background-color: black;
}

.mobile-header img {
    width: 8%;
    height: 8%;
    margin: 0.5rem 1rem;
    padding-top: 0.5rem;
}

nav {
    background: black;
    display: none;

}

.show {
    display: block;
}

nav ul {
    padding: 0;
    margin: 0;
}

nav ul li {
    border-bottom: 1px solid white;
    list-style: none;

}

nav ul li a {
    text-decoration: none;
    display: block;
    padding: 1rem;
    text-align: center;
    color: white;
    font-style: normal;
    
}

nav ul li a:active,
nav ul li a:hover {
    background-color: white;
    color: black;
}


.dropdown {
    display: block;
    padding: 1rem;
    text-align: center;
    width: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

.navbar a:hover, .dropdown:hover .dropbtn {
  background-color: white;
    color: black;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: #f9f9f9;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  z-index: 1;
    width: 100%;
}


.dropdown-content li a {
 
  color: white;
  background-color: black;
  padding: 1rem;
  text-decoration: none;
  display: block;
  text-align: center;

}

.dropdown-content a:hover {
  background-color: #f5d10d;
}

.dropdown:hover .dropdown-content {
  display: block;

}

.header-text {
    position: relative;
}

.header-text div {
    position: absolute;
    width: 100%;
    bottom: 0;
}

.header-text p {
    text-align: center;
    color: white;
}

.header-text p:first-of-type {
    padding-bottom: 1rem;
}

.header-text p:nth-of-type(2) {
    padding-bottom: 1rem;
}

.header-text p a {
    text-decoration: none;
    color: black;
    background-color: #f5d10d;
    padding: 0.5rem 1rem;
    border-radius: 0.3rem;
}

.header-text img {
    width: 100%;
}

.header-text p a:active,
.header-text p a:hover {
    color: white;
    border: 2px solid #f5d10d;
}

.header-text .next,
.header-text .center,
.header-text .prev {
    color: #ddd;
    display: inline-block;
    font-weight: bold;
    padding-bottom: 0.5rem;
    position: relative;
    bottom: 0;
    margin: 0 auto;
    font-size: 1.5rem;
    cursor: pointer;
}


/*Main*/

.container main > div:first-of-type {
     background-color: #efeeee;
}


.about-section img {
    padding: 1rem;
    margin: 0 auto;
    display: block;
}

.about-section {
    padding-top: 2rem;
    padding-bottom: 3rem;
}

.about-section h2 {
    text-align: center;
    padding: 1rem 2rem;
}

.about-section p {
    padding: 1rem;
}

.about-section a {
    text-align: center;
    text-decoration: none;
    display: block;
    padding: 0.5rem 1rem;
    background-color: #F5D10D;
    width: 40%;
    margin: 1rem auto;
    color: black;
    border-radius: 0.5rem;
}

.about-section a:active,
.about-section a:hover {
    color: white;
    border: 2px solid #f5d10d;
}

.container main > div:nth-of-type(3) {
     background-color: #efeeee;

}


.service-section {
    padding-top: 2rem;
    padding-bottom: 2rem;
}
.service-section h2 {
    text-align: center;
    padding: 1rem 2rem;
}

.service-card {
    position: relative;
    text-align: center;
    margin: 1rem;

}

.service-card a {
    text-decoration: none;
    color: white;
}

.service-card div h3 {
    padding-bottom: 0.5rem;
    padding-top: 0.5rem;
}

.service-card div {
    position: absolute;
    width: 100%;
    bottom: 0rem;
}

.service-card a:active div,
.service-card a:hover div {
    top: 50%;
    left: 50%;
    background-color: rgba(254,247,188,0.8);
    height: 100%;
    transform: translate(-50%, -50%);
}

.service-card a:active div h3,
.service-card a:hover div h3 {
    background-color: transparent;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: black;

}

.service-card img {
    width: 100%;
}

.review-section{
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.review-section h2 {
    text-align: center;
    padding-bottom: 2rem;
}

.review-list {
    padding-left: 1rem;
    padding-right: 1rem;
}

.review-card {
    padding: 0.5rem;
    margin-bottom: 2rem;
    box-shadow: 2px 5px 5px 2px #efeeee;
    border-radius: 0.5rem;
}

.review-card img {
    border-radius: 50%;
    width: 50%;
    margin: 1rem auto;
}

.review-card h3 {
    text-align: center;
    padding-bottom: 1rem;
}

.review-section > a {
    display: block;
    margin: 1rem auto;
    text-align: center;
    padding: 0.5rem 1rem;
    background-color: #f5d10d;
    border-radius: 0.5rem;
    width: 40%;
    text-decoration: none;
    color: black;
}

.review-section > a:hover {
    border: 2px solid #f5d10d;
    color: white;
}


.review-card p a {
    color: black;
}

.review-card p a:active,
.review-card p a:hover {
    font-weight: 600;
}

.container main > div:nth-of-type(5) {
     background-color: #efeeee;

}

.contact-section {
    padding-top: 3rem;
    padding-bottom: 3rem;
}


.contact-section h2 {
    text-align: center;
    padding-bottom: 1.5rem;
}

.contact-section p {
    padding: 0.5rem 1rem;
}

form div {
    display: flex;
    flex-direction: column;
    padding: 0.5rem 1rem;
}

form > input {
    display: block;
    margin: 1rem auto;
    text-align: center;
    padding: 0.5rem 2rem;
    background-color: #f5d10d;
    border-radius: 0.5rem;
    border: none;
}

form > input:active,
form > input:hover {
    color: white;
    border: 2px solid #f5d10d;
}
/*Service page*/

.sale {
    font-size: 2rem;
    text-transform: uppercase;
    font-weight: 600;
    color: red;
}

.banner-service {
    text-align: center;
    background: url('../img/small-pexels-scosche-1149056.jpg') center/cover no-repeat;
    height: 25rem;
    color: black;
    padding-top: 2rem;
    margin-bottom: 2rem;
}

.banner-service div {
    background-color: white;
    opacity: 70%;
    padding: 1rem 1rem 2rem 1rem;
    margin: 1rem;
    border-radius: 1rem;
}

.banner-service p {
    padding: 1rem;
}

.banner-service a {
    text-decoration: none;
    color: black;
    background-color: #f5d10d;
    border-radius: 0.5rem;
    border: none;
    padding: 0.5rem 1rem;
}

.banner-service a:active,
.banner-service a:hover {
    padding: 0.75rem 1.25rem;
    color: white;
}

.reason-section h2,
.definity-section h2 {
    text-align: center;
    padding-bottom: 1rem;
}

.definity-section div h3 {
    padding: 1rem 1rem 0.5rem 1rem;
}

.definity-section div ul li {
    list-style: none;
}

.definity-section div ul {
    padding-left: 1rem;
}

.definity-section {
    padding-bottom: 2rem;
}

.reason-section p,
.definity-section p {
    padding: 0.5rem 1rem;
}

.definity-section img,
.reason-section img {
    margin-bottom: 1rem;
    padding: 1rem;
}

.definity-section,
.reason-section {
    padding-top: 2rem;
    padding-bottom: 3rem;
}

.reason-section a {
    text-decoration: none;
    color: black;
    background-color: #f5d10d;
    border-radius: 0.5rem;
    border: none;
    padding: 0.5rem 1rem;
    width: fit-content;
    margin: 0 auto;
    display: block;
    text-align: center;
}

.reason-section a:active,
.reason-section a:hover {
    padding: 0.75rem 1.25rem;
    color: white;
}


.quote-section h2,
.galery-section h2 {
    text-align: center;
    padding: 2rem 1rem 1rem 1rem;
}

.galery-section img {
    padding: 0.5rem 1rem
    ;
}

.galery-section {
    padding-bottom: 2rem;
}

.quote-section {
    padding-bottom: 2rem;
}

.options > div {
    padding-left: 0;
    padding-right: 0;
    display: block;
    column-count: 2;
}

.options > div > div {
    display: flex;
    flex-direction: row;
    padding: 0;
}

/*Contact us page*/

.contactus-background {
     background: 
    linear-gradient(
        rgba(255,255,255,0.9),
        rgba(2255,255,255,0.9) ),
            url('../img/20210223_110404.jpg') fixed top no-repeat;

}

.contactus-flex .quote-section {
    border: 1px solid black;
    margin:  1rem;
    border-radius: 0.5rem;
    background-color: #eeeeee;
}

.contactdetail-section h2,
.contactdetail-section h3 {
    padding: 1rem;
}

.contactdetail-section > div > img {
    width: 100%;
    padding: 1rem;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.contactdetail-section ul {
    margin: 0;
    padding: 1rem;
}

.contactdetail-section ul li {
    list-style: none;
    padding: 1rem 0;
}

.contactdetail-section ul li a {
     display: flex;
     justify-content: flex-start;
     text-decoration: none;
     color: black;
}

.contactdetail-section ul li a span {
    padding-left: 0.5rem;
}

.contactdetail-section ul li img {
    width: 2rem;
    height: 2rem;
}


/*Footer*/

footer {
    background-color: black;
    color: white;
    padding: 2rem 1rem;
}


footer h2 {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
}

footer h3 {
    text-transform: uppercase;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

footer ul {
    padding: 0;
    margin: 0;
}

footer ul li {
    list-style: none;
    padding-bottom: 0.5rem;

}

footer ul li a {
    text-decoration: none;
    color: white;
    text-transform: capitalize;
}


.social-media h2 {
    text-align: center;
}

.social-media div {
    display: flex;
    justify-content: space-around;
    width: 8rem;
    margin: 0 auto;
}

.social-media div a {
    width: 3rem;
    height: 3rem;
}

.social-media div a img {
    width: 70%;
    height: 70%;
}

/*Thank you page*/

.thanks-section p {
    text-align: center;
    padding: 2rem 1rem;
    font-size: 2rem;
}

.thanks-section a {
    display: block;
    margin-top: 1rem;
    margin-left: auto;
    margin-right: auto;
    padding: 0.5rem 1rem;
    text-decoration: none;
    background-color: #f5d10d;
    color: black;
    width: 10rem;
    border-radius: 1rem;
    font-size: 1rem;

}

.thanks-section a:hover {
    color: white;
}

@media only screen and (min-width: 768px) {
   
    /*Header*/


  

    .secondary-menu ul {
        padding: 0.5rem;
        justify-content: space-around;
    }

    .secondary-menu ul li:first-of-type {
        width: 20%;
    }
    .secondary-menu ul li:nth-of-type(2) {
        width: 45%;
    }

     .secondary-menu ul li:nth-of-type(3) {
        width: 33%;
    }

    .secondary-menu ul li a {
        display: flex;
        font-size: 0.8rem;
        text-decoration: none;
        color: black;
    }

    .secondary-menu ul li a:active,
    .secondary-menu ul li a:hover {
            color: #f5d10d;
        }

    .secondary-menu ul li a span{
        display: inline-block;
        padding-top: 0.5rem;
    }

    .flex-header {
        display: flex;
        justify-content: space-between;
        padding-bottom: 0.5rem;
    }

    .btn {
        display: none;
        width: 0;
    }

     .mobile-header {
        width: 35%;
     }

    .mobile-header a img {
        width: 70%;
        height: 70%;
    }

    .nav {
        display: block;
        width: 60%;
    }

    nav ul {
        display: flex;
        justify-content: space-between;
    }

    nav ul li {
        border-bottom: none;
        margin-top:  1rem;
    }

    h1 {
        margin-top: 1rem;
    }

    nav ul li a {
        margin: 0.5rem 1rem;
        padding: 0;
    }


    nav ul li a:active,
    nav ul li a:hover {
        background-color: transparent;
        border-bottom:  1px solid white;
        border-top: 1px solid white;
        color: white;

    }

    .dropdown{
        width: auto;
    }

    .nav a:hover, .dropdown:hover .dropbtn {
     background-color: transparent;
        border-bottom:  1px solid white;
        border-top: 1px solid white;
        color: white;
    }

    .dropdown-content {
        width: auto;
    }

    .dropdown-content li {
        margin-top: 0;
    }


    .dropdown-content li a {
     
      margin: 0;
      padding: 0.5rem 1rem;
      text-align: left;

    }

    .dropdown-content a:hover {
        color: #f5d10d;
        background-color: black;
    }

    

    .dropdown {
        padding: 1rem 0.5rem;
    }

    .about-section {
        display: grid;
        grid-template-areas: 
            'title title'
            'image text';

    }

    .about-section h2 {
        grid-area: title;
        text-align: center;
        padding-left: 1rem;
        padding-bottom: 2rem;
        padding-top: 0;
    }

    .about-section img {
        grid-area: image;
    }

    .about-section div {
        grid-area: text;
    }

    .about-section div a {
        margin-right: auto;
        margin-left: 1rem;
        width: 30%;
    }

    .service-card-list {
        display: grid;
        grid-template-areas: 
                'service1 service1'
                'service2 service3'
                'service4 service5'
                'service6 service7'
                'service8 service9';
    }

    .detailing {
        grid-area: service1;
    }

    .xpel {
        grid-area: service2;
    }

    .tinting {
        grid-area: service3;
    }

    .undercoating {
        grid-area: service4;
    }

    .rustproofing {
        grid-area: service5;
    }

    .polishing {
        grid-area: service6;
    }

    .protection {
        grid-area: service7;
    }

    .sealant {
        grid-area: service8;
    }

    .repair {
        grid-area: service9;
    }


    .contact-section h2,
    .contact-section p,
    .contact-section div{
        width: 40rem;
        margin:  0 auto;
    }

    .review-card {
        display: flex;
        justify-content: space-between;
        padding-bottom: 2rem;
    }

    .review-card img {
        width: 20%;
        height: 20%;
    }

    .review-card > div {
        width: 70%;
    }

    .review-card > div h3 {
        text-align: left;
    }

    .review-section > a {
        width: 20%;
    }

    footer > div > div {
        display: flex;
        justify-content: space-around;
    }

     footer > div > div > div {
        width: 31%;
     }

    
     /*Service page*/
     .banner-service {
        padding-top: 3rem;
         
     }

    .banner-service div{
        width: 50%;
        
        
    }

    
     .definity-section,
     .reason-section {
        display: flex;
        justify-content: space-between;
     }

      .reason-section a {
        margin-left: 1rem;
        margin-right: auto;
      }
        .definity-section h2,
       .reason-section h2 {
        text-align: left;
        padding-left: 1rem;
       }

     .definity-section {
        flex-direction: row-reverse;
     }
     .definity-section img,
     .reason-section img {
        width: 50%;
       
     }

     .galery-section div {
        display: flex;
        flex-wrap: wrap;
        padding: 1rem;
     }

     .galery-section div a {
        width: 50%;
        padding: 0;
        transition: transform 0.1s easy;
     }

     
    .galery-section a:hover img {
        transform: scale(1.1);

     }

     .quote-section form {
        width: 31rem;
        margin: 0 auto;
     }

     /*Contact us page*/

     .contactus-flex {
        display: flex;
        justify-content: space-between;
     }

      .contactus-flex .quote-section {
        width: 60%;
        margin-left: 0;
        margin-bottom: 3rem;
      }

      .contactus-flex .quote-section form {
        width: 100%;
      }

}

@media only screen and (min-width: 1024px) {

    .secondary-menu ul {
        justify-content: flex-end;
    }

    .secondary-menu ul li:first-of-type,
    .secondary-menu ul li:nth-of-type(2),
    .secondary-menu ul li:nth-of-type(3){
        width: auto;
        padding-right: 0.5rem;
     }
    .mobile-header {
        height: 90%;
    }

      .mobile-header a img {
        width: 60%;
        height: 60%;
        margin-bottom: 0;
    }

    .mobile-header > img {
        padding: 0;
        margin: 0;
    }

    .service-card-list {
        grid-template-areas: 
                'service1 service2 service3'
                'service4 service5 service6'
                'service7 service8 service9';
    }

    .header-text img {
        height: 35rem;
        object-fit: cover;
    }

    .header-text div p {
        font-size: 2rem;
        padding: 1rem 3rem;
    }
    .review-card {
        flex-direction: column;
    }

    .review-list {
        display: flex;
        justify-content: space-around;
    }

    .review-card {
        width: 32%;
        height: auto;
    }

    .review-card img {
        width: 40%;
        height: 40%; 
    }

    .review-card div h3 {
        text-align: center;
    }

    .review-card > div {
        width: 100%;
    }



    footer > div > div > div {
        width: 20%;
     }

     footer > div > div > div p {
        width: 15rem;
     }

     footer > div > div > div li {
        width: 17rem;
     }

     /*Service page*/

     .banner-service {
        padding-left: 5rem;
        padding-right: 5rem;
        padding-top: 2rem;
     }

     .banner-service {
        height: 35rem;
     }

    

    .banner-service h2 {
        font-size: 2rem;
        padding-top: 2rem;
    }

    .banner-service p {
        font-size: 1.5rem;
        padding-bottom: 2rem;

    }

    .definity-section img,
    .reason-section img {
        padding: 0;
    }

    .reason-section h2, .reason-section ul, .reason-section p{
        margin-left: 1rem;
    }

    .reason-section a {
        margin-left: 2rem;
    }

  

    .galery-section > div > a{
        width: 33.33%;

    }

   

    /*Contact us page*/
    .contactus-flex .quote-section {
        width: 50%;
      }

}

@media only screen and (min-width: 1400px) {

    header {
        background-color: black;
    }
    .about-section div a {
        width: 20%;
    }
    .contactus-flex,
    .galery-section > div,
    .flex-header,
    .review-section,
    .service-section,
    .about-section,
    footer > div {
        max-width: 1400px;
        margin-left: auto;
        margin-right: auto;
    }

    .flex-header{
        padding-bottom: 0;
        margin-bottom: 0;
    }

    .mobile-header {
        height: 90%;
    }

    .mobile-header a img {
        width: 45%;
        padding: 0.5rem 0 0 0;
    }

    .mobile-header a {
        padding: 0;
        margin: 0;
    }


    /* Service page */
    .sale {
        font-size: 3rem;
    }

    .banner-service {
        height: 35rem;
        padding-top: 5rem;
    }

    .banner-service div {
        width: 40%;
    }

    
    .banner-service h2,
    .banner-service p {
        margin: 0 auto;
    }

    .definity-section,
    .reason-section {
        max-width: 1400px;
        margin-left: auto;
        margin-right: auto;
    }

    .definity-section img,
    .reason-section img {
            height: 25rem;
            object-fit: cover;
        }


    /*Contact page*/
    .contactdetail-section > div > img {
        width: 80%;
        margin-right: auto;
        margin-left:0;
    }

     
}
