/* forum style */
.forum-header, .tag-header {
    width: 100%;
    z-index: 10;
    position: fixed;
    top: var(--headerHeight);
    min-height: var(--headerHeight);
    height: auto;
}

.forum-header {
    background-color: var(--sponser-bg);
}

.forum-sticky-header {
    width: 100%;
    z-index: 10;
    position: sticky;
    top: var(--headerHeight);
    background-color: var(--sponser-bg);
}

.s-margin-forum-header {
    margin-top: var(--headerHeight);
}

li.load-more {
   height: var(--headerHeight);
}
.load-more-btn {
    width: 100%;
    overflow: hidden;
    padding: 0.625rem;
    border-radius: 0.5rem;
    padding: 5px 12px;
    box-shadow: 0 1px 3px rgb(0 0 0 / 10%);
    background-color: var(--sponser-purple-light);
    color: var(--sponser-purple-lighter);
    border: 1px solid #e3e7ff;

}


details {
    width: 100%;
    position: relative;
    box-sizing: border-box;
    transition: all .3s;

    background: var(--sponser-gray-darker);
    border-bottom: solid 1px var(--sponser-gray-darker);
    overflow: hidden;
}

@keyframes details-show {
    from {
        margin-bottom: -80%;
        opacity: 0;
        transform: translateY(-100%);
    }
}

details > *:not(summary) {
    /*animation: details-show 500ms ease-in-out;*/
    position: relative;
    z-index: 1;
    transition: all 0.3s ease-in-out;
    color: transparent;
    overflow: hidden;
}

details[open] > *:not(summary) {
    color: inherit;
}

details[open] > summary:before {
    transform: rotate(90deg);
    transition: 0.45s transform ease;
}

details[open] {
    border-bottom-left-radius: .5rem;
    border-bottom-right-radius: .5rem;
    overflow: hidden;
    box-shadow: 0 1px 2px rgb(0 0 0 / 20%) !important;


}

details summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    position: relative;
    padding: .25rem .625rem;
}

summary:focus {
    outline: none;
}

summary:focus::after {
    content: "";
    height: 100%;
    width: 100%;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
}

details summary::-webkit-details-marker {
    display: none;
}


details .control-icon {
    color: var(--sponser-text);
    transition: .1s ease;
    pointer-events: none;

}

details[open] .control-icon {
    transform: rotate(45deg);
    transition: transform ease .1s;
}

/*
details .control-icon-close {
    display: none;
}

details[open] .control-icon-close {
    display: initial;
    transition: .3s ease;
}

details[open] .control-icon-expand {
    display: none;
}
*/


.forum-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    word-wrap: break-word;
    background-color: var(--sponser-white-bg);
    background-clip: border-box;
    /*border: 1px solid rgba(0, 0, 0, 0.125);*/
    outline: solid 1px transparent;
}

.forum-card.rounded {
    box-shadow: 0 1px 2px rgb(0 0 0 / 20%) !important;
    border-radius: 0.5rem;
    overflow: hidden;

}


.forum-card > figure > img {
    height: auto;
    max-width: 100%;
    object-fit: cover;
}

.forum-card .hide-comment {
    /*display: none;*/
}

.forum-card .comments-counter {
    font-size: 1rem;
}


.forum-title {
    font-size: 1rem;
    font-weight: 700;
}

.forum-body__container {
    display: none;
}

.forum-subTitle {
    font-size: 1rem;
    white-space: pre-line;
}

.forum-subTitle.less {
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
    -webkit-rtl-ordering: revert;
}

.forum-subTitle.more {
    -webkit-line-clamp: 999;
}

.forum-tag {
    display: block;
    color: var(--sponser-purple);
    font-weight: 500;
    font-size: 0.925rem;
    text-decoration: none;
    margin-bottom: 0.25rem;
    margin-top: 0.25rem;

}

.forum-card figure.articleCard {
    /* border-bottom-left-radius: 12px;
     border-bottom-right-radius: 12px;*/
    background-color: var(--sponser-gray-light);
}

.forum-card figure.articleCard figcaption {
    padding: .25rem .5rem;
    font-size: .875rem;
    font-weight: 700;
}

.forum-tag__container {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: start;
    list-style-type: none;
    margin: 0;
    padding: 0;
    overflow: hidden;
}


.forum-tag__item a, .forum-tag__title a {
    color: var(--sponser-purple);
    font-size: 0.85rem;
    /*border-radius: 0.25rem;
    padding: 0 3px 1px;
    line-height: 0.85rem;*/
}

ul.forum-tag__container li.forum-tag__item:not(:last-child) {
    margin-left: .5rem;
}

/*

.forum-tag__item:not(:last-child):after {
    display: inline-block;
    position: relative;
    margin: 0 0.25rem;
    color: var(--color-twitch-purple-13);
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    content: "\f111";
    font-size: 3px;
    vertical-align: middle;
}
*/

