#allMsgBox {
    font-family: "iransans";
    width: 100%;
    padding: 20px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 15px;
    overflow: auto;
    min-height: calc(100vh - 200px);
}
#allMsgBox .msgBox{
    display: flex;
    flex-direction: column;
    justify-content: end;
    gap: 5px;
    /*width: 100%;*/
}
#allMsgBox .msgBox .infoBox{
    width: fit-content;
}
#allMsgBox .msgBox .bottomBox{
    display: flex;
    gap: 10px;
    align-items: center;
    width: fit-content;
}
#allMsgBox .msgBox .bottomBox{
    flex-direction: row-reverse;
    justify-content: flex-end;
}

#allMsgBox .msgBox.sent{
    direction: rtl;
}
#allMsgBox .msgBox.receive{
   direction: ltr;
}
#allMsgBox .msgBox .profile{
    width: 46px;
    height: 46px;
    border-radius: 50%;
}
#allMsgBox .msgBox .rightBox{
    display: flex;
    flex-direction: column;
    gap: 5px;
}
#allMsgBox .msgBox  .time{
    font-size: 14px;
    letter-spacing: -0.3px;
    color: #ababab;

    display: block;
    text-align: end;

}
#allMsgBox .msgBox.sent  .time{
    padding-left: 25px;
}
#allMsgBox .msgBox.receive  .time{
    padding-right: 25px;
}
#allMsgBox .msgBox .rightBox .msg{

    border-radius: 10px;
    padding: 15px;
    box-sizing: border-box;
    font-size: 14px;

}
#allMsgBox .msgBox.sent .rightBox .msg{
    background-color: var(--orange);
    color: var(--white);
}
#allMsgBox .msgBox.receive .rightBox .msg{
   color: var(--colortext);
    background-color: var(--white);
}
.writeMsgBox{
    box-shadow: 0px 2px 15px 0px #E89E0026;
    background-color: var(--white);
    border-radius: 20px;
    height: 70px;
    width:calc(100% - 40px);
    margin: 20px;
    display: flex;
    flex-direction:row-reverse;
    align-items: center;
    min-height: 70px;
    justify-content: space-between;
    padding: 20px;
    box-sizing: border-box;
}
.writeMsgBox input{
    border: none;
    font-family: "iransans";
    font-size: 14px;
    color: var(--colorSub);
    text-align: right;
}
.writeMsgBox input:focus-visible{
    border: none;
    outline: none;

}