/* -------------------------------------------------------------------------- */
/* -------------------------Media Query Max width------------------------------------ */
/* -------------------------------------------------------------------------- */
/* --- Media Screen 1199 --- */
@media (max-width: 1199px) {
    #main {
        margin-top: 50px;
    }
    .contact-container .error.comment {
        top: 131px;
        left: 127px;
    }
    .contact-container  .error.email {
        top: 50px;
        left: 490px;
    }
    .contact-container .error.name {
        top: 50px;
        left: 130px;
    }
}

/* --- Media Screen 991 --- */
@media (max-width: 991px) {
    .mm-fixed-top {
        display: block;
    }
    .contact-container form input[type='textarea'] {
        width: 44%;
    }
    .flex-caption {
        top: 9%;
        display: none;
    }
    .flex-control-nav {
        top: 5%;
    }
    .post-page, #commentsbox, #nav-single {
        margin-right: 0;
    }
    .contact-container .error.comment {
        top: 131px;
        left: 74px;
    }
    .contact-container  .error.email {
        top: 50px;
        left: 380px;
    }
    .contact-container .error.name {
        top: 50px;
        left: 74px;
    }
    .mobile-logo {
        display: block;
    }
}

/* --- Media Screen max 767 --- */
@media (max-width: 767px) {
    .menu-wrapper-bg{
        min-height: inherit !important;
    }
    .breadcrum-wrapper {
        padding-top: 0px !important;
    }
    .comment-form-author, .comment-form-url {
        float: none;
    }
    .blog-wrapper > div > div > div:nth-child(n+1) > div:nth-child(3n+1) {
        clear: none;
    }
    .blog-wrapper > div > div > div:nth-child(n+1) > div:nth-child(2n+1) {
        clear: both;
    }
    .contact-container .error.comment {
        top: 212px;
        left: 74px;
    }
    .contact-container  .error.email {
        top: 131px;
        left: 74px;
    }
    .contact-container .error.name {
        top: 50px;
        left: 74px;
    }
    .footer,
    .footer-menu ul#nav, ul#nav ul{
        text-align: center;
    }
    .footer-copyright p {
        padding: 20px 0;
        text-align: center;
    }
    .footer-menu-ul li a{
        padding-top: 0px;
        padding-bottom: 15px;
    }
    .footer-menu,
    .footer-menu ul#nav li{
        float: none;
    }
    .sidebar {
        padding-left: 0px;
        text-align: center;
    }
    .post,
    .post-page,
    .logo .logo-header,
    #crumbs,
    #nav-single {
        text-align: center;
    }
    .post-page li{
        list-style-position: inside;
    }
    .menu-wrapper {
        position: initial;
    }
    .mean-container .mean-bar{
        margin-bottom: 15px;
    }
    .menu-sp ul li:after{
        content: '';
    }
    .sf-arrows .sf-with-ul:after{
        border: 0;
    }
    .menu-sp ul li{
        height: auto;
    }
    .mean-container .mean-nav ul li a,
    .mean-container .mean-nav ul li li a,
    .mean-container .mean-nav ul li li li a,
    .mean-container .mean-nav ul li li li li a,
    .mean-container .mean-nav ul li li li li li a{
        padding-top: 0.7em;
        padding-bottom: 0.7em;
        font-size: 15px;
    }
    .mean-container .mean-nav ul li a.mean-expand{
        padding: 8px !important;
    }
}

/* --- Media Screen max 550 --- */
@media (max-width: 550px) {
    .contact-container form input[type='textarea'] {
        width: 64%;
    }
    .blog-container .col-xs-6 {
        width: 100%;
    }
    .recent-posts-container img.post-thumb {
        width: 100%;
    }
    .bx-wrapper .bx-caption span {
        display: block;
        clear: both;
        margin-left: 0px;
    }
    .commentlist .comment .depth-2,
    .commentlist .comment .depth-3,
    .commentlist .comment .depth-4,
    .commentlist .comment .depth-5{
        margin-left: 0;
    }
}

/* --- Media Screen  479 --- */
@media (max-width: 479px) {
    .comment-form-author input[type='text'], .comment-form-email input, .comment-form-url input {
        width: 59%;
    }
    .comment-form-author label, .comment-form-email label, .comment-form-url label{
        width: 40%;
    }
    .contact-container .error.comment {
        top: 212px;
        left: 33px;
    }
    .contact-container  .error.email {
        top: 131px;
        left: 33px;
    }
    .contact-container .error.name {
        top: 50px;
        left: 33px;
    }
    .flex-control-nav li {
        margin: 6px 0;
        display: block;
        zoom: 1.5;
    }
    .contact-container form label{
        font-size: 14px;
        padding: 16px 18px 19px 18px;
    }
}

/* --- Media Screen 300 Max --- */
@media (max-width: 300px) {

    .contact-container form input[type='textarea'] {
        width: 36%;
    }
    .contact-container form input[type='text'] {
        width: 48%;
    }
    p.rbh-post-meta {
        width: 68%;
    }
    .text-container h1 {
        word-break: break-word;
    }
    .formfield textarea#commentsText {
        width: 85.5%;
    }
    .msg-label {
        left: 7.4%;
    }
    .flex-control-nav li {
        margin: 6px 0;
        display: block;
        zoom: 1.5;
    }
}

/* -------------------------------------------------------------------------- */
/* -------------------------Media Query Range------------------------------------ */
/* -------------------------------------------------------------------------- */
/* --- Media Screen 992 and 1199 --- */
@media (min-width: 992px) and (max-width: 1199px) {
    .flex-control-nav {
        bottom: 33%;
    }
}

/* --- Media Screen 768 and 991 --- */
@media (min-width: 768px) and (max-width: 991px) {
    .flex-control-nav {
        bottom: 33%;
    }
    p.rbh-post-meta {
        width: 69%;
    }
}
/* --- Media Screen 300 and 479 --- */
@media (min-width: 300px) and (max-width: 479px) {
    #main {
        margin-top: 0;
    }
}

/* -------------------------------------------------------------------------- */
/* -------------------------Browsers hack------------------------------------ */
/* -------------------------------------------------------------------------- */
/* safari */
@media screen and (-webkit-min-device-pixel-ratio:0) {
    /* Safari-Opera specific declarations here */
    .contact-container form label,
    ::i-block-chrome,.contact-container form label{
        padding: 10px 18px 15px 18px;;
    }
    .contact-container form input[type="text"], .contact-container form input[type="textarea"],
    ::i-block-chrome,.contact-container form input[type="text"], .contact-container form input[type="textarea"] {
        padding: 18px;
    }
}

/* opera */
@media all and (-webkit-min-device-pixel-ratio:10000), not all and (-webkit-min-device-pixel-ratio:0) {
    .contact-container form label { 
        padding: 10px 18px 18px;
    }
}