
/*===* chat box begins *===*/
.wrapper {
    display: flex;
    border-radius: 10px;
    box-shadow: var(--shadow);
    background: white;
    margin: 10px;
}
.sidebar {
    background: #f0f0f0;
    width: 30vw;
    height: 90vh;
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
    position: relative;
    z-index: 9;
    overflow: auto;
    padding-bottom: 10px;
}
.chat-container {
    width: 70vw;
    height: 90vh;
    display: flex;
    flex-direction: column;
}
.top-bar {
    flex-shrink: 1;
    width: 100%;
    height: 70px;
    border-bottom: 1px solid #ccc;
    border-top-right-radius: 10px;
    z-index: 9;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.chat-window {
    flex-grow: 9;
    width: 100%;
    height: 50px;
    overflow-y: auto;
    overflow-x: hidden;
    background: white;
    padding-top: 20px;
    padding-bottom: 100px;
    display: flex;
    mask-image: linear-gradient(transparent, black 6%, black 80%, transparent 100%);
    -webkit-mask-image: linear-gradient(transparent, black 6%, black 80%, transparent 100%);
    flex-direction: column;
    background-color: var(--page-background);
}

.svg-check {
    position: absolute;
    opacity: 0.001;
}

.user-info {
    width: fit-content;
    height: fit-content;
    border-radius: 25px;
    display: flex;
    align-items: center;
    margin: 10px;
    padding: 0;
    font-size: 0.8rem;
}
.info-img {
    height: 40px;
    width: 40px;
    border-radius: 50%;
    margin-right: 5px;
}

.bottom-bar {
    display: flex;
    width: 100%;
    height: 70px;
    background: white;
    border-bottom-right-radius: 8px;
    align-items: center;
    justify-content: space-between;
}
.file-box {
    width: 40px;
    border-radius: 40px !important;
    background: #dadce0;
    margin: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.chat-input {
    padding-left: 10px;
    width: 70%;
    outline: none;
    border-radius: 50px !important;
    background: #dadce0;
    margin: 5px;
    height: 50px !important;
    border: none;
}
.chat-input:focus{
   border: 2px solid blue;
   background: white;
}
.send-btn {
    background: white;
    width: 40px;
    margin: 10px;
    border: none;
}

.send-btn:focus {
    outline: none;
}
.send-btn:hover {
}
.send-btn:hover .material-icons {
    transition: all 0.3s ease-out;
    transform: scale(1.2) rotateZ(-90deg);
}
.send-btn-icon {
    width: 30px;
    transform: rotate(45deg);
}
.send-btn-icon:hover {
   
}

.material-icons {
    color: #e23272;
    padding: 10px;
    transform: rotateZ(-90deg);
}
@media (max-width: 700px) {
    .sidebar {
        display: none;
    }
    .chat-container {
        flex-grow: 1;
    }
    .chat-window {
        position: static;
        width: 100%;
    }
    .top-bar {
        border-top-left-radius: 8px;
        position: static;
        width: 100%;
    }
    .bottom-bar,
    .chat-input {
        border-bottom-left-radius: 8px;
        position: static;
        width: 100%;
    }
    .user-info {
        width: 40vw;
        position: static;
    }
}
.shared-img {
    width: 100%;
    border-radius: 12px;
    margin-top: 7px;
}
.shared-vid {
    width: 100%;
    border-radius: inherit;
    margin-top: 7px;
    object-fit: fill;
    background: transparent;
}
.receive-avatar {
    display: flex;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    align-self: flex-end;
    margin-bottom: 2px;
    margin-right: 3px;
    z-index: 5;
    border: 2px solid white;
}
.send-avatar {
    display: flex;
    width: 34px !important;
    height: 34px;
    border-radius: 50%;
    align-self: flex-end;
    margin-bottom: 2px;
    margin-left: 3px;
    z-index: 5;
    border: 2px solid white;
}
.msg-box2 {
    max-width: calc(100% - 45px);
    display: flex;
    padding: 5px;
    align-self: flex-end;
}
.msg-box {
    max-width: calc(100% - 45px);
    display: flex;
    padding: 5px;
}

.msg-p {
    max-width: calc(100% - 45px);
    flex-wrap: wrap;
    word-break: break-word;
    position: relative;
    padding: 16px 22px;
    border-radius: 26px;
}
.msg-p:after,
.msg-p:before {
    content: "";
    position: absolute;
    bottom: 0;
    height: 25px;
}
.send {
    color: var(--send-color);
    background: var(--primary);
    align-self: flex-end;
    margin-right: 8px;
    word-break: keep-all;
}
.send:before {
    right: -7px;
    width: 20px;
    background-color: var(--primary);
    border-bottom-left-radius: 16px 14px;
}
.send:after {
    right: -26px;
    width: 26px;
    height: 26px;
    background-color: var(--page-background);
    border-bottom-left-radius: 8px;
}
.receive {
    background: var(--receive-bg);
    color: black;
    align-self: flex-start;
    margin-left: 8px;
}
.receive:before {
    left: -7px;
    width: 20px;
    background-color: var(--receive-bg);
    border-bottom-right-radius: 16px 14px;
}
.receive:after {
    left: -26px;
    width: 26px;
    height: 26px;
    background-color: var(--page-background);
    border-bottom-right-radius: 8px;
}
.chat-share-vid {
    width: 250px;
    height: auto;
    border-radius: 16px;
    margin-top: 6px;
    margin-bottom: 6px;
    object-fit: fill;
    background: transparent;
}




.chatFileUpload {
    width: 0.1px;
    height: 0.1px;
    opacity: 0;
    overflow: hidden;
    position: absolute;
    z-index: -1;
}


.chatFileUpload + .chat-file-label {
    color: white;
    background-color: #fff;
    width: 40px;
    font-family: 'Arcon-Rounded-Regular';
    height:40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    
}


.chatFileUpload:focus + .label,
.chatFileUpload + .label:hover {
    background-color: #f00;
}

.vidoo {
    object-fit: fill; 
    border-radius: 50%; 
    background: transparent;
    width: inherit;
    height: inherit;
}

.chatFileUpload + .chat-file-label:hover {
    -webkit-animation: pulse 1s;
    -moz-animation:pulse 1s;
    animation: pulse 1s;
}
/*===* chat box ends *===*/
     