:root{
    --bg-color: #fff;
    --header-color: #050f1cda;
    --wtxt: #fff;
    --btxt: #000;
    --loader-back: #fffffff6;
    --loader-font: #0c8ff0;
    --scrollbarBG: #fff;
    --thumbBG: #90a4ae;
}
body{
    margin: 0;
    padding: 0;
    font-family: sans-serif;
    background: var(--bg-color);
}
.flx{
    display: flex;
    flex-direction: row;
}
.join-in-box,.create-in-box{
    width: 40%;
    background: var(--bg-color);
    box-shadow: 0px 1px 4px 2px grey;
    border-radius: 10px;
    padding: 10px;
    margin: 10% auto 0% auto;
}
.join-in-box h1,.create-in-box h1{
    font-size: 18px;
    margin: 5px 0px;
}
.join-in-box .join-box,.create-in-box .join-box{
    border: 1px solid grey;
    border-radius: 5px;
    padding: 8px;
    margin: 10px 0px;
}
.join-in-box .join-box .user-img,.create-in-box .join-box .user-img{
    width: 6%;
    overflow: hidden;
}
.join-in-box .join-box .user-img img,.create-in-box .join-box .user-img img{
    position: relative;
    width: 100%;
    margin-top: 4px;
}
.join-in-box .join-box .user-name,.create-in-box .join-box .user-name{
    width: 90%;
    font-size: 14px;
    font-weight: bold;
    display: flex;
    flex-direction: column;
    padding-left: 10px;
}
.join-in-box .join-box .user-name .join-id,.create-in-box .join-box .user-name .join-id{
    color: grey;
    font-size: 12px;
    font-weight: normal;
}
.user-left{
    width: 80%;
}
.user-right{
    width: 20%;
}
.join-in-box .join-box form label,.join-condition h3{
    font-size: 14px;
    font-weight: bold;
    margin: 2px;
}
.join-in-box .join-box form small{
    margin: 0px 0px 5px 0px;
}
.join-in-box .join-box form input{
    border-radius: 5px;
    padding: 8px;
    font-size: 15px;
    border: 1px solid grey;
    color: grey;
    outline: none;
}
.join-in-box .join-box form button{
    display: none;
    margin: 0px 0px auto 5px;
    width: 95px;
    height: 40px;
    cursor: pointer;
}
.join-condition{
    margin-top: 20px;
}
.join-condition ul li{
    font-size: 14px;
}
.join-condition small i{
    color: #007bff;
    cursor: pointer;
    font-style: normal;
    text-decoration: underline;
}
.join-box #error-message,.create-box #error-message{
    margin: 8px 0px 2px 2px;
    color: red;
    display: none;
}
.create-in-box .create-box{
    width: 100%;
    border: 1px solid grey;
    border-radius: 5px;
    padding: 8px;
    margin: 10px 0px;
}
.create-in-box .create-box input,.create-in-box .create-box select{
    width: 100%;
    padding: 8px;
    font-size: 15px;
    border: 0px solid transparent;
    border-bottom: 2px solid grey;
    color: grey;
    margin-bottom: 10px;
    outline: none;
}
.create-in-box .create-box input:hover{
    border: 0px solid transparent;
    border-bottom: 2px solid var(--loader-font);   
}
.create-in-box .flw{
    display: flex;
    flex-direction: row;
    justify-content: right;
}
.create-in-box .flw button{
    margin-right: 5px;
}
.chat-console{
    width: 100%;
    height: 100%;
}
.chat-console header,.join-chat header{
    width: 100%;
    background: var(--header-color);
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    padding: 6px 8px 0px 8px;
}
.chat-console header .flx img,.join-chat header .flx img{
    width: 30px;
    height: 30px;
}
.chat-console header .flx h4,.join-chat header .flx h4{
    font-size: 18px;
    font-weight: bold;
    color: var(--wtxt);
    padding: 6px 6px;
    margin: 0px;
}
.chat-console header .flx span{
    padding: 6px 2px;
    color: whitesmoke;
    font-size: 14px;
}
.chat-console header .menu,.join-chat header .menu{
    width: 5%;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
}
.chat-console header .menu img,.join-chat header .menu img{
    position: relative;
    width: 30px;
    height: 30px;
    margin-top: 4px;
    cursor: pointer;
}
.chat-console header .menu div,.join-chat header .menu div{
    color: var(--wtxt);
}
.chat-console #chat-box{
    width: 100%;
    height: 600px;
    min-height: 80%;
    max-height: 80%;
    background: #dad9d97a;
    overflow: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--thumbBG) var(--scrollbarBG);
}
.chat-console #chat-box .myMessage{
    width: 20%;
    max-width: 45%;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    border: none;
    margin: 10px 4px;
}
.chat-console #chat-box .myMessage .userDp{
    width: 10%;
}
.chat-console #chat-box .myMessage .userDp img{
    position: relative;
    width: 90%;
    margin: 5px auto;
}
.chat-console #chat-box .myMessage .messageStr{
    width: 85%;
    border-radius: 10px;
    background: #007bff;
    color: #fff;
    font-size: 14px;
    padding: 4px 8px;
    word-wrap: break-word;
}
.chat-console form{
    width: 100%;
    padding: 0px;
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    z-index: 1;
    overflow: hidden;
}
.chat-console form #message{
    max-width: 90%;
    min-width: 90%;
    min-height: 60px;
    max-height: 60px;
    margin: 20px auto;
    padding: 8px 6px;
    font-size: 16px;
    border: 1px solid grey;
    border-radius: 10px;
    transition: 1s ease-in-out;
    outline: none;
    scrollbar-width: thin;
    scrollbar-color: var(--thumbBG) var(--scrollbarBG);
}
.chat-console form .send{
    background: transparent;
    cursor: pointer;
    padding: 0;
    position: absolute;
    bottom: 3%;
    right: 6%;
    border: none;
    outline: none;
}
.chat-console form .send .circle{
    position: relative;
    background: var(--header-color);
    border-radius: 5px;
    width: 25px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.chat-console form .send .circle i{
    font-size: 12px;
    color: #fff;
    margin: auto;
    transition: 1s ease-in-out;
}
.loader{
    position: absolute;
    top: 0%;
    left: 0%;
    width: 100%;
    height: 100%;
    background: var(--loader-back);
    z-index: 99;
}
.loading{
    color: var(--loader-font);
    font-size: 45px;
    text-indent: -9999em;
    overflow: hidden;
    width: 1em;
    height: 1em;
    border-radius: 50%;
    position: absolute;
    top: 30%;
    left: 45%;
    transform: translateZ(0);
    animation: spiner 1s infinite ease, round 1s infinite ease;
}  
@keyframes spiner{
    0%{
        box-shadow: 0 -0.83em 0 -0.4em, 0 -0.83em 0 -0.42em, 0 -0.83em 0 -0.44em, 0 -0.83em 0 -0.46em, 0 -0.83em 0 -0.477em;
    }5%,95%{
        box-shadow: 0 -0.83em 0 -0.4em, 0 -0.83em 0 -0.42em, 0 -0.83em 0 -0.44em, 0 -0.83em 0 -0.46em, 0 -0.83em 0 -0.477em;
    }10%,59%{
        box-shadow: 0 -0.83em 0 -0.4em, -0.087em -0.825em 0 -0.42em, -0.173em -0.812em 0 -0.44em, -0.256em -0.789em 0 -0.46em, -0.297em -0.775em 0 -0.477em;
    }20%{
        box-shadow: 0 -0.83em 0 -0.4em, -0.338em -0.758em 0 -0.42em, -0.555em -0.617em 0 -0.44em, -0.671em -0.488em 0 -0.46em, -0.749em -0.34em 0 -0.477em;
    }38%{
        box-shadow: 0 -0.83em 0 -0.4em, -0.377em -0.74em 0 -0.42em, -0.645em -0.522em 0 -0.44em, -0.775em -0.297em 0 -0.46em, -0.82em -0.09em 0 -0.477em;
    }100%{
        box-shadow: 0 -0.83em 0 -0.4em, 0 -0.83em 0 -0.42em, 0 -0.83em 0 -0.44em, 0 -0.83em 0 -0.46em, 0 -0.83em 0 -0.477em;
    }
}  
@keyframes round{
    0%{ 
        transform: rotate(0deg);
    }100%{ 
        transform: rotate(360deg); 
    }
}           
@media only screen and (max-width: 900px){
    .user-left{
        width: 60%;
    }
    .user-right{
        width: 40%;
        text-align: right;
    }
    .join-in-box{
        width: 90%;
        margin: 20% auto 0% auto;
    }
    .join-in-box .join-box .user-img{
        width: 10%;
    }
    .join-in-box .join-box form input{
        margin-bottom: 4px;
        width: 200px;
    }
    .chat-console #chat-box{
        width: 100%;
        /* height: 500px; */
        height: 76vh;
    }
    .chat-console header .menu,.join-chat header .menu{
        width: 15%;
    }
    .chat-console #chat-box .myMessage{
        width: 60%;
        max-width: 60%;
    }
    .chat-console form #message{
        max-width: 95%;
        min-width: 95%;
        max-height: 68px;
        min-height: 68px;
        margin: 5% 2.5% 0px 2.5%;
    }
    .chat-console form .send{
        position: absolute;
        bottom: 5%;
        right: 5%;
    }
}