/**************Device Specific CSS********************/

@media only screen and (max-width: 768px) {
    .centered {
        top: 45% !important;
    }
}

@media only screen and (max-width: 512px) {
    .centered {
        top: 30% !important;
        font-size: 10px;
    }
}

@media only screen and (max-device-width: 414px) {
    .stateHeader {
        font-size: 3.4rem !important;
    }

    #states-anchor {
        font-size: 1.3rem !important;
    }

    .header-font {
        font-size: 75px !important;
    }

    .heading {
        font-size: 1.38rem !important;
    }

    .flex-index, .flex-wrapper {
        min-height: 94vh;
        flex-direction: column;
        justify-content: space-between;
    }

    #row3-right-col, #row3-left-col {
        display: none !important;
    }

    .card-checkbox, .checkBoxSize {
        display: none !important;
    }

}

@media only screen and (max-width: 500px) {
    .col-lg-9 {
        padding: unset !important;
    }

    .navbar {
        padding: unset !important;
    }

    #logo {
        max-width: 68% !important;
        height: auto;
        float: left;
    }

    select {
        max-width: unset;
    }

    body {
        font-size: calc(12px + (16 - 12) * ((100vw - 300px) / (1600 - 300))) !important;
    }

    .font-Header {
        font-size: 2em !important;
    }

    h5 {
        font-size: 1.5rem !important;
    }

    .card-header {
        font-size: 1.5rem !important;
    }

    .indexDescFont {
        font-size: 0.8em !important;
    }

    .centered {
        max-height: -webkit-fill-available;
        width: 100%;
        top: 50% !important;
        left: 50% !important;
    }

    .img-container {
        max-height: 160px;
    }

    #toggleContainer {
        display: none !important;
    }

    .page-item {
        min-width: 40px !important;
        min-height: 20px !important;
    }

    .selectize-input {
        position: unset !important;
    }

    #site-footer {
        padding: unset !important;
    }

    #site-footer, .push {
        height: 105px !important;
    }
}

@media only screen and (max-width: 500px) {
    #state, #role, #search {
        width: 100%;
    }
}

@media screen and (max-device-width: 414px) {

    .downDiv {
        padding: 1.5%;
        border-radius: 0em;
    }

    .downloadClass {
        padding: 3%;
    }

    #mapListingNewFax, #mapListingNewNumber {
        border: 1px solid #ced4da;
    }

    #checkbox {
        padding-left: 6% !important;
    }

}

@media screen {
    div.dateFooter {
        display: none;
    }

}

@media print {

    div.downDiv {
        display: none
    }

    #legalLanguageFooter {
        display: none;
    }

    div.dateFooter {
        text-align: center;
        position: fixed;
        display: block;
        bottom: 0px;
        left: 0px;
        width: 100%;
    }

    .no-break {
        page-break-inside: avoid;
        display: -webkit-box !important; /*needed for firefox*/
    }

    @page  {
        margin-top: 0.5%;
        margin-bottom: 6%;
    }
}


@media only screen and (max-width: 768px) {
    .paddingTopZero {
        padding: 0px !important;
    }

    .overallPadding {
        padding: 10px;
    }
}

@media only screen and (min-device-width: 768px) and (max-device-width: 1024px) {
    #row3-right-col {
        width: unset !important;
        top: unset !important;
    }

    #row4-right-col {
        width: 40vw !important;
    }

    #mapListingNewFax, #mapListingNewNumber {
        border: 1px solid #ced4da;
    }

}

/*For modal alignment in mobile view*/
@media only screen and (max-width: 415px) {

    /*Common modal header text size*/
    .modalTextSize {
        font-size: 18px !important;
    }

    /*Common modal button size*/
    #modalCloseIcon, #infoModalClose, #commonModalOkButton, #emailAlertOkButton {
        font-size: 10px !important;
    }

    /*Common header height for modals with no footer (ContactUs, Info in provider search etc)*/
    .modal-header {
        height: 57px !important;
    }

    /*Common height for modals with both header and footer (MapListing, Directory, any alert modal)*/
    .commonModalHeaderFooterSize {
        height: 50px !important;
    }

    /*Included for removing blank white space in mobile view in provider search page*/
    .blankSpaceRemovalInMobileView {
        overflow-x: hidden;
    }

}


@media only screen and (max-width: 300px) {
    body {
        font-size: 12px;
    }

    #providerSearchResultTable.dataTable {
        font-size: 12px;
    }
}

@media only screen and (min-width: 301px) {
    .cover {
        padding: 18px 0.5rem !important;
    }

    body {
        font-size: calc(12px + (16 - 12) * ((100vw - 300px) / (1600 - 300))) !important;
        /*Formula : calc([minimum font size] + ([maximum font size] - [minimum font size]) * ((100vw - [minimum viewport width]) / ([maximum viewport width] - [minimum viewport width])));*/
    }

    #providerSearchResultTable.dataTable {
        font-size: calc(12px + (16 - 12) * ((100vw - 300px) / (1600 - 300))) !important;
    }

}

