:root{
    --black:black;
    --gray:gray;
    --grey:#e6e6e6;
    --blue:#18428c;
    --collapse-bg:#b6b6b6;
    --white:white;
    --light-red:#f85c37;
    --font1: 'Open Sans', sans-serif;
    --font2:'Roboto Slab', serif;
}
*{
    font-family: var(--font1);
    font-size: 16px;
}
li{
    list-style: none;
}
a{
    color:var(--black) !important;
    text-decoration: none !important;
}
img{
    width: 100%;
}

.wrapper{
    overflow: hidden;
}
/*Header*/
header{
    z-index: 4;
    background-color:var(--white);
    border-bottom: 1px solid grey;
}
.navlinks{
    width: 65%;
}

.links a{
    text-transform: uppercase;
    font-size: .9em;
    font-weight: bold;
}

.links li::after{
    content: '';
    display: block;
    background-color: var(--black);
    width:0;
    height: 2px;
    transition: .5s;
}

.links li:hover::after{
    width: 100%;
}

.nav-social-icons{
    width: 26%;
}
.nav-social-icons i{
    border-right: 1px solid;
    border-color: var(--grey);
    padding: 12% 11%;
    color: var(--gray);
}
.link-topbar{
    border-bottom:1px solid;
    border-color: var(--grey);
}
.link-topbar span{
    font-size: .9em;
    text-transform: uppercase;
    color: var(--gray);
}

.link-topbar span i{
    color: var(--light-red);
}

.link-topbar div:nth-child(1),.link-topbar div:nth-child(2){
    border-right:1px solid;
    border-color: var(--grey);
    padding: 1.7% 0;
}

.mob-links{
    top: 72px;
}

.mob-bar i{
    font-size: 2em;
}
.mob-links li{
    padding:10px 0;
    list-style-type:disc;
}
.mob-links ul{
    border: 2px solid;
    border-color:var(--light-red);
}
.mob-links li a{
    text-transform: uppercase;
    font-size: .9em;
    font-weight: bold;
    border-bottom: 2px solid;
    border-color:var(--light-red);
}
.mob-links li:nth-child(8), .mob-links li:nth-child(8) a{
    list-style: none;
    border:none;
}
.navlogo{
    width: 45%;
}
/*Hero Section*/
.carousel-caption{
    text-align: left !important;
    bottom: 0 !important;
    top: 20%!important;
}

.carousel-caption h3{
    font-size: 3rem;
    text-transform: uppercase;
    font-family: var(--font2);
}

.carousel-caption span{
    font-size: 3rem;
    text-transform: uppercase;
    font-weight: bold;
    color: var(--light-red);
}

.carousel-caption a{
    color: var(--white) !important;
    padding:10px 20px;
    text-transform: uppercase;
    font-family:var(--font2);
    font-size: .8em;
    font-weight: bold;
    border-radius: 2px;
}
.hero-btns{
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}
.c-i-1{
    background-image: url(../images/background/hero-sec-slide1.jpg);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    box-sizing: content-box;
    padding-bottom: 69%;
}
.c-i-2{
    background-image: url(../images/background/hero-sec-slide2.jpg);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    box-sizing: content-box;
    padding-bottom: 69%;
}

.hero-btns a:nth-child(1){
    border: 2px solid white;
    margin-right: 10px;
    transition: .5s;
}

.hero-btns a:nth-child(1):hover{
    background-color: var(--light-red);
    border-color: var(--light-red);
}

.hero-btns a:nth-child(2){
    background-color:var(--light-red);
    transition: .5s;
    border: 2px solid;
    border-color: var(--light-red);
}

.hero-btns a:nth-child(2):hover{
    border: 2px solid white;
    background-color: transparent;
    color: var(--white);
}

/*Filter*/
.filter{
    width: 90%;
}
.filter-search{
    width: 5%;
    background-color:var(--blue);
    color: var(--white);
    transition: .5s;
}

.filter-search:hover{
    background-color: var(--light-red);
}
.filter h4{
    font-size: .9em;
    text-transform: uppercase;
    font-family: var(--font2);
    color: var(--blue);
}
.filter figcaption{
    text-align: center;
    text-transform: uppercase;
    font-size: .8em;
    color: var(--gray);
}
form h3{
    font-size: .9em;
    text-transform: uppercase;
    font-family: var(--font2);
    color: var(--blue);
}
.filter-container{
    top:100%;
    z-index: 1;
}
.filter-container figure{
    margin-bottom: 0;
}
.vehicle-brands-wrap{
    width: 95%;
}
form a{
    border:1px solid gray;
    color: var(--blue) !important;
    background-color:var(--collapse-bg);
    padding: 2% 7%;
}
.form-collapse-wrap{
    width: 40%;
}
.form-collapse{
    width: 50%;
}
form .collapse ul{
    background-color: var(--collapse-bg);
    padding: 0;
}
.ranges{
    width: 100%;
}
.ranges input{
    width: 100%;
}
.range-wrap{
    width: 37% !important;
}
.mob-vehicle-search{
    font-size: .9em;
    text-transform: uppercase;
    font-family: var(--font2);
    color: var(--blue);
    background-color: var(--white);
    width: 80%;
    margin: 0 auto;
}
.mob-vehicle-search figcaption{
    text-align: center;
    text-transform: uppercase;
    font-size: .8em;
    color: var(--gray);
}
.mob-collapse-wrap a{
    border:1px solid gray;
    color: var(--blue) !important;
    background-color:var(--collapse-bg);
}
.mob-collapse-wrap ul{
    background-color: var(--grey);
}
.mob-range-wrap{
    width: 100%;
}

