﻿#posts .front {
    z-index: 2;
    transform: rotateY(0deg);
    background: #fff;
    border-radius: 14px
}
#posts .front, 
#posts .back {
    -moz-backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    box-sizing: border-box
}


#posts .front .holder {
    padding: 0 10px 10px 10px;
    line-height: 1.4;
    overflow: auto;
}

#posts .front .detail.flex {
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    color: #9e9e9e;
    font-family: "GothaProMed"
}

#posts .front .holder .flex {
    justify-content: flex-start;
    /* overflow-x: hidden; */
}

#posts img {
    text-indent:-9999px
}


/* --- */

.titleCat{
    margin-top: 30px;
    color: #9e9e9e;
    font-size: 17px;
    box-sizing: border-box;
    padding: 3px 20px;
    position: relative;
    top: -12px;
    display: inline-block;
    font-family: "GothaProReg";
    height: 35px;
    width: 100%;
    border-bottom: 1px solid #9e9e9e;
    max-width: 90%;
    white-space: nowrap;
}
.filter .title span, .titleCat h3 {
    position: relative;
    font-family: "GothaProReg";
    font-size: 17px
}
.titleCat h3 {
    display: inline-block;
    vertical-align: top;
    margin-left: 20px;
}
.titleCat input {
    margin: 0px;
}


/* --- */

#posts .front .holder .flex.block {
    border-bottom: 2px ridge #e6dbdb;
    margin-top: 7px;
    padding-bottom: 11px;
    justify-content: flex-end;
    font-size: 12px;
    height: 21px;
}

#posts .front .holder .flex.block span i {
    margin-right: 10px;
}

#posts .front .holder .detail.flex .flex li,
.tc_chosen_box .detail.flex.user .flex li {
    display: inline-block;
    align-items: center;
    padding: 0 5px 0 0;
    font-size: 14px;
    padding-left: 30px;
    margin-right: 12px;
    min-height: 16px;
}

@media screen and (max-width: 700px)
{
    #posts .front .holder .detail.flex .flex li,
    .tc_chosen_box .detail.flex.user .flex li {
        margin-right: 3px;
    }
}


/* detail.user BEGIN */

#posts .front .holder div.detail ul {
    /* overflow: hidden; */
    white-space: nowrap;
    display: block;
    padding: 3px;
    float: right;
}

#posts .front .holder .flex.block div.detail.user {
    margin: 7px 0;
}
.tc_chosen_box .detail.flex.user .flex li {
    margin: 2px;
    min-height: 16px;
}
#posts .front .holder .detail.flex.user .flex li:nth-child(1),
.tc_chosen_box .detail.flex.user .flex li:nth-child(1) {
    background: url(/img/usr_dishes.png) no-repeat;
    background-size: contain;
}
#posts .front .holder .detail.flex.user .flex li:nth-child(2),
.tc_chosen_box .detail.flex.user .flex li:nth-child(2)  {
    background: url(/img/usr_marker.png) no-repeat;
    background-size: contain;
}
#posts .front .holder .detail.flex.user .flex li:nth-child(3),
.tc_chosen_box .detail.flex.user .flex li:nth-child(3)  {
    background: url(/img/usr_favorit.png) no-repeat;
    background-size: contain;
}
#posts .front .holder .detail.flex.user .flex li:nth-child(4),
.tc_chosen_box .detail.flex.user .flex li:nth-child(4)  {
    background: url(/img/usr_look.png) no-repeat;
    background-size: contain;
}

/* detail.user END */

/* detail.dish BEGIN */

#posts .front .detail.flex.dish {
    margin-top: 15px;
    margin-top: 0px;
    width: 100%;
    display: inline-block;
}

#posts .front .holder .detail.flex.dish .flex li:nth-child(1) {
    background: url(/img/dsh_like.png) no-repeat;
    background-size: contain;
}
#posts .front .holder .detail.flex.dish .flex li:nth-child(2) {
    background: url(/img/dsh_fav.png) no-repeat;
    background-size: contain;
}
#posts .front .holder .detail.flex.dish .flex li:nth-child(3) {
    background: url(/img/dsh_dispute.png) no-repeat;
    background-size: contain;
}
#posts .front .holder .detail.flex.dish .flex li:nth-child(4) {
    background: url(/img/dsh_view.png) no-repeat;
    background-size: contain;
}