@media only screen and (max-device-width: 414px) {

    #row2-right-col {
        float: left;
        justify-content: left;
    }

    #row3-right-col {
        float: left;
        justify-content: left;
        padding-top: 2px;
    }

    #row4-right-col {
        float: left !important;
        justify-content: left;
        padding-top: 2px;
        width: 100% !important
    }

    #row4-left-col {
        justify-content: right;
        float: right;
        width: 100% !important;
    }

    #row2-left-col {
        justify-content: right !important;
        float: left;
    }

    #row1-left-col {
        position: unset !important;
        padding-bottom: unset !important;
    }

    #row1-right-col {
        float: left;
        justify-content: left;
    }

    #download {
        display: none !important;
    }

    #spinnerIcon{
        display: none !important;
    }

    .downDivText {
        font-size: 10px !important;
        padding-top: 10px !important;
        padding-left: 20px !important;
    }

    .downDiv {
        padding-left: 16% !important;
    }

    .activeTab {
        border-bottom-color: transparent !important;
        border-bottom-style: none !important;
        border-bottom-width: 0px !important;
    }

    #addOffModal {
        display: none;
    }

    #mapListingAddress {
        font-size: unset !important;
    }
}

/**************************************************************/
/*Extra extra small devices (portrait phones, less than 449px)*/
/**************************************************************/
@media (min-width: 960px) {
    .flex-wrapper {
        display: flex;
        min-height: 91vh;
        flex-direction: column;
        justify-content: space-between;
    }
}

@media (min-width: 768px) {
    .flex-index, .flex-wrapper {
        display: flex;
        min-height: 80vh;
        flex-direction: column;
        justify-content: space-between;
    }
}

@media only screen  and (max-width: 485px) {
    .flex-wrapper {
        min-height: 100vh;
        justify-content: space-between;
    }

    *[class*='col-'] {
        flex: none;
        max-width: none;
    }

    *[class^='col-'] {
        flex: none;
        max-width: none;
    }

    .page-link {
        padding: .5rem 0.3rem !important;
    }

}

@media screen and (max-device-width: 414px) {
    .listPaginationSection {
        margin-left: 0px !important;
    }

    #listButton {
        display: none;
    }

    #mapButton {
        display: none;
    }

    #cardButton {
        display: none;
    }

    #map {
        display: none;
    }
}

@media screen and (max-device-width: 325px) {
    .page-item {
        min-width: 34px !important;
    }
}

@media (min-width: 992px) {
    .col-lg-6-margin {
        -ms-flex: 0 0 48% !important; /** To give margin when two cards in one row**/
        flex: 0 0 48% !important;
        max-width: 48% !important;
        margin-left: 1rem;
        padding-right: unset !important; /**To make the distance to the left and right of checkbox equal in card view **/
        padding-left: unset !important;
    }
}

@media (max-width: 992px) {
    .col-lg-6-margin {
        padding-right: unset !important; /**To make the distance to the left and right of checkbox equal in card view **/
        padding-left: unset !important;
    }
}

@media print {

    .scroll-y {
        height: 100%;
        overflow: visible;
    }

    .setPageHeightForPrint {
        height: 100%;
    }

    #site-footer {
        display: none;
    }

}

@media only screen and (max-width: 1190px) {
    #goToTopBtn {
        bottom: 5% !important;
        right: 9% !important;
    }

    #page {
        width: 97.5%;
    }
}

/*Footer Device specific*/

@media screen and (max-device-width: 670px) {
    .footer-links {
        display: block;
    }
}

@media screen and (max-device-width: 414px) {
    ul.footer-links li {
        display: block;
    }

}

@media screen and (max-device-width: 320px) {
    .menuTab {
        padding-right: 65% !important;
    }

}

@media screen and (max-device-width: 350px) {
    .card-header > .mobile-tab {
        font-size: 1.3rem;
    }

}

/*provider profile*/
@media only screen and (max-device-width: 414px) {
    #legendContainer {
        float: none !important;
    }

    .createLetter {
        padding: 10px;
    }

    .providerProfile-container {
        width: unset;
    }

    #backToProviderSearchButton {
        font-size: 1em !important;
        width: 231px;
        height: 41px;
    }

    .col-xs-4 {
        width: 35% !important;
    }

    .col-xs-8 {
        width: 65% !important;
    }

    .alignLabelValue {
        align-self: flex-end;
    }

    #mapAndDrivingDirectionsCard {
        display: none;
    }

    .downDivFont {
        font-size: x-small;
    }

    #logoHeader {
        width: 120% !important;
    }

    #faxError, #phoneError {
        text-align: left !important;
        padding-left: 0% !important;
    }

    .widthAllign {
        padding: 0.6rem !important;
    }
}