/* Main Style Sheet for the Moyer Brown Website Update */


/*basic settings for the entire document */

/*
Color references

Dark Blue: 013565
Light Blue: d4dadf
Cream: faf9f6
Dark Red: 72132e


*/

@font-face {
    font-family: Open-Sans;
    src: url("../Fonts/OpenSans-VariableFont_wdth\,wght.ttf") format("truetype"), url("../Fonts/OpenSans-Italic-VariableFont_wdth\,wght.ttf") format("truetype");
}

body {
    color: #013565;
    background-color: #faf9f6;

    background-image: url(../images/subtle-prism-light-grey.svg);
    background-attachment: fixed;
    /* background by SVGBackgrounds.com */

    font-family: Open-Sans, sans-serif;

}

a {
    color:  #72132e;
    padding: 0px 2px;
    border-radius: 2px;
}

a:hover {
    color:#faf9f6;
    background-color: #72132e;
}


/* don't let any images grow larger than the viewport size */
img {
    max-width: 100%;
}

strong {
    font-weight: bold;
}

strong.larger-bolder {
    font-weight: bolder;
    font-size: 1.2em;
}


.red {
    background-image: linear-gradient(90deg, rgba(212,218,223,0) 0%, rgba(114, 19, 46, 0.4) 100%);
}

.clear-bg {
    background: none;
}

.highlight-bg-1 {
    background-color: #d4dadf;
}

.highlight-bg-2 {
    background-color: #72132e;
    color:#faf9f6;
}

.inherit-color {
    color:inherit;
}

.main-theme {
    background-color: rgba(250, 249, 246, 85%);
    color: #013565;
}

.secondary-theme {
    background-color: rgba(212, 218, 223, 85%);
}

.marquee-theme {
    background: rgba(1, 53, 101, 65%);
    color:#faf9f6;
    text-shadow: 0px 3px 6px rgba(0, 0, 0, 50%);
    border-radius: 3px;
    text-align: center;
}

.banner-theme {
    background-color: rgba(114, 19, 46, 90%);
}

.umb-icon {

    filter: drop-shadow(0px 3px 6px rgba(0, 0, 0, 50%))
}

.icon-main {
    fill: #faf9f6;
}

.icon-highlight {
    fill: #72132e
}

.icon-background {
    /*fill: #d4dadf;*/
    fill:none;
}

.icon-background-2 {
    fill:#d4dadf
}

.constrain-width {
    box-sizing: border-box;
    width: 100%;
    max-width: 1250px;
    margin-left: auto;
    margin-right: auto;
}

.padding-10px {
    padding: 10px;
}

.element-hide {
    display: none;
}

.element-show-block {
    display: block;
}

.medium-break {
    display: none;
}

.no-wrap {
    white-space: nowrap;
}

.sticky-header {
    position: sticky;
    top: 0;
}

.sticky-footer {
    position: sticky;
    bottom: 0;
    z-index: 20;
}

/* Header area containing the logo, the contact into, and nav bars */
/* default display is for narrow (mobile) displays */
/* see below media queries for alternate grid layouts*/

header a:hover {
    border-radius: 3px;
    transition: background-color 250ms;
}



    /*pat-contact is the highlighted contact strip at the top of the page */

    .pat-contact {
        height: 50px;
        display:flex; /* use a FlexBox within the grid to layout the contact info */
        flex-direction: row;
        align-items: stretch;
        justify-content:flex-end;
    }

        .contact-button {
            display: flex;
            align-items: center;
            padding: 0px 10px;
            color: #faf9f6;
            text-decoration: none;
        }


        .contact-button:hover {
            background-color: #faf9f6;
            color:#72132e;
        }

        #pat-contact-link {
            display:none;
        }



    /* nav bar*/
    .site-nav {
        display:flex;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-end;

    }

        .site-nav a {
            color: inherit;
            text-decoration: none;
        }

        .nav-button:hover {
            background-color: #013565;
            color:#faf9f6;
        }
 
        /*logo is the wrapping container for the Moyer Brown Company Logo and slogan */
        .logo {
            height: 80px;
            display:flex;
            align-items: center;
            padding-left: 10px;
            margin-right: auto;
        }

            .logo a:hover {
                background-color: inherit;
            }

            .title {
                font-family: 'Arial Black', sans-serif;
                font-weight: bolder;
                font-size: 140%;
                line-height: 100%;

                display:flex;
                gap:5px;

            }
 
    /* nav bar buttons */
        .nav-button {
            display: flex;
            align-items: center;
            padding-left: 30px;
            height: 50px;
        }

        /*hide the "wide" nav buttons until they are necessary*/
        .wide-button {
            display:none;
        }



/*general content rules*/

