@font-face {
    font-family: "IRANSans-web";
    font-display: auto;
    src: local('IRANSans-web'), url("/lib/fonts/IRANSans-web.eot#iefix") format("embedded-opentype"), url("/lib/fonts/IRANSans-web.woff2") format("woff2"), url("/lib/fonts/IRANSans-web.woff") format("woff"), url("/lib/fonts/IRANSans-web.ttf") format("truetype"), url("/lib/fonts/IRANSans-web.svg#IRANSans-web") format("svg")
}

*:not(.ltr):not(.IRANSans):not(.la):not(.las):not(.lab):not(.fa):not(.glyphicon):not(.mdtp__digit):not(.mdtp__time_holder):not(.mce-ico):not(.bx):not(.k-icon):not([class^="icofont-"]):not([class*="icofont"]):not([class*="language-"]) {
    font-family: IRANSans-web !important;
    direction: rtl !important;
}

.IRANSans {
    font-family: IRANSans-web !important;
}

.ltr {
    direction: ltr !important;
}


html {
    position: relative;
    min-height: 100%;
}

:root {
    --color1: #262626;
    --my-msg: #2036b4;
    --theme: #dfffc700;
}

.user-row {
    display: flex;
    grid-template-rows: 100px
}

.user-avatar {
    width: 40px;
}

.user-avatar-30 {
    width: 30px;
}

.user-name-chat {
    width: calc(100% - 40px);
    padding-left: 5px;
}

.my-msg {
    border-radius: 14px;
    /*margin: 0 17px 16px 27px !important;*/
    /*border: 1px solid #43ff43;*/
    background: #d4d1d1;
    color: black;
    box-shadow: 0 .125rem .25rem rgba(0,0,0,.075) !important;
    position: relative;
    /*display: flow-root;*/
    width: fit-content;
    min-width: 150px;
    max-width: 80%;
    min-width: 150px;
    position: relative;
}
/*.bottom-nav::before, .bottom-nav::after {
    transform: rotate(2.5deg);
    background-image: linear-gradient(45deg, #e4d101 0%, #013ce3 100%);
    content: "";
    position: absolute;
    z-index: 0;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    border-radius: 0.75rem;
    left: -0.5rem;
    right: -0.5rem;
}*/
    .my-msg:not(.like-before):before {
        border-left: 11px solid #d4d1d1;
        content: " ";
        position: absolute;
        z-index: -1;
        bottom: -7px;
        right: 1px;
        height: 21px;
        width: 16px;
        border-bottom-left-radius: 30px;
    }

.others-msg {
    border-radius: 14px;
    /*margin: 0 68px 0px 14px;*/
    /*border: 1px solid #ffc107;*/
    background: #666666;
    color: white;
    box-shadow: 0 .125rem .25rem rgba(0,0,0,.075) !important;
    position: relative;
    width: fit-content;
    min-width: 150px;
    position:relative;
}

    .others-msg:not(.like-before):before {
        border-right: 11px solid #666666;
        content: " ";
        position: absolute;
        z-index: -1;
        bottom: -7px;
        left: 3px;
        height: 26px;
        width: 16px;
        border-bottom-right-radius: 30px;
    }

.call-msg {
    border-radius: 17px;
    margin: 0 68px 0px 14px;
    margin-left: auto;
    margin-right: auto;
    width: fit-content;
    border: 1px solid;
    box-shadow: 0 .125rem .25rem rgba(0, 0, 0, .075) !important;
    position: relative;
    display: flow-root;
    background: white;
}
/***********************/
.nav-menu {
    background: red;
    backdrop-filter: blur(15px);
    margin-bottom: calc(-100vh - 1px);
}
/****************************/
activity, .activity, .nav-menu {
    background: #ffffff;
    position: absolute;
    height: calc(100% - -124px);
    min-width: 320px;
    /* box-shadow: rgb(0 0 0 / 35%) 0px 5px 15px; */
    border: 0px solid black;
    overflow: hidden;
    width: 100%;
    padding-bottom: 153px;
}

#nav-menu {
    background: #00000061 !important;
    backdrop-filter: blur(3px);
}

