﻿/* layout - smaller screens < 480px */

@media screen and (max-width: 480px), screen and (max-height: 480px) {
    .miniMenu {
        position: absolute;
        top: -2.2em;
        left: 0;
        -webkit-box-orient: horizontal;
        -webkit-box-direction: normal;
        -webkit-flex-flow: row;
        -ms-flex-flow: row;
        flex-flow: row !important;
        width: 100vw;
        -webkit-box-pack: justify;
        -webkit-justify-content: space-between;
        -ms-flex-pack: justify;
        justify-content: space-between;
    }
    .headerWrapper {
        position: static !important;
        height: 100px;
    }
    #societyName {
        position: relative !important;
        margin: 2.5em 0 !important;
        font-size: calc(.3em + 2.25vmin) !important;
        width: 100%;
    }
    .headerWrapper {
        background-size: calc(2em + 30vw) !important;
    }
    #searchIcon {
        z-index: 0 !important;
        right: 0;
    }
    #search {
        top: 25px;
        max-width: 50vw;
    }
    #footer {
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -webkit-flex-flow: column;
        -ms-flex-flow: column;
        flex-flow: column;
    }
    .social {
        margin: .5em 0 !important;
        display: block !important;
    }
    .social>div {
        display: block
    }
    .social>a {
        margin: 2px
    }
    .copy>a {
        display: block
    }
    .header, .miniMenu, #societyName {
        height:85px !important;
    }
    /*primary adjustments*/
    body #s4-bodyContainer {
    overflow-x: inherit !important;
}
    .wrap, .s4-ca {
        width: 100% !important;
        max-width: 98vw;
        margin: 0 auto;
        overflow-x: hidden;
    }
    body #s4-leftpanel {
        width: auto;
        float: none;
        margin: 20px;
        padding: 0;
        border: 0;
        min-height: auto !important;
        display: block;
    }
    body, form {
        padding: .15px;
    }
    body #s4-bodyContainer {
        min-width: 0px;
    }
    .s4-ca {
        margin: 0px;
        padding: 0 !important;
        border: none !important;
    }
    img {
        max-width: 100%;
        height: auto;
        width: auto\9;
        /* ie8 */
        border-style: none;
    }
    table {
        max-width: 100% !important;
    }
    /*reorder and resize columns*/
    .homeWrapper {
        -webkit-box-orient:vertical;
        -webkit-box-direction:normal;
        -webkit-flex-flow:column;
        -ms-flex-flow:column;
        flex-flow:column
    }
    .rightCol, .leftCol {
        width: 100% !important;
    }

    #contentwrapper {
        display: -ms-flexbox;
        display: -webkit-flex;
        display: -webkit-box;
        display: flex;
        -webkit-box-orient: vertical;
        -webkit-flex-direction: column;
        -ms-flex-direction: column;
        flex-direction: column;
        -webkit-box-align: start;
        -ms-flex-align: start;
        -webkit-align-items: flex-start;
        align-items: flex-start;
    }
    #centercolumn {
        -webkit-box-ordinal-group: 1;
        -ms-flex-order: 1;
        -webkit-order: 1;
        order: 1;
    }
    #leftcolumn {
        -webkit-box-ordinal-group: 2;
        -ms-flex-order: 2;
        -webkit-order: 2;
        order: 2;
    }
    #rightcolumn {
        -webkit-box-ordinal-group: 3;
        -ms-flex-order: 3;
        -webkit-order: 3;
        order: 3;
    }
    #centercolumn, #leftcolumn, #rightcolumn {
        width: 99vw !important;
        padding: 0 !important;
        border: none !important;
    }
    #rightcolumn table {
        table-layout: auto !important;
        width: 98vw !important;
    }
    #middleHeader table {
        width: 100% !important;
        width: 100vw !important;
        max-width: 100%;
    }
    #topHeader {
        width: 100%;
        margin-top: 0px !important;
    }
    .topheadernav {
        padding: 0 !important
    }
    .item-list {
        margin: 0 !important;
    }
    #s4-ribbonrow {
        display: none !important;
    }
    #share {
        margin: 0px !important;
        padding: 10px 0 10px 0;
    }
    #middleHeader {
        width: 100%;
        background: url('/Style Library/Images/ASBC/asbc.jpg') center no-repeat;
        background-color: #afadc3;
        display: block;
    }
    #middleHeader img {
        display: none;
    }
    #middleHeader table {
        display: none;
    }
    .topheadernav div {
        float: left;
        margin: 7px 0 0 10px;
    }
    #topHeader .search {
        width: 100% !important;
    }
    /*menu styles */
    #nav {
        height: 35px;
        background: #0093D7;
        z-index: 200;
    }
    #mobileMenuToggle {
        height: 35px;
        line-height: 35px;
        width: 75px;
        display: block;
        overflow: hidden;
        margin-left: 8px;
        padding-left: 38px;
        background: url('/Style Library/Images/menu-alt-32.png') left center no-repeat;
        z-index: 200;
    }
    #mobileMenuToggle:link {
        color: #FFF;
    }
    #mobileMenuToggle:visited {
        color: #FFF;
    }
    #mobileMenuToggle:hover {
        text-decoration: underline;
    }
    #mobileMenu {
        display: none;
        margin: 0;
        padding: 0;
        background: #0093D7;
    }
    #mobileMenu li {
        list-style: none;
        display: block;
        padding: 0;
    }
    #mobileMenu li a {
        color: #fff;
        font-weight: bold;
        display: block;
        line-height: 30px;
        margin: 0;
        padding: 3px 10px;
        background: rgba(0, 0, 0, 0.30);
        border-bottom: 1px solid black;
    }
    #mobileMenu li a:hover {
        background: #0093D7;
    }
    .subMenu {
        display: none;
        padding: 0;
        border: none;
    }
    .subMenu li a {
        padding-left: 40px !important;
        line-height: 18px !important;
        border: none !important;
    }
    .submenuToggle {
        float: right;
        margin-top: -37px !important;
        background: transparent !important;
        border: none !important;
    }
    /* LOCAL NAVIGATION */
    #mobileMenuCurrent {
        padding: 4px;
    }
    #mobileMenuCurrent>span {
        font-size: 11px;
        font-weight: bold;
        text-transform: uppercase;
        margin-right: 4px;
    }
    #mobileMenuCurrent select {
        max-width: 300px;
        overflow: hidden;
    }
    #mobileMenuCurrent option {}
    .ms-rteStyle-AutoSchedule {
        -ms-name: Auto Size Schedule;
        width: 100%;
    }
    .ms-rteStyle-AutoSchedule td {
        display: inline-block;
        width: 100% !important;
        height: auto !important;
        padding: 3px 5px;
        vertical-align: top;
    }
    .ms-rteStyle-AutoSchedule td:first-child {
        font-weight: bold;
        border-top: 1px solid #ccc;
    }
    .ms-rteStyle-AutoSchedule th {
        font-weight: bold;
        border-top: 1px solid #ccc;
        display: inline-block;
        width: 100% !important;
        height: auto !important;
        padding: 3px 5px;
        vertical-align: top;
        text-align: left;
    }
    .ms-rteStyle-AutoSchedule td h2 {
        font-weight: bold;
        text-transform: uppercase;
        margin: 5px 0;
        padding: 0;
    }
    .ms-rteStyle-AutoIndex td {
        display: inline-block;
        width: 100% !important;
        padding: 0;
        height: auto !important;
        border-bottom: 1px solid #fff;
    }
    .ms-rteStyle-AutoIndex td h2 {
        font-size: 1em;
        margin: 0;
        padding: 3px 10px;
    }
    /* end 480px media query */
}

