* {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

html,body {
    height: 100%;
    overflow: hidden;
}

body {
    direction: rtl;
    margin: 0;
    padding: 0;
    font-weight: 400;
    font-family: "Yekan Bakh",yekan bakh,yekan, Helvetica, Arial, sans-serif;
    font-size: 1rem;
    line-height: 1.58;
    color: #333;
    /*  background-color: #f4f4f4; */
    height: 100%;



    /* Center and scale the image nicely */
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

body:before {
    height: 50%;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
}

.clearfix:after {
    display: block;
    content: "";
    clear: both;
}
.container {
    background: #e3e3e3;
    border-radius: 0.5rem;
    height: calc(100vh - 1rem);
    width: calc(100% - 1rem);
    margin: 0 auto;
}
.hidden {
    display: none;
}

.form-control {
    width: 100%;
    min-height: 38px;
    font-size: 15px;
    border: 1px solid #c8c8c8;
    font-family: "Yekan Bakh",yekan bakh,yekan;
    padding: 5px;
    border-radius: 10px;
}

.form-group {
    margin-bottom: 15px;
    display: flex;
}

input {
    padding-left: 10px;
    outline: none;
}

h1, h2, h3, h4, h5, h6 {
    margin-top: 20px;
    margin-bottom: 20px;
    font-family: PeydaFaNum;
}

h1 {
    font-size: 1.7em;
}

a {
    color: #128ff2;
}

button {
    border:none;
    color:white;
    outline: none;
    vertical-align: middle;
    padding: 0.6rem 1rem;
    border-radius: 5px;
    background-color: #0E5445;
    cursor: pointer;
    font-family: inherit;
}
button.default {
    background-color: transparent;
    color: #ffffff;
    box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.12);
}

button.primary {
    background-color: transparent;
    box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.12);
    color: #fff;
}

button.accent {
    background-color: transparent;
    box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.12);
    color: #fff;
}

#username-page {
    text-align: center;
}

.username-page-container {
    background: #fff;
    box-shadow: 0 1px 11px rgba(0, 0, 0, 0.27);
    border-radius: 2px;
    width: 100%;
    max-width: 500px;
    display: inline-block;
    margin-top: 42px;
    vertical-align: middle;
    position: relative;
    padding: 35px 55px 35px;
    min-height: 250px;
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    margin: 0 auto;
    margin-top: -160px;
}

.username-page-container .username-submit {
    margin-top: 10px;
    font-family: "Yekan Bakh",yekan bakh,yekan;
}


#chat-page {
    position: relative;

}

.chat-container {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 1px 11px rgba(0, 0, 0, 0.27);
    border-radius:5px;
    margin-top: 30px;
    height: 100%;
    max-height: 600px;
    position: relative;
}

#chat-page ul {
    list-style-type: none;
    margin: 0;
    overflow: auto;
    overflow-y: scroll;
    padding: 0 5px 0px 5px;
    height: calc(100% - 150px);
    max-height: 470px;
}

#chat-page #messageForm {
    padding: 5px;
}

#chat-page ul li {
    line-height: 1.5rem;
    padding: 10px 10px;
    margin: 0;
    background-color: white;
    margin: 4px;
    border-radius: 10px;
    max-width: 80%;
    /*border-bottom: 1px solid #f4f4f4;*/
}

#chat-page ul li p {
    margin: 0;
}

#chat-page .event-message {
    width: 100%;
    text-align: center;
    clear: both;
}

#chat-page .event-message p {
    color: #faf5f5;
    font-size: 14px;
    word-wrap: break-word;
}

#chat-page .chat-message {
    position: relative;
    display: inline-block;
}

#chat-page .chat-message-left {
    margin-right: 100%;
    float: left;
    min-width: 100px;
    padding: 10px 10px 10px 5px;
}

#chat-page .chat-message i {
    position: absolute;
    width: 42px;
    height: 42px;
    overflow: hidden;
    left: 10px;
    display: inline-block;
    vertical-align: middle;
    font-size: 18px;
    line-height: 42px;
    color: #fff;
    text-align: center;
    border-radius: 50%;
    font-style: normal;
    text-transform: uppercase;
    margin-bottom: 25px;
}

#chat-page .chat-message span {
    color: #ffffff;
    font-weight: 600;
}

#chat-page .chat-message p {
    color: #43464b;
    /*color:#ffffff;*/
}

#messageForm .input-group input {
    float: right;
    width: calc(100% - 95px);
}

#messageForm .input-group button {
    float: right;
    width: 80px;
    height: 38px;
    margin-left: 5px;
    position: absolute;
    z-index: 99;
}

.chat-header {
    text-align: center;
    padding: 15px;
    border-bottom: 1px solid #ffffff;
}

.chat-header h2 {
    margin: 0;
    font-weight: 500;
    color:#333333;
}

.connecting {
    padding-top: 5px;
    text-align: center;
    color: #777;
    position: absolute;
    top: 65px;
    width: 100%;
}
/* update */
li span {
    padding:5px 0;
    border-radius: 5px;
    drop-shadow:5px;
}

.own-message-left {
    text-align: right;
    margin-right: 20%;
}

.own-message {
    text-align: right;
}