/* detail.dish END */

/* changed */

#posts .front .holder .descr {
    border-color: #e6dbdb;
    border-width: 2px;
    padding: 3px;
    border-top-style: ridge;
}

#posts .front .holder .autor {
    padding-right: 10px;
    width: 22%;
    position: absolute;
    top: 435px;
}

@media screen and (max-width: 501px){
    #posts .front .holder .autor 
    {
        top: 385px;
    }
}

#posts .front .holder .name {
    padding-left: 80px;
    margin-top: 5px;
    white-space: nowrap;
    overflow: hidden;
    font-size: 13px;
}

#posts .front .holder .name div.detail.user {
    display: block;
}

#posts .front .holder .name div.detail.user p {
    white-space: nowrap;
    overflow-x: hidden;
    margin-bottom: 10px;
}

/* changed */
#posts .front .holder .autor img
{
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 30px;
}

/* .cabinet11 .front .holder .flex .name span small, */
.single_product .author_recipe .flex .name {
    display: inline;
    text-overflow: clip;
    white-space: nowrap;
    width: 70%;
    overflow: hidden;
}

.single_product .holder_wrap div.CatName {
    margin-bottom: 20px;
    height: 10px;
}
.single_product .holder_wrap div.CatName a {
    float: right;
}

#posts .front .holder /* .flex */ .name p {
    font-family: "GothaProMed";
}

#posts .front .holder .detail.flex .flex li img{
    width: 100%;
    height: 15px;
    object-fit: contain;
}
#posts .flip-container .front h4, 
#posts .flip-container .back .title h4 {
    margin: 0;
}

#posts .flip-container .front h4, 
#posts .flip-container .back .title h4{
    height: 50px;
    overflow: hidden;
    padding: 0;
    line-height: 1.4
}

#posts .flip-container .front h4, 
#posts .flip-container .back .title h4 {
    max-height: 50px;
    margin-bottom: 6px;
}


#posts .front .detail.flex li {
    display: inline-block;
    vertical-align: middle;
    padding: 5px
}

#posts .front .detail.flex li .fa {
    padding-right: 5px;
    font-size: 12px;
    color: #9e9e9e
}

.detail.flex li{
    display: inline-block;
    vertical-align: middle;
    padding: 5px;
}
.detail.flex li .fa{
    padding-right: 5px;
    font-size: 12px;
    color: #9e9e9e;
}

#posts .flip-container .back p, 
#posts .flip-container .front .descr {
    position: relative;
    font-size: 14px;
    line-height: 1.2;
    height: 65px;
    overflow: hidden
}

#posts .flip-container .back p:before, 
#posts .flip-container .front .descr:before{
    content: "";
    display: block;
    position: absolute;
    left: 0;
    height: 22%;
    top: auto;
    bottom: 0;
    background: rgba(255, 255, 255, 0.3);
    width: 100%
}


/* changed */
/**/
#posts .front img {
    
}

#posts .front img.dish {
    min-height: 230px;
    width: 100%;
    height: 230px;
    object-fit: cover;
    margin-bottom: 5px;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

#posts .front h4 {
    font-family: 'Merriweather-Bold';
    color: #1a1a1a;
    font-size: 18px;
    padding-bottom: 30px
}

#posts .front .descr {
    font-size: 15px;
    padding-bottom: 10px;
    box-sizing: border-box;
    max-height: 75px;
    overflow-y: auto
}

/* flipper BEGIN */

#posts .flip-container {
    -webkit-perspective: 1000px;
    -moz-perspective: 1000px;
    -ms-perspective: 1000px;
    -o-perspective: 1000px;
    perspective: 1000px;
    width: 31%;
    margin: 20px 10px
}

#posts.tc_recipes .flip-container 
{
    width: 46%;
}

#posts .flip-container,
#posts .front,
#posts .back {
    min-height: 500px;
    margin-bottom: 20px
}

/* flipper BEGIN */





