/* MOBILE VERSION FOR GOOGLE PAGE SPEED  */
/* one-deal - 196px
 196+6 = 202
 5x = 1004
 4x = 802
 3x = 600
 2x = 396
*/
.big-deal-square {
    max-width: 196px;
    width: 20%;
}
@media (max-width: 1010px ) {
    .m-wrapper {
        width: 100%;
    }
    .big-deal-square {
        max-width: inherit;
        width: 19%;
    }
    .deal-counters .d-firm {
        max-width: 49px;
        width: auto;
        float: right;
    }
    .big-deal-square .deal-bottom {
        max-width: 190px;
        width: auto;
    }
    .big-deal-square .deal-bottom .d-title {
        max-width: 182px;
        width: auto;
    }

}
@media (max-width: 802px ) {
    .big-deal-square {
        width: 24%;
    }
    .big-deal-square:nth-child(5n+1) {
        margin-right: 6px;
    }
    .big-deal-square:nth-child(4n+1) {
        margin-right: 0;
    }
}

/*   IPHONE 6 LANDSCAPE ORIENTATION   */
@media (max-width: 667px ) {

/* SAVIRY POSTER WITH MOBILE DEVICES */
    .index-page {
        width: 100%;
        padding-top: 0;
        min-height: 520px;
    }
    .empty-header-box {
        height: 40px;
    }
    .m-wrapper {
        width: auto;
    }
    .about-wrap {
        position: relative;
        font-size: 14px;
        padding: 0 25px;
    }
    .right-side {
        margin: 14px 108px 0 0;
        padding-top: 50px;
        height: auto;
    }
    .showcase {
        position: relative;
        width: 400px;
        height: 310px;
        text-align: center;
        margin: 0 0 0 138px;
    }
    /*  IPAD IMAGE */
    .showcase .show-ipad {
        width: 100%;
        margin:0;
        background-size: 500px auto!important;
        background-position-x: -12px;
    }
    .show-ipad .model-screen {
        left: 54px;
        top: 46px;
        width: 269px;
        height: auto;
    }
    #ipad-screen {
        width: 269px!important;;
        height: 202px!important;
    }
    /* IPHONE IMAGE */
    .showcase .show-iphone {
        top: 70px;
        left: 127px;
    }
    /* ANFROID PHONE */
    .showcase .show-android {
        top: 24px;
        left: 70px;
    }
/* END SAVIRY POSTER WITH MOBILE DEVICES */
    .to_top {
        float: none;
    }
    .to_top .arrow {
        float: left;
        padding-bottom: 3px;
    }
    .page_title {
        padding: 0;
    }
    .m-wrapper {
        /*width: 656px;*/
        padding: 0 5px;
        margin: 0;
    }
    .topline-apps {
        display: none;
    }
    .topline-apps-mobile-view {
        margin: 10px 0 0;
        display: block;
        text-align: center;
        background-color: #F3F3F3;
    }
    .topline-apps-mobile-view .go2appstore, .topline-apps-mobile-view  .go2gplay {
        float: none;
        display: inline-block;
        margin: 10px 5px;
    }
    .not-authorized a.logo_link {
        left: 38px;
        width: 125px;
    }
    .not-authorized .switch-list-grid.btnBack {
        top: 26px;
    }

    .not-authorized .switch-list-grid {
        margin: -10px 0 0 13px;
    }
    .not-authorized .top-line .m-wrapper {
        background-position: 39px 19px;
    }
    .not-authorized .category-top-line {
        margin: 0;
        left: initial;
        right: 0;
    }
    .big-dealline2-1 .deal-data {
        width: 100%;
    }
    .deal-data h4 {
        width: 550px;
        margin: 5px 0;
    }
    .deal-data .d-photo {
        margin-right: 10px;
    }
    .deal-data .d-bottom-line {
        width: 430px;
    }
    .big-dealline2-1 .users-and-likes {
        position: absolute;
        right: 0;
    }
    .users-and-likes .deal-users {
        display: none;
    }

    .big-dealline2-1 {
        width: 100%;
    }
    .deal-counters .d-firm {
        width: 40px;
    }
    .second-line-menu .category-menu {
        left: -245px;
        top: 35px;
    }

