#chat{
    position: fixed;
    bottom: 0px;
    right: 0px;
    padding: 10px;
    height: 100vh;
    /* border: 1px solid; */
    box-shadow: 0px 0px 10px black;
    text-align: left;
    right: -520px;
    width: 600px;
    max-width: 100%;
    z-index: 99;
    background: var(--cream-white);
}
.dark #chat{
    background: var(--body-bg);
}
#chat.toggled{
    right: 0;
}
#chat-toggle{
    height: 100px;
}
#chat-icon{
    max-width: 40px;
    bottom: 10px;
    right: 0px;
    cursor: pointer;
}
#chat-render{
    padding: 10px;
    width: calc(100% - 80px);
    margin-left: 15px;
    display: inline-block;
    height: 100%;
    vertical-align: top;
}
.env-local #chat-render{
    border: 2px solid var(--local-line);
}
#chat-log{
    display: inline-block;
    height: calc( 100% - 120px);
    width: 100%;
    margin-bottom: 10px;
    overflow-y: auto;
    overflow-x: hidden;
    padding-bottom: 10px;
}
.env-local #chat-log{
    border: 2px solid var(--local-line);
}
#chat-input-area .button{
    
}
#chat-input-area textarea{
    width: 100%;
    margin-bottom: 10px;
    resize: none;
}

.chat-wrap{
    position: relative;
    padding: 5px;
    max-width: 100%;
    margin: 2px 0;
    background: rgba(0, 0, 0, .1);
    border-radius: 4px;
    display: inline-block;
    width: calc(100% - 8px);
    margin-left: 4px;
}
.chat-wrap pre,
.chat-wrap p{
    margin: 3px 0;
}
.chat-sender{
    font-size: .8rem;
}
.chat-content{
    padding: 5px;
}
.chat-created{
    font-size: .8rem;
    position: absolute;
    top: 0;
    right: 0;
    opacity: .8;
}
.chat-wrap .warning{
    position: absolute;
    display: none;
    bottom: 0;
    right: 0;
}
.chat-wrap:hover .warning{
    display: inline-block;
}

#chat-toggle.is-new{
    animation: edit_pulse linear infinite 1.5s;
    /* opacity: .1; */
}

#chat-input-area .clarification{
    margin-left: 20px;
}
#new-count{
    font-size: .8rem;
    /* border: 2px solid; */
}

#chat-listing{
    position: absolute;
    top: 120px;
    left: 0px;
    padding: 10px;
    width: 90px;
}
.sub-button{
    font-size: .8rem;
    margin: 5px 0;
    padding: 5px;
}
.game-color{
    display: inline-block;
    width: 20px;
    height: 20px;
}
.chat-channel{
    width: 100%;
}

#chat-alerter{
    position: absolute;
    bottom: 155px;
    right: 150px;
    z-index: 9;
}