/* P1.begin */
#posts .filter{
    text-align: center;
}
#posts .filter span{
    color: #9e9e9e;
    font-size: 17px;
    box-sizing: border-box;
    margin: auto;
    background: #fff;
    padding: 3px 20px;
    position: relative !important;
    top: -12px;
    display: inline-block;
}
#posts .filter span:before{
    content: "";
    display: block;
    position: absolute;
    left: 8px;
    top: 10px;
    background-color: #9e9e9e;
    width: 5px;
    height: 2px;
}
#posts .filter span:after{
    content: "";
    display: block;
    position: absolute;
    right: 8px;
    top: 10px;
    background-color: #9e9e9e;
    width: 5px;
    height: 2px;
}
#posts div.title h2.filter {
    display: block;
    width: 100%;
    border-top: 2px solid #9e9e9e;
}
#posts div.title h2.filter input:checked[type="checkbox"] {
    margin: 0;
    display: none !important;
}
#posts div.title2 {
     min-width: 95vw; 
     border-bottom: 2px solid rgb(185, 185, 185);
     margin: 30px;
}

#posts > div.title {
    min-width: 80vw; 
}

/* P1.end */


/* ------------------ .flip-container BEGIN ------------------ */
            
#posts div.title h2.filter input:checked[type="checkbox"] {
    margin: 0;
}
#posts div.title h2.filter span {
    position: absolute;
    margin-left: 15px;
}
    
    
/* #posts .flip-container:hover .flipper {
    -webkit-transform: rotateY(180deg);
    -moz-transform: rotateY(180deg);
    -ms-transform: rotateY(180deg);
    -o-transform: rotateY(180deg);
    transform: rotateY(180deg)
} */

/*
#posts .flip-container.active .flipper {
    -webkit-transform: rotateY(180deg);
    -moz-transform: rotateY(180deg);
    -ms-transform: rotateY(180deg);
    -o-transform: rotateY(180deg);
    transform: rotateY(180deg)
}

#posts .flip-container.active:hover .flipper {
    -webkit-transform: rotateY(180deg);
    -moz-transform: rotateY(180deg);
    -ms-transform: rotateY(180deg);
    -o-transform: rotateY(180deg);
    transform: rotateY(180deg)
}
*/



#posts .flipper {
    transition: .6s;
    transform-style: preserve-3d;
    position: relative;
}


.flip-container.show .flipper  {
    -webkit-transform: rotateY( 180deg );
    -moz-transform: rotateY( 180deg );
    -ms-transform: rotateY(180deg);
    -o-transform: rotateY( 180deg );
    transform: rotateY( 180deg );
}
/*.flip-container.show:hover .flipper { 
    -webkit-transform: rotateY(180deg);
    -moz-transform: rotateY(180deg);
    -ms-transform: rotateY(180deg);
    -o-transform: rotateY(180deg);
    transform: rotateY(180deg);
} */
.flip-container.twist .flipper  {
    -webkit-transform: rotateY( 180deg );
    -moz-transform: rotateY( 180deg );
    -ms-transform: rotateY(180deg);
    -o-transform: rotateY( 180deg );
    transform: rotateY( 180deg );
}
/*.flip-container.twist:hover .flipper { 
    -webkit-transform: rotateY(180deg);
    -moz-transform: rotateY(180deg);
    -ms-transform: rotateY(180deg);
    -o-transform: rotateY(180deg);
    transform: rotateY(180deg);
} */   
  
    
/* - front - */
#posts .front {
    background: #eff2f5;
}
#posts .flip-container .front .descr:before {
    background-color: #eff2f5ad;    
}

#posts .flip-container .front .holder .autor i {
    display: none;
    position: absolute;
}
#posts .flip-container.LikeUser .front .holder .autor i {
    color:  red;
    display: block;
}
#posts .flip-container.CanUser .front .holder .autor i {
    color:  yellow;
    display: block;
}
    
    
    
/* - back BEGIN - */
    
    
#posts .back {
    -webkit-transform: rotateY(180deg);
    -moz-transform: rotateY(180deg);
    -ms-transform: rotateY(180deg);
    -o-transform: rotateY(180deg);
    transform: rotateY(180deg);
    background: #fff;
    border-radius: 14px;
    padding: 10px 10px 0 10px;
    box-shadow: 0 5px 6px 0 rgba(0, 0, 0, 0.15)
}

    
#posts .back {
    background: #f5f5f5;
    box-shadow: 0px 5px 12px 1px rgba(0,0,0,0.15);
}

#posts .back {
    position: relative;
    padding: 2px 0 0 0;
    background: #f5f5f5;
    box-shadow: 0 5px 12px 1px rgba(0,0,0,0.15);
}

#posts .back .title {
    padding: 0 10px;
    border-bottom: 0;
}

/* - .back .title .bookmark - */
div.bookmark {
    z-index: 999;
}        
   
#posts .back .title .bookmark {
    display: block;
    float: right;
    margin-top: 20px;
    z-index: 999;
}
div.back div.title div.bookmark ul li {
    cursor: pointer;
}

#posts .back .title li:first-child .fa {
    color: inherit;
}
/* #posts .back .title li {
    padding-right: 5px;
    padding-left: 0;
} */
#posts .back .title li {
    display: inline-block;
    vertical-align: top;
    font-family: 'Merriweather-BoldItalic';
    font-size: 12px;
    padding: 0 1px
}

#posts .back .title li .fa {
    padding-right: 5px
}

#posts .back .title li:first-child .fa {
    color: #af212b
}

/* .back .title .similar */
#posts div.back div.title div.similar {
    position: absolute;
    top: 20px
}
    
#posts div.back div.title div.similar ul li {
    cursor: pointer;
    display: none;
}
        
#posts.similarDishes div.back div.title div.similar ul li.link
{
    /* display: inline-block; */
}

#posts.Dishes div.back div.title div.similar ul li.slash,
#posts.similarDishes div.back div.title div.similar ul li.slash,
#posts.favDishes div.back div.title div.similar ul li.slash,
#posts.userDishes div.back div.title div.similar ul li.slash {
    display: inline-block;
}

#posts.Dishes div.flip-container.show div.back div.title div.similar ul li.slash,
#posts.similarDishes div.flip-container.show div.back div.title div.similar ul li.slash,
#posts.favDishes div.flip-container.show div.back div.title div.similar ul li.slash,
#posts.userDishes div.flip-container.show div.back div.title div.similar ul li.slash,

#posts.Dishes div.flip-container.show .flipper2,
#posts.similarDishes div.flip-container.show .flipper2,
#posts.favDishes div.flip-container.show .flipper2,
#posts.userDishes div.flip-container.show .flipper2,
#posts.tc_recipes div.flip-container.show .flipper2,
#posts.tab_content div.flip-container.show .flipper2,

#posts.Dishes div.flip-container.twistDone .flipper2,
#posts.similarDishes div.flip-container.twistDone .flipper2,
#posts.favDishes div.flip-container.twistDone .flipper2,
#posts.userDishes div.flip-container.twistDone .flipper2,
#posts.tc_recipes div.flip-container.twistDone .flipper2,
#posts.tab_content div.flip-container.twistDone .flipper2
{
    display: none;
}
    
    
.flip-container .flipper .back .title .similar ul li i,
.flip-container .flipper .back .title .similar ul li i {
    color: #b5ad42;
}
.flip-container.simi .flipper .back .title .similar ul li i,
.flip-container.simi .flipper .back .title .similar ul li i {
    color: green;
}
.flip-container.similary .flipper .back .title .similar ul li i,
.flip-container.similary .flipper .back .title .similar ul li i {
    color: #af212b;
}

/* - #posts .back .title .info - */
#posts .back .title .info,
.tc_recipes11 .back .title .info {
    text-align: right;
    border-bottom: 1px solid #9e9e9e;
    padding-bottom: 14px;
    min-height: 28px;
}

#posts .back .title .info li {
    margin: 0 15px;
    padding: 0
}

#posts .back .title .info li:last-child {
    color: #bebebe;
    font-size: 12px
}

#posts .back .title .info li:last-child span {
    font-family: 'Merriweather-Bold';
    display: block
}

#posts .back .title .info .time {
    font-size: 10px;
    color: #bebebe;
    position: relative;
    text-align: center
}

#posts .back .title .info .time span {
    display: block;
    font-size: 6px
}

#posts .back .title .info .time:before {
    content: "";
    display: block;
    position: absolute;
    left: 50%;
    top: -4px;
    background: url("/img/time1.png") center no-repeat;
    width: 30px;
    height: 30px;
    transform: translateX(-50%)
}

#posts .back .title .info .count {
    font-size: 12px;
    color: #bebebe;
    position: relative;
    text-align: center
}

#posts .back .title .info .count:before {
    content: "";
    display: block;
    position: absolute;
    left: 50%;
    top: -4px;
    background: url("/img/count.png") center no-repeat;
    width: 35px;
    height: 30px;
    transform: translateX(-50%)
}



/* -  - */

#posts .back .recipe {
    min-height: 170px;
    font-size: 80%;
    margin: 0 auto 0;
    padding-left: 15px;
    padding-right: 10px;
    box-sizing: border-box;
    max-height: 165px;
    position: relative;
    overflow: hidden;
    width: 100%;
}
#posts .back .recipe:before {
    background-color: #f5f5f5c2;
}
.catalog .back .recipe:before {
    content: "";
    display: block;
    position: absolute;
    left: 0;
    height: 20%;
    top: auto;
    bottom: 0;
    background: rgba(255, 255, 255, 0.5);
    width: 100%;
    z-index: 1
}

.catalog .back .recipe li {
    position: relative;
    font-size: 12px;
    padding: 2px 0 2px 15px;
    white-space: nowrap;
    overflow: hidden;
}

.catalog .back .recipe li:before {
    left: 8px
}



#posts .back .component {
    min-height: 30px;
}


    
#posts .flip-container .flipper .back .title .bookmark ul li.cook {
    display: none;
}
            
#posts .flip-container.show .flipper .back .title .bookmark ul li.cook {
    display: inline;
}
    
#posts .flip-container .flipper .back .title .bookmark ul li i {
    color: #b5ad42;
}
#posts .flip-container.show .flipper .back .title .bookmark ul li.heart i {
    color: #af212b;
}
#posts .flip-container.cook .flipper .back .title .bookmark ul li.cook i {
    color: #af212b;
}
#posts .flip-container.poor {
    opacity: 0.2;
}
#posts .flip-container.poor .flipper .back .title .similar ul li.slash i {
    color: #af212b;
}
#posts .flip-container.poor .flipper .back .title .bookmark ul li.heart {
    display: none;
}
    
#posts .flip-container.cook .flipper .back .holder ul.recipe {
    height: 165px;
}
 

 
#posts .back .title h4 {
    font-family: 'Merriweather-Bold';
    font-size: 18px;
    padding-top: 10px
}

#posts .back .img_circle img {
    width: 100%;
    height: 190px;
    object-fit: cover;
    margin: 10px auto 0;
    display: block;
    border-radius: 0;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px
}

#posts .back .author_back {
    position: absolute;
    /* bottom: 11%;*/
    top: 430px;
    left: 10px;
    width: 68px;
    height: 68px;
    border-radius: 50%;
    object-fit: cover
}

@media screen and (max-width: 501px){
    #posts .back .author_back {
        top: 385px;
    }
}


#posts .back .author_back img {
    width: 100%;
    height: 100%;
    background-size: contain;
    border-radius: 50%;
    box-shadow: 0 5px 23px 0 rgba(255, 255, 255, 0.5)
}

 
 
/* - back END - */
    
ul.recipe li i {
    font-weight: bold;
    font-size: 120%;
}
     
#posts .back .recipe li:before 
{
    background: #b5ad42;
}
    
#posts .flip-container .back .title div.info ul li.time p {
    font-size: 10px;
    display: inline;
}
#posts .back .title .info .count {
    font-size: 14px;
}
#posts .back .title .info li {
    margin: 0;
    margin-left: 25px;
}
    
#posts .flip-container .back .holder .author_back img {
    box-shadow: 0px 0px 15px 10px rgba(255,255,255,0.5);
}

#posts .flip-container .back .holder .author_back i {
    display: none;
    position: absolute;
    cursor: pointer;
}
#posts .flip-container.LikeUser .back .holder .author_back i {
    color:  red;
    display: block;
}
#posts .flip-container.CanUser .back .holder .author_back i {
    color:  yellow;
    display: block;
}
   
    
/* ------------------ .flip-container END ------------------ */

    
.catalog .front .holder .flex .name, 
.cabinet .front .holder .flex .name span small{
    display: inline;
    text-overflow: clip;
    white-space: nowrap;
}

.flip-container .flipper2 {
    width: 30%;
    height: 40px;
    position: absolute;
    top: 0;
    left: 68%;
    z-index: 99;
    border-bottom-left-radius: 30px;
    border-width: 2px;
    border-color: white;
    border-bottom-style: dashed;
    border-left-style: dashed;
    background: url(/img/dish_twist.png) no-repeat;
    background-size: contain;
    background-position: center;
    margin-top: 5px;
}



#next-data-dish {
    width: 50%;
}

