#mobile-menu
{
    display: none;
    width: 100%;
    background-color: #393693;
}

#mobile-menu .container
{
    display: table-row;
}

#mobile-menu .container div
{
    display: table-cell;
    text-align: center;
    vertical-align: middle;
    width: 33%;
    padding: 7px 0 7px 0;
}

#mobile-menu .login
{
    text-align: left !important;
    padding-left: 7px !important;
}

#mobile-menu .login a
{
    display: inline-block;
    padding: 7px;
    color: #fff;
    border-radius: 4px;
    border: solid 1px #fff;
}

#mobile-menu .menu
{
    text-align: right !important;
}

#mobile-menu .menu a
{
    cursor: pointer;
}

#mobile-main-menu
{
    display: none;
    background-color: #fff;
}

#mobile-main-menu ul, #mobile-main-menu ul li
{
    display: block;
    padding: 0;
    margin: 0;
    list-style: none;
}

#mobile-main-menu ul li a
{
    display: block;
    padding: 10px;
    border-bottom: dotted 1px #393693;
}

#mobile-main-menu ul li a:hover, #mobile-main-menu ul li a.active
{
    background-color: #393693;
    color: #fff;
}

#mobile-main-menu ul ul
{
    display: none;
}

@media all and (max-width: 1380px)
{
    .listing-teaser .image img, .listing-teaser .image a
    {
        width: 100%;
        display: block;
    }
}

@media all and (max-width: 1200px)
{
    #header .search, #left-blocks
    {
        padding-left: 10px;
    }

    #header .account, #right-blocks
    {
        padding-right: 10px;
    }

    #pre-footer, #post-footer, #content .center
    {
        padding-left: 10px;
        padding-right: 10px;
    }
}

@media all and (max-width: 1100px)
{
    #gallery,
    #gallery tbody,
    .listing-grid-table,
    .listing-grid-table tbody
    {
        text-align: center !important;
        display: block !important;
    }

    #gallery tr,
    .listing-grid-table tr
    {
        display: inline-block !important;
        width: auto;

    }

    #gallery td,
    .listing-grid-table td
    {
        display: inline-block !important;
        margin: 0 auto 7px auto;
        text-align: center !important;
        width: auto !important;
    }

    .listing-grid
    {
        float: none !important;
        display: inline-block !important;
        margin: 0 auto 0 auto !important;
    }
}

