
.panel {
    margin-bottom: 0;
    height: calc(100vh - 2px);
    max-height: 100vh;
    position: relative;
}

.panel-body {
    overflow: auto;
    overflow-x: hidden;
    position: absolute;
    top: 50px;
    bottom: 50px;
    left: 0;
    right: 0;
}

.panel-footer {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
}
.emojionearea, .emojionearea-editor{
    /*font-size: 1.2em;*/
    font-size: 16px !important;
}
.panel-heading, .list-group-item{
    height: 50px;
}
.panel-heading img.img-circle, .bubble img.img-circle, .panel-body img.img-circle{
    width: 30px;
    height: 30px;
    margin-right: 10px
}
#channelItem{
    height: 60px;
}
#channelItem img{
    width: 40px;
    height: 40px;
}
.NameIdentification{
    font-size: 1.2em;
    position: absolute;
    top: 5px;
}
.list-group-item{
    position: relative;
    border-width: 0 0 1px 0;
}
.list-group-item:hover {
    background-color: #EEE;
    cursor: pointer;
}
.messageNameId{
    font-weight: bold;
}

.isChat .messageNameId{
    display: none;
}
.messageFooter{
    text-align: right;
    font-size: 0.8em;
    color: #AAA;
    white-space: nowrap;
    display: none;
}

.bubble > .message{
    max-height: 50vh;
    overflow: auto;
}

.bubble.iframeMessage .editMessage{
    display: none;
}


.them-bubble {
    position: relative;
    background: #FFFFFF55;
    border-radius: .4em;
    float: left;
    clear: both;
}

.them-bubble:hover {
    background: #FFFFFFAA;
}

.them-bubble:after {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 0;
    height: 0;
    border: 6px solid transparent;
    border-right-color: #FFF;
    border-left: 0;
    margin-top: -6px;
    margin-left: -6px;
}

.me-bubble {
    position: relative;
    background: #dcf8c655;
    border-radius: .4em;
    float: right;
    clear: both;
}

.me-bubble:hover {
    background: #dcf8c6AA;
}

.me-bubble:after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    width: 0;
    height: 0;
    border: 6px solid transparent;
    border-left-color: #dcf8c6;
    border-right: 0;
    margin-top: -6px;
    margin-right: -6px;
}

.bubble{
    overflow: hidden;
}
.bubble a {
    word-break: break-all;
    font-weight: bold;
    color: #222;
    background-color: rgba(255, 255, 255, 0.3); /* Light background */
    text-shadow: 0 0 3px rgba(255, 255, 255, 1);
    padding: 2px 4px; /* Small padding to give space around text */
    border-radius: 3px; /* Rounded corners for a softer look */
}

.bubble a:hover{
    text-decoration: underline;
}

.bubble img{
    width: auto;
    height: auto;
    max-height: 200px;
}

.chatImageLink{
    padding: 0 !important;
}

hgroup{
    margin: 5px 0;
    padding: 5px 10px;
    max-width: 95%;
    min-width: 75%;
}
.badge{
    background-color: #09d261;
}

::-webkit-scrollbar-track
{
    -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.3);
    border-radius: 4px;
    background-color: rgba(100,100,100,0.01);
}

::-webkit-scrollbar
{
    width: 8px;
    background-color: rgba(100,100,100,0.01);
    overflow: hidden;
}

::-webkit-scrollbar-thumb
{
    border-radius: 4px;
    -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,.3);
    background-color: rgba(100,100,100,0.05);
}

.btn-circle {
    text-align: center;
    width: 50px;
    height: 50px;
    padding: 10px 16px;
    font-size: 18px;
    line-height: 1.33;
    border-radius: 25px;
}
#divChatRow{
    width: 100%;
    height: 100vh;
    position: absolute;
    bottom: 0;
    overflow: hidden;
    left: 15px;
}
#divChatRow #divRooms > div{
    border-top-width: 0;
    border-bottom-width: 0;
    border-left-width: 0;
}
#divChatRow #chatPanel{
    border: none;
}
#divRooms{
    transition: all 0.3s;
    overflow-x: visible;
}
#roomButton{
    position: absolute;
    right: -20px;
    top: 60px;
    padding: 2px;
    z-index: 3;
    display: none;
}
.offline{
  color: #AAA;
}
.offline img{
  -webkit-filter: grayscale(100%); /* Safari 6.0 - 9.0 */
  filter: grayscale(100%);
}

.banned{
    opacity: 0.5;
    filter: alpha(opacity=50); /* For IE8 and earlier */
}

.removeBan{
    display: none;
}
.showOnMouseHover {
    opacity: 0;
    filter: alpha(opacity=0); /* For IE8 and earlier */
}
.bubble:hover .showOnMouseHover{
    opacity: 1;
    filter: alpha(opacity=100); /* For IE8 and earlier */
}
.banned .ban{
    display: none;
}
.banned .removeBan{
    display: inline-block;
}
.top0Radius{
    border-top-width: 0;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

.emojionearea, .emojionearea.focused {
    border-width: 0;
    background-color: transparent;
    -moz-box-shadow:none;
    -webkit-box-shadow:none;
    box-shadow:none;
}

.btn-outline{
    background-color: transparent;
}

.flyIcon{
    position: fixed;
    bottom: 60px;
}

#divRooms > .panel,#chatPanel {
    margin: 0;
}

@media screen and (max-width: 430px) {
    #divRooms{
        position: absolute;
        width: 75px;
        height: 100%;
        z-index: 10;
        left: -75px;
    }
    #divRooms.divRoomsShow{
        left: 0;
    }
    #divRooms:hover:not(.divRoomsShow) {
        left: -65px !important;
    }
    #roomButton{
        display: inline-block;
    }
    #divChat{
        width: 100%;
    }
}

body{
    display: block !important;
}

.superChat{
    font-size: 1.2em;
    border-width: 3px;
    border-style: solid;
    border-color: limegreen;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.8) !important;
}

.superChat .superChatIcon{
    color: limegreen;
}

.show-only-superchat .them-bubble:not(.superChat),
.show-only-superchat .me-bubble:not(.superChat) {
    display: none;
}

#scrollDownBtn{
    opacity: 0.3;
}
#scrollDownBtn:hover{
    opacity: 1;
}

#pinnedMessageContainer{
    overflow: auto;
    display: none;
    padding: 10px;
    position: absolute;
    top: 50px; /* Adjust as needed */
    height: 100px;
    left: 0;
    width: 100%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.8) !important;
    z-index: 1;
    cursor: pointer;
}

#pinnedMessageContainer .chatImage{
    max-height: 100px;
}

#pinnedMessageContainer .profilePicture{
    width: 30px;
    height: 30px;
}

#pinnedMessageContainer .headContainer{
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 5px;
}

#pinnedMessageContainer .messageNameId{
    float: left;
}

#pinnedMessageContainer .message{
    padding-left: 10px;
}

.hasPinnedMessage #pinnedMessageContainer{
    display: block;
}
.hasPinnedMessage #divChatPanel{
    top: 150px;
}

#pinnedMessageContainer.iframeMessage{
    height: 270px;
}

.hasPinnedIframeMessage #divChatPanel{
    top: 320px;
}

.bubble .messageIgnored {
    display: none;
    font-style: italic;
}
.bubble.ignored {
    opacity: 0.7;
    font-size: 0.9em;
}
.bubble.ignored .hideIfIgnored, .showIfIgnored {
    display: none;
}
.bubble.ignored .showIfIgnored {
    display: block;
}

body.attachmentsDisabled .hideIfAttachmentDisabled {
    display: none;
}
