:root {
    --main-color: #08f;
    --gray-color: #ddd;
    --text-color: rgb(15, 52, 78);
    --lastmessage-color: rgb(70, 77, 82);
    --chat-pop-color: rgb(92, 168, 219);
    --reply-color: rgb(175, 221, 224)
}

img {
    text-indent: -9999px
}

.chat {
    position: fixed;
    display: flex;
    flex-wrap: wrap;
    height: fit-content;
    background-color: var(--chat-pop-color);
    border: 1px solid var(--gray-color);
    border-radius: 10px 10px 0 0;
    width: 20rem;
    bottom: 0;
    left: 1rem;
    z-index: 10
}

.chatDivPop {
    width: 100%;
    display: inline-block
}

.no-chat>p {
    justify-content: center;
    display: flex
}

.chat-pop {
    background-color: rgb(25 201 254);
    color: #fff;
    border: 0;
    border-radius: 10px 10px 0 0;
    width: 100%;
    display: inline-flex;
    justify-content: left;
    align-items: center;
    min-height: 2.5rem
}

.notificaionPop {
    background-color: red;
    color: #fff;
    width: 1.2rem;
    height: 1.2rem;
    position: absolute;
    font-size: 10px;
    top: .7rem;
    right: .8rem;
    border-radius: 10px;
    justify-content: center;
    align-items: center;
    display: none
}

.prev-btn {
    width: 10%;
    display: inline-flex;
    font-size: 20px;
    margin-left: 0;
    border: 0;
    justify-content: center;
    align-items: center;
    background-color: var(--chat-pop-color);
    height: 100%;
    border-radius: 5px 0 0 0;
    display: none
}

.prev-btn:hover {
    background-color: var(--gray-color)
}

