@media screen and (max-width: 767px) {
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);

    h1 {
        color: #000 !important;
        text-shadow: none;
        text-align: center;
    }

    .navbar-toggle {
        background-color: transparent;
        border: none;
        position: absolute;
        top: 28px;
        right: 15px;
    }
    .navbar-toggle .icon-bar {
        display: block;
        width: 22px;
        height: 2px;
        border-radius: 1px;
        background-color: #fff;
    }
    .navbar-toggle .icon-bar+.icon-bar {
        margin-top: 4px;
    }

    .collapse {
        display: block !important;
    }
    hr {
        width: 100% !important;
    }

    body {
        min-width: 100%;
        background-position-y: -308px !important;
        font-size: 12px;
        /* padding-top: 0px; */
        padding-top: 150px;
    }

    body.index #content {
        padding: 0;
    }

    body.index #main {
        margin: 0 !important;
    }

    #container {
        width: 100%
        ;
        margin: 0 auto;
    }

    #container header {
        width: 100%;
        margin: 0 auto;
        display: block;
        text-align: center;
        padding-bottom: 0;
        height: auto;
        padding-top: 15px;
        background: #312722;
        position: fixed;
        top: 0;
        left: 0;
    }

    #container header #logo {
        margin-left: 0px;
    }

    #container header #logo a {
        width: 120px;
        float: left;
        margin-left: 15px;
    }

    #container header #logo a img {
        width: 100%;
    }

    #container header  #header_notice {
        margin-top: 48px;
        margin-right: 0;
        font-size: 14px;
        margin-left: 0;
        text-align: center;
        display: block;
        float: none;
        padding-bottom: 45px;
    }

    #container header  #facebookLink {
        top: 92px;
        left: 50%;
        width: 150px;
        font-size: 12px;
        padding-left: 10px;
        margin-left: -75px;
    }

    #container header nav {
        width: 100%;
        display: none;
        padding: 0 !important;
        background-size: cover;
        padding-top: 5px;
        box-sizing: border-box;
        background: #412f25;
        margin-top: 0;
        height: auto;
        position: absolute;
    }

    #container header nav ul {
        width: 100%;
        border-radius: 0;
        padding: 0 0 15px;
        background-color: #312620;
    }

    #container header nav ul li {
        display: block;
        border: none;
        background: none;
        text-align: left;
    }

    #container header nav ul li:hover .submenu {
        display: none;
    }

    #container header nav ul li a {
        padding-right: 15px;
        padding-left: 15px;
        color: #fff;
        padding-top: 0;
        padding-bottom: 0;
    }

    #container header nav ul li .submenu:before {
        display: none;
    }

    nav li ul li:first-of-type, nav li ul li:first-of-type,
    nav li ul li:first-of-type, nav li ul li:last-of-type,
    nav li ul li:first-of-type, nav li ul li:first-of-type a,
    nav li ul li:first-of-type, nav li ul li:last-of-type a {
        border-radius: 0;
    }

    #container header nav ul li:last-of-type a {
        padding-right:0;
    }

    #container header nav ul li .submenu {
        position: static;
    }

    #container header nav ul li .submenu ul li a {
        padding-left: 15px;
        padding: 15px 0 0 25px;
    }

    /* end of header */

    .index #main {
         /* width: auto; */
    }

    .index #main #slider {
        overflow: hidden;
    }
    
    .index #main #slider,
    .index #main #slider .sliderwrapper,
    .index #main #slider .sliderwrapper .contentdiv,
    .index #main #slider .sliderwrapper .contentdiv img {
        width: 100%;
        /* padding: 0 5px; */
        box-sizing: border-box;
        /* margin-bottom: 10px; */
    }
    .index #main #slider .sliderwrapper,
    .index #main #slider .sliderwrapper .contentdiv {
        height: 100px;
    }

    /* end of carousel */

    #black_bar {
        width: 100% !important;
        -webkit-box-sizing: border-box !important;
        -moz-box-sizing: border-box !important;
        box-sizing: border-box !important;
        height: 120px !important;/* Permalink - use to edit and share this gradient: http://colorzilla.com/gradient-editor/#505050+0,3a3a3a+100,207cca+100 *//* Old browsers *//* FF3.6+ *//* Chrome,Safari4+ *//* Chrome10+,Safari5.1+ *//* Opera 11.10+ *//* IE10+ *//* W3C *//* IE6-9 *//* Permalink - use to edit and share this gradient: http://colorzilla.com/gradient-editor/#505050+0,000000+100,207cca+100 *//* Old browsers *//* FF3.6+ *//* Chrome,Safari4+ *//* Chrome10+,Safari5.1+ *//* Opera 11.10+ *//* IE10+ *//* W3C *//* IE6-9 */
        position: relative;
        padding: 20px;
        background-position: top;
        background: #000;
        margin-bottom: 60px;
    }

    #black_bar #blak_title {
        font-size: 13px;
        padding-top: 10px;
        text-align: center;
        float: none;
    }

    #black_bar #black_button {
        margin: 0 auto;
        float: none;
        display: block;
        width: 200px;
        clear: both;
    }

    #black_bar #black_button .button_big {
        width: 200px;
    }

    #black_bar #black_button .button_big img {
        width: 100%;
    }

    /* end of #black_bar */

    #content {
        width: auto !important;
        background-color: #e7e7e7;
        margin-top: -40px !important;
        -webkit-box-sizing: border-box;
        -moz-box-sizing: border-box;
        box-sizing: border-box;
        padding-left: 15px;
        padding-right: 15px;
    }

    #content .box_contents.box_contents1 img {
        width: 200px;
        float: none;
        clear: both;
        margin: 0 auto 20px;
        display: block;
    }

    #content .box_contents {
        padding: 0;
    }

    #content .box {
        width: 100%;
        float: none;
    }

    #content .box .box_title h2 {
        margin-bottom: 5px;
        text-align: center;
        float: none;
    }

    #content {
        
    }

    #content .box_contents .text {
        padding-left: 0;
    }

    #content .box_contents .text img {
        width: 290px;
    }

    #content .box .box-contents img {
        width:200px;
    }

    #content .box .box_title .button {
        clear: both;
        float: none;
        margin: 0 auto 50px;
        /* display: block; */
    }

    .fact_box {
        width: 270px;
        background-size: contain !important;
        padding-left: 15px;
        height: 70px;
        margin: 20px auto;
    }
    
    .fact_box .fact_cat {
        padding-top: 11px;
    }

    .fact_box .fact_txt {
        width: 187px;
        margin-left: -40px;
        margin-top: -5px;
        font-size: 10px;
        line-height: 1.5;
    }

    .fact_box.green  .fact_txt{
        margin-top: -12px;
    }

    .mythButton, .factButton {
        left: 239px;
        top: 10px;
    }

    mythButton, .factButton

    /* end of #content */

    .footer_top {
        width: 100%;
    }

    footer .footer_top,
    footer .footer_bottom,
    footer .footer_bottom .footer_bottom_content {
        width: 100%;
        -webkit-box-sizing: border-box !important;
        -moz-box-sizing: border-box !Important;
        box-sizing: border-box !important;
        /* display: block; */
        clear: both;
    }

    footer .footer_top {
        height: 400px;
        padding: 0 15px;
    }

    footer .footer_top h2 {
        font-size:  18px;
    }

    footer .footer_top .partner_list {
        width: 100%;
        -webkit-box-sizing: border-box;
        -moz-box-sizing: border-box;
        box-sizing: border-box;

    }

    footer .footer_top .partner_list {
           text-align: center;
    }

    footer .footer_top .partner_list li {
        float: none;
        display: inline-block;
        margin-right: 15px;
    }

    footer .footer_bottom .footer_bottom_content {
    padding: 15px;
    }

    footer .footer_bottom .footer_bottom_content .footer_left {
        width: 100%;
        float: none;
        text-align: center;
        margin-bottom: 10px;
        font-size: 12px;
    }

    footer .footer_bottom .footer_bottom_content .footer_right {
        margin: 0;
        width: 100%;
        float: none;
        text-align: center;
    }

    .footer_right a:first-of-type {
        padding-left: 0;
    }

    .footer_right a:nth-of-type(7),

    .footer_right a:nth-of-type(10),
    .footer_right a:last-of-type {
        padding-right: 0;
        border: none
    }

    /* end of footer */

    /* start of services page */

    .button-250 {
        width: 200px
    }
   .sidebar {
       width: 100%;
       margin: 0;
   }

   .sidebar .sidebar_top,
   .sidebar .sidebar_bottom {
       margin: 0 auto;
       width: 230px;
   }

   .sidebar .sidebar_bottom {
       margin-left: 0;
       width: 270px;
       background-size: contain;
       margin: 0 auto;
       position: relative;
       left: 1px;
   }

   .content_left {
       width: 100%;
       margin: 0;
       box-sizing: border-box;
       -webkit-box-sizing: border-box;
       -moz-box-sizing: border-box;
   }

   .content_left .button {

   }

   .content_left .wframe {
       width: 100%;
       height: auto;
       box-sizing: border-box;
       padding: 6px;
       /* background-size: contain; */
       border: 1px solid #ddd;
       border-radius: 5px;
       background: none;
   }

   .content_left img {
       width: 100%;
   }

   #main {
       width: 100%;
       box-sizing: border-box;
       -webkit-box-sizing: border-box;
       -moz-box-sizing: border-box;
       padding: 0 15px;
       float: left;
       clear: both;
   }

   /* end of services page */

   .seconday_nav,
    .secondary_nav_top,
    .secondary_nav_bottom {
        width: 230px;
        background-size: contain;
    }

    .team_pic {
        padding: 6px;
        border: 1px solid #ddd;
        border-radius: 5px;
        background: none;
    }

    .team_pic img {
        width: 100%;
        
    }

    .team_social {
        margin: 0 auto;
        width: 92px;
    }

    .team_social a {
        display: block;
        width: 32px;
        height: 32px;
        float: left;
    }

    .team_left {
        float: none;
        margin: 0 auto;    
    }

    .team_right {
        width: auto;
        margin-left: 0;
        margin-top: 30px;
    }
    /* end of our team */

    /* start of our office */
    div.gallery li {
        margin-right: 15px;
        margin-bottom: 15px;
        background: none;
        padding: 6px;
        border: 1px solid #ddd;
        border-radius: 5px;
        -webkit-box-sizing: border-box;
        -moz-box-sizing: border-box;
        box-sizing: border-box;
        width: 47%;
        height: auto;
    }

    div.gallery li:nth-of-type(2n+2) {
        margin-right: 0;
    }

    .map {
        background: none;
        padding: 6px;
        border: 1px solid #ddd;
        border-radius: 5px;
    }

    .map,
    .map iframe {
        width: 100% !important;
        -webkit-box-sizing: border-box;
        -moz-box-sizing: border-box;
        box-sizing: border-box;
    }
    /* end of our office */

    /* start of gallery page */
    .gallery_desc_bottom {
        background-size: contain;
        width: 100%;
    }

    .gallery_desc {
        width: 100%;
        display: none;
        box-sizing: border-box;
    }
    /* end of gallery page */

    .content_wide {
        margin: 0;
    }

    /* start of blog page */

    .seconday_nav.small .secondary_nav_top {
        width: 230px;
        background-size: contain;
    }

    .seconday_nav.small .seconday_nav_center {
        width:230px;
        background-size: contain;
    }

    .seconday_nav.small .seconday_nav_ul {
        width: 230px;
        background-size: contain;
    }

    .share_box img {
        display: block;
        width: 32px;
        height: 32px;
        float: left;
        margin-bottom: 10px;
    }

    #s {
        width:90px;
    }

    .post_content p a {
        display: none !important;
    }

    .share_box a {
       position: relative;
       top: 10px;
    }

    .addthis_toolbox {
        width: 100%;
        text-align: center;
    }

    .addthis_toolbox a {
        display: inline-block !important;
        float: none !important;
    }

    .addthis_toolbox a.addthis_button_facebook_like {
        position: relative;
        top: -6px;
    }

    .addthis_toolbox #___plusone_0 {
        width: 56px !important;
    }

    .addthis_counter.addthis_pill_style a.addthis_button_expanded {
        position: relative;
        top: -5px;
    }

    /* end of blog page */

    h1 {
        color: #000 !important;
        text-shadow: none;
        text-align: center;
    }

    h2 {
        text-shadow: none;
        text-align: center;
    }
}