.forum-footer {
    border-top: solid 1px var(--sponser-purple-soft);
    padding: 1rem .625rem;
}

.forum-footer i {
    font-size: 1rem
}

.forum-image__cover {
    object-fit: cover;
    width: 100%;
    border: 0;
}

.forum-comments__container .border-top {
    border-top: solid 1px var(--sponser-purple-soft);
}

.forum-comments__container {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

.forum-comments__container li.hide-comment {
    display: none;
}

.forum-comments__container li.hide-comment.show-more {
    display: list-item;
    animation: table_show 1s ease;
}

.msg-highlight {
    background-color: var(--sponser-purple-soft) !important;
    border: solid 1px var(--sponser-purple-pastel-border);
    box-shadow: var(--sponser-purple-pastel-shadow);
}

@keyframes table_show {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

.border-pulse {
    -webkit-animation: border-pulse 1s ease-out;
    -webkit-animation-iteration-count: 5;
    animation-direction: alternate;
}

@keyframes border-pulse {
    0% {
        outline-color: rgba(234, 30, 99, 1);

    }

    25% {
        outline-color: rgba(234, 30, 99, .75);

    }
    50% {
        outline-color: rgba(234, 30, 99, .5);

    }
    75% {
        outline-color: rgba(234, 30, 99, .25);

    }
    100% {
        outline-color: rgba(234, 30, 99, 0);

    }
}

.pulsate-infinite {
    -webkit-animation: pulsate 1s ease-out;
    -webkit-animation-iteration-count: infinite;
    animation-direction: alternate;
}

@-webkit-keyframes pulsate {
    0% {
        opacity: 0;
    }
    30% {
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 1;
    }
}

.forum-comments__item {
    position: relative;
    width: 100%;
}

.forum-comments__guideline {
    border-right: solid;
    border-right-width: 1px;
    border-right-color: var(--sponser-gray-dark); /*rgba(229, 231, 235, 0.7);*/
}

.forum-comments__container {
    outline: solid 1px transparent;
}

.forum-comments__container > li:not(:first-child) {
    margin-top: 1rem;
}

li.forum-comments__item article {
    display: flex;
    position: relative;
    flex-direction: column;
    background-color: var(--sponser-bg);
    border-radius: 0.5rem;
    overflow: hidden;
}

li.forum-comments__item article:not(:last-child) {
    margin-bottom: 0;
}

.forum-comments__toolbar-container {
    width: 100%;
    margin-bottom: 2.5rem;
}

.forum-comments__toolbar-container:not(:last-child) {
    /*margin-bottom: 2rem;*/
}

.forum-comments__toolbar {
    position: absolute;
    margin-top: 0.25rem;
    display: flex;
    width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    padding-left: 0.25rem;
    padding-right: 0.25rem;
}


.forum-container-meta {
    opacity: .75;
    font-size: .875rem;
    margin-bottom: 0.25rem;
}

.forum-container-meta ul > li {
    display: flex;
    align-items: center;
}

.forum-container-meta ul > li:not(:last-child) {
    margin-left: 1rem;
}

.forum-container-meta ul {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    height: .875rem;
}

.forum-container-meta address {
    font-weight: 700;
    font-size: .875rem;

}

.forum-container-meta time {
    font-size: .875rem;
}

.forum-container-meta time:not(.only-time):before {
    position: relative;
    content: "|";
    margin: 0 .125rem;
}


.message-meta {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    opacity: .75;
    font-size: .875rem;
}

.message-meta i {
    margin-left: .125rem;
}

.s-forum-link {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.s-forum-link a {
    color: var(--sponser-orange-dark);
    text-decoration: none;
    font-size: .875rem;
}

.s-forum-link a i {
    opacity: .5;
    font-size: .875rem;
    margin-left: .25rem;
    color: var(--sponser-text);
}

/* new message overlay*/

.msg-overlay-bubble-container {
    position: fixed;
    z-index: 101;
    bottom: 0;
    right: 0;
    width: 100%;
}

.msg-overlay-container {
    /* height: 0;
     position: fixed;
     z-index: 101;
     bottom: 0;
     right: 0;
     overflow: visible;
     display: flex;
     flex-direction: row-reverse;
     flex-wrap: nowrap;
     align-items: flex-end;
     width: 100%;*/
    background-color: var(--sponser-white-bg);
}

.msg-overlay-list-bubble {
    display: flex;
    flex-direction: column;
    height: calc(calc(100vh - env(safe-area-inset-bottom) - env(safe-area-inset-top)) - 62px);
    flex: 0 0 100%;
    overflow: hidden;
    width: 100%;
    min-width: 0;
    background-color: var(--sponser-white-bg);
    border-radius: 0;

    box-shadow: 0px 8px 10px 1px rgb(0 0 0 / 14%), 0px 3px 14px 2px rgb(0 0 0 / 12%), 0px 5px 5px -3px rgb(0 0 0
        / 20%);
    transform: translateY(0);
    transition: all 350ms ease;

}

.msg-overlay-list-bubble.is-minimized {
    transform: translateY(100%) translateY(-4rem);
    transition: all 350ms ease;
    border-top-left-radius: .8rem;
    border-top-right-radius: .8rem;

}


.msg-overlay-bubble-header .msg-overlay-bubble-header-icon {
    opacity: 70%;
    margin-left: .25rem;

}

.msg-overlay-bubble-header .msg-overlay-bubble-header-close {
    display: inline-block;
}

.msg-overlay-list-bubble.is-minimized .msg-overlay-bubble-header-close {
    display: none;
}

.msg-overlay-bubble-header {
    height: 4rem;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    position: relative;
    background-color: var(--sponser-white-bg);
    border-bottom: solid 1px var(--sponser-gray-dark);
}

.msg-overlay-bubble-header-title {

}

.msg-overlay-list-bubble {
    height: calc(100vh - 62px);
}

.msg-overlay-list-bubble.is-minimized {
    height: 4rem;
}

.msg-overlay-list-bubble.is-minimized .msg-overlay-bubble-header-title {
    border: solid 1px var(--sponser-gray-dark);
    overflow: hidden;
    padding: .25rem .625rem;
    border-radius: .25rem;
}

.msg-overlay-bubble-content {
    display: flex;
    align-items: center;
    flex-direction: column;
    /*padding: .625rem;*/
    position: relative;
}


.user-like-post {
    font-weight: 700;
    color: var(--sponser-pink);

}

.user-like-post.active span i {
    animation: like 0.5s 1;
}

[class^="likes_counter_"] {
    font-weight: 400;
    color: var(--sponser-text);
}


@-webkit-keyframes like {
    0% {
        transform: scale(1);
    }
    90% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1.1);
    }
}

#newMsgForm {
    width: 100%;
}

