::selection{
    background: rgba(82,179,217,0.3);
    color: inherit;
}
a{
    color: rgba(82,179,217,0.9);
}

#chat{
    background-color: #DDD;
    overflow-y:scroll;
    height:100%;
}

.chat_heading {
    position: fixed;
    top: 0px;
    right: 0px;
    width: 30%;
    height: 7%;
    padding-top:0.7%;
    z-index: 100;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.chat_heding_text{
    font-size: 2.5em;
    font-weight: 300;
    color: rgba(255,255,255,0.98);
    text-align:center;
    cursor: default;
}

.last{
    position: absolute;
    top: 30px;
    left: 115px;
    font-family: 'Lato';
    font-size: 11px;
    font-weight: 400;
    color: rgba(255,255,255,0.6);
    cursor: default;
}

/* M E S S A G E S */

.chat {
    list-style: none;
    background: none;
    margin: 0;
    padding: 0 0 50px 0;
    margin-top: 20%;
    margin-bottom: 10px;
}
.chat li {
    padding: 0.5rem;
    overflow: hidden;
    display: flex;
}
.chat .avatar {
    width: 40px;
    height: 40px;
    position: relative;
    display: block;
    z-index: 2;
    background-color: rgba(255,255,255,0.9);
}
.chat .avatar .user_avatar {
    width: 40px;
    height: 40px;
    padding:0;
    background-color: rgba(255,255,255,0.9);
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.self {
    justify-content: flex-end;
    align-items: flex-end;
}

.self .avatar {
    order: 2;
}


.msg {
    background: white;
    min-width: 50px;
    padding: 10px;
    border-radius: 2px;
    box-shadow: 0px 2px 0px rgba(0, 0, 0, 0.07);
    margin:10px;
}
.msg p {
    font-size: 1.2rem;
    margin: 0 0 0.2rem 0;
    color: #777;
}
.msg img {
    position: relative;
    display: block;
    width: 450px;
    border-radius: 5px;
    box-shadow: 0px 0px 3px #eee;
    transition: all .4s cubic-bezier(0.565, -0.260, 0.255, 1.410);
    cursor: default;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.self .msg{
    background-color:rgb(3,143,191);
}
.self .msg p{
    color:white;
}

.msg img{width:200px;}

.server_broadcast {
    color:white!important;
    background-color:#D12222;
}
.server_broadcast .msg{
    color:white!important;
    background-color:#D12222;
    box-shadow: none;
}
.server_broadcast .msg p {
    color:white!important;
}
.server_broadcast .avatar{
    background-color:transparent!important;
}
.server_broadcast .avatar .user_avatar{
    background-color:transparent!important;
}


@media screen and (max-width: 800px) {
    .msg img {
        width: 300px;
    }
}
@media screen and (max-width: 550px) {
    .msg img {
        width: 200px;
    }
}


@-webikt-keyframes pulse {
    from {
        opacity: 0;
    }
    to {
        opacity: 0.5;
    }
}

::-webkit-scrollbar {
    min-width: 12px;
    width: 12px;
    max-width: 12px;
    min-height: 12px;
    height: 12px;
    max-height: 12px;
    background: #e5e5e5;
    box-shadow: inset 0px 50px 0px rgba(82,179,217,0.9), inset 0px -52px 0px #fafafa;
}

::-webkit-scrollbar-thumb {
    background: #bbb;
    border: none;
    border-radius: 100px;
    border: solid 3px #e5e5e5;
    box-shadow: inset 0px 0px 3px #999;
}

::-webkit-scrollbar-thumb:hover {
    background: #b0b0b0;
    box-shadow: inset 0px 0px 3px #888;
}

::-webkit-scrollbar-thumb:active {
    background: #aaa;
    box-shadow: inset 0px 0px 3px #7f7f7f;
}

::-webkit-scrollbar-button {
    display: block;
    height: 26px;
}

/* T Y P E */

input.textarea {
    position: fixed;
    bottom: 0px;
    width: inherit;
    height: 50px;
    z-index: 99;
    background: #fafafa;
    border:solid #AAA 1px;
    outline: none;
    padding-left: 15px;
    padding-right: 55px;
    color: #666;
    font-weight: 400;
}


#chatsend{
    background:url(../images/send.svg);
    width:45px;
    height:45px;
    border:none;
    position: fixed;
    bottom: 0px;
    right: 0px;
    z-index: 100;
    background-size: contain;
    background-repeat: no-repeat;
    cursor:pointer;
}

#chatpreset{
    background:url(../images/chaticon.svg);
    width:45px;
    height:45px;
    border:none;
    position: fixed;
    bottom: 0px;
    right: 50px;
    z-index: 100;
    background-size: contain;
    background-repeat: no-repeat;
    cursor:pointer;
}

#chatstickers{
    background:url(../images/stickers.svg);
    width:45px;
    height:45px;
    border:none;
    position: fixed;
    bottom: 0px;
    right: 100px;
    z-index: 100;
    background-size: contain;
    background-repeat: no-repeat;
    cursor:pointer;
}

.heading-icon{
    background-color:grey;
    border-radius:50%;
    width:2em;
    height:2em;
    text-align:center;
    line-height:2em;
    border:solid white 2px;
}

.exit-icon{
    position:absolute;
    right:0.5em;
    top:0.5em;
    cursor:pointer;
}

.exit-icon img{
    width:85%;
}


























#context-menu {
    position: fixed;
    z-index: 10000;
    width: 250px;
    background: #1b1a1a;
    border-radius: 5px;
    transform: scale(0);
    transform-origin: top left;
}

#context-menu.visible {
    transform: scale(1);
    transition: transform 200ms ease-in-out;
}

#context-menu .item {
    padding: 8px 10px;
    font-size: 15px;
    color: #eee;
    cursor: pointer;
    border-radius: inherit;
}

#context-menu .item:hover {
    background: #343434;
}






#context-menu-stickers {
    position: fixed;
    z-index: 10000;
    width: 250px;
    height: 250px;
    background: #1b1a1a;
    border-radius: 5px;
    transform: scale(0);
    transform-origin: top left;
    overflow-x: scroll;
    overflow-x: hidden;
}

#context-menu-stickers.visible {
    transform: scale(1);
    transition: transform 200ms ease-in-out;
}

#context-menu-stickers .item {
    width:40%;
    height:40%;
    padding: 8px 10px;
    font-size: 15px;
    color: #eee;
    cursor: pointer;
    border-radius: inherit;
    float:left;
}

#context-menu-stickers .item .sticker{
    width:100%;
    height:100%;
}

#context-menu-stickers .item:hover {
    background: #343434;
}


