@media (min-width: 390px) {
    /* Header */
    .logo a img {width:290px;}
    
    /* Index */
    .indexgrid .grid-item {-ms-flex: 0 0 50%; flex: 0 0 50%; max-width:50%; }
    .indexgrid .grid-item:nth-child(3) {border-left: solid 1px rgba(0, 0, 0, 0.15);}
    .indexgrid .grid-item:nth-child(5) {border-left: solid 1px rgba(0, 0, 0, 0.15);}
    .indexgrid .grid-item:nth-child(7) {border-left: solid 1px rgba(0, 0, 0, 0.15);}
    .indexgrid .grid-item a {-webkit-box-pack:center; -ms-flex-pack:center; justify-content: center; -ms-flex-direction: column; flex-direction: column; font-size: 18px; padding:15px 10px 15px 10px; height: 115px; line-height:1.2}
    .indexgrid .grid-item a br {display: block;}
    .indexgrid .grid-item a i.icon {display: none;}
    .indexgrid .grid-item a i.fas {font-size: 1.9rem; margin: 0 auto 15px; width: auto; top: 0;}
    
    .indexgrid .grid-item.wide {-ms-flex: 0 0 100%; flex: 0 0 100%; max-width:100%;}
    .indexgrid .grid-item.wide a {-webkit-box-pack:center; -ms-flex-pack:center; justify-content: center; -ms-flex-direction: row; flex-direction: row; height: auto; padding:17px 10px 17px 10px;}
    .indexgrid .grid-item.wide a i.fas {margin: 0 15px 0 0;}
    
    /* Inside Pages */
    .pagetitle h2 {font-size: 22px;}
    
    /* LTO */
    #all.ltocontent a.card .card-body {height:65px;}
    
}

@media (min-width: 480px) {
    
    /* Discounts by Category */
    .discountpage .card-body ul li {width:50%;}
    
    /* Business */
    #business-buttons {-webkit-flex-flow:row wrap;-moz-flex-flow: row wrap;-ms-flex-flow: row wrap;flex-flow: row wrap; }
    #business-buttons a.btn {width:auto;}
    
    /* LTO */
    .ltoinfo > .links {-webkit-flex-flow:row wrap;-moz-flex-flow: row wrap;-ms-flex-flow: row wrap;flex-flow: row wrap; }
    .ltoinfo > .links a.btn {width:auto;}
    
    /* FOrm Pages */
    p.formpagetext {font-size: 1.125rem; line-height: 1.75rem;}
    
    /* Contact Page */
    .contactbox .card-body {font-size: 1.0625rem;line-height: 1.6rem;}
}

@media (min-width: 576px) {
    
    .container-fluid {padding: 0 40px;}
     .modal.lto .modal-dialog {max-width: 800px; width: auto;}
    
    #splash > div img {width:250px;}
    
    /* Index */
    .indexgrid .grid-item a br {display: none;}
    
    /* Discounts by Category */
    .discountpage .card-body ul li {width:33.333333%;}
    
    /* NEw Vendors */
    #newvendors .row a {-webkit-box-pack: center; -ms-flex-pack:center; justify-content: center; padding: 5px 1rem; text-align: center; height:62px;}
    #newvendors .row a i {display: none;}
    
    /* Cats */
    div.singlecat .row a {-webkit-box-pack: center; -ms-flex-pack:center; justify-content: center; padding: 0.25rem 1rem; text-align: center; height:62px;}
    div.singlecat .row a i {display: none;}
    
    /* Business */
    #business-buttons a.btn {width:auto; margin: 5px;}
    
    /* Directions */
    .mapouter {height:400px;}
    
    /* LTO */
    #all.ltocontent a.card .card-body {height:75px;}
    .ltoinfo > .links a.btn {width:auto; margin: 5px;}
    
    /* Search */
    #resultsgrid .mix a {-webkit-box-pack: center; -ms-flex-pack:center; justify-content: center; padding: 5px 1rem; text-align: center; height:62px;}
    #resultsgrid .mix a i {display: none;}
    
    /* Terms & Privacy Page */
    #terms .terms:not(.well) p {font-size: 1.125rem;}
}