.own-message i {
    visibility:hidden !important;
}
.exitBtn{
    position: absolute !important;;
    right: 20px !important;;
    top: 5px !important;;
    border-radius: 40px !important;;
    width: 35px !important;;
    height: 35px !important;;
    padding-right: 13px !important;
}
.attach{
    margin-right: -70px !important;
    width: 40px !important;
    z-index: 999 !important;
    position: relative !important;
    background: content-box !important;
    padding: 7px !important;
}
.attachDiv{
    display: none;
    font-size: 22px;
    width: 280px;
    height: 100px;
    position: fixed;
    background-color: #f4f3f7;
    margin-right: 30%;
    line-height: 10px;
    padding: 10px;
    padding-top: 10px;
    border-radius: 10px;
    bottom : 185px;
}
.attachDiv-span{
    font-size: 15px;
    text-align: center;
    width: 50px;
    display: block;
}
.attachDiv-inner{
    padding: 5px;
    margin: 2px;
}
.attachDiv-img{
    width: 35px;
    margin-right: 7px;
    margin-top: 7px;
}
.attachDiv-img-div{
    background-color: white;
    border-radius: 25px;
    width: 50px;
    height: 50px;
}
.emoji{
    margin-right: -40px !important;
    width: 40px !important;
    z-index: 999 !important;
    position: relative !important;
    background: content-box !important;
    padding: 7px !important;
}
.emojis{
    display: none;
    font-size: 22px;
    width: 310px;
    height: 180px;
    position: fixed;
    background-color: #f4f3f7;
    margin-right: 30%;
    line-height: 10px;
    padding: 10px;
    padding-top: 10px;
    border-radius: 10px;
    padding-top: 25px;
    bottom : 185px;
}
.emojis-span{
    cursor: pointer;
}

/* update end  */
@media screen and (max-width: 730px) {

    .chat-container {
        margin-left: 10px;
        margin-right: 10px;
        margin-top: 10px;
    }
    .emojis{
        bottom: 155px;
    }
}

@media screen and (max-width: 480px) {
    .chat-container {
        width: 100%;
        margin: 0px;
        max-height: 100%;
    }
    .emojis{
        bottom: 85px;
    }
    .username-page-container {
        width: auto;
        margin-left: 45px;
        margin-right: 45px;
        padding: 25px;
    }

    #chat-page ul {
        max-height: 100%;
    }

    #messageForm .input-group button {
        width: 38px;
        display: flex;
        padding: 10px;
        border-radius: 40px;
        margin-right: 10px;
        position: relative;
    }

    #messageForm .input-group input {
        width: calc(100% - 65px);
        margin-right: 7px !important;
    }

    .chat-header {
        padding: 10px;
    }

    .connecting {
        top: 60px;
    }

    .chat-header h2 {
        font-size: 1.1em;
    }
}
.message-count{
    background-color: gray;
    width: 25px;
    height: 20px;
    padding: 0px 7px 0px 5px;
    display: inline-block;
    margin-right: 15px;
    border-radius: 10px;
    font-size: 13px;
    color: white;
    text-align: center;
    float: left;
}
.user-list{
    cursor: pointer !important;
    border-bottom: 1px solid gray !important;
    background-color: rgb(244, 244, 244);
    border-radius: 0px !important;
    margin: 0px !important;
    max-width: 100% !important;
    display: flex !important;
}
.uiBlocker-off{
    display: none;
}
.uiBlocker-p{
    font-size: 40px;
    margin-top: 120px;
    color: #5cff00;
}
.uiBlocker-on{
    display: block;
    background-color: #3e3e3e;
    margin: 0;
    padding: 0;
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 999 !important;
    opacity: 60%;
    text-align: center;
}
.upload-menu{
    cursor: pointer;
    position: absolute;
    height: 80px;
    margin-top: -60px;
    width: 50px;
    margin-right: -25px;
    padding-top: 60px;
}
.context-menu{
    background-color: #3c3c3c;
    color: #d6d6d6;
    display: none;
    position: fixed;
    width: 120px;
    padding: 5px;
    font-size: 12px;
}
.context-menu-div{
    display: flex;
    padding: 2px;
    cursor: pointer;
}
.context-menu-img{
    width: 15px;
    height: 15px;
    margin-top: 4px;
    margin-left: 4px;
}
.context-menu-label{
    margin-top: 3px;
    cursor: pointer;
}
.disable{
    pointer-events: none;
    opacity: 0.3;
}
.prevent-select {
    -webkit-user-select: none; /* Safari */
    -ms-user-select: none; /* IE 10 and IE 11 */
    user-select: none; /* Standard syntax */
}
.check-span {
    position: absolute;
    top: 2px;
    left: 4px;
    height: 10px;
}
#tooltip{
    position: fixed;
    display: block;
    opacity: 0;
    visibility: hidden;
    background: #262626;
    border-radius: 7.5px;
    color: #ccc;
    text-transform: uppercase;
    font-size: 16px;
    padding: 10px 15px;
    border: 2px solid #ccc;

}
#tooltip:before{
    content: "";
    width: 10px;
    height: 10px;
    background: #262626;
    position: absolute;
    top: -10px;
    left: -20px;
    border-radius: 50%;
    border: 2px solid #ccc;
}
.message-time{
    color: gray !important;
    font-size: 10px;
    height: 10px;
}
.message-date{
    width: 80px;
    font-size: 12px;
    height: 20px;
    margin-right: 45% !important;
    float: left;
    margin-left: 45% !important;
}