@media all and (max-width: 1020px)
{
    #footer-blocks
    {
        margin: 0 7px 0 7px;
    }

    #our-programs td
    {
        display: block;
        width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    #our-programs td.image
    {
        text-align: center;
    }
}

@media all and (max-width: 1000px)
{
    #main-menu .subcontainer ul li.haschilds a
    {
        background: transparent url(../images/indicator.png) no-repeat 97% center;
    }
}

@media all and (max-width: 820px)
{
    #center-blocks .block
    {
        display: block;
        width: 99%;
        margin: 0 0 10px 0 !important;
    }

    #center-blocks .content p
    {
        background-color: rgba(255,255,255,0.7);
    }

    #outerImageContainer,
    #outerImageContainer *,
    #imageDataContainer
    {
        width: 95% !important;
        height: auto !important;
        display: block;
        margin: 0 auto 0 auto;
    }
}

@media all and (max-width: 750px)
{
    #header .logo
    {
        text-align: center;
    }

    #header .logo a,
    #header .logo a img
    {
        display: block;
        width: 90%;
        margin: 0 auto 0 auto;
    }

    #header td
    {
        display: block;
        width: auto !important;
    }

    #header .account
    {
        display: none;
    }

    #header .search a
    {
       display: none;
    }

    #header .search form
    {
        padding: 10px 0 20px 0;
        display: block;
        text-align: center;
    }

    #header .search form input[type=text]
    {
        width: 85%;
        text-transform: uppercase;
    }

    #mobile-menu
    {
        display: table;
    }

    #main-menu
    {
        display: none;
    }

    form.filter-results
    {
        display: block;
        width: 95%;
    }

    form.filter-results div
    {
        float: none !important;
        width: 95%;
        text-align: left !important;
        margin: 0 !important;
    }

    form.filter-results div select
    {
        margin-bottom: 7px;
        display: block !important;
        width: 95% !important;
    }

    #center-blocks
    {
        margin-bottom: 15px;
        text-align: center;
        display: flex;
        flex-wrap: wrap;
    }
}

@media all and (max-width: 700px)
{
    h1
    {
        text-align: center;
        display: block;
    }

    #content .center,
    #left-blocks,
    #right-blocks
    {
        width: auto !important;
        display: block !important;
    }

    #content .center table.responsive,
    #content .center table.responsive tbody,
    .content-book-page > table,
    .content-book-page > table > tbody
    {
        text-align: center;
        display: block;
    }

    #content .center table.responsive tr,
    .content-book-page > table > tbody > tr
    {
        display: block;
        width: 100%;
    }

    .content-book-page table.responsive td,
    .content-book-page > table > tbody > tr > td
    {
        display: inline-block;
        margin: 0 0 0 0 !important;
        padding: 0 !important;
        width: 100% !important;
        text-align: left;
        border: solid 0px transparent !important;
    }
}

@media all and (max-width: 650px)
{
    #content .center img
    {
        display: block;
        width: 95%;
        margin: 0 auto 0 auto;
    }

    #search-engine .form-submit
    {
        float: none !important;
        display: block;
        margin: 0 auto 0 auto !important;
        width: 95%;
        text-align: center;
        background-color: #d3d3d3;
        color: #000;
        border: solid 1px #000;
        padding: 5px;
        font-weight: bold;
    }

    #search-search
    {
        width: 95% !important;
        margin: 0 auto 0 auto;
        display: block;
    }

    .navigation .page
    {
        display: none;
    }

    iframe
    {
        width: 100% !important;
    }
}

@media all and (max-width: 550px)
{
    #post-footer .container div
    {
        float: none !important;
        display: block !important;
        text-align: center !important;
        margin: 0 !important;
        padding: 10px 0 10px 0 !important;
    }

    #post-footer .container .developer
    {
        padding: 10px 0 0 0 !important;
    }

    /*Tabs*/
    .tabs
    {
        padding: 0;
        margin: 0 0 15px 0;
        display: block;
    }

    .tabs li
    {
        list-style-type: none;
        float: none;
        display: block;
    }

    .tabs li a
    {
        display: block;
        padding: 7px;
        border: solid 1px #d3d3d3;
        background-color: #4274A8;
        margin: 0 0 0 0;
        color: #fff;
        text-align: center;
        transition: all 0.3s;
        font-size: 20px;
    }

    .tabs li a:hover
    {
        background-color: #175CA3;
        color: #fff;
    }

    .tabs li a.selected
    {
        color: #ffffff;
        border: solid 1px #d3d3d3;
        background-color: #175CA3;
    }

    .tabs li a.selected:hover
    {
        color: #ffffff;
    }

    .tabs-clear
    {
        clear: both;
        padding: 0px;
        display: none;
    }
}

@media all and(max-width: 540px)
{
    #footer-blocks .listing-block-container
    {
        justify-content: space-around !important;
    }
}

@media all and (max-width: 480px)
{
    #pre-footer .section
    {
        display: block;
        margin-right: 0;
        text-align: center;
    }

    #pre-footer .section h4
    {
        display: block;
        text-align: center;
        font-size: 24px;
        margin: 10px 0 10px 0;
        padding: 0;
    }

    #pre-footer .section ul li, #pre-footer .section ul li a
    {
        display: block;
        text-align: center;
        padding: 0;
        background: none;
    }

    #pre-footer .section ul li a
    {
        padding: 10px;
        border-bottom: dotted 1px #d3d3d3;
        font-size: 18px;
    }
}