@media screen and (max-width:575.9px) {
    activity, .activity, .nav-menu {
        height: calc(100% - 0px);
        border-radius: 0;
        border: 0;
        box-shadow: unset;
        margin-top: 0;
    }

    #notch {
        display: none;
    }

    #clock {
        position: absolute !important;
        top: 2px !important;
        margin-left: auto;
        margin-right: 75%;
    }
}

.list-group-item {
    background-color: transparent;
    border: 1px solid rgb(179 179 179 / 13%);
}

activity ul, .activity ul {
    padding: 0px;
}

activity > activityhead, .activity > .header {
    background: var(--theme);
    height: 60px;
    display: block;
    border-bottom: 0px solid gray;
    padding: 11px 5px 11px 5px;
}

.fab1 {
    position: absolute;
    bottom: 10px;
    z-index: 50;
    /*bottom: 70px;*/
    right: 10px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid #222020;
    font-size: 2rem;
    color: wheat;
}

.btn-group > .btn-group > .btn, .btn-group > .btn-group > .btn {
    border-radius: 0;
}

.btn-group > .btn-group:first-child > .btn, .btn-group > .btn:first-child:not(.dropdown-toggle) {
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.btn-group > .btn-group:not(:first-child) > .btn, .btn-group > .btn:nth-child(n+3), .btn-group > :not(.btn-check) + .btn {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    border-top-left-radius: 4px;
    border-bottom-left-radius: 4px;
}


.last-chat {
    max-height: 16px;
    overflow: hidden;
    line-height: 1;
    font-size: .8em;
}

.popover2 {
    /* bottom: 106px; */
    /* width: 100%; */
    position: relative;
    background: white;
    left: 4px;
    right: 0px;
    /* border-radius: 7px; */
    border: 1px solid #efc26e;
    margin-top: -1px;
    margin-bottom: -5px;
    display: none;
}

.no-rm {
    margin-right: -12px;
}

.no-lm {
    margin-left: -12px;
}

.btn-link {
    text-decoration: none;
}

.btn-outline-primary:hover {
    background-color: #0d6efd !important;
}

.replay-div {
    border-radius: 3px;
    border-left: 3px solid;
    color: #ffffff;
    box-shadow: 0 0.05rem 0.15rem rgb(0 0 0 / 31%) !important;
    padding: 0.5rem !important;
    margin-right: .1rem !important;
    margin-left: .1rem !important;
    margin-bottom: .5rem !important;
    background: #494949;
}

.modal-title {
    line-height: 1;
}

.emoji-react {
    display: inline-table;
    width: max-content;
}

    .emoji-react > button {
        font-size: 20px !important;
    }

.reacted-div {
    display: flex;
    /*position: absolute;*/
    top: -17px;
}

    .reacted-div > span {
        background: #00000036;
        border-radius: 9px;
        padding: 0 3px;
        height: 19px;
        white-space: nowrap;
        font-size: 14px;
        color: white;
        cursor: pointer;
    }

.avatar {
    vertical-align: middle;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    text-align: center;
    background-size: cover !important;
}

.avatar-30 {
    vertical-align: middle;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    text-align: center;
}

.form-control {
    /*background-color: #fff0;*/
    /*color: wheat;*/
}

    .form-control:focus {
        background-color: #fff0;
        /*color: wheat;*/
        box-shadow: 0 0 0 0.1rem rgb(13 110 253 / 25%);
    }

.header > label {
    color: wheat;
}

.text-primary, .btn-link {
    color: #609cee !important
}

#msg-preview {
    /*   content: '';
    position: absolute;
    left: 0px;
    right: 0px;
    height: 50%;
    bottom: 0px;
    background: linear-gradient(180deg, rgba(139,167,32,0) 0%, rgba(255,255,255,1) 100%);
    pointer-events: none;*/
    -webkit-mask: linear-gradient(105deg, rgba(0, 0, 0, 0) 0px, rgba(0, 0, 0, 0) 18.0001px, rgb(240 240 240 / 12%) 18.0001px), linear-gradient(1deg, rgba(0, 0, 0, 0) 0px, rgba(0, 0, 0, 0) 32.8px, rgb(255 255 255) 68.8002px);
    /*-webkit-mask: linear-gradient(0deg, rgba(0, 0, 0, 0) 0px, rgba(0, 0, 0, 0) 18.0001px, rgb(0, 0, 0) 18.0001px), linear-gradient(270deg, rgba(0, 0, 0, 0) 0px, rgba(0, 0, 0, 0) 32.8px, rgb(0, 0, 0) 68.8002px);*/
}

