/* any mobile device */
@media only screen and (min-width: 240px) and (max-width : 1024px) {
    img {
        max-width: 100%;
    }

    ul {
        padding: 0 0 0 25px;
    }

    .mobile-only {
        display: block;
    }

    .hide-on-mobile {
        display: none !important;
    }

    nav#account, div.search {
        display: none;
    }

    /*Make dropdown links appear inline*/
    ul#nav-main {
        position: static;
        display: none;
    }
        /*Make all menu links full width*/
        ul#nav-main li, ul#nav-main li a {
            width: 100%;
        }

            ul#nav-main li ul {
                margin-left: 20px;
            }

    #nav-main {
        text-align: left;
    }

    img#logo {
        width: auto;
        height: 183px;
    }

    #header .navbar-brand {
        left: 15px;
    }

    div#breadcrumbs {
        margin-left: 7.5em;
        width: 50%;
        float: left;
    }

    div.welcome .sfContentBlock, div.welcome h1, div.welcome #login, div.welcome .articles {
        display: none;
    }

    div.welcome {
        width: 100% !important;
        padding-top: 0;
    }

    span.btn-submit {
        float: right;
        margin-right: 20px;
    }

    span.label {
        display: inline-block;
        right: 120px;
        position: absolute;
    }

    #content-main .mobile-only {
        display: none;
    }

    #content-main div.welcome .mobile-only {
        display: block;
    }

    div.slider {
        width: 100% !important;
        height: auto !important;
    }

    #slider .text {
        width: 100% !important;
        height: 55px !important;
        padding: 20px 0 10px 20px;
        font-size: 11px;
        bottom: 0;
    }

    #slider .carousel, div#slider, #slider .carousel li {
        width: 100% !important;
    }

    .slider .nav {
        bottom: 104px !important;
    }

    #slider .nav {
        right: 6%;
    }

    .mobile-banner-container {
        display: none;
    }

    img.carousel-img {
        display: block;
        margin: 0 auto;
        width: 100%;
    }

    header, #wrap-content, footer, #sub-footer {
        width: 100%;
    }

    header {
        padding-left: 0;
    }

    .mobile-nav {
        float: right;
        padding: 0px 20px;
        top: -10px;
        position: relative;
    }

    .for-sections .col {
        width: 100%;
        margin-left: 0 !important;
    }

    .aboutNews .col {
        width: 100% !important;
    }

    .for-sections {
        padding-bottom: 0 !important;
    }

    .aboutNews .newsDiv {
        width: 100% !important;
    }

    #news .news-articles article {
        max-width: 100%;
        width: auto;
        padding-right: 20px;
        padding-bottom: 20px;
    }

    div.one, div.two {
        width: 30%;
        margin: 10px 10px;
    }

    footer p {
        width: 90%;
        margin: 1em 0 1em 1em;
    }

    footer nav {
        padding: 0 0 2em 0;
        float: left;
    }

    section#sidebar {
        display: none;
    }

    .mobile-subnav {
        width: 20%;
        float: right;
        margin-top: 1.1em;
        margin-bottom: 1.1em;
    }

    .hero-unit {
        overflow: auto;
    }

    .sidebar #content-main {
        max-width: 100%;
        width: auto;
        padding: 0 15px;
        margin-left: 0;
    }

        .sidebar #content-main .sfContentBlock p, .sidebar #content-main .sfContentBlock li, .sidebar #content-main p {
            padding-right: 30px;
        }

    .shadow .sfContentBlock, .aboutNews .sfContentBlock {
        padding-right: 0;
    }

    footer .sfContentBlock {
        padding-right: 0;
    }

    .pagination {
        text-align: left;
        width: 110%;
    }

    aside.panel {
        margin: 0 1.3em 1px;
    }

    #content-aside {
        width: 100%;
    }

        #content-aside .sfContentBlock {
            margin-left: 1.3em;
        }

    .submit.right .btn-submit-alt {
        float: left;
    }

    .sidebar.panel #content-main {
        max-width: 100%;
        width: auto;
        margin: auto;
    }

    .articles > a {
        padding-right: 45px;
    }

    .wide .form-row label {
        width: 100%;
        text-align: left;
    }

    .filter .form-row label {
        text-align: left;
        width: 100%;
    }

    div.selector.smaller {
        margin-bottom: .6em;
    }

    .pagination a:link, .pagination a:visited, .pagination .active {
        padding: .25em .36em;
    }

    span#charcount {
        padding-left: 0 !important;
    }

    .form-column {
        margin-left: 0;
    }

    .txt-input, textarea {
        padding-right: 0;
        margin-right: 0;
        width: 16em;
    }

    html body .riSingle textarea.riTextBox {
        width: 70%;
    }

    .landing.alt .pages li {
        margin: auto;
        width: 100% !important;
    }

    .mobile-search input[type="text"]:focus {
        border-top: none;
    }

    .mobile-banner {
        display: block;
        margin: 0 auto;
    }

    .about li a:after, .about li a .after {
        right: 20px;
    }

    .about ul li a:link, .about ul li a:active, .about ul li a:visited {
        padding: 14px 20px;
    }

    .aboutNews h2 {
        padding-left: 20px;
    }

    .sf_3cols_2_34 div.sf_3cols_2in_34, .sf_3cols_3_33 div.sf_3cols_3in_33 {
        margin-left: 0;
    }

    ul.board-directors {
        padding: 0;
    }

    .board-directors li {
        width: 40%;
        vertical-align: middle;
    }

    table.board-committees {
        width: 100%;
    }

    table.board-committees, table.board-committees tbody, table.board-committees th, table.board-committees td, table.board-committees tr {
        display: block;
    }

        table.board-committees tbody {
            padding-right: 30px;
        }

        table.board-committees td:not(.no-before) {
            position: relative;
            padding-left: 38%;
        }

        table.board-committees td:nth-of-type(1), table.board-committees td:nth-of-type(2) {
            width: 60%;
        }

        table.board-committees td.no-before {
            width: 100%;
        }

        table.board-committees td:nth-of-type(1):not(.no-before):before {
            content: "Committee";
        }

        table.board-committees td:before {
            position: absolute;
            top: 6px;
            left: 6px;
            width: 30%;
            padding-right: 10px;
            white-space: normal;
        }

        table.board-committees td:nth-of-type(2):before {
            content: "Chair";
        }

        table.board-committees td:nth-of-type(3):before {
            content: "Members";
        }

        table.board-committees td:nth-of-type(4):before {
            content: "Support Contact";
        }

        table.board-committees tr:nth-of-type(odd) {
            background: white;
        }

        table.board-committees td:not(.noBottom-padding) {
            padding-bottom: 15px;
        }

        table.board-committees td p {
            padding-right: 0;
        }

        table.board-committees td.noBottom-padding {
            display: none;
        }

    .sidebar #content-main .sfContentBlock table.aoa-residents p {
        padding-right: 0;
    }

    .sidebar #content-main .sfContentBlock ul.branches {
        width: 100%;
    }

        .sidebar #content-main .sfContentBlock ul.branches li ul.branches li {
            width: 45%;
        }

        .sidebar #content-main .sfContentBlock ul.branches li {
            width: 32%;
            padding-right: 0;
            word-wrap: break-word;
            font-size: 13px;
        }

    table.events, table.events tbody, table.events th, table.events td, table.events tr {
        display: block;
    }

        table.events td:nth-of-type(1), table.events td:nth-of-type(2), table.events td:nth-of-type(3), table.events td:nth-of-type(4) {
            width: 100%;
        }

            table.events td:nth-of-type(1):before {
                content: "Date";
            }

        table.events td {
            position: relative;
            padding-left: 38%;
        }

            table.events td:before {
                position: absolute;
                left: 6px;
                width: 30%;
                padding-right: 10px;
                white-space: normal;
            }

            table.events td:nth-of-type(2):before {
                content: "Event";
            }

            table.events td:nth-of-type(3):before {
                content: "Location";
            }

            table.events td:nth-of-type(4):before {
                content: "";
            }

            table.events td:nth-of-type(5):before {
                content: "Calendar";
            }

            table.events td:nth-of-type(5) {
                padding-bottom: .5em;
            }

        table.events tr:nth-of-type(odd) {
            background: white;
        }
}



