/**************** General ****************/
@media screen
and (max-width: 80em) {
    .global_wrap {
        width: 95%;
    }
}
/**************** Max Height ****************/
@media screen
and (max-height: 57.5em) {
    #logo {
        height: 60px;
        font-size: 0.97em;
        color: #404040;
        margin-bottom: 50px;
    }
    #logo > .widget > p {
        display: none;
    }
    #logo a {
        width: 170px;
        height: 55px;
        background: url('images/logo_small.png')center center no-repeat;
    }
    #logo a:hover {
        opacity: 0.6;
        filter:alpha(opacity=60);
    }
    #navigation {
        margin-bottom: 25px;
        height: 60%;
    }
    #left_innercontainer .widget {
        display: inline;
        clear: none;
    }
    .search_container {
        float: right;
        margin-right: 45px;
        margin-top: 0;
        margin-bottom: 0;
        position: relative;
        list-style: none;
    }
    .search input[type="text"] {
        position: absolute;
        left: 30px;
        top: 0;
        width: 2px;
        height: 16px;
        -webkit-transition: all 1s ease-in-out;
        -moz-transition: all 1s ease-in-out;
        -o-transition: all 1s ease-in-out;
        transition: all 1s ease-in-out;
         background: #fff;
         font-size: 0.5em;
         font-style: italic;
         color: #695c54;
         border: 1px solid #281c14;
         -webkit-appearance: none;
    }
    .search:hover input[type="text"],  .search input[type="text"]:focus {
        width: 90px;
        padding:5px 8px;
        font-size: 0.9em;
    }
    .search input[type="text"]:focus {
        background: #fff;
        color: #281c14;
    }
    .search input[type="submit"] {
        margin: 0;
    }
    .social_media {
        padding: 8px 0;
        overflow: auto;
        border: none;
        float: left;
    }   
}
@media screen
and (max-height: 32em){
    #left_widget {
        display: none;
    }
}
/**************** Max Width ****************/
@media screen
and (min-width: 49em) {
    .category-module li:nth-child(3n) {
        margin-right: 0;
    }
}
@media screen
and (max-width: 56.5em) {
    /**************** Blog Pagination CSS ****************/
    .category-module li{
        width: calc(100% / 2 - 6px);
        margin-right: 6px !important;
    }
    .category-module li:nth-child(2n) {
        margin-right: 0;
    }
}
@media screen
and (max-width: 49em){
    html, body {
        height: 100%;
        padding: 0;
    }
    #left {
        display: none;
    }
    #header {
        display: block;
        padding: 20px;
        min-height: 40px;
        background: #000;
    }
    #logo {
        width: 35px;
        height: 35px;
        overflow: hidden;
        float: left;
        margin-bottom: 0;
        position: absolute;
        top: 20px;
        left: 20px;
    }
    #logo a {
        width: 35px;
        height: 35px;
        background: url('images/logo_small_inverse.png')left top no-repeat;
        display: block;
        margin: 0;
        opacity: 1.0;
        filter:alpha(opacity=100);
    }
    #logo p {
        display: none;
    }
    #mobile_nav {
        float: right;
        text-align: right;
    }
    #content_container {
        width: 100%;
        float: none;
        display: block;
        padding-bottom: 30px;
        position: relative;
        overflow: hidden;
    }
    #left_widget, #footer {
        display: none;
    }
    #footer2 {
        display: block;
    }
}
@media screen
and (max-width: 40em){
    #component_container {
        float: none;
        display: block;
        margin-right: 0;
        margin-bottom: 20px;
        width: 100%;
    }
    #right{
        display: block;
        width: 100%;
    }
    #right .category-module > li {
        width: calc(100% / 2 - 6px);
        margin-right: 6px !important;
        float: left;
    }
    #right .category-module > li:nth-child(2n) {
        margin-right: 0;
    }
}
@media screen
and (max-width: 35.5em){
    .category-module li{
        width: 100%;
        margin-right: 0 !important;
    }    
}