@media screen and (min-width: 375px) and (max-width: 767px) {
    body {
        background-position-y: -285px !important;
    }
    
    .index #main #slider .sliderwrapper, .index #main #slider .sliderwrapper .contentdiv {
       height: 110px;
    }

    #black_bar {
       padding-top: 10px
    }

    footer .footer_top {
       height: 320px;
       padding: 0 15px;
    }

    .footer_right a:nth-of-type(4) {
        padding-right: 0;
        display: inline-block;
        border: none;
    }
}

@media only screen and (min-device-width : 375px) and (max-device-width : 667px) and (orientation: landscape) {
   body {
       background-position-y: -195px !important;
   }

   #container header {
        height: 80px;
   }

   .index #main #slider .sliderwrapper, .index #main #slider .sliderwrapper .contentdiv {
       height: 200px;
   }

   #container header #header_notice {
       position: absolute;
       top: -18px;
       left: 50%;
       transform: translateX(-30%);
   }

   #container header #facebookLink {
       top: 60px
   }
}

@media only screen and (min-device-width : 414px) and (max-device-width : 736px) {
    .index #main #slider .sliderwrapper, 
    .index #main #slider .sliderwrapper .contentdiv {
        height: 120px;
    }

    .footer_right a:nth-of-type(4) {
        padding-right: 10px;
        display: inline;
        border-right: 1px solid #fff;
    }

    .footer_right a:nth-of-type(5) {
        border: none;
        padding-right: 0;
    }

    .footer_right a:nth-of-type(6) {
        padding-right: 10px;
        display: inline-block;
        line-height:1.2;
    }
}

@media only screen and (min-device-width : 414px) and (max-device-width : 736px) and (orientation : landscape) {
    .index #main #slider .sliderwrapper, 
    .index #main #slider .sliderwrapper .contentdiv {
        height: 220px;
    }

    footer .footer_top {
        height: 200px;
    }
}