.section-container {
    display:flex;
    flex-direction: column;
}

    section header {
        text-align: center;
        padding: 20px 10px;
    }

    section.intro {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 40px 0px;

        background-image: linear-gradient(135deg, rgba(250, 249, 246, 50%), rgba(250, 249, 246, 80%) ), url("../images/stethascope-laptop.jpg");
        background-size: cover;
        background-position: center center;
    }

    section.understand {
        background-image: linear-gradient(135deg, rgba(250, 249, 246, 50%), rgba(250, 249, 246, 80%) ), url("../images/exam-room.jpg");
        background-size: cover;
        background-position: center center;
    }     

        .marquee {
            padding: 20px;
        }

        .tagline {
            text-align: center;
            font-weight: normal;
            font-size: 115%;
        }

        h1.tagline {
            font-size: 250%;
        }
    
    section h1 {
        font-family: Georgia, serif;
        font-size: 180%;
        /*font-weight: bold;*/
        padding: 10px 0px;
        text-align: center;
    }

    section h2 {
        font-size: 115%;
        font-weight: bold;
    }

    section p,ul {
        padding: 10px 10px 10px 10px;
        list-style-type: disc;
        list-style-position: outside;
    }

    section li {
        margin: 0px 0px 0px 30px;
        padding: 10px 0px 10px 0px;
    }

    .section-nav-button {
        font-size: 1rem;
    }

/*area specific rules*/
/*landing page layouts*/

    .lb-grid-left, .lb-grid-right {
        display: grid;
        grid-template-areas: 
            "lb-header"
            "lb-image"
            "lb-links";
    }

    .linkbox-header {
        grid-area: lb-header;
    }

    .linkbox-image-container {
        grid-area: lb-image;
    }

        .linkbox-image {
            width: 100%;
            min-height: 200px;
            background-size:cover;
            background-position: center center;
        }

        #linkbox-image-1 {
            background-image: url('../images/doctor-at-patient-bedside.jpg');
            /* backgroun-image: url('../im') */
        }

        #linkbox-image-2 {
            background-image: url('../images/medical-biller-with-calc.jpg');
        }

    .landing-link-container {
        grid-area: lb-links;
    }

    .landing-link {
        padding: 15px 30px;
    }

    .linkbox a {
        display:block;
        /*text-decoration: none;*/
        font-weight: bold;
    }


/* patients portal layouts */

    /* UNDERSTAND MY BILL section */
    .umb-items-container {
        display: flex;
        flex-direction: column;
    }
        /*display the sub-items as their own flexboxes for more versatile layout options*/
        .umb-item {
            display:flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            padding-top: 50px;
        }

        .umb-item p {
            max-width: 240px;
        }

        .umb-item a {
            color:#faf9f6;
            font-style: italic;
        }

        .umb-icon {
            height: 120px;
            width: 120px;
            display: flex;
            justify-content: center;
            align-items: center;
            flex: 0 0 120px;
        }

    /* PAY MY BILL section */

    .sec-met-link {
        display:flex;
        height: 65px;
        width: 90%;
        justify-content: center;
        padding-top: 10px;
        padding-bottom: 20px;

    }
        .sec-met-link img{
            margin: 7px;
        }
        .sec-met-link:visited {
            background-color:currentColor;
        }

    .patient-icon-container {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 15px;
        padding: 5px;
        width: 95%;
        /*border: 1px black solid;*/

    }
        
        .patient-icon {
            display:inline-flex;
            align-items: center;
            justify-content: center;
            height: 60px
        }

        .patient-icon img {
            height: 100%;
        }

    /* FREQUENTLY ASKED QUESTIONS section */

    /* CONTACT  Section */

    /*put these in "subclasses" later if necessary */

    /* FORM ITEMS */
    fieldset {
        border-width: 1px;
        border-color: black;
        border-style: dotted;
        line-height: 1.5;
        margin: 20px 0px;
        padding: 10px 0px;
    }

        legend {
            margin-left: 20px;
        }

    .form-item {
        display: flex;
        flex-direction: column;
        padding: 5px;
    }
      

    .form-input {
        display:flex;
        flex-direction:column;
        
    }

        .form-item input,textarea,select,.cc-error {
            margin-left: 20px;
        }


        .radio-buttons, .checkbox-grp {
            display:flex;
            flex-direction: column;
            padding: 1px 2px;            
        }

        .payment-type {
            flex-direction: row !important;    
        }
    
        .contact-commentbox {
            
            font-family: inherit;
            height: 100px;
        }

        .btn-submit {
            font-size: 100%;
            height: 40px;
        }

        .cc-error {
            padding: 5px 10px;
        }

        .form-item input,textarea,select {
            padding: 5px 10px;
            border-color: #013565;
            border-style: dotted;
            border-width: 1px;
            font-family: Open-Sans, sans-serif;
            font-size: 100%;
            color:#013565;
        }
        
            .form-item input:focus, textarea:focus, button:focus, select:focus {
                border-style: solid;
                outline-width: 0px;
                box-shadow: 0px 0px 3px #013565;
            }
        
            .form-item input::placeholder,textarea::placeholder,select:invalid {
                color: rgb(1, 53, 101, 60%);
            }
        
           

            .cc-error {
                color: #faf9f6;
                background-color: #72132e;
                border-bottom-left-radius: 3px;
                border-bottom-right-radius: 3px;
        
            }
        
            input:read-only {
                color: rgb(1, 53, 101, 60%);
            }

            .acknowlegement-container {
                display: flex;
                gap: 10px;
                align-items: center;
                justify-content: space-around;
                padding: 10px;
            }

    #qc-maiden-name, #ins-maiden-name, #cc-maiden-name {
        display: none;
    }