/* DEAL DETAILS VIEW */
    .b-one-deal .deal-content {
        margin-top:10px;
        width: 100%;
    }
    .b-one-deal, .b-top-box {
        margin-top:0;
        padding-top: 0;
    }
        .deal-content .d-photo, .deal-content .d-photo img {
            max-width: 200px;
        }
    .b-one-deal .owner_block,
    .b-who-likes,
    .b-big-comments-box,
    .b-one-comment,
    .b-big-comments-box.no-comments {
        width: 99%;
    }
    .owner_block .info {
        width: 69%;
    }
    .deal-description > div a {
        font-size: 16px;
    }
    .b-one-comment .b-one-comment_title {
        width: 558px;
    }
    .b-one-comment .b-one-comment_text {
        width: 648px;
    }
}

@media (max-width: 667px ) {
    .big-deal-square {
        width: 32%;
    }
    .big-deal-square:nth-child(4n+1) {
        margin-right: 6px;
    }
    .big-deal-square:nth-child(3n+1) {
        margin-right: 0;
    }
}

@media (max-width: 414px ) {

/*   SAVIRY POSTER WITH MOBILE DEVICES  */
    .big-deal-square:nth-child(2n+1) {
        margin-right: 0px;
    }
    /*.big-deal-square:nth-child(3n+1) {
        margin-right: 0;
    }*/
    .empty-header-box {
        height: 40px;
    }
    .normal .top-line {
        width: 100%;
    }
    .normal .top-line .m-wrapper {
        background-position-x: 10px;
    }
    .index-page {
        width: 100%;
        padding: 0;
    }
    .showcase {
        position: relative;
        width: 358px;
        height: 310px;
        text-align: center;
        margin: 0 0 0 -2px;
    }
    .right-side {
        display: block;
        width: 100%;
        float: none;
        padding: 0;
        margin: 0;
    }
    .first-leter-title {
        width: 80%;
        padding-left: 20%;
        margin-top: 25px;
        background-position: 73px 0;
    }
    .right-side p {
        padding: 0 20px 0 15px;
    }
    .download-box {
        margin-top: 0;
        text-align: center;
    }
    .download-box .big-appstore-label {
        margin-left: 0;
    }
    /* FOOTER OF MOBILE VIEW */
    .footer {
        margin: 0;
    }
    .footer .b-contacts {
        margin: 0;
        width: 100%;
        text-align: center;
    }
    .footer-nav {
        margin: 25px 0 25px;
    }
    .footer-nav li {
        margin: 0 7px;
    }
    .b-contacts .soc-contact {
        float: none;
        display: inline-block;
    }
    .b-contacts .contact_us {
        clear: both;
        margin: 0 45px 0 75px;
    }
    .about-wrap {
        float: left;
        width: 90%;
        padding: 0 5%;
        margin: 30px auto 0;
    }
    .about-wrap h3 {
        font-family: 'Exo', "Helvetica Neue", Helvetica, Arial, sans-serif;
        color: #029ab5;
    }
    p {
        font-family: 'Open Sans', Arial, sans-serif;
        font-size: 14px;
    }
/* END SAVIRY POSTER */

    .m-wrapper {
        /*width: 366px;*/
        padding: 0 5px;
        margin: 0;
    }
    .topline-apps-mobile-view {
        margin: 0;
    }
    .empty-header-box {
        height: 50px;
    }

    .normal .top-line {
        width: 100%;
    }

    .normal .top-line .m-wrapper {
        background-position-x: 10px;
    }

    .index-page {
        width: 100%;
        padding: 40px 0 0 0;
    }


/* DEAL PAGE */
    /* SQUARE VIEW */
    .big-deal-square {
        height: 313px;
        width: 197px;
        margin: 0 3px 6px 3px;
    }
    .big-deal-square .deal-bottom {
        width: 190px;
    }
        .big-deal-square .deal-bottom .d-title {
            width: 190px;
        }

    .big-deal-square:nth-child(3n+1) {
        margin-right: 3px;
    }
    .big-deal-square:nth-child(5n+1) {
        margin-right: 3px;
    }
    .big-deal-square:nth-child(2n+1) {
        margin-right: 0px;
    }

    .owner_block .user-pic-wrap-50px {
        margin: 0 10px;
    }
    .b-one-deal .deal-content, .b-one-deal .owner_block  {
        width: 100%;
    }
        .owner_block .info {
            width: 245px;
        }
        .owner_block .follow-unfollow, .box-description .follow-unfollow, .box-content .follow-unfollow {
            margin: 10px 10px 0 0;
        }
    .deal-content .d-photo {
        display: none;
    }
    .deal-content .deal-description {
        min-width: 100%;
        padding: 0 10px;
    }
    .deal-content {
        margin: 0 0 18px;
    }
    .deal-mobile-photo {
        display: block;
        width: 100%;
    }
        .deal-mobile-photo > h2 {
            display: block;
            width: auto;
            margin: 0;
            font-weight: normal;
            font-family: 'Open Sans', sans-serif;
            line-height: 1.1em;
            color: #333333;
            height: auto;
            text-align: left;
            padding: 0 10px 10px;
        }
            .deal-mobile-photo > h2 > a {
                text-decoration: none;
            }

    .deal-title-in-table {display: none;}
/* DEAL LIST VIEW */
    .big-dealline2-1 {
        width: 363px;
    }
        .deal-data .d-photo {
            margin-right: 10px;
        }
        .d-bottom-line .d-firm {
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            width: 140px;
            display: inline-block;
        }
        .big-dealline2-1 .deal-data {
            width: 363px;
        }
        .deal-data h4 {
            width: 270px;
            height: 35px;
            line-height: 17px;
            margin: 5px 0 3px 0;
        }
        .deal-data .d-bottom-line {
            width: 270px;
        }
            .d-bottom-line .create-date {
                display: none;
            }
    .big-dealline2-1 .users-and-likes {
        position: absolute;
        right: 0;
        width: 150px;
    }
        .users-and-likes .deal-users {
            display: none;
        }

    /* DEAL BUTTONS */
    .deal-content .deal-soc_like {
        height: auto;
    }
    .deal-soc_like .rating {
        width: 100%;
        text-align: center;
    }
    .b-like_favor {
        height: auto;
        width: 100%;
        float: left;
    }
    .b-like_favor .do-favorite {
        width: 30%;
        margin: 0 0 0 2px;
        padding: 0 0 0 20%;
        float: right;
        background-position: 34% 10px;
    }
    .b-like_favor .do-link, .b-like_favor .do-btns-wrap {
        margin: 0 1px 0 0;
    }
    .b-like_favor .do-link {
        display: block;
        width: 100%;
        margin: 0 0 5px;
        background-color: #eee;
    }

    /* COMMENTS BLOCK */
    .add-comment > .user-pic {
        display: none;
    }
    .comments-container {
        width: 100%;
        float: left;
        position: relative;
    }
    .b-one-comment .b-one-comment_text {
        width: auto;
        float: none;
        display: block;
        padding: 0 10px;
    }
    .b-one-comment .b-one-comment_title {
        width: 100%;
        float: none;
        padding: 0;
    }
    .b-big-comments-box, .b-one-comment {
        width: 100%;
        border-width: 1px 0;
    }

    .b-one-comment_title .comments-date {
        padding-right:  10px;
    }
    .b-big-comments-box .add-comment {
        border-top-color: #e3e3e3;
        padding: 15px 0 10px;
    }
    .b-one-comment .user-pic {
        margin: 5px 5px 5px 10px;
    }
    .add-comment .comment-text {
        width: 90%;
        margin: 0 0 0 10px;
    }
    .add-comment .submit {
        text-align: center;
        float: left;
        width: 100%;
        margin: 10px 0 0;
    }
    .add-comment .submit-comment {
        float: none;
        margin: 5px;
        display: inline-block;
    }
    .b-one-comment.last {
        margin-top: 0;
    }
    .b-who-likes {
        width: auto;
        padding: 0 10px;
    }

    /* SCROLL TO TOP */
    .to_top_button {
        padding-top: 5px;
        width: 100%;
        position: relative;
        float: left;
    }
        .to_top_button .arrow, .to_top_button .label {
            float: left;
        }
        .to_top_button .arrow {padding: 0 3px 0 10px;}

    .not-authorized .category-top-line {
        margin-left: 0;
        left: 163px;
    }

    .topline-apps {
        display: none;
    }
    .not-authorized .switch-list-grid {
        margin: -10px 0 0 13px;
    }
    .not-authorized .top-line .m-wrapper {
        background-position: 39px 19px;
    }

}

@media (max-width: 375px) {
    /* SQUARE VIEW */
    .big-deal-square {
        height: 313px;
        width: 177px;
        margin: 0 3px 6px 3px;
    }
    .big-deal-square .deal-bottom {
        width: 170px;
    }
    .big-deal-square .deal-bottom .d-title {
        width: 170px;
    }
    .big-deal-square:nth-child(5n+1) {
        margin-right: 3px;
    }
}