/*===== CUSTOM OVERRIDES =====*/
section{padding:0}
section a{text-decoration: none}

/* Slideshow */
.flexslider{background:none; border:none;}
.flexslider .slides img{margin: 0 auto; width: 100% !important}
.flexslider .slides > li{text-align:center}
.flex-caption {
    background: #000;
    background: rgba(0,0,0,.75);
    line-height: 3;
    padding: 0 0 0 20px;
    width: 100%;
    font-size: 24px;
    font-size:2.4rem;
}




/* Bottom Boxes */
.homeBox {
    border: 4px double #aaa;
    box-shadow: 3px 3px 0px #d5d5d5;
    float: left;
    background: #f0f3ff;
    padding: 0 0 10px;
}

/* Search Form */
.formBox {
    width: 25%;
    margin: 0 1.5%;
}
#InvSearchBoxHP {
    margin: 10px auto 0;
    width: 85%;
}
#InvSearchBoxHP h3.invSrchHeader {
    color: #0e84ca;
    text-transform: uppercase;
    text-align: center;
    font-size: 16px;
    font-size: 1.6rem;
}
form li {
     border: medium none;
     clear: none;
     padding: 0;
}
form li:nth-child(2n+1) {background: none}
form li:last-child { border: medium none; }
form label { line-height: 1; display:inherit }
form input, select { float: left; width: auto}
#InvSearchBoxHP ul#InvSearchBoxTypeBox { margin-bottom: 20px; }
#InvSearchBoxHP select {
     color: #333333;
     font-size: 12px;
     font-size: 1.2rem;
     font-weight: normal;
}
#InvSearchBoxHP #InvSearchBoxSubmit span.SubmitSearchbutton {
     background: #6da908;
     display: block;
     font-family: play;
     font-size: 16px;
     font-size: 1.6rem;
}
#InvSearchBoxSubmit li {
     float: none;
     margin: 0 auto;
     width: 100%;
}
.invIcon.tiny.search { display: none; }
#InvSearchBoxSubmit { margin: 0; }
#InvSearchBoxHP #InvSearchBoxSubmit li:last-child {
     margin: 10px 0 0;
     text-align: right;
}
#InvSearchBoxHP .invIcon { width: 24px; }
.html_item li{list-style:none;}

/* Buttons */
.btnsBox {
    width: 30%;
    margin-right: 1.5%;
}
.footerBtn {
  margin-top: 10px;
  overflow:hidden;
}
.footerBtn h2 {
  color:#0E84CA;
  font-size:16px;
  font-size:1.6rem;
  line-height:1.4;
  text-align:center;
}
.footerBtn .cover {width:97.5%;}
.footerBtn ul { margin:0 0 10px; display:none}
.footerBtn a.tiny.button:link, .footerBtn a.tiny.button:visited {
  color:#fff;
  font-size:16px;
  font-weight:bold;
  line-height:20px;
  text-decoration:none;
  text-shadow: 0 2px 1px #000;
  padding: 4px 0;
  width: 90%;
  margin-bottom: 4px;
}
.smallBtn img{margin-bottom: 8px}

/* SEO Content */
.seoBox {
    width: 39%;
    padding: 10px;
}

h1{font-size:18px; font-size: 1.8rem; padding: 0}
.seoBox p{font-size: 14px; font-size: 1.4rem; line-height: 1.2}




#mazdaBanner{margin: 0 auto 20px; text-align:center}

/*===== MEDIA QUERIES =====*/

@media only screen and (max-width: 768px){
  .flexslider .slides li {margin: 0 0 12px;}
  .formBox, .btnsBox {
    height: auto !important;
    margin: 0 1%;
    width: 48%;
  }
  .seoBox {
    background: none ;
    border: none;
    box-shadow: none;
    clear: both;
    float: none;
    height: auto !important;
    margin: 0 auto;
    padding: 20px 20px 0;
    width: 100%;
  }
  p.clearfix {display: none;}
  .footerBtn .cover {display: none;}
  .footerBtn ul {display: block;}
  .footerBtn .button{margin: 0 auto 4px}
}

@media only screen and (max-width: 550px){
  .formBox, .btnsBox {
    margin: 0 2% 10px !important;
    width: 96%;
  }
  
  #mazdaBanner{margin-bottom:10px}
}