/*Welcome Section*/
.welcome{
    z-index: 1;
    top: 120px;
}

.carmaxel-welcome h2{
    font-size: 4em;
    font-weight: bold;
    color: var(--grey);
}
.carmax-2 h3{
    font-size: 1.5em;
    font-family: var(--font2);
}
.carmax-2 p{
    color: var(--gray);
    font-size: 1em;
    line-height: 2em;
}
.carmax-2 a{
    padding:10px 20px;
    background-color: var(--blue);
    color: var(--white) !important;
    text-transform: uppercase;
    font-size: .8em;
    font-weight: bold;
}
.carmax-2 img{
    width: 230px;
}
.carmax-2{
    padding-top: 34%;
}

.carmax-2 a{
    transition: .5s;
}

.carmax-2 a:hover{
    background-color: var(--light-red);
}

/*Counter*/
.counter{
    padding-top: 26%;
}
.counter img{
    max-width: 120px;
}
.counter .col-6{
    text-align: center;
    padding:20px 0;
}
.counter .container-fluid{
    background-image: url(../images/background/counter-bg.jpg);
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}
.counter .row{
    background:rgba(0, 0, 0, 0.678);
}
.counter h1{
    color: var(--white);
    font-size: 1em;
    text-transform: uppercase;
    font-weight: bold;
}
.counter span{
    font-size: 2em;
}

/*Features*/
.features img{
    width: 230px;
}
.feature-heading{
    max-width:550px;
}
.feature-heading h3{
    font-size: 1.8em;
}
.feature-heading p{
    font-size: .9em;
    color: var(--gray);
    line-height: 1.5em;
}
.feature-icon{
    padding: 22px 30px;
    border: 2px solid;
    border-color: var(--blue);
    border-radius: 53px;
    margin-right: 30px;
    transition: .5s;
}

.feature-icon:hover{
    transform: rotate(360deg);
}

.feature-text h3{
    text-transform: uppercase;
    font-size: 1em;
    font-family: var(--font2);
    font-weight: 400;
}
.feature-text p{
    font-size: .9em;
    color: var(--gray);
}
.features .col-12{
    padding: 20px 10px;
}
.feature-icon i{
    color: var(--light-red);
    font-size: 2em;
}

.wrench{
    padding: 29px 30px;
}

/*Feature White Car*/
.why-us{
    background-image: url(../images/background/whitecar-bg.jpg);
    background-repeat: no-repeat;
    background-position:center;
    background-size: 150%;
    transition: .5s;
} 

.why-us:hover{
    background-size: 170%;
}

/*Team*/
.team img, .tire-border{
    width: 230px;
    padding: 20px 0;
}
.team-heading{
    max-width:600px;
}
.team-heading h3{
    font-size: 1.8em;
}
.team-heading p{
    font-size: .9em;
    color: var(--gray);
}
.team .col-12{
    text-align: center;
}
/*Gallary*/
.car{
    background-image: url(../images/illustartion/portfolio-1.jpg);
    background-repeat: no-repeat;
    background-position:center;
    background-size: 150%;
    transition: .5s;
}
.car:hover{
    background-size: 170%;
}
.gallary .car-1{
    background-image: url(../images/illustartion/portfolio-3.jpg);
    background-repeat: no-repeat;
    background-position:center;
    background-size: 250%;
    transition: .5s;
}
.car-1:hover{
    background-size: 370%;
}
.gallary .car-2{
    background-image: url(../images/illustartion/portfolio-2.jpg);
    background-repeat: no-repeat;
    background-position:center;
    background-size: 250%;
    transition: .5s;
}
.car-2:hover{
    background-size: 370%;
}
.gallary .car-3{
    background-image: url(../images/illustartion/portfolio-4.jpg);
    background-repeat: no-repeat;
    background-position:center;
    background-size: 250%;
    transition: .5s;
}
.car-3:hover{
    background-size: 370%;
}
.gallary .car-4{
    background-image: url(../images/illustartion/portfolio-5.jpg);
    background-repeat: no-repeat;
    background-position:center;
    background-size: 250%;
    transition: .5s;
}
.car-4:hover{
    background-size: 370%;
}
.gallary .car-5{
    background-image: url(../images/illustartion/portfolio-6.jpg);
    background-repeat: no-repeat;
    background-position:center;
    background-size: 250%;
    transition: .5s;
}
.car-5:hover{
    background-size: 370%;
}
.gallary .car-6{
    background-image: url(../images/illustartion/portfolio-7.jpg);
    background-repeat: no-repeat;
    background-position:center;
    background-size: 250%;
    transition: .5s;
}
.car-6:hover{
    background-size: 370%;
}