#notch {
    position: absolute;
    top: 18px;
    background: black;
    height: 17px;
    width: 90px;
    border-radius: 10px;
    z-index: 4;
}

.btn-imoji {
    padding: 2px;
}

/*************** .box **************************/
.box {
    display: flex;
    flex-flow: column;
    /*height: 100%;*/
}

    .box .header {
        flex: 0 1 auto;
        /* The above is shorthand for:
                                          flex-grow: 0,
                                          flex-shrink: 1,
                                          flex-basis: auto
                                          */
    }

    .box .content {
        flex: 1 1 auto;
        overflow: auto;
    }

    .box .footer {
        flex: 0 1 60px;
    }
/*************** .box **************************/




.list-group-flush > .list-group-item:last-child {
    border-bottom-width: 1px;
}


.modal-activity {
    position: absolute;
    height: calc(99vh - 9px);
    min-width: 320px;
    border-radius: 40px;
    overflow: hidden;
    margin-top: 3px;
    max-width: 354px;
    z-index: 1;
    padding-top: 50px;
    box-shadow: unset;
    border: unset;
    backdrop-filter: blur(3px);
    background: transparent;
    overflow: hidden;
}

    .modal-activity .header {
        background: #686868;
        border-radius: 30px 30px 0 0;
        padding-top: 16px;
        margin: 0 -5px;
    }

    .modal-activity .content {
        background: #686868;
        padding: 0 12px;
        margin: 0 -5px;
    }

    .modal-activity .footer {
        background: #686868;
        margin: 0 -5px;
        border-radius: 0 0 30px 30px;
    }

.back-btn {
    display: none;
}

.btn-success {
    color: #fff;
    background-color: #2eff9e;
    border-color: #21e489;
}

@media screen and (max-width:750px) {
    .div-chats {
        position: absolute !important;
        z-index: 22;
        left: 0;
        width: 100%;
        top: 0;
        height: 100%;
    }

    .back-btn {
        display: unset;
    }
}

@media screen and (min-width:749px) {
    .emoji-div {
        position: absolute;
        bottom: 205px;
        left: 15px;
    }
}

@media screen and (max-width:750px) {
    .picmo__picker {
        width: 100% !important;
        border-radius: 0 !important;
    }
}

.emoji-picker__wrapper {
    z-index: 11;
}




#name2-lbl, .navbar-brand {
    color: black;
}

.call-btn {
    background: #9494942e;
    color: white;
    border: 0px solid #9090ff3d;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    backdrop-filter: blur(11px);
}

    .call-btn > i {
        filter: brightness(2.5);
    }

    .call-btn.active {
        background: #ffffff;
        border: 1px solid #ffffff;
    }

        .call-btn.active > i {
            filter: brightness(0);
        }

    .call-btn[disabled] {
        opacity: .3;
        cursor: not-allowed;
    }

.call-btn2 {
    background: #9494942e;
    color: white;
    border: 0px solid #9090ff3d;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    backdrop-filter: blur(11px);
}

    .call-btn2 > i {
        filter: brightness(2.5);
        font-size: 24px;
    }

#callingDialog.minimize {
    height: 70px;
    overflow: hidden;
    padding: 0 !important;
}

    #callingDialog.minimize .callingDialog-btns {
        bottom: 0px;
    }

    #callingDialog.minimize .videoArea {
        display: none;
    }

.callingDialog-btns {
    position: absolute;
    z-index: 11;
    bottom: 23px;
    width: 100%;
    right: 0;
}



.btn-check:focus + .btn, .btn:focus {
    outline: 0;
    box-shadow: unset;
}

.remote-videos-grid {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
    gap: 4px;
    z-index: 11;
    /*background: #000;*/
    /*border-radius: 15px;*/
    overflow: hidden;
    padding: 4px;
}

    .remote-videos-grid.multi-video {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        grid-template-rows: repeat(auto-fit, minmax(150px, 1fr));
    }