@media screen and (max-width: 768px) and (min-width:480px) {
    .wrap, .s4-ca {
        width: 100% !important;
        max-width: 98vw;
        margin: 0 auto;
    }
    body #s4-leftpanel {
        width: auto;
        float: none;
        margin: 20px;
        padding: 0;
        border: 0;
    }
    body, form {
        padding: .15px;
        max-width: 100% !important;
    }
    body #s4-bodyContainer {
        min-width: 0px;
    }
    .s4-ca {
        margin: 0px;
        padding: 0 !important;
        border: none !important;
    }
    img {
        max-width: 100%;
        height: auto;
        width: auto\9;
        /* ie8 */
        border-style: none;
    }
    table {
        max-width: 100% !important;
        /*! max-width: 100vw !important; */
        /*! table-layout: fixed; */
    }
    /*reorder and resize columns*/
    #contentwrapper {
        display: -ms-flexbox;
        display: -webkit-flex;
        display: -webkit-box;
        display: flex;
        -webkit-box-orient: vertical;
        -webkit-flex-direction: column;
        -ms-flex-direction: column;
        flex-direction: column;
        -webkit-box-align: start;
        -ms-flex-align: start;
        -webkit-align-items: flex-start;
        align-items: flex-start;
    }
    #centercolumn {
        -webkit-box-ordinal-group: 1;
        -ms-flex-order: 1;
        -webkit-order: 1;
        order: 1;
    }
    #leftcolumn {
        -webkit-box-ordinal-group: 2;
        -ms-flex-order: 2;
        -webkit-order: 2;
        order: 2;
    }
    #rightcolumn {
        -webkit-box-ordinal-group: 3;
        -ms-flex-order: 3;
        -webkit-order: 3;
        order: 3;
    }
    #centercolumn, #leftcolumn, #rightcolumn {
        width: 99vw !important;
        padding: 0 !important;
        border: none !important;
    }
    #rightcolumn table {
        table-layout: auto !important;
        width: 98vw !important;
    }
    #middleHeader table {
        width: 100% !important;
        width: 100vw !important;
        max-width: 100%;
    }
    #middleHeader img {
        min-height: 100% !important;
    }
    #topHeader {
        width: 100%;
        margin-top: 0px !important;
    }
    .topheadernav {
        padding: 0 !important
    }
    .item-list {
        margin: 0 !important;
    }
    #footer {
        padding: 10px;
    }
    #share {
        margin: 0px !important;
        padding: 10px 0 10px 0;
    }
    #middleHeader {
        width: 100%;
        height: auto !important;
        display: block;
    }
    .topheadernav div {
        float: left;
        margin: 7px 0 0 10px;
    }
    #topHeader .search {
        width: 100% !important;
    }
    /*menu styles */
    #nav {
        height: 25px;
        background: #0093D7;
        z-index: 200;
    }
    .menu-horizontal {
        height: 25px !important;
        background-size: contain;
    }
    .s4-tn li.static>.menu-item {
        margin: 0 !important;
        padding: 3px 8px !important;
        font-size: 2.25vw !important;
    }
    .ms-rteStyle-AutoSchedule {
        -ms-name: Auto Size Schedule;
        width: 100%;
    }
    .ms-rteStyle-AutoSchedule td {
        display: inline-block;
        width: 100% !important;
        height: auto !important;
        padding: 3px 5px;
        vertical-align: top;
    }
    .ms-rteStyle-AutoSchedule td:first-child {
        font-weight: bold;
        border-top: 1px solid #ccc;
    }
    .ms-rteStyle-AutoSchedule th {
        font-weight: bold;
        border-top: 1px solid #ccc;
        display: inline-block;
        width: 100% !important;
        height: auto !important;
        padding: 3px 5px;
        vertical-align: top;
        text-align: left;
    }
    .ms-rteStyle-AutoSchedule td h2 {
        font-weight: bold;
        text-transform: uppercase;
        margin: 5px 0;
        padding: 0;
    }
    .ms-rteStyle-AutoIndex td {
        display: inline-block;
        width: 100% !important;
        padding: 0;
        height: auto !important;
        border-bottom: 1px solid #fff;
    }
    .ms-rteStyle-AutoIndex td h2 {
        font-size: 1em;
        margin: 0;
        padding: 3px 10px;
    }
}
