﻿@media only screen and (max-device-width: 950px) {
    #wrapper #topbar #topbar_container {
        width: 100%;
    }

        #wrapper #topbar #topbar_container ul {
            margin-top: 0px;
            margin-bottom: 0px;
        }

    #wrapper #topbar #search {
        height: 0px;
        width: 100%;
    }

    #wrapper #container {
        width: 100%;
        background-size: contain;
    }

        #wrapper #container .logo {
            width: 100%;
        }

        #wrapper #container #main_Container {
            width: 97%;
            margin-top: 5px;
            margin-left: 5px;
        }

            #wrapper #container #main_Container #bSubmitTokenPayment #Span2 {
                padding-left: 6px;
            }

            #wrapper #container #main_Container #bSubmitTokenPayment #Span3 {
                padding-left: 6px;
            }

            #wrapper #container #main_Container hr {
                width: 98%;
            }

            #wrapper #container #main_Container #AgencyInfo {
                width: 98%;
            }

            #wrapper #container #main_Container #PaymentEntry #Payment_Header .col140 {
                width: 115px;
            }

            #wrapper #container #main_Container #PaymentEntry #CCInfo .leftColumnLbl {
                width: 111px;
            }

            #wrapper #container #main_Container #PaymentEntry #CCInfo .rowClass .leftColumn em {
                float: left;
            }

            #wrapper #container #main_Container #PaymentEntry #CCInfo #CCInfo_SameAs .leftColumnLbl {
                width: 1px;
            }

            #wrapper #container #main_Container #PaymentConfirm .col140 {
                width: 130px;
            }

        #wrapper #container #confirmation_main {
            width: 85%;
        }

        #wrapper #container #main_Container #SubscriptEntry #Payment_Header .col140 {
            width: 115px;
        }

        #wrapper #container #main_Container #SubscriptEntry #CCInfo .leftColumnLbl {
            width: 111px;
        }

        #wrapper #container #main_Container #SubscriptEntry #CCInfo .rowClass .leftColumn em {
            float: left;
        }

        #wrapper #container #main_Container #SubscriptEntry #CCInfo #CCInfo_SameAs .leftColumnLbl {
            width: 1px;
        }

        #wrapper #container .logo a {
            width: 100%;
        }

        #wrapper #container h1.logo {
            background-size: contain;
            background-image: url('/site_img/logo_nico_sm.png');
            left: 0px;
        }

        #wrapper #container #tagline {
            margin-top: 45px;
        }

        #wrapper #container #expresspay {
            padding: 2px 8px 2px 30px;
            margin-left: -23px;
            width: 96%;
        }

            #wrapper #container #expresspay H1 {
                font-size: 25px;
                padding: 10px 5px 10px 5px;
            }

            #wrapper #container #expresspay H3 {
                padding: 0px 5px 10px 10px;
            }

            #wrapper #container #expresspay .content {
                padding: 0px 5px 10px 10px;
            }

                #wrapper #container #expresspay .content .rowClass {
                    font-size: 15px;
                    height: 30px;
                    line-height: 15px;
                    margin-bottom: 8px;
                }

                    #wrapper #container #expresspay .content .rowClass .leftColumn {
                        color: #666666;
                        float: left;
                        font-size: 15px;
                        width: 184px;
                    }

            #wrapper #container #expresspay [class*="progress"] {
                background: url('Images/ProgressSprite.png');
                display: block;
                height: 10px;
                margin: auto;
                width: 100%;
            }

    #footerContainer #bottombar {
        margin-top: 0px;
        height: 114px;
        padding-top: 0px;
    }

        #footerContainer #bottombar #bottombar_content {
            width: 100%;
            margin: 0px;
            padding-left: 0px;
        }

            #footerContainer #bottombar #bottombar_content h1 {
                padding-left: 15px;
            }

            #footerContainer #bottombar #bottombar_content .hLine4 {
                width: 100%;
            }

            #footerContainer #bottombar #bottombar_content .footerRow {
                padding-left: 15px;
                margin-top: 0px;
            }

    #footerContainer #footer {
        padding-top: 0px;
        height: 74px;
    }

        #footerContainer #footer #footer_content {
            width: 100%;
        }

            #footerContainer #footer #footer_content p.left {
                width: 92%;
                margin-left: 15px;
            }

        #footerContainer #footer .left br {
            display: none;
        }

        #footerContainer #footer .right br {
            display: none;
        }

        #footerContainer #footer #footer_content p.right {
            margin-right: 5px;
        }

    #wrapper #container #expresspay:before {
        border-radius: 5px;
        bottom: -30px;
        box-shadow: 0px 8px 8px rgba(50, 50, 50, 0.3);
        content: '';
        left: 30px;
        position: absolute;
        right: 8px;
        top: 30px;
        z-index: -1;
    }
    /*MilePost*/
    form#form1 #footer {
        position: fixed;
        bottom: 0;
        width: 100%;
    }

        form#form1 #footer h3 {
            font-size: 9px;
        }

    #wrapper #container .mplogo h1.mplogo {
        background-position: top center;
        background-size: cover;
        height: 75px;
        top: -25px;
        background-image: url(../site_img/logo_mp_sm_2.png);
        z-index: 1;
    }

    #wrapper #container h1.mplogo {
        width: 99%;
        left: 0px;
    }

    #wrapper #container .mplogo {
        width: 99%;
        height: 75px;
    }

        #wrapper #container .mplogo a {
            position: absolute;
            left: 0px;
            width: auto;
            height: 75px;
            cursor: pointer;
            display: block;
        }
    /*bhhclogo*/
    #wrapper #container .bhhclogo h1.bhhclogo {
        background-position: top center;
        background-size: cover;
        height: 60px;
        top: -25px;
        background-image: url(../site_img/logo_bhhc_sm.jpg);
        z-index: 1;
    }

    #wrapper #container h1.bhhclogo {
        width: 99%;
        left: 0px;
    }

    #wrapper #container .bhhclogo {
        width: 99%;
        height: 60px;
    }

        #wrapper #container .bhhclogo a {
            position: absolute;
            left: 0px;
            width: auto;
            height: 60px;
            cursor: pointer;
            display: block;
        }
}