@media only screen and (max-width : 768px) {
    div.one {
        width: 45%;
    }

    div.sf_3cols_1_33, div.sf_3cols_2in_34, div.sf_3cols_3_33, .sf_3cols_2_34 {
        width: 100% !important;
    }

    .hero-unit {
        overflow: hidden;
    }
}

/* mobile devices excluding tablets */
@media only screen and (max-width : 599px) {

    div#slider {
        display: none;
    }

    #content-main div.mobile-banner-container {
        display: block;
    }

    .mobile-banner-container p {
        margin: 0 auto 10px auto;
        padding: 20px;
        background: #1C3F95;
        color: white;
    }

    img#logo {
        height: 140px;
    }

    div#breadcrumbs {
        margin-left: 8em;
    }

    .about li a:after, .about li a .after, .for-sections li a:after, .for-sections li a .after {
        right: 4px;
    }

    div.selector.smaller {
        width: 100% !important;
    }

    table.aoa-residents {
        font-size: 12px;
        margin-left: -10px;
    }

    .hero-unit .sfContentBlock h1 {
        padding-right: 20px;
    }

    .hero-unit div.sfContentBlock div {
        text-align: left !important;
        padding-right: 20px;
    }

    div.one {
        width: 90%;
    }
}

/* tablets only */
@media only screen and (min-width : 600px) and (max-width : 1024px) {
    section#content-main .sfContentBlock h1, section#content-main .sfContentBlock > img, .hero-unit .sfContentBlock h1 {
        padding-top: 1.5em;
    }

    div#login p, div#login h2 {
        padding-top: 3em;
    }

    .forgot-password {
        padding-top: 4em;
    }

    .sfContentBlock > h2:first-child {
        padding-top: 2em;
    }

    table.board-committees tbody {
        padding-right: 0;
    }
}