.remote-peer-video {
    /*width: 100%;*/
    height: 100%;
    max-width: 100%;
    /*object-fit: fill;*/
    border-radius: 8px;
    border: 2px solid transparent;
    background: #000;
    margin-left: auto;
    margin-right: auto;
}

#localVideoDiv {
    border-color: #50d250;
    position: absolute;
    width: 106px;
    height: 106px;
    top: 4px;
    right: 4px;
    z-index: 12;
    backdrop-filter: blur(20px);
    border-radius: 10px;
    margin-left: unset;
    margin-right: unset;
}



.remote-videos-grid.pip-mode .remote-peer-video:first-child {
    object-fit: contain;
}

.remote-videos-grid:not(.pip-mode):not(.screen-share) > div {
    width: 100%;
    height: 100%;
}



/* Screen share layout: screen fills container, others in bottom thumbnails */
.remote-videos-grid.screen-share {
    position: relative;
    display: block;
    overflow: hidden;
    height: 100%;
}

    .remote-videos-grid.screen-share #screenVideo {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: contain;
        z-index: 1;
        border: none;
        max-width: 100%;
        margin: 0;
        border-radius: 0;
    }

#videoThumbnailBar {
    position: absolute;
    bottom: 80px;
    right: 0;
    /*transform: translateX(-50%);*/
    z-index: 10;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    background: rgba(0, 0, 0, 0.6);
    padding: 6px 10px;
    border-radius: 12px;
    max-width: 90%;
    overflow-x: auto;
}

    #videoThumbnailBar > div {
        width: 130px !important;
        height: 85px !important;
        position: relative !important;
        flex-shrink: 0;
        margin: 0 !important;
    }

    #videoThumbnailBar .remote-peer-video {
        width: 100% !important;
        height: 100% !important;
        max-width: 100% !important;
        object-fit: cover !important;
        border-radius: 6px;
        margin: 0 !important;
    }

    #videoThumbnailBar .elLbl {
        font-size: 10px;
        padding: 1px 4px;
    }



@media screen and (max-width:600px) {
    .remote-videos-grid.multi-video {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        grid-template-rows: repeat(auto-fit, minmax(100px, 1fr));
    }

    #videoThumbnailBar {
        bottom: 70px;
        padding: 4px 8px;
        gap: 6px;
    }

        #videoThumbnailBar > div {
            width: 90px !important;
            height: 65px !important;
        }
}

.la, .las {
    color: black;
}


.videoArea {
    width: 100%;
    max-height: 100%;
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    height: 100%;
    display: flex;
}

.onlineUsers {
    width: 15%;
    background: #000;
    border-radius: 15px;
    margin: 2px;
    color: white;
}

.videoParts {
    width: 100%;
    position: relative;
    border-radius: 15px;
}

@media screen and (max-width:600px) {
    .onlineUsers {
        width: 100%;
        height: 80px;
        margin: 0px;
        border-radius: 0px;
        display: inline-flex;
        padding: 10px;
    }

        .onlineUsers > div {
            background: #464646;
            padding: 10px;
            margin-left: 10px;
            border-radius: 10px;
        }

    .videoParts {
        width: 100%;
        height: 100%;
    }

    .videoArea {
        flex-direction: column;
    }

    .fab1 {
        bottom: 100px;
    }
}


.list-group-item.active {
    z-index: 2;
    color: #000000;
    background-color: #0000000f;
    border-radius: 16px;
    border: 0px solid #f0f0f0;
}

.text-black-50 > i {
    color: #939393;
}

#accept_btn {
    background: #00ff1487;
    color: white;
    height: 80px;
    width: 80px;
    border-radius: 50%;
    border: 0;
    margin: 20px;
}

#decline_btn {
    background: red;
    color: white;
    height: 80px;
    width: 80px;
    border-radius: 50%;
    border: 0;
    margin: 20px;
}


#messages-div {
    flex: 1;
    overflow: auto;
    width: 100%;
    background: #5f5f5f0f;
    padding-bottom: 60px;
    padding-top: 10px;
}