/*Testimonials*/
.testimonials .carousel-indicators button{
    background-color:var(--black);
}

.testimonials .carousel-indicators{
    left: 94%;
    top: 0;
    margin:0;
}
.testimonials .carousel-item{
    width:80%;
    left: 10%;
}
.testimonials .carousel-indicators button{
    width: 10px;
    height: 10px;
    border-radius: 100%;
}
.quotes{
    width: 97px;
    margin: 0 auto;
    position: relative;
    text-align: left;
    padding: 20px 0;
}
.quotes :nth-child(1){
    background-color: var(--light-red);
    padding: 20px;
    border-radius: 34px;
    color: var(--white);
}
.quotes :nth-child(2){
    position: absolute;
    background-color: var(--blue);
    padding: 20px;
    left: 42px;
    border-radius: 34px;
    color: var(--white);
}
.quote-para p{
    font-style: italic;
    color: var(--gray);
    font-size: 1em;
}
.customer-name{
    padding-top: 10px;
}
.customer-name p{
    font-size: 1em;
    font-family: var(--font2);
    text-transform: uppercase;
    font-weight: 400;
    margin-bottom: 5px;
}

.customer-name span{
    font-family: var(--font2);
    color: var(--gray);
}
.testimonials .carousel-item .border{
     max-width: 10%;
     margin: 0 auto;
}

/*Queries section*/
.queries{
    background-color: var(--blue);
    color: var(--white);
}
.query-h1 h1{
    text-transform: uppercase;
    font-family: var(--font2);
    font-size: 1.5em;
}
.query-a a{
    font-weight: bold;
    color: var(--white) !important;
    font-size: .9em;
    text-transform: uppercase;
    background-color: var(--light-red);
    padding: 13px 20px;
}

/*Inventory Section*/
.inventory-head{
    max-width: 80%;
    margin: 0 auto;
}
.inventory-head p{
    color: var(--gray);
}
.car-features{
    padding: 10px 0;
}
.inventory figure a{
    border: 2px solid;
    border-color: grey;
    padding: 8px 15px;
    font-weight: bold;
    text-transform: uppercase;
    transition: .5s;
}

.inventory a:hover{
    border: 2px solid;
    border-color: var(--light-red);
    background-color: var(--light-red);
    color: var(--white) !important;
}

.car-features a{
    border: 1px solid grey !important;
    font-size: .9em;
    padding: 10px 15px;
    font-weight: 500 !important;
    display: inline;
}
.inventory figure h3{
    text-transform: uppercase;
    font-family: var(--font2);
    font-size: 1.1em;
}
.inventory figure span{
    text-transform: uppercase;
    font-family: var(--font2);
    padding:20px 0;
    display: block;
}
.car-price{
    color: var(--light-red);
    font-weight: bold;
}

/*Footer*/
footer{
    background-image: url(../images/background/ftr-bg.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    background-position:center;
}
.footer-logo{
    text-align: center;
    border-bottom: 1px solid;
    border-color: var(--gray);
}
.footer-logo img{
    max-width: 220px;
}
.footer-contents h3{
    display: flex;
    align-items: center;
    font-family: var(--font2);
    font-size: 1em;
    color: var(--white);
}
.footer-contents span{
    display:block;
    width: 40px ;
    border: 1px solid red;
    margin-right: 5%;
}
.footer-contents li a{
    color: var(--gray) !important;
    text-transform: capitalize;
    line-height: 2em;
}
.footer-contents li{
    list-style-type:'>>';
    color: var(--grey);
    padding-left: 10px;
}
.footer-copyright{
    border-top: 1px solid;
    border-color: var(--gray);
}
/********* 7 6 8 p x  d e v i c e s *************/
@media(min-width:768px){
    /* Header */
    .navlogo{
        width: 25%;
    }

    /*welcome section*/
   .welcome{
       top: -120px;
   }

   .carmax-2{
       padding: 0;
   }

   /*Counter*/
   .counter{
       padding-top: 0;
   }

   /*Inventory*/
   .car-features a{
        padding: 5px 10px !important; 
    }
}
/********* 9 9 2 p x  d e v i c e s *************/
@media(min-width:992px){
    .carousel-item img{
        width: 100%;
        height: 100%;
    }

    .carousel-item{
        padding: 0;
    }
    .carousel-caption{
        top: 20% !important;
    }

    .carousel-caption span{
        font-size: 5rem;
    }

    /*Inventory*/
   .car-features a{
        padding: 10px 26px !important;
    }
}