/******************************************************************
  Cтиль к скрипту: 
 "Всплываюшая таблица с вкладками, в топике, с инфой о персонаже"
******************************************************************/

/* Затемняющий фон */
#pre-wrap {
    margin: 0;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 100%;
    position: fixed;
    z-index: 20000;
    background: rgba(0, 0, 0, .80);
}

/*чтоб не уезжало*/
.my-tabs {
    display: block;
    z-index: 30000;
    position: absolute;
    width: 780px !important;
    max-height: 700px;
    /*максимальная высота таблички*/
}

/* Корневой таб(UL) */
#pun .punbb ul.my-tabs {
    z-index: 30000;
    width: 780px;
    padding-left: 135px;
}


/* Стиль вкладки(LI)*/
.my-tabs>.tab-a {
    /* ширина лс */
    width: 720px;
    position: relative;
    display: none;

}


/*Отступ контента вкладки сверху*/
.tab-a .post-content {
    display: inline-block;
}


/*************************************************************
коды написаны для использования только на memlane.rusff.ru
**************************************************************/
/* -------- ЛИЧНЫЕ СТРАНИЦЫ начало --------------*/


/* -------- личные страницы, тема 0, серая --------------*/
/* профиль */
.str1tem0,
.str1tem1,
.str1tem2 {
    background: url(https://i.imgur.com/PWVnlxp.png);
}

/* чеки */
.str2tem0,
.str2tem1,
.str2tem2 {
    background: url(https://i.imgur.com/U98JEvj.png);
}

/* иконки и плашки */
.str3tem0,
.str3tem1,
.str3tem2 {
    background: url(https://i.imgur.com/ylRe35Y.png);
}

/* коллекции */
.str4tem0,
.str4tem1,
.str4tem2 {
    background: url(https://i.imgur.com/Scd5dYY.png);
}

.str1tem0,
.str2tem0,
.str3tem0,
.str4tem0,
.str1tem1,
.str2tem1,
.str3tem1,
.str4tem1,
.str1tem2,
.str2tem2,
.str3tem2,
.str4tem2 {
    width: 700px;
    height: 540px;
}



/* все страницы, их размер */

.perp1,
.perp2,
.perp3,
.perp4,
.perp5 {
    width: 700px;
    height: 540px;
}

.pr0 {
    display: none;
}


/* -------- личные страницы, страница первая, профиль --------------*/

/* -------- блок с фото -------- */

.perp1 pr1 {
    position: absolute;
    margin: 95px 0 0 38px;
    filter: grayscale(100%);
    mix-blend-mode: multiply;
    opacity: .6;
    overflow: hidden;
}

.perp1 pr1 img {
    width: 145px;
    height: 145px;
    object-fit: cover;
}


/* -------- блок ником игрока и ссылкой на профиль (над фото) -------- */
.perp1 pr2 {
    position: absolute;
    margin: 120px 0 0 208px;
    width: 222px;
    height: 19px;
    overflow: auto;
    text-transform: uppercase;
    font-size: 16px;
    font-family: 'Verdana';
}

.perp1 pr2 a {
    color: #ffffff !important;
}

.perp1 pr2 a:hover {
    letter-spacing: 0.3px;
}

/* -------- блок с текстом под фото (цитата от игрока) -------- */
.perp1 pr3 {
    position: absolute;
    overflow: auto;
    height: 48px;
    letter-spacing: 0.3px;
    line-height: 120%;
    margin: 147px 0 0 209px;
    width: 222px;
    text-transform: lowercase;
    font-size: 10px;
    font-family: 'Verdana';
    color: #ffffff;
}




/* -------- блок со списком под фото (добро игрока) -------- */
.perp1 pr6 {
    position: absolute;
    display: block;
    height: 99px;
    letter-spacing: 0.3px;
    word-spacing: 0.1px;
    line-height: 180%;
    margin: 205px 0 0 202px;
    width: 175px;
    text-transform: uppercase;
    font-size: 7.5px;
    font-family: Verdana;
    color: #ffffff;
    column-count: 2;
    column-gap: 0px;
}

.perp1 pr6>div:nth-child(1),
.perp1 pr6>div:nth-child(2),
.perp1 pr6>div:nth-child(3),
.perp1 pr6>div:nth-child(4) {
    width: 130px;
}

.perp1 pr6>div:nth-child(5),
.perp1 pr6>div:nth-child(6),
.perp1 pr6>div:nth-child(7) {
    width: 228px;
}



.pr4 prn1,
.pr4 prn2,
.pr4 prn3,
.pr4 prn4,
.pr4 prn5,
.pr4 prn6,
.pr4 prn7 {
    width: 70px;
    height: 73px;
    font-size: 11px;
    font-family: 'Verdana';
    text-align: center;
    color: #000;
    position: absolute;
    padding-top: 57px;
    margin-top: 410px;
}


/* награды */
.pr4 prn1 {
    /* пара */
    background: url(https://i.imgur.com/rr2U9Qs.png) top center no-repeat;
    margin-left: 57px;
}

.pr4 prn2 {
    /* эпизод */
    background: url(https://i.imgur.com/vS3UnUA.png) top center no-repeat;
    margin-left: 256px;
}

.pr4 prn3 {
    /* пост */
    background: url(https://i.imgur.com/Dyo9gq5.png) top center no-repeat;
    margin-left: 157px;
}

.pr4 prn4 {
    /* цитата */
    margin-left: 460px;
    background: url(https://i.imgur.com/W8JwLSh.png) top center no-repeat;
}

.pr4 prn5 {
    /* активист */
    margin-left: 356px;
    background: url(https://i.imgur.com/ZYfLEVa.png) top center no-repeat;
}

.pr4 prn6 {
    /* постописец */
    background: url(https://i.imgur.com/bs8ykIt.png) top center no-repeat;
    margin-left: 565px;
}


/* блок подарков */
.perp1 pr5 {
    position: absolute;
    width: 190px;
    height: 237px;
    overflow-y: auto;
    margin: 124px 0 0 481px;
    padding-right: 5px;
}

/* подарок, иконка, окошко для картинки */
pr5 .pr11 {
    display: inline-block;
    margin: 1px 0.5px;
    padding: 2px;
}

pr5 .pr11 img {
    width: 47px;
    height: 47px;
    display: block;
}

/*************************************************************
коды написаны для использования только на memlane.rusff.ru
**************************************************************/

/* страница вторая, чеки */

.perp2 pr1 {
    position: absolute;
    width: 656px;
    height: 430px;
    margin: 79px 0 0 24px;
    overflow-y: auto;
    padding-right: 7px;
}


.perp2 pr2 {
    position: absolute;
    width: 239px;
    height: 241px;
    margin: 129px 0 0 314px;
}

.perp2 pr2 img {
    padding: 3px 4px 15px 5px;
}


/*************************************************************
коды написаны для использования только на memlane.rusff.ru
**************************************************************/


/* ------- блок с плашками ------ */
.perp3 pr5 .plashka {
    margin: 10px 0px 10px 10px !important;
}

.perp3 pr5 {
    position: absolute;
    text-align: center;
    width: 263px;
    height: 360px;
    overflow-y: auto;
    margin: 133px 0 0 392px;
}

/* блок иконок */
.perp3 pr2 {
    position: absolute;
    width: 265px;
    height: 333px;
    overflow-y: auto;
    margin: 142px 0 0 42px;
    padding-right: 5px;
}


/* прокрутка подарков иконок плашек коллекций */
.perp1 pr5::-webkit-scrollbar,
.perp2 pr1::-webkit-scrollbar,
.perp3 pr2::-webkit-scrollbar,
.perp3 pr5::-webkit-scrollbar,
.perp5 pr2::-webkit-scrollbar,
.perp5 pr1::-webkit-scrollbar {
    width: 2px;
    height: 0px;
    background: #d8d8d8;
}

.perp1 pr5::-webkit-scrollbar-thumb,
.perp2 pr1::-webkit-scrollbar-thumb,
.perp3 pr2::-webkit-scrollbar-thumb,
.perp3 pr5::-webkit-scrollbar-thumb,
.perp5 pr2::-webkit-scrollbar-thumb,
.perp5 pr1::-webkit-scrollbar-thumb {
    border: none;
}


/* подарок, иконка, окошко для картинки */
pr2 .pr11 {
    display: inline-block;
    box-shadow: inset 0px 0px 10px 0px #ffffff94;
    border: 1px solid #ffffff94;
    border-radius: 7px;
    padding: 2px;
    margin: 5px 2.5px;
}

pr2 .pr11 img {
    width: 50px;
    height: 50px;
    display: block;
}


.my-tabs>span {
    opacity: 0;
    top: 73px;
    z-index: 15;
    font-style: normal;
    color: #ffffff;
    cursor: pointer;
    position: relative;
    height: 42px;
    margin-right: 4px;
    float: left;
}


.my-tabs>span:first-child {
    margin-left: 10px;
    width: 148px;
}

.my-tabs>span:nth-child(2) {
    width: 118px;
}

.my-tabs>span:nth-child(3) {
    width: 190px;
    margin-left: 15px;
}

.my-tabs>span:nth-child(4) {
    width: 178px;
    margin-left: 18px;
}


.my-tabs>img.close {
    float: right;
    margin: 25px 1px 0 0;
    width: 27px;
    cursor: pointer;
}

/* страница коллекций */


/* постоянные коллекции */
.perp5 pr2 {
    position: absolute;
    width: 248px;
    height: 350px;
    overflow: auto;
    margin: 130px 0 0 33px;
    padding-right: 5px;
}

/* блок одной постоянной коллекции */
.pcollection {
    width: 234px;
    overflow: auto;
    margin: 5px 0;
    display: block;
}

.pcollection collmg img {
    width: 31px;
    height: 31px;
    display: block;

}

.pcollection collmg n,
.collection collmg n {
    opacity: 0.3;
    -webkit-filter: grayscale(1);
    filter: grayscale(1);
    transition: all .5s cubic-bezier(.3, .2, .2, .3);
}


collmg,
n {
    display: inline-block !important;
    transform: translateZ(0);
}

collmg[is],
n[is] {
    opacity: 0.3;
    filter: grayscale(1);
}




.pcollection collmg n:hover,
.collection collmg n:hover {
    opacity: 1;
    filter: none;
    transition: all .5s cubic-bezier(.3, .2, .2, .3);
}



/* эксклюзивные коллекции */
.perp5 pr1 {
    position: absolute;
    width: 350px;
    height: 345px;
    overflow: auto;
    margin: 130px 0 0 313px;
    padding-right: 10px;
}

/* блок одной эксклюзивной коллекции */
.collection {
    width: 348px;
    overflow: auto;
    margin: 5px 0 15px 0;
    display: block;
    box-shadow: inset 0px 0px 10px 0px #ffffff94;
    border: 1px solid #ffffff94;
    border-radius: 7px;
}

/* название одной эксклюзивной коллекции */
.collection collnm,
.pcollection collnm {
    display: block;
    margin: 0 0 5px 0;
    border-bottom: 1px solid #ffffff94;
    font-family: 'Alegreya Sans SC';
    text-transform: lowercase;
    font-size: 16px;
    text-align: center;
    color: #ffffff;
    padding: 5px 0px;
}

.pcollection collnm {
    letter-spacing: -0.5px;
}


.collection collmg img {
    width: 60px;
    height: 60px;
    display: block;
}

.pcollection collmg,
.collection collmg {
    display: inline-block;
    margin: 2px 1px;
}

/*фоны*/
.perp1 pr12 {
    position: absolute;
    width: 420px;
    height: 86px;
    margin: 285px 0 0 24px;
    overflow-x: auto;
}

pr12 .pr13 {
    display: inline-block;
    padding: 4px 5px;
    mix-blend-mode: multiply;
    opacity: .6;
    filter: grayscale(1);
    transition: all .5s;
}

pr12 .pr13 img {
    width: 125px;
    height: 35px;
    object-fit: cover;
    border-radius: 10px;
}

pr12 .pr13:hover {
    mix-blend-mode: normal;
    opacity: 1;
    filter: none;
    transition: all .5s;
}

/*фоны конец*/


/* -------- ЛИЧНЫЕ СТРАНИЦЫ конец --------------*/



@media screen and (max-width: 540px) {

    .my-tabs>img.close {
        float: unset;
        margin: unset;
        position: relative;
        width: 2.2cqh;
        z-index: 35000;
        margin-left: 2px;
    }

    #pun .punbb ul.my-tabs {
        width: 100% !important;
        padding: 0;
        margin: 0;
        top: 10px !important;
        left: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        position: fixed;
        height: 1.3cqh;
    }

    .my-tabs>span:first-child,
    .my-tabs>span:nth-child(2),
    .my-tabs>span:nth-child(3),
    .my-tabs>span:nth-child(4) {
        width: unset;
        margin-left: unset;
    }

    .my-tabs>span {
        opacity: 1;
        text-transform: uppercase;
        position: relative;
        top: 0 !important;
        left: 0;
        float: unset;
        margin: 10px 3px;
        background: #00000050;
        height: unset;
        padding: 0.5cqh 0.5cqh;
        z-index: 35000;
        font-size: 1.3cqh;
        line-height: 1.3cqh;
    }

    .my-tabs>span.selected {
        background: #00000080;
    }

    .my-tabs>.tab-a {
        width: 0;
    }

     .str1tem0,
     .str2tem0,
     .str3tem0,
     .str4tem0 {
        background: linear-gradient(45deg, #e6e6e6, #313131);
        border: 2px solid #6f6f6f;
        box-sizing: border-box;
        width: 100vw;
        height: 100vh;
        height: -webkit-fill-available;
        position: fixed;
        top: 0;
        left: 0;
        z-index: 30000;
    }

    .perp1,
    .perp2,
    .perp3,
    .perp5 {
        width: 100%;
        height: 100%;
        padding: 50px 10px 20px;
        box-sizing: border-box;
    }

    .perp1 {
        display: grid;
        align-items: center;
        justify-items: center;
        align-content: stretch;
        grid-template-areas:
            "icon name"
            "icon quote"
            "stuff stuff"
            "gifts gifts"
            "backs backs"
            "awards awards";
        grid-template-columns: 50% 50%;
    }

    .perp1 pr1,
    .perp1 pr2,
    .perp1 pr3,
    .perp1 pr6,
    .perp1 pr12,
    .perp1 pr5 {
        position: unset;
        margin: unset;
    }

    .perp1 pr1 {
        grid-area: icon;
        mix-blend-mode: unset;
        opacity: 0.4;
    }

    .perp1 pr1 img {
        border: 1px solid #ccc;
        width: 100px;
        height: 100px;
    }

    .perp1 pr2 {
        grid-area: name;
        align-self: end;
        width: unset;
        justify-self: start;
        height: unset;
        overflow: visible;
    }

    .perp1 pr2 a {
        background: var(--mem-bac-v3);
        padding: 1px 10px;
        line-height: 1.6rem;
        box-decoration-break: clone;
        -webkit-box-decoration-break: clone;
    }

    .perp1 pr3 {
        grid-area: quote;
        align-self: start;
        width: unset;
        height: unset;
    }

    .perp1 pr3::before {
        content: open-quote;
    }

    .perp1 pr3::after {
        content: close-quote;
    }

    .perp1 pr6 {
        grid-area: stuff;
        width: 100%;
        height: unset;
        background: #ffffff40;
        padding: 10px 15px;
        border-radius: 5px;
        box-sizing: border-box;
        border: 1px solid #ffffff50;
    }

    .perp1 pr6>div:nth-child(1),
    .perp1 pr6>div:nth-child(2),
    .perp1 pr6>div:nth-child(3),
    .perp1 pr6>div:nth-child(4),
    .perp1 pr6>div:nth-child(5),
    .perp1 pr6>div:nth-child(6),
    .perp1 pr6>div:nth-child(7) {
        width: unset;
        white-space: nowrap;
        padding: 4px 0;
    }

    .perp1 .pr4 {
        grid-area: awards;
        display: flex;
        justify-content: space-evenly;
        width: 100%;
    }

    .pr4 prn1,
    .pr4 prn2,
    .pr4 prn3,
    .pr4 prn4,
    .pr4 prn5,
    .pr4 prn6 {
        display: inline-block;
        position: unset;
        margin-top: unset;
        margin-left: unset;
        box-sizing: border-box;
        width: calc((100vw / 6) - 6px);
        height: calc((100vw / 6) - 6px);
        padding-top: calc(((100vw / 6) - 6px) / 4);
        border-radius: 50%;
        color: #00000095;
        font-size: 1.5rem;
        position: relative;
    }

    .pr4 prn1::after,
    .pr4 prn2::after,
    .pr4 prn3::after,
    .pr4 prn4::after,
    .pr4 prn5::after,
    .pr4 prn6::after {
        font-size: 0.6rem;
        line-height: 0.6rem;
        color: white;
        position: absolute;
        bottom: -23px;
        display: block;
    }

    .pr4 prn1::after {
        content: "лучшая пара";
    }

    .pr4 prn2::after {
        content: "лучший эпизод";
    }

    .pr4 prn3::after {
        content: "лучший пост";
    }

    .pr4 prn4::after {
        content: "лучшая цитата";
    }

    .pr4 prn5::after {
        content: "активист недели";
    }

    .pr4 prn6::after {
        content: "игрок недели";
    }

    .perp1 pr12 {
        grid-area: backs;
        width: 100%;
    }

    .perp1 pr12 center {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        width: 100%;
    }

    pr12 .pr13 img {
        width: 100%;
    }

    .perp1 pr5 {
        grid-area: gifts;
        width: 100%;
        height: 139px;
        padding-right: unset;
        position: relative;
    }

    .perp1 pr5::before {
        content: 'подарки';
        display: block;
        position: sticky;
        height: 20px;
        top: 0;
        width: 100%;
        text-align: center;
        color: white;
        text-transform: uppercase;
        background: linear-gradient(to bottom, #8c8c8c, transparent)
    }

    .perp2 pr1 {
        width: unset;
        height: unset;
        position: unset;
        padding-right: unset;
        margin: 0;
    }

    .perp2 pr1 center {
        height: 100%;
        overflow-y: auto;
    }

    .perp3 {
        display: flex;
        flex-wrap: wrap;
        align-content: space-around;
    }

    .perp3 pr2,
    .perp3 pr5 {
        display: block;
        position: unset;
        width: 100%;
        margin: unset;
        padding: 2px;
        height: 47%;
    }

    .perp3 pr5 .plashka {
        width: 240px;
        margin: 10px auto !important;
    }

    .perp5 pr2,
    .perp5 pr1 {
        height: 50%;
        width: 100%;
        display: block;
        margin: unset;
        padding: unset;
        position: unset;
    }

    .collection {
        width: 95%;
    }


    /* лс в темах лс */

    #pun-viewtopic[data-forum-id="20"] .post-body .str1tem0,
    #pun-viewtopic[data-forum-id="20"] .post-body .str2tem0,
    #pun-viewtopic[data-forum-id="20"] .post-body .str3tem0,
    #pun-viewtopic[data-forum-id="20"] .post-body .str4tem0 {
        position: relative;
        width: 90%;
        height: 800px;
        margin: 0 auto;
    }

    #pun-viewtopic[data-forum-id="20"] .post-body .pr4 prn1,
    #pun-viewtopic[data-forum-id="20"] .post-body .pr4 prn2,
    #pun-viewtopic[data-forum-id="20"] .post-body .pr4 prn3,
    #pun-viewtopic[data-forum-id="20"] .post-body .pr4 prn4,
    #pun-viewtopic[data-forum-id="20"] .post-body .pr4 prn5,
    #pun-viewtopic[data-forum-id="20"] .post-body .pr4 prn6,
    #pun-viewtopic[data-forum-id="20"] .post-body .pr4 prn7 {
        width: 50px;
        height: 50px;
        padding-top: 10px;

    }
}