@media only screen and (max-device-width: 950px) and (orientation: landscape) {
    /*nico*/
    #wrapper #container .logo {
        position: relative;
    }
    /*MilePost*/
    #wrapper #container .mplogo h1.mplogo {
        background-position: top center;
        background-size: cover;
        height: 126px;
        top: -25px;
        background-image: url(../site_img/logo_mp_sm_2.png);
        z-index: 1;
    }

    #wrapper #container h1.mplogo {
        width: 99%;
        left: 0px;
    }

    #wrapper #container .mplogo {
        width: 99%;
        height: 126px;
        position: relative;
    }

        #wrapper #container .mplogo a {
            position: absolute;
            left: 0px;
            width: auto;
            height: 126px;
            cursor: pointer;
            display: block;
        }

    #wrapper #container #tagline {
        margin-top: 0px;
    }
    /*bhhclogo*/
    #wrapper #container .bhhclogo h1.bhhclogo {
        background-position: top center;
        background-size: cover;
        height: 107px;
        top: -25px;
        background-image: url(../site_img/logo_bhhc_sm.jpg);
        z-index: 1;
    }

    #wrapper #container h1.bhhclogo {
        width: 99%;
        left: 0px;
    }

    #wrapper #container .bhhclogo {
        width: 99%;
        height: 107px;
        position: relative;
    }

        #wrapper #container .bhhclogo a {
            position: absolute;
            left: 0px;
            width: auto;
            height: 107px;
            cursor: pointer;
            display: block;
        }

    #wrapper #container #tagline {
        margin-top: 0px;
    }
}
