.chat {
    overflow: hidden;
    background-color: rgb(37, 37, 54);
    position: fixed;
    top: 0px;
    height: 100%;
    z-index: 40;
    width: 350px;
    max-width: 85%;
    transition: 0.5s;
}

@media (max-width: 1309px){
    .chat{
        right: -350px;
    }
}
@media (min-width: 1310px){
    .chat{
        right: 0px;
    }
}

.chatButton{
    position: fixed;
    background-color: #334;
    padding: 12px 6px;
    top: 50%;
    right: 0px;
    z-index: 40;
    color: white;
    font-size: 16px;
    transition: 0.5s;
    border-bottom-left-radius: 5px;
    border-top-left-radius: 5px;
    cursor: pointer;
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.5);
}

.chatButton:hover{
    background-color: #445;
}

#chatMessages {
    overflow: auto;
    width: 100%;
    max-height: -moz-calc(100% - 150px);
    max-height: -webkit-calc(100% - 150px);
    max-height: -o-calc(100% - 150px);
    max-height: calc(100% - 150px);
    position: absolute;
    top: 60px;
}

#chatSendMessage {
    background-color: #334;
    width: 100%;
    height: 86px;
    overflow: hidden;
    position: absolute;
    bottom: 0;
}

.chatMessageContainer {
    color: white;
    width: 96%;
    margin-left: 2%;
    font-size: 14px;
    margin-top: 8px;
    margin-bottom: 8px;
    background-color: rgb(41, 41, 61);
    padding-bottom: 18px;
    position: relative;
    border-radius: 5px;
    overflow: hidden;
}

.chatMessageContainer::after {
    content: "";
    clear: both;
    display: table;
}

#chatEmptyMessageContainer{
    height: 100px;
}

.chatMessageText{
    overflow: hidden;
    overflow-wrap: break-word;
    word-wrap: break-word;
    -ms-word-break: break-all;
    word-break: break-all;
    word-break: break-word;
    -ms-hyphens: auto;
    -moz-hyphens: auto;
    -webkit-hyphens: auto;
    hyphens: auto;
    text-align: left;
    color: #99a;
    padding: 8px;
    text-align: justify;
}

.chatMessageUser {
    overflow: hidden;
    white-space: nowrap;
    display: flex;
    align-items: center;
    background-color: rgb(48, 48, 70);
    padding: 8px;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
    cursor: pointer;
    transition: 0.3s;
}

.chatMessageUser:hover{
    background-color: rgb(58, 58, 80);
}

.chatMessageUser img {
    width: 20px;
    height: 20px;
    margin-right: 5px;
    border-radius: 3px;
    box-shadow: 0px 2px 4px rgba(5, 5, 10, 0.5);
}

.chatMessageUser p {
    margin: 0;
    font-size: 12px;
    line-height: 16px;
    letter-spacing: 1px;
    text-shadow: #112;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-family: 'Source Sans Pro', sans-serif;
}

.time-right {
    float: right;
    color: #556;
    position: absolute;
    bottom: 5px;
    right: 5px;
}

.label{
    line-height: 12px;
    font-size: 12px;
    margin-right: 5px;
    padding: 2px 4px;
    font-family: 'Anybody', cursive;
    letter-spacing: 1px;
    color: white;
    border-radius: 2px;
    box-shadow: 0px 2px 4px rgba(5, 5, 10, 0.5);
}

.label-silver {
    background-color: grey;
}

.label-goldnova {
    background-color: #0080ff;
}
.label-masterguardian {
    background-color: #0040ff;
}
.label-legendaryeagle {
    background-color: #339933;
}
.label-supreme {
    background-color: #ff6600;
}
.label-global {
    background-color: #c89900;
}

.label-administrator {
    background-color: #e9573f;
}

#chatMessageArea {
    width: -moz-calc(100% - 66px);
    width: -webkit-calc(100% - 66px);
    width: -o-calc(100% - 66px);
    width: calc(100% - 66px);
    height: 70px;
    padding: 6px 10px;
    position: absolute;
    resize: none;
    left: 8px;
    top: 8px;
    color: white;
    background: transparent;
    border: 2px solid #667;
    font-size: 12px;
    border-radius: 5px;
    transition: 0.3s;
}

#chatMessageArea:focus {
    outline: none;
    border: 2px solid #bbc;
}

#chatMessageSubmit {
    width: 42px;
    height: 42px;
    position: absolute;
    right: 8px;
    top: 22px;
    background-color: #778;
    border: none;
    color: white;
    text-decoration: none;
    cursor: pointer;
    border-radius: 20px;
    transition: 0.3s;
}

#chatMessageSubmit:hover {
    background-color: #53bc57;
    transition: 0.3s;
}

#chatMessageSubmit i{
    position: absolute;
    top: 11px;
    left: 11px;
    font-size: 18px;
}