@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');

html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    overflow-x: hidden;
    margin: 0;
}

.wrapper {
    flex-direction: column;
    display: flex;
    height: 100vh;
}

.header-row {
    display: flex;
    flex-wrap: wrap;
    background: white;
    box-shadow: 2px 2px slategray;
    padding-left: 100px;
}

.bg {
    /* Main wrapper background image */
    background-image: url("https://amerisaverx.com/images/bluewave-gradient4.jpg");
    
    flex-grow: 1;
}

.bottom-row {

    flex: 0 1 40px;
    text-align: center;
    background-color: #f7f7f7;
    color: #4e555b;
    border-top: 3px solid #d6d5d5;
    justify-content: space-between;
    font-size: 0.75rem;
    font-weight: normal;
}


a, .btn-link {
    color: #0366d6;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.content {
    padding-top: 1.1rem;
    margin-bottom: 180px;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

.show-mobile {
    display: none;
}

.show-desktop {
    display: block;
}

.recent-searches-col {
    position:relative;
    padding-right:15px;
    padding-left:15px;
    -ms-flex:0 0 33.333333%;
    flex:0 0 33.333333%;
    max-width:33.333333%
}

.recent-searches-div {
    width: 350px;
}

.header-slogan {
    padding-top: 1.5em;
    margin: auto;
    color: white;
    font-size: 2.5em;
    text-shadow: 4px 2px 4px rgb(19,52,140);
    font-weight: lighter;
    font-family: system-ui;
}

.recentsearches-label {
    text-shadow: 4px 2px 4px rgb(19,52,140);
    color: white; 
    font-size: 1.3rem;
    font-weight: 200;
}

.getprices-button {
    height: 45px;
    width: 110px;
}

.pharmacies-container {
    margin: .5rem;
}

.druginfo-quantity {
    padding-left: 15px;
}

.druginfo-row {
    padding-left: 15px;
    padding-top: 15px;
    padding-bottom: 5px;
    /*font-family: Lato;*/
    /*font-size: large;*/
    border-bottom: 1px solid gray;
}

.pharmacyname-row {
    font-size: 1.5em;
}

.pharmacyname-label {
    width: 250px;
}

.total-cost {
    color: #005cbf;
    font-size: x-large;
}

.mobile-amerisavecard {
    flex-wrap: wrap;
    border: 1px solid gray;
    border-radius: 8px;
    background: whitesmoke;
    box-shadow: 2px 2px 2px dimgrey;
    margin-top: 10px;
    font-size: 1.2em;
}

.mobile-pharmacycard {
    flex-wrap: wrap;
    border: 1px solid gray;
    border-radius: 8px;
    background: whitesmoke;
    box-shadow: 2px 2px 2px dimgrey;
    margin-left: -30px;
    margin-right: -30px;
    margin-top: 10px;
    font-size: 1.2em;
    padding-left: 20px;
}

.mobile-pharmacycard-logo {
    width: 180px;
}

.nonusvisitor-page {
    background-color: white;
    margin: 40px;
    padding: 40px;
}

.policy-page {
    background-color: white; 
    margin: 40px; 
    padding: 40px;
}

.footer-policy-separator {
    color: #005cbf; 
    padding-left: 10px; 
    padding-right: 10px
}

@media screen and (max-width: 991px){
    
    .header-row {
        padding-left: 15px;
    }
    
    .drugsearch-div {
        margin-top: 0px;
    }
    
    .header-slogan {
        font-size: 2em;
    }

    .recent-searches-col
    {
        -ms-flex:0 0 100%;
        flex:0 0 100%;
        max-width:100%;
        border-top: 1px solid #d6d5d5;
    }
    
    .recent-searches-div {
        width: 100%;
        margin-bottom: 10px;
    }

    .pharmacyprices-div {
        margin-top: 2em;
    }
    
}

@media screen and (orientation: landscape) {

    .mobile-amerisavecard {
        font-size: 1.2em;
    }
    
    .mobile-pharmacycard {
        font-size: 1.2em;
    }

    .mobile-pharmacycard-logo {
        width: 180px;
    }

}

@media screen and (orientation: portrait) and (max-device-width: 768px) {
    .mobile-amerisavecard {
        font-size: unset;
    }

    .mobile-pharmacycard {
        font-size: unset;
        padding-left:0px;
    }
    
    .mobile-pharmacycard-logo {
        width: 140px;
    }
    
}

/* CSS for mobile devices */
@media screen and (max-device-width: 768px){
    
    .wrapper {
        display: unset;
        height: 100%;
    }
    
    .bg {
        height: 100%;
    }
    
    .header-row {
        display: block;
        position: static;
        padding-left: 15px;
        background: ghostwhite;
    }
    
    .bottom-row {
        display: block;
        position: absolute;
    }
    
    .show-mobile {
        display: block;
    }
    
    .show-desktop {
        display: none;
    }

    .header-slogan {
        padding-top: 1em;
        font-size: 1.7em;
    }

    .getprices-button {
        width: 100%;
    }
    
    .pharmacyprices-div {
        margin-top: 2em;
    }

    .pharmacies-container {
        margin: .25rem;
    }

    .druginfo-quantity {
        padding-left: 0px;
    }

    .pharmacyname-row {
        font-size: 1.3em;
    }

    .pharmacyname-label {
        width: 210px;
    }

    .total-cost {
        color: #005cbf;
        font-size: 1.2em;
    }
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }
