:root {
    --green-color: #176c8d;
    --red-color: #7a2929;
}

.red-bg {
    background-color: var(--red-color);
}

.green-bg {
    background-color: var(--green-color);
}

* {
    transition: transform 1000ms ease;
}

/*.flip-card {
    width: 300px;
    aspect-ratio: 4 / 3;
    perspective: 1000px;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform .6s cubic-bezier(.2, .6, .2, 1);
    transform-style: preserve-3d;
    border-radius: 16px;
}

.flip-card.flipped .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-face {
    position: absolute;
    inset: 0;
    backface-visibility: hidden; !* پشت کارت دیده نشه *!
    -webkit-backface-visibility: hidden;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
}

!* جلو کارت *!
.flip-card-front {
    transform: rotateY(0deg);
    z-index: 2; !* مطمئن بشه اول نشون داده میشه *!
}

!* پشت کارت *!
.flip-card-back {
    transform: rotateY(180deg);
}*/

#tsync-interaction, #tsync-popup {
    background: black;
    z-index: 10;
}

#tsync-popup * {
    direction: rtl !important;
}

#tsync-popup {
    /*display: flex;
    justify-content: center;
    align-items: center;*/
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 10;
    /*pointer-events: all;*/
}

#tsync-popup {
    display: none;
    /*pointer-events: auto !important;*/
}

.tsync-interaction__top-box {
}

#tsync-interaction__main_actors {
    display: flex;
    flex-wrap: wrap;
}

.tsync-interaction__main-actor__description-title {
    background: #fc0a0a33;
    padding: 2px 5px 2px 15px;
    color: white;
    clip-path: polygon(10px 0, 100% 0, 100% 100%, 0 100%);
    display: inline-block;
}

.tsync-interaction__main-actor__description-row {
    background: #0000004f;
    margin-bottom: 1px;
    padding-left: 15px;
}

.tsync-interaction__main-actor {
    width: 48%;
    display: flex;
    margin: 0 1%;
}

.tsync-interaction__main-actor__description {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 100%;
}

.tsync-interaction__main-actor__img p {

}

.tsync-interaction__main-actor__img img {
    height: 100%;
    width: 100px;
}

.tsync-interaction__content {
    aspect-ratio: 4/3;
    background-size: cover;
    line-height: 35px;

}

#tSync-popup_content {
    /*padding: 15px;
    border-radius: 30px;
    margin: 0 auto;
    z-index: 9999999;
    line-height: 35px;
    color: white;
    position: relative;
    text-shadow: 1px 1px 2px black;*/
}

#tsync-interaction__content-box {
    display: none;
    position: relative;
}

.popup_content{
    text-align: center;
    top: 50%;
    position: absolute;
    left: 50%;
    transform: translateX(-50%) translateY(-50%);
    border-right: 3px solid var(--main-color);
    border-top: 3px solid var(--main-color);
}
.popup_content * {
    color: black;
}
#tsync-interaction__start-timer {
    cursor: pointer;
    background-color: var(--main-color);

}

/*.tSync-popup__interaction-box__row img {
    height: 65px;
    width: 65px;
    border-radius: 50%;
    margin-left: 10px;
}

.tSync-popup__interaction-box__row {
    border-bottom: 1px dashed #626262;
    padding: 3px 0;
    border-bottom-right-radius: 30px;
}

.tSync-popup__interaction-box__item input {
    margin-left: 5px;
    vertical-align: middle;
    cursor: pointer;
}*/

.tSync-popup__black-box {
    background: black;
    border-radius: 10px;
    display: inline;
    padding: 10px;
}

.tSync-popup__offer-movie a {
    color: white;
}

.tSync-popup__offer-movie img {
    width: 80px;
    height: 65px;
    border-radius: 15px;
    padding: 5px;
}

.tsync-interaction__list li {
    /*background: #898888;
    padding: 5px 10px;
    border-radius: 10px;
    margin: 30px 0;
    cursor: pointer;*/
}

.tsync-interaction_select li {
    cursor: pointer;
}

/*.tSync-popup__interaction-box {
}*/

.tSync-popup__interaction-box {
    display: none;
}

#tSync-popup_content-forms {
    line-height: 45px;
    position: relative;
    padding-top: 190px;
    height: 100%;
}

#tSync-popup__interaction-final-result {

}

/* اضافه کردن یک لایه پوششی برای جلوگیری از کلیک */
#tsync-interaction::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: black;
}

#tSync-popup__response-result {
    border-right: 3px solid;
    padding: 0 5px;
    line-height: 20px;
    border-radius: 5px;
    border-left: 3px solid;
    text-align: center;
    display: none;
}

#tSync-popup__response-result.error {
    color: #832323;
}

#tSync-popup__response-result.success {
    color: #0e6b0e;
}

.tsync-interaction__btn {
    padding: 10px 25px;
    margin: 5px auto;
    display: block;
    background: #3ba23b;
    border: 1px solid #26a226;
    border-radius: 8px;
    color: white;
    cursor: pointer;
}

/*
.tSync-popup__interaction-box__dialog-description {
    !*margin-bottom: 10px;
    border-bottom: 1px solid;*!
}

.tSync-popup__interaction-box__list {

}
*/

#tSync-popup__personality-result {
    background: green;
    text-align: center;
    font-size: 23px;
    padding: 5px 20px;
    border-radius: 15px;
    margin-bottom: 15px;
}

.tSync-popup__btns-box {
    display: flex;
    justify-content: center;
}

/*.tSync-popup__btn {
    background: #eee;
    display: inline;
    margin: 30px 10px;
    height: 135px;
    border-radius: 100%;
    color: black;
    cursor: pointer;
    text-align: center;
    width: 135px;
    max-width: 100%;
    line-height: 135px;
}*/

.tSync-popup__login-btn {
    width: 65px;
    height: 65px;
    line-height: 65px;
    border-radius: 100%;
}

.tSync-popup__login-btn a {
    color: white;
}

.tSync-popup__interaction-box__card-questions {
    display: none;
}
/*
.tSync-popup__interaction-box__card-selection .flip-card {
    width: 250px;
    aspect-ratio: 4 / 3;
    perspective: 1000px;
}
*/
.tSync-popup__interaction-box__card-selection {
    /*width: 30vw;*/
    margin: 0 auto;
}

.tSync-popup__interaction-box__card-selection.selected {
    margin: 0;
}

.tSync-popup__interaction-box__card-selection.selected .flip-card.flipped {
   /* width: 135px;*/
    height: 30vh;
}

.tSync-popup__interaction-box__card-selection.selected .flip-card.flipped img {
    height: 100%

}
/*

.tSync-popup__interaction-box__card-questions .option_select {
    cursor: pointer;
}

.tSync-popup__interaction-box__card-questions .option_select:hover {
    font-size: 120%;
    color: red;
}
*/
.tSync-popup__interaction-box .card_reactions {
    display: none;
}
/*
.tSync-popup__interaction-box .card_reactions div {
    display: flex;
    padding: 5px 20px;
    line-height: 40px;
}

.tSync-popup__interaction-box .card_reactions img {
    width: 50px;
}*/

input[id^="answer_"] {
    position: absolute;
    left: -9999px;
}

.mentor_reaction, .continue_popup_btn{
    display: none;
}
.mentor_image_popup{
    width: 320px;
    border-right: 4px solid var(--main-color);
    position: absolute;
    left: 50px;
    top: -130px;
}
.mentor_image_popup_container::after {
    content: '';
    position: absolute;
    width: 65px;
    border-top: 5px solid var(--main-color);
    left: -10px;
    top: 20px;
}
.question_text_popup{
    padding: 15px;
    box-shadow: 8px -5px 0px var(--main-color);
    position: relative;
    width: auto;
    border-radius: 10px;
    background: #e6e6e6;
    color: black;
    margin-bottom: 32px;
}
.question_text_popup i{
    color: var(--main-color);
    border: 2px solid var(--main-color);
    width: 25px;
    border-radius: 50%;
    height: 25px;
    line-height: 22px;
    margin-left: 5px;
    vertical-align: middle;
}
.mentor_clip_option {
    line-height: 45px;
    margin: 0 auto 30px auto;
    border-radius: 10px;
    background: #e6e6e6;
    cursor: pointer;
    border: 3px solid var(--main-color);
    position: relative;
    z-index: 2;
}
.mentor_clip_option_text{
    padding: 5px 15px 5px 15px;
}
.line_link{
    position: absolute;
    background: var(--main-color);
    width: 5px;
    height: 86%;
    top: 0;
    left: 50%;
}
.mentor_clip_option:hover{
    transform: scale(1.1);
    box-shadow: 0 0 2px var(--main-color);
    background: var(--main-color);
}
#tSync-popup__interaction-final-result{
    background: #000000bf;
    padding: 65px;
    height: calc(100% - 260px);
    overflow: auto;
}

#similar_videos img{
    border-radius: 15px 15px 0 0;
}
#similar_videos > a {
    border: 3px solid var(--main-color);
    border-radius: 20px;
    padding: 5px 5px 0 5px;
    margin: 0 auto;
    text-align: center;
}
.shiny-box {
    position: relative;
    border-radius: 12px;
    transition: transform 0.1s ease;
    overflow: hidden;
}

.shiny-box::before {
    content: "";
    position: absolute;
    top: 0;
    left: -75%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
            120deg,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0.5) 50%,
            rgba(255, 255, 255, 0) 100%
    );
    transform: skewX(-25deg);
}

.shiny-box:hover {
    /*transform: scale(1.02);*/
}

.shiny-box:hover::before {
    animation: shine 0.6s forwards;
}

@keyframes shine {
    0% {
        left: -75%;
    }
    100% {
        left: 125%;
    }
}




@media only screen and (max-width: 750px) {
    .tsync-interaction__main-actor {
        width: 100%;
        margin-bottom: 10px;
    }

    .tsync-interaction__content {
        margin-bottom: 10px;
        margin-top: 10px;
    }

    /*.tSync-popup__btns-box {
        display: inline;
    }
    .tSync-popup__btn{
        margin: 20px auto;
        display: block;
    }
    .tsync-interaction__top-box{
        background-size: auto;
        top: -25px;
    }*/
}

@media only screen and (max-width: 600px){
    #tSync-popup_content-forms {
        padding-top: 0;
    }
    #tsync-interaction__content-box {
        /*padding-top: 200px;*/
    }
    .mentor_image_popup{
        width: 70%;
        position: relative;
        left: auto;
        top: 0;
    }
    .mentor_image_popup_container {
        margin-top: 100px !important;
        padding-bottom: 25px;
    }
    .mentor_image_popup_container::after {
        display: none;
    }
    .question_text_popup{
        padding: 15px;
        box-shadow: 8px -5px 0px var(--main-color);
        position: relative;
        width: auto;
        border-radius: 10px;
        background: #e6e6e6;
        color: black;
        margin-bottom: 32px;
    }
    .question_text_popup i{
        color: var(--main-color);
        border: 2px solid var(--main-color);
        width: 25px;
        border-radius: 50%;
        height: 25px;
        line-height: 22px;
        margin-left: 5px;
        vertical-align: middle;
    }
    .mentor_clip_option {
        line-height: 45px;
        margin: 0 auto 30px auto;
        border-radius: 10px;
        background: #e6e6e6;
        cursor: pointer;
        border: 3px solid var(--main-color);
        position: relative;
        z-index: 2;
    }
    .mentor_clip_option_text{
        padding: 5px 15px 5px 15px;
    }
    .line_link{
        position: absolute;
        background: var(--main-color);
        width: 5px;
        height: 86%;
        top: 0;
        left: 50%;
    }
}