@media (min-width: 768px) {
    /* Header */
    .logo a img {width:350px;}
    
    /* Index */
    .indexgrid .grid-item a {font-size: 22px; height:132px;}
    .indexgrid .grid-item a i.fas {font-size: 3rem; margin: 0 auto 15px;}
    
    .indexgrid .grid-item.wide a {height:auto;}
    
    /* Inside Pages */
    .pagetitle {height:46px;}
    .pagetitle h2 {font-size: 28px;}
    
    .subtitle > h2 {font-size: 1.5rem;}
    
    /* Contact */
    .contactbox .card-body {padding: 1.5rem 1.5rem; -ms-flex-direction: row; flex-direction: row; -webkit-box-align: center; -ms-flex-align: center; align-items: center; }
    .contactbox .card-body p {margin: 0; padding: 0 10px;}
    .contactbox .card-body p:first-child:after {content: ''; position: absolute; width:1px; height:80%; background-color:rgba(112,47,138,0.75); right: 0; top:10%;}
    .contactbox .card-body p.formpagetext {text-align: center;}
    
}

@media (min-width: 992px) {
    /* INdex */
    .indexgrid .grid-item a {font-size: 26px;}
    .indexgrid .grid-item a i.fas { margin: 0 auto 25px;}
}

@media (max-width: 767px) {
    
    /* Index */
    .form-container form .row .form-group {padding-bottom: 1rem;}
    
}

@media (max-height: 667px) and (orientation: landscape) { 
    /* Vendors */
     #alpha > div > span > a {font-size:12px;margin: 0px 0px 0px 0px;}
}

@media (max-width:667px) and (max-height:375px) {
    /* Vendors */
    #alpha {}
    #alpha > div > span > a {font-size:11px;margin: 0px 0px 0px 0px;}
}

@media (max-width: 575px) {
/* Inside Pages */
    .top-pagination {-ms-flex-direction:column; flex-direction:column;}
    .selectview {-webkit-box-pack:center; -ms-flex-pack:center; justify-content: center;}
    .maincontent .dropdown-menu a.dropdown-item {white-space: normal; }
    .maincontent .dropdown-menu a.dropdown-item:after {position: absolute; bottom:0; left: 5%; right:5%; height:0.005rem; content:''; background-color:rgba(0,0,0,0.05);}
    
    /* Directions */
    #form-outer > form .input-group {-webkit-justify-content: center; -moz-justify-content: center; -ms-justify-content: center; justify-content: center;}
    #form-outer > form input {width:100%; margin-bottom: .5rem; margin-right: 0;}
    
        /* Locations */
    #locationlist > div {max-width: 250px;}
    
}

@media (max-width:480px) {
    /* header */
    a.navbar-brand span.title > span {display: none;}
    
    /* Inside Pages */
    .maincontent .dropdown-menu a.dropdown-item {font-size: 1rem;}
    
    /* National Discounts */
    .nationallinks .grid .item {width:50%;padding: 0.5rem;}
    .nationallinks span.outerimg img {margin: 0 auto; padding: 5px; width:75%}
    
}

@media (max-width: 390px) {
    /* Category */
    #az ul li {-ms-flex: 0 0 100%; flex: 0 0 100%; max-width: 100%; padding-left: 0.25rem !important; padding-right: 0.25rem !important;}
}

@media (max-width: 389px) {
    /* Form Pages */
    .formContainer #formresponse > div p {font-size: 1.0625rem; line-height: 1.5rem;}
}

@media (max-width: 360px) {
    /* Category */
    #alpha > div span a {font-size: 13px;}
    
    /* Header */
    a.navbar-brand span.title {font-size: 1rem;}
    
    /* Footer */
    footer .copyright {font-size: 0.7rem;}
    
    /* Inside Pages */
    .pagetitle {height:38px;}
    .pagetitle h2 {font-size: 18px;}
    
    /* Category */
    .discountpage .card-header a {font-size: 1rem;}
    .discountpage .card-body ul li a.btn {font-size: 1rem;}
}

html.ie .ltoImage img.img-fluid {width:100% !important;}
html.ie select::-ms-expand {display: none;}

html.webapp body.iphoneX footer .container-fluid {padding-bottom: 20px;}
html.webapp body.iphoneXR footer .container-fluid {padding-bottom: 20px;}
html.webapp body.iphone12 footer .container-fluid {padding-bottom: 20px;}