/* Teilnehmer Fragen */
.teilnehmer_fragen__headline {
    margin-bottom: 1rem;
}

.storytile-sites-user-questions-question form {
    position: relative;
    background-color:#ffffff;
}

.storytile-sites-user-questions-input-text {
    width: calc(100% - 50px);
    resize: none;
    overflow-y: scroll;
    height: 85px;
    line-height: 2rem;
    font-size: 1.6rem;
    padding: .5rem 3.75rem .5rem 1rem;
    flex: 1;
    font-family: Frutiger55Roman;
    border: none;
    color: var(--color-black);
}

.storytile-sites-user-questions-input-button {
    position: absolute;
    bottom: 0;
    right: 0;
    border: none;
    width: 50px;
    height: 50px;
    background-color: var(--color-blue-dark);
    color: transparent;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    cursor:pointer;
    transition: all var(--fx-speed) ease-in-out;
}

.storytile-sites-user-questions-input-button:hover {
    background-color: var(--color-red);
}

.storytile-sites-user-questions-input-button::before {
    content: '';
    position: absolute;
    background-image:url('/_assets/img/ic_send.svg');
    background-repeat: no-repeat;
    background-position: center;
    height: 50px;
    width: 50px;
    display: block;
}


/* PUBLIC CHAT */
#chat {
    position: relative;
    height: 100%;
    overflow: hidden;
}

.chat {
    background-color: #4d8da6;
    padding: 30px 0 0 0;
    position: relative;
    max-width: 386px;
}

@media screen and (max-width: 1200px) {
    .chat {
        max-width: 100%;
    }
}

.chat--disabled {
    filter: blur(4px);
}

.storytile-sites-public-chat-login-required-text {
    display: none;
}

.storytile-sites-public-chat-messages {
    overflow-y: auto;
    color: white;
    height: calc(100% - 58px);
    position: absolute;
    width: 100%;
    padding: 0 25px;
}

.storytile-sites-public-chat-message {
    padding: 15px 0;
    border-bottom: 1px solid var(--color-grey);
    font-size: 1.6rem;
}

.storytile-sites-public-chat-message a {
    color: white;
}

.storytile-sites-public-chat-message:first-child {
    padding-top: 0;
}

.storytile-sites-public-chat-message:last-child {
    border-bottom: none;
}

.storytile-sites-public-chat-message-time {
    font-size: 14px;
    line-height: initial;
}

.storytile-sites-public-chat-message-user {
    margin-bottom: .75rem;
    font-weight: bold;
}

.storytile-sites-public-chat-message-text {
    line-height: 2.4rem;
    word-wrap: break-word;
}

.storytile-sites-public-chat-inputs {
    position: absolute;
    bottom: 0;
    width: 100%;
}

.storytile-sites-public-chat-inputs::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 80px;
    /*background: linear-gradient(180deg, rgba(31, 130, 192, 0) 0%, rgba(31, 130, 192, 1) 100%);*/
    z-index: 10;
    transform: translateY(-100%);
    pointer-events: none;
}

.storytile-sites-public-chat-inputs form {
    display: flex;
    height: 50px;
    background-color: #ffffff;
    padding: 0;
    position: relative;
}

.storytile-sites-public-chat-input-text {
    resize: none;
    overflow-y: scroll;
    height: 50px;
    line-height: 2rem;
    font-size: 1.6rem;
    padding: .5rem 3.75rem .5rem 1rem;
    flex: 1;
    font-family: Frutiger55Roman;
    border: none;
    background-color: transparent;
    color: var(--color-black);
}

.storytile-sites-public-chat-input-text:focus {
    outline: none;
}

.storytile-sites-public-chat-input-button {
    border: none;
    background-color: var(--color-blue-dark);
    color: transparent;
    flex: 0 0 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-left: auto;
    padding: 0;
    cursor:pointer;
    transition: all var(--fx-speed) ease-in-out;
}

.storytile-sites-public-chat-input-button:hover {
    background-color: var(--color-red);
}

.storytile-sites-public-chat-input-button::before {
    content: '';
    position: absolute;
    background-image:url('/_assets/img/ic_send.svg');
    background-repeat: no-repeat;
    background-position: center;
    height: 23px;
    width: 50px;
    display: block;
}

.storytile-sites-public-chat-input-button svg {
    fill: white;
    width: 12px;
    height: 21px;
}

.storytile-sites-emoji-menu {
    position: absolute;
    top: 13px;
    right: 60px;
    width: 25px;
    height: 25px;
    text-align: center;
    line-height: 25px;
    overflow: hidden;
    cursor: pointer;
    font-size: 2rem;
}

.storytile-sites-emoji-menu[data-open] {
    overflow: visible;
}

.storytile-sites-emoji-menu-list {
    position: absolute;
    bottom: 25px;
    right: 0;
    background: #fff;
    width: 200px;
    max-height: 200px;
    overflow-x: hidden;
    overflow-y: auto;
    cursor: pointer;
    z-index: 100;
}

.storytile-sites-emoji-menu-list > span {
    position: relative;
    padding: 0.25em;
    background: transparent;
    font-size: 2rem;
}

.storytile-sites-emoji-proposal {
    position: absolute;
    bottom: 25px;
    left: 0;
    box-sizing: border-box;
    background-color: #e0e0e0;
    border: 1px solid #ddd;
    padding: 0.5em;
}

.storytile-sites-emoji-proposal > span {
    position: relative;
    padding: 0.25em;
    background: transparent;
}

.storytile-sites-emoji-proposal > span.storytile-sites-emoji-proposal-selected {
    background: #0F9FDF;
}

/* ***** scrollbar adjustments START ***** */
/* firefox */
#chat * {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.3) rgba(255, 255, 255, 0.2);
}

/* width */
#chat *::-webkit-scrollbar {
    width: 5px;
}

/* button */
#chat *::-webkit-scrollbar-button {
    display: none;
}

/* handle */
#chat *::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
}

/* handle on hover */
#chat *::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* track */
#chat *::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.2);
}


#chat textarea {
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.3) rgba(0, 0, 0, 0.2);
}

/* handle */
#chat textarea::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.3);
}

/* handle on hover */
#chat textarea::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.3);
}

/* track */
#chat textarea::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
}

/* ***** scrollbar adjustments END ***** */