@media screen and (min-width:1200px) {
    #messages-div {
        padding: 0 193px !important;
        padding-top: 10px !important;
    }
}


.elLbl {
    background: #ffed007a;
    position: absolute;
    z-index: 20;
    top: 0;
    text-align: center;
    border-radius: 6px;
    font-size: small;
}

.call-time {
    position: absolute;
    left: 44%;
    top: -16px;
    color: #0ff50f;
    background: #e797007a;
    padding: 0 4px;
    border-radius: 9px;
    margin-right: auto;
    margin-left: auto;
}


.bottom-nav {
    font-size: 14px;
    z-index: 10;
    overflow: hidden;
    padding: 6px 0px;
    line-height: 1.2;
    position: absolute;
    bottom: 0;
    background: var(--theme);
    background: var(--theme);
    bottom: 10px;
    border: 1px solid;
    width: 90% !important;
    border-radius: 17px;
    /* margin-right: auto; */
    /* margin-left: auto; */
    right: 5%;
    backdrop-filter: blur(14px);
}

.modal-header {
    border-bottom: none;
}

.modal-content {
    border-radius: 27px;
    background: #ffffffb8;
    backdrop-filter: blur(8px);
}

.record-btn.active, #emoji-btn.active {
    background: #fcfcfc;
    border-radius: 7px !important;
    filter: invert(1);
}

.btn-paly-audio {
    height: 45px;
    width: 45px;
    border-radius: 50%;
    border: 1px solid #000000;
    background: black;
    padding: 4px 0 0 0;
}

.audio-container {
    display: flex;
    align-items: center;
    gap: 10px;
}
/****************/
.audio-wave {
    display: flex;
    align-items: end;
    height: 37px;
    width: 70px;
    gap: 2px;
    /*visibility: hidden;*/
}
    .audio-wave span {
        width: 4px;
        min-height:1px;
        background: #000;
        border-radius: 2px;
    }
    .audio-wave.playing {
        visibility: visible;
    }
        .audio-wave.playing span:nth-child(1) { animation: wave 0.8s infinite;           }
        .audio-wave.playing span:nth-child(2) { animation: wave 0.6s infinite 0.1s;      }
        .audio-wave.playing span:nth-child(3) { animation: wave 1s infinite 0.2s;        }
        .audio-wave.playing span:nth-child(4) { animation: wave 0.7s infinite 0.15s;     }
        .audio-wave.playing span:nth-child(5) { animation: wave 0.5s infinite 0.15s;     }
        .audio-wave.playing span:nth-child(6) { animation: wave 0.3s infinite 0.15s;     }
        .audio-wave.playing span:nth-child(7) { animation: wave 0.3s infinite 0.25s;     }
        .audio-wave.playing span:nth-child(8) { animation: wave 0.4s infinite 0.19s;      }
        .audio-wave.playing span:nth-child(9) { animation: wave 0.5s infinite 0.15s;     }
        .audio-wave.playing span:nth-child(10) { animation: wave 0.3s infinite 0.15s;     }
        .audio-wave.playing span:nth-child(11) { animation: wave 0.3s infinite 0.25s;     }
        .audio-wave.playing span:nth-child(12) { animation: wave 0.4s infinite 0.19s;      }
@keyframes wave {
    0%, 100% {
        height: 4px;
    }

    50% {
        height: 20px;
    }
}
/****************/

#forward-copy-replay-div {
    background: #f4f4f4;
    font-size: 10px;
    border-radius: 4px 10px 10px 4px;
    border: 1px solid #e2e2e2;
    border-left: 4px solid #e2e2e2;
}

.msg-context-menu {
    background: transparent;
    border:0;
}

    .msg-context-menu ul {
        border-radius: 16px;
        background: transparent;
        backdrop-filter: blur(38px);
        list-style: none;
    }

.emoji-react > span{
    font-size:20px !important;
}
    .emoji-react > span:hover {
        background: #e6e6e6;
    }

.modal-title .la-2x {
    font-size: 1.7em !important;
}

#main-msg-div {
    display: flex;
    flex-direction: column;
    height: 96%;
}

@media screen and (max-width:700px) {
    #main-msg-div {
        height: 115%;
    }
}