@media only screen and (max-width: 992px) {
    #desk_nav {
        display: none !important;
    }

    .toolmenu {
        display: block;
    }

    .smallheader,
    #header {
        display: none;
    }

    #mobinavmenuicon {
        width: 50px;
        margin: 5px;
    }

    #mobinavmenuiconphone {
        float: right;
        width: 50px;
        margin: 5px;
    }

    .mobilepadding {
        display: block;
        height: 60px;
        width: 100%;
    }

    .mobileheader {
        display: block;
        height: 60px;
        width: 100%;
        position: fixed;
        top: 0px;
        right: 0px;
        z-index: 999;
        box-shadow: 0px 0px 15px #000;
    }

    .mobileheader a:nth-child(2) {
        padding-right: 5px;
    }

    #socialicons {
        display: none;
    }

    /* the menu system */
    .scrollmenu ul {
        padding: 0;
        margin: 0;
        list-style-type: none;
    }

    .scrollmenu ul li {
        color: #FFF;
        padding: 5px;
        font-size: 20px;
        padding-top: 10px;
        padding-bottom: 10px;
        border-right: 2px #FFF solid;
        border-bottom: 1px #FFF solid;
        float: left;
        background-color: #335A7F;
        width: calc(100% - 10px);
    }

    .scrollmenu ul li a {
        color: #FFF;
        text-decoration: none;
    }

    .scrollmenu li:hover {
        background-color: #4C88BF;
    }

    .scrollmenu ul li ul {
        display: none;

    }

    .scrollmenu ul li:hover ul {
        display: list-item;
        /*   position: absolute; */
        margin-top: 14px;

        width: 100%;
    }

    .scrollmenu ul li:hover ul li {
        float: none;
        background-color: #335A7F;
    }

    .scrollmenu ul li ul li:hover {
        float: none;
        background-color: #66B5FF;
    }

    .navigation {
        position: relative;
    }

    .navigation div.subnavigation {
        position: relative;
    }

    .navigation div.subnavigation.left_space {
        margin-left: 20px;
    }

    .header {
        border-radius: 0px !important;
        margin-bottom: 0px !important;
    }

    #desk_nav {
        border-radius: 0px !important;
        margin-bottom: 0px !important;
    }

    .common-carousel .name {
        margin-top: 10px;
    }
}

/* Smartphones (portrait and landscape) ----------- */
@media only screen and (max-width : 768px) {
    .ws_bullets {
        display: none !important;
    }

    .content .frontpage {
        min-height: auto;
        padding-bottom: 20px;
        float: none;
        width: 100%;
    }

    #wowslider-container1 .ws_bullets {
        display: none !important;
    }

    .abuttons img {
        width: 50px !important;
    }

    .wrapper {

        margin-top: 0px !important;
    }

    .content img {

        padding: 0px !important;
    }

    .content {
        border-radius: 0px !important;
        margin-bottom: 0px !important;
    }

    .footer {
        border-radius: 0px !important;
        margin-bottom: 0px !important;
    }

    #private {
        border-radius: 0px !important;
        margin-bottom: 0px !important;
    }

    #cms {
        border-radius: 0px !important;
        margin-bottom: 0px !important;
    }


    .rightwidget {
        vertical-align: bottom !important;
        float: none !important;
        width: 100% !important;
        height: auto !important;
        margin-left: 0px !important;
        padding-left: 0px !important;
        padding-right: 0px !important;
        border-radius: 0px !important;

    }

    .leftwidget {
        vertical-align: bottom !important;
        float: none !important;
        width: 100% !important;
        height: auto !important;
        margin-right: 0px !important;
        padding-left: 0px !important;
        padding-right: 0px !important;
        border-radius: 0px !important;
        text-align: center;
    }

    .mobilehide {
        display: none;
    }

    .mobileshow {
        display: block;
    }

    .sidemap {
        text-align: left;
    }

    .sidemap a {
        padding: 5px;
        display: block;
        text-decoration: none;
    }

    .sidemap ul li a {
        display: block;
    }

    #PAJinner {
        max-width: 100% !important;
        width: auto !important;
    }

    .makesmall {
        float: none;
        width: 100% !important;
    }

    .content .frontpage {
        min-height: auto;
        padding-bottom: 20px;
        float: none;
        width: 100%;
    }

    .mobile_image {
        display: block;
        text-align: center;
    }

    .mobile_image img {
        float: none;
        margin-left: auto;
        margin-right: auto;
    }

}

@media only screen and (max-width : 665px) {
    .fc-toolbar .fc-right {
        float: left !important;
        padding-top: 10px;
    }

    .fc-scroller {
        height: auto !important;
    }
}

@media only screen and (max-width : 640px) {

    .img25,
    .img33,
    .img50,
    .img75,
    .img100,
    .content img {
        max-width: 100%;
    }

    .sidemap a {
        color: rgb(125, 125, 125);
    }

    .sidemap {
        display: none;
    }

    .top_breadcrumb {
        padding-left: 20px;
        padding-right: 20px;
    }
}

@media only screen and (max-width: 760px),
(min-device-width: 768px) and (max-device-width: 1024px) {

    .cms_table table,
    .cms_table thead,
    .cms_table tbody,
    .cms_table th,
    .cms_table td,
    .cms_table tr {
        display: block;
    }

    .cms_table thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }

    .cms_table tr {
        border: 1px solid #ccc;
    }

    .cms_table td {
        border: none;
        border-bottom: 1px solid #eee;
        position: relative;
        padding-left: 50% !important;
        text-align: left !important;
    }

    .cms_table td:before {
        position: absolute;
        top: 6px;
        left: 6px;
        width: 45% !important;
        padding-right: 10px;
        white-space: nowrap;
        text-align: left;
    }
}

/* Smartphones (portrait and landscape) ----------- */
@media only screen and (min-device-width : 320px) and (max-device-width : 480px) {
    body {
        padding: 0;
        margin: 0;
    }

    .content {
        padding-left: 15px;
        padding-right: 15px;
    }
}


@media (max-width: 600px) {
    form>div {
        margin: 0 0 15px 0;
    }

    form>div>label,
    form legend {
        width: 100%;
        float: none;
        margin: 0 0 5px 0;
    }

    form>div>div,
    form>div>fieldset>div {
        width: 100%;
        float: none;
    }

    form input[type=text],
    form input[type=email],
    form input[type=url],
    form input[type=password],
    form textarea,
    form select,
    form input[type=file],
    form input[type=date] {
        width: calc(100% - 22px);
    }
}

@media (min-width: 1200px) {

    form>div>label,
    form legend {
        text-align: left;
    }
}

@media (min-width: 32em) {
    .modal-box {
        width: 70%;
    }

    .modal-box .left {
        float: left;
        width: 30%;
        padding: 1%;
    }

    .modal-box .right {
        float: right;
        width: 66%;
        padding: 1%;
        text-align: left;
    }
}

@media (max-width: 640px) {
    .iframeWrapper {
        position: relative;
        padding-bottom: 56.25%;
        /* 16:9 */
        padding-top: 25px;
        height: 0;
    }

    .iframeWrapper iframe {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
    }
}