#newMsgForm > ul {
    padding: .625rem .625rem 0;
}

#newMsgForm li.input {
    border-color: var(--sponser-gray-dark);
    border-width: 1px;
    border-style: solid;
    border-radius: .25rem;
    overflow: hidden;
}

#newMsgForm li.input:not(:last-child) {
    margin-bottom: .9375rem;
}


#newMsgForm .input:focus-within {
    border-color: var(--sponser-purple-soft);
    -webkit-box-shadow: 0 1px 4px rgb(26 26 67 / 10%);
    box-shadow: 0 1px 4px rgb(26 26 67 / 10%);
}

.select2-search__field {
    padding: 7px 7px 0 !important;
    font-size: .875rem;
    font-weight: 400;
    margin: 0 !important;
}

#newMsgForm textarea, #newMsgForm input:not(.select2-search__field) {

    box-sizing: border-box;

    display: block;
    width: 100%;
    padding: 7px;
    outline: none;
    border: 1px solid transparent;
    border-radius: 4px;
    color: var(--sponser-text);

    font-size: .875rem;
    font-weight: 400;
    resize: none;
}

#newMsgForm #newMsgLink {
    text-align: left;
    direction: ltr;
}

#newMsgForm input[type=url] {
    text-align: left;
    direction: ltr;
}

#newMsgForm textarea.title {
    resize: none;
    overflow: hidden;
}


#newMsgForm .counter {
    font-size: .8rem;
    color: var(--sponser-text);
    pointer-events: none;
    width: calc(4 * 0.8rem);
    margin-right: .5rem;
    text-align: left;
    opacity: 80%;
}

/*
#newMsgForm footer {
    position: sticky;
    bottom: 0;
    width: 100%;
    padding: 0.625rem;
    background: var(--sponser-bg);
}
*/

#newMsgForm footer ul {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    flex-direction: row;
    margin-top: 1rem;
}

#newMsgForm footer li:not(:last-child) {

    margin-left: 1rem;
}


/* select 2 */
.select2-container--default .select2-selection--multiple {
    border: unset !important;
    border-radius: unset !important;

}

.select2-results__options {
    background: var(--sponser-gray-light);
    -webkit-box-shadow: 0 1px 4px rgb(26 26 67 / 10%);
    box-shadow: 0 1px 4px rgb(26 26 67 / 10%);
    border-radius: 0 0 0.5rem 0.5rem;
    overflow: hidden;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: var(--sponser-purple) !important;
    color: var(--sponser-white) !important;
}

.select2-container--default.select2-container--focus .select2-selection--multiple {
    -webkit-box-shadow: 0 1px 4px rgb(26 26 67 / 10%);
    box-shadow: 0 1px 4px rgb(26 26 67 / 10%);
    /* border: 1px solid var(--sponser-purple-soft) !important;*/
}

.select2-container--default .select2-selection--multiple .select2-selection__choice {
    background-color: var(--sponser-gray-light) !important;
    border-color: var(--sponser-gray-dark);
}


/* */


.viewport-debug{
    z-index: 1;
    height: 1px;
    width: 100%;
    position: fixed;
    background: var(--sponser-pink);

}