/* bottom of each page, containing links to main site pages and copyright info*/
/* may also contain a quick-contact form */
footer {
    border-top-width: 1px;
    border-top-style: dashed;
    padding:10px;
}


/*================================================================================================================*/
/* Media Queries */
/*================================================================================================================*/

/*smallest mobile*/
@media screen and (min-width:320px) {
    .umb-item {
        flex-direction: row;
    }

    .patient-icon-container {
        display: flex;
        justify-content: space-evenly;
    }

        .patient-icon {
            padding-top: 5%;
        }


    .linkbox-image {
        min-height: 250px;
    }

}


/*medium screens*/
@media screen and (min-width:600px) {

    .patient-icon-container {
        display: grid;
    }

        .patient-icon {
            padding-top: 15%;
        }

    .medium-break {
        display: block;
    }

    .site-nav {
        flex-direction: row;
        align-items: stretch;
    }

         .nav-button {
            height: auto;
            padding: 0px 5px;

        }

        .wide-button {
            display:inline-flex;
        }

        .narrow-button {
            display:none;
        }

    #pat-contact-link {
        display: flex;
    }

    /* PATIENTS PAGE ITEMS */

    .linkbox-image {
        min-height: 320px;
        background-position: top center;
    }

/*
    .marquee {
        padding: 60px;
    }
*/

    .column-items-container {
        column-count: 2;
    }

        .column-item {
            break-inside: avoid;
        }
    

    /*contact form changes*/
    .form-item {
        flex-direction: row;
        justify-content: space-evenly;
    }

        .form-item input,textarea,select,.cc-error {
            margin-left: 0px;
        }

        .form-item label,input,.radio-buttons,.checkbox-grp,select, .form-input {
            flex: 0 1 40%;
            box-sizing:border-box
        } 

        .form-item textarea {
            flex: 0 0 80%;
        }

        .btn-submit {
            flex: 0 0 60%;
        }

}


@media screen and (min-width:650px) {

    .umb-items-container {
        flex-direction: row;
        justify-content: center;
        align-items: flex-start;
    }
        .umb-item {
            flex: 0 1 250px;

            flex-direction: column;
        }
    
    .nav-button {
        padding: 0px 10px;
    }

    .linkbox-image {
        min-height:400px;
    }
    
}


@media screen and (min-width:768px) {

    /* INDEX PAGE ITEMS */

    .linkbox {
        padding: 50px;
    }

    .linkbox-header {
        border-top-left-radius: 3px;
        border-top-right-radius: 3px;
    }    

    .lb-grid-left {
        grid-template-areas:
            "lb-image lb-header"
            "lb-image lb-links";
        grid-template-columns: 50% 50%;
    }

    .lb-grid-right {
        grid-template-areas:
            "lb-header lb-image"
            "lb-links lb-image";
        grid-template-columns: 50% 50%;
    }

    .linkbox-image-container {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .linkbox-image {
        height: 60%;
        z-index: 10;
        background-position: bottom right -60px;

        border-radius: 3px;
        box-shadow: 0px 0px 10px rgba(100, 100, 100, 0.5);        
    }

    .linkbox-image-offset-left {
        margin-right: -100px;
    }

    .linkbox-image-offset-right {
        margin-left: -100px;
    }

     .landing-link-container {
        padding: 10px 50px;
    }
    
    .highlight-bg-1-border {
        border: #d4dadf 3px solid;
        border-top: none;
        border-bottom-left-radius: 3px;
        border-bottom-right-radius: 3px;
    }

    .highlight-bg-2-border {
        border: #72132e 3px solid;
        border-top: none;
        border-bottom-left-radius: 3px;
        border-bottom-right-radius: 3px;
    }
 


}


@media screen and (min-width:800px) {

    .patient-icon-container {
        display: flex;
    }

        .patient-icon {
            padding-top: 8%;
        }

    .nav-button {
        padding: 0px 20px;
    }
    
}


@media screen and (min-width:1024px) {
    
    .medium-break {
        display:none;
    }

    .linkbox-image {
        background-position: center center;
    }
    
}


footer {
    font-size: 70%;
}