.message-box {
    width: 100%;
    height: 20rem;
    padding-top: 5px;
    background-color: #fff;
    display: none;
    overflow-y: scroll;
    animation: fadeIn 0.8s;
    scrollbar-width: none
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.no-chat {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.message-box::-webkit-scrollbar {
    width: 2px
}

.chat-btn {
    width: 100%;
    height: 4rem;
    border: 0;
    color: var(--text-color);
    border-bottom: 1px solid var(--main-color);
    border-radius: 5px 5px 0 0;
    background-color: var(--gray-color);
    margin-top: 0;
    font-size: 20px;
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
    text-align: left
}

.chat-btn:hover {
    background-color: var(--main-color);
    color: #fff
}

.usernameP {
    width: 85%;
    height: 1.6rem;
    display: block;
    pointer-events: none;
    margin: 0;
    margin-left: 1rem;
    overflow-x: hidden;
    overflow-y: hidden
}

.chat-btn-notification-pop {
    display: none;
    width: .5rem;
    height: .5rem;
    border-radius: 10px;
    background-color: var(--text-color);
    position: absolute;
    right: 1rem
}

.chat-btn-notification-pop-throw {
    display: inline-block
}

.lastMessageP {
    margin: 0;
    display: inline-flex;
    font-size: .9rem;
    width: 85%;
    height: 1.5rem;
    white-space: nowrap;
    text-align: left;
    overflow-x: hidden;
    overflow-y: hidden;
    color: var(--lastmessage-color);
    margin-left: 1rem;
    margin-top: .3rem;
    font-family: Arial, Helvetica, sans-serif;
    pointer-events: none
}

.messageI {
    max-width: 80%;
    display: inline-block;
    overflow-x: hidden
}

.iTimeLastMessage {
    width: 20%;
    display: inline-block;
    margin-left: .6rem;
    color: var(--text-color);
    font-family: Arial, Helvetica, sans-serif
}

.btn-container {
    height: fit-content;
    width: 100%
}

.chat-input {
    width: 80%;
    background-color: var(--main-color)
}

/* .input-message {
    position: absolute;
    z-index: 5px;
    bottom: 0;
    width: 63%;
    margin-left: 8px;
    min-height: 2.3rem;
    resize: none;
    height: 3.5rem;
    outline: 0;
    border: 2px solid var(--main-color);
    display: none;
    border-radius: 12px 0 0 12px;
    padding-left: 10px;
    padding-right: 10px
} */
.input-message {
    position: absolute;
    z-index: 5px;
    bottom: 0;
    width: 95%;
    padding-top: 10px;
    margin-left: 8px;
    min-height: 1rem;
    resize: none;
    height: 46px;
    /* line-height: 38px; */
    outline: 0;
    border: 1px solid var(--main-color);
    display: none;
    border-radius: 29px;
    padding-left: 10px;
    padding-right: 28%;
    font-size: 15px;
}

/* .send-message-btn {
    position: absolute;
    bottom: 0;
    right: 14px;
    width: 21%;
    height: 3.5rem;
    background-color: var(--main-color);
    border: 2px solid var(--main-color);
    border-radius: 0 12px 12px 0;
    color: #fff;
    display: none;
    outline: none
} */
.send-message-btn {
    position: absolute;
    bottom: 0;
    right: 9px;
    width: 17%;
    font-size: 15px;
    height: 45px;
    background-color: var(--main-color);
    border: 2px solid var(--main-color);
    border-radius: 0 20px 20px 0;
    color: #fff;
    display: none;
    outline: none;
}

#attach-file-id {
    display: none;
    color: #08f;
    position: absolute;
    bottom: 0;
    cursor: pointer;
    border: 0;
    /* border-bottom: 2px solid var(--main-color); */
    height: 45px;
    line-height: 45px;
    right: 20%;
    width: 8%;
    justify-content: center;
    align-items: center;
    /* background-color: #abaaaa; */
    font-size: 17px;
    text-align: center;
}

.send-message-btn:hover {
    background-color: #99caf5;
    border-color: #77befc;
    color: var(--main-color);
    font-family: "Poppins";
    font-style: bold
}

.send-message-btn:focus {
    outline-style: solid;
    outline-width: 2px;
    outline-color: #fff
}

.singleMessageContainer {
    position: relative;
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    height: fit-content;
    align-items: center;
    padding-top: 1rem
}

singleMessageContainer:hover {
    cursor: pointer
}

.singleMessageContainerSender {
    padding-right: .6rem;
    justify-content: right
}

.singleMessageContainerReceiver {
    padding-left: .6rem;
    justify-content: left
}

.singleMessageContainerAdmin {
    justify-content: center
}

.adminMessage {
    border-radius: 10px 10px 10px 10px;
    background-color: #344350
}

.dateContainer {
    position: relative;
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    height: fit-content;
    justify-content: center;
    align-items: center
}

.messageDiv {
    position: relative;
    word-break: break-all;
    font-size: small;
    color: #fff;
    padding: 5px 5px 5px 5px;
    max-width: 90%;
    height: fit-content;
    width: fit-content;
    min-width: 2.5rem;
    display: flex;
    flex-wrap: wrap;
    text-align: center;
    z-index: 5
}

.messageDivArabic {
    text-align: right
}

.messageDivEng {
    text-align: left
}

.messageP {
    display: block;
    width: 100%;
    margin-bottom: 0rem;
    pointer-events: none
}

.senderMessage {
    border-radius: 5px 5px 0 5px;
    background-color: #5392c9
}

.receiverMessage {
    border-radius: 5px 5px 5px 0;
    background-color: rgb(183, 171, 185)
}

.dateMessage {
    font-size: small;
    border-radius: 15px;
    background-color: rgb(179, 179, 179);
    color: #fff;
    width: fit-content;
    margin-top: 1rem;
    padding: 5px
}

.time-message {
    color: var(--gray-color);
    font-size: 10px;
    justify-self: right;
    align-self: end;
    text-align: end;
    margin-right: 2px;
    width: 100%;
    pointer-events: none
}

.messages-container {
    margin-bottom: 3.5rem;
    width: 100%;
    height: 75%;
    overflow-y: scroll;
    overflow-x: hidden;
    scrollbar-width: none
}

.messages-container::-webkit-scrollbar {
    font-style: italic;
    width: 2px;
    background-color: var(--gray-color)
}

.messages-container::-webkit-scrollbar-thumb {
    font-style: italic;
    width: 2px;
    background-color: var(--main-color)
}

.reply-btn {
    position: absolute;
    width: fit-content;
    border-radius: 5px 5px 0 0;
    height: fit-content;
    background-color: rgb(167, 159, 159);
    color: var(--gray-color);
    outline: none;
    border: 0;
    font-size: .6rem;
    top: -1rem;
    display: none;
    transition: linear;
    right: 3px
}

.clicked-reply-btn {
    display: flex;
    color: var(--text-color)
}

.singleMessageContainer:hover .reply-btn {
    display: flex
}

.reply-p {
    width: 100%;
    font-size: 13px;
    color: #000;
    border-width: 0 0 0 2px;
    border-style: solid;
    align-items: center;
    border-color: #495855;
    margin-bottom: .5rem;
    background-color: var(--reply-color);
    height: fit-content;
    min-height: 1.8rem;
    max-height: 2.5rem;
    word-break: break-all;
    display: block;
    overflow-x: hidden;
    overflow-y: hidden;
    border-radius: 2px;
    padding-left: 5px;
    padding-right: 5px
}

.reply-p-arabic {
    text-align: right
}

.reply-p-en {
    text-align: left
}

/* 
#attach-file-id {
    display: none;
    color: #fff;
    position: absolute;
    bottom: 0;
    border: 0;
    border-bottom: 2px solid var(--main-color);
    height: 1.75rem;
    right: 5rem;
    width: 10%;
    justify-content: center;
    align-items: center;
    background-color: #abaaaa;
    font-size: 20px
} */

/* #attach-file-id:hover {
    cursor: pointer;
    background-color: var(--main-color)
} */
#emoji-id {
    display: none;
    color: #08f;
    position: absolute;
    bottom: 0;
    border: 0;
    cursor: pointer;
    /* border-top: 2px solid var(--main-color); */
    /* border-bottom: 1px solid var(--main-color); */
    height: 45px;
    right: 27%;
    line-height: 45px;
    width: 7%;
    justify-content: center;
    align-items: center;
    /* background-color: #abaaaa; */
    font-size: 17px;
}

/* #emoji-id {
    display: none;
    color: #fff;
    position: absolute;
    bottom: 1.75rem;
    border: 0;
    border-top: 2px solid var(--main-color);
    border-bottom: 1px solid var(--main-color);
    height: 1.75rem;
    right: 5rem;
    width: 10%;
    justify-content: center;
    align-items: center;
    background-color: #abaaaa;
    font-size: 20px
} */

/* #emoji-id:hover {
    cursor: pointer;
    background-color: var(--main-color)
} */

.fileMessage {
    border: 0;
    border-left: 1rem;
    border-style: solid;
    border-color: #a57777;
    width: 100%
}

.fileMessage:hover {
    cursor: pointer;
    background-color: #a57777
}

.downloadSpan {
    pointer-events: none
}

.sending-message {
    width: 50%;
    border-radius: 20px;
    background-color: var(--main-color);
    display: flex;
    text-align: left;
    color: #fff;
    padding-left: .6rem
}

.sentCheckDiv {
    width: 100%;
    display: flex;
    justify-content: right;
    padding-right: 1rem
}

.sentCheck {
    display: flex;
    font-size: .7rem;
    color: var(--text-color)
}