/* html{
    height: 100%;
} */
html, body{
    user-select: none;
    /* background: rgb(147,206,222); 
    background: -moz-linear-gradient(left,  rgba(147,206,222,1) 0%, rgba(117,189,209,1) 41%, rgba(73,165,191,1) 100%); 
    background: -webkit-linear-gradient(left,  rgba(147,206,222,1) 0%,rgba(117,189,209,1) 41%,rgba(73,165,191,1) 100%); 
    background: linear-gradient(to right,  rgba(147,206,222,1) 0%,rgba(117,189,209,1) 41%,rgba(73,165,191,1) 100%); 
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#93cede', endColorstr='#49a5bf',GradientType=1 ); 
     */
     
     background-color: #0f293f;
    width: 100%;
    height: 100%;
}
body {
    
    margin: 0;
    /* padding-bottom: 3rem; */
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

    /* Permalink - use to edit and share this gradient: https://colorzilla.com/gradient-editor/#93cede+0,75bdd1+41,49a5bf+100;Blue+3D+%235 */

}
#chatbox{
    display:block;
    max-width: 640px;
    width: 100%;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    padding-bottom: 100px;
    min-width: 340px;
    /* border-bottom: 50px solid pink; */
    /* height: 100%; */
}
#form {
    background: rgba(0, 0, 0, 0.15);
    padding: 0.25rem;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    height: 3rem;
    height: auto;
    min-height: 3rem;
    box-sizing: border-box;
    backdrop-filter: blur(10px);
}

#input {
    border: none;
    padding: 0 1rem;
    padding: 0.25rem 1rem;
    flex-grow: 1;

    border-radius: 2rem;
    border-radius: 15px;
    
    margin: 0.25rem;

    font-family: sans-serif;
    /* background-color: violet; */
    background-color: #ccc;
    background-color: #eee;
    font-size: 1rem;

    /* display: flex;
    justify-content: center;
    align-items: center; */
    /* box-sizing: border-box; */

}

#input:focus {
    outline: none;
}

#form>button {
    background: #333;
    border: none;
    padding: 0 1rem;
    margin: 0.25rem;
    border-radius: 3px;
    outline: none;
    color: #fff;
}
#nameinfo{
    position: absolute;
    left: 0;
    top: 0;
    transform: translateY(-100%);
    background-color: #000;
    background-color: rgba(0, 0, 0, 0.15);
    /* width: 100%; */
    font-size: 0.7rem;
    color: #ccc;
    padding: 3px 5px;
    border-top-right-radius: 5px;
    /* border-top: 1px solid #ccc; */
}
#messages {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

#messages>li {
    padding: 5px;
    box-sizing: border-box;
}


.box{
    width: 100%;
    min-height: 40px;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: flex-start;
}
.box.self{
    justify-content: flex-end;
}
.box_user{
    width: 40px;
    height: 40px;
}
.box_content{
    max-width: calc( 100% - 40px);
    
    padding: 0px 75px 0px 5px;
    box-sizing: border-box;
}
.self .box_content{
    padding: 0px 5px 0px 75px;
}
.box_initials{
    background-color: royalblue;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    font-size: 18px;
    font-weight: normal;
    width: 40px;
    height: 40px;
}
/* .box_initials2{
    font-size: 22px;
}
.box_initials3{
    font-size: 18px;
} */

.box_namedate{
    width: 100%;
    padding: 0;
    font-size: 10px;
    box-sizing: border-box;
    color: #ccc;
}
.self .box_namedate{
    text-align: right;
}
.box_msg{
    padding: 5px 10px;
    font-size: 16px;
    line-height: 1.3em;
    background-color:aliceblue;
    border-radius: 20px;
    word-break: break-word;
    /* background-color: #eee; */
    /* border-radius: 10px; */
    max-height: 50vh;
    overflow-y: auto;
    user-select: text;
}
.box_msg a{
    text-decoration: none;
    font-weight: bold;
    color: #000;
    word-break: break-all;

}
.self .box_msg{
    background-color:bisque;
}

/* ++++++++++++++++++++++++++++++++++ */
/* Emoji */
/* ++++++++++++++++++++++++++++++++++ */

.tooltip:not(.shown) {
    display: none;
}

.shown {
    /* transform: translate(0px, 50%) !important;
    inset: auto auto 0px 0px !important;
    float: right; */
    /* position: relative !important; */
    /* position: absolute !important; */
    transform: translate(0) !important;
    transform: translateY(-100%) !important;
    inset: auto !important;
}
#toggleemoji{
    padding: 10px;
    cursor: pointer;
    transform: scale(1.2);
}
/* #toggleemoji:hover{
} */
#toggleemoji.active{
    background-color: #000 !important;
}


/* ++++++++++++++++++++++++++++++++++ */
/* colors */
/* ++++++++++++++++++++++++++++++++++ */

.initialscolor-a{
    background-color: #f7b172;
}
.initialscolor-b{
    background-color: #b0c964;
}
.initialscolor-c{
    background-color: #eec843;
}
.initialscolor-d{
    background-color: #87d9c3;
}
.initialscolor-e{
    background-color: #bfb0d1;
}
.initialscolor-f{
    background-color: #bfbdbe;
}
.initialscolor-g{
    background-color: #a2a2a2;
}
.initialscolor-h{
    background-color: #c9b43d;
}
.initialscolor-i{
    background-color: #be9867;
}
.initialscolor-j{
    background-color: #e6b49d;
}
.initialscolor-k{
    background-color: #f0a1a7;
}
.initialscolor-l{
    background-color: #aa8c92;
}
.initialscolor-m{
    background-color: #45bacb;
}
.initialscolor-n{
    background-color: #46be77;
}
.initialscolor-o{
    background-color: #c29552;
}
.initialscolor-p{
    background-color: #e27a53;
}
.initialscolor-q{
    background-color: #fb7a38;
}
.initialscolor-r{
    background-color: #549cce;
}
.initialscolor-s{
    background-color: #30a29a;
}
.initialscolor-t{
    background-color: #a66e4b;
}
.initialscolor-u{
    background-color: #f45b55;
}
.initialscolor-v{
    background-color: #017f7c;
}
.initialscolor-w{
    background-color: #ba6c58;
}
.initialscolor-x{
    background-color: #d04035;
}
.initialscolor-y{
    background-color: #cf212b;
}
.initialscolor-z{
    background-color: #c71859;
}
.initialscolor-0{
    background-color: #7d5379;
}
.initialscolor-1{
    background-color: #ae5e99;
}
.initialscolor-2{
    background-color: #477050;
}
.initialscolor-3{
    background-color: #592b36;
}
.initialscolor-4{
    background-color: #5d6b91;
}
.initialscolor-5{
    background-color: #5269b2;
}
.initialscolor-6{
    background-color: #5a37e7;
}
.initialscolor-7{
    background-color: #bc5353;
}
.initialscolor-8{
    background-color: #49486f;
}
.initialscolor-9{
    background-color: #007acc;
}