.chat {
    position: relative;
    display: flex;
    z-index: 2;
    height: 100vh;
}

.chat .contact.bar {
    flex-basis: 3.5rem;
    flex-shrink: 0;
    margin: 1rem;
    box-sizing: border-box;
}

.chat .messages {
    padding: 0;
    flex-shrink: 2;
    height: 85vh;
    margin-top: 52px;
    overflow: auto;
    width: 100%;
}

.chat .messages .time {
    font-size: 0.8rem;
    background: rgb(242, 242, 245);
    padding: 0.25rem 1rem;
    border-radius: 2rem;
    color: #999;
    width: -webkit-fit-content;
    width: -moz-fit-content;
    width: fit-content;
    margin: 0 auto;
}

.chat .messages .message {
    padding: 0.5rem 0 0.5rem 0;
}

.chat .messages .message .parker {
    max-width: 66%;
    min-height: 2.25rem;
    width: -webkit-fit-content;
    width: -moz-fit-content;
    width: fit-content;
    margin: 0 0.5rem 0 auto;
}

.chat .messages .message .parker .message-text {
    box-sizing: border-box;
    padding: 0.5rem 0.5rem;
    box-shadow: 0 0 0.5rem rgba(0, 0, 0, 0.15),
        0rem 1rem 1rem -1rem rgba(0, 0, 0, 0.2);
    border-radius: 1.125rem 1.125rem 0 1.125rem;
    background: rgb(21, 172, 177);
    color: rgb(255, 255, 255);
}

.chat .messages .message .parker .message-time {
    margin: 0.25rem auto auto auto;
    font-size: 0.7rem;
    text-align: right;
}

.chat .messages .message .stark {
    max-width: 66%;
    min-height: 2.25rem;
    width: -webkit-fit-content;
    width: -moz-fit-content;
    width: fit-content;
}

.chat .messages .message .stark .message-text {
    box-sizing: border-box;
    padding: 0.5rem 1rem;
    box-shadow: 0 0 2rem rgba(0, 0, 0, 0.075),
        0rem 1rem 1rem -1rem rgba(0, 0, 0, 0.1);
    border-radius: 1.125rem 1.125rem 1.125rem 0;
    background: rgb(255, 255, 255);
}

.chat .messages .message .stark .message-time {
    margin: 0.25rem auto 0.25rem auto;
    font-size: 0.7rem;
    text-align: left;
}

.chat .messages .message .typing {
    display: inline-block;
    width: 0.4rem;
    height: 0.4rem;
    margin-right: 0rem;
    box-sizing: border-box;
    background: #ccc;
    border-radius: 50%;
}

.chat .messages .message .typing.typing-1 {
    -webkit-animation: typing 2s infinite;
    animation: typing 2s infinite;
}

.chat .messages .message .typing.typing-2 {
    -webkit-animation: typing 2s 250ms infinite;
    animation: typing 2s 250ms infinite;
}

.chat .messages .message .typing.typing-3 {
    -webkit-animation: typing 2s 500ms infinite;
    animation: typing 2s 500ms infinite;
}

.chat-input .input {
    box-sizing: border-box;
    flex-basis: 4rem;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    padding: 0.5rem 0.5rem 0 0.5rem;
}

.chat-input .input i {
    font-size: 1.5rem;
    margin-right: 1rem;
    color: #666;
    cursor: pointer;
    transition: color 200ms;
}

.chat-input .input box-icon {
    font-size: 1.5rem;
    margin: 0.25rem;
    color: #666;
    cursor: pointer;
    transition: color 200ms;
}

.chat-input .input i:hover {
    color: #333;
}

.chat-input .input box-icon:hover {
    color: #333;
}

.chat-input .input input {
    border: none;
    background-image: none;
    background-color: white;
    padding: 0.5rem 0.8rem 0.5rem 0.8rem;
    margin: 0.2rem;
    border-radius: 0.8rem;
    flex-grow: 2;
    box-shadow: 0 0 1rem rgba(0, 0, 0, 0.1),
        0rem 1rem 1rem -1rem rgba(0, 0, 0, 0.2);
    font-weight: 400;
    width: 100%;
    letter-spacing: 0.025em;
}

.chat-input .input input:placeholder {
    color: #999;
}


/*  home page */
.menu {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    margin: auto;
    height: 100%;
}

.menu .menu-item {
    margin: 10px;
    align-items: center;
    display: flex;
    flex-direction: column;
    font-size: 0.75rem;
    cursor: pointer;
}

.menu .menu-item i {
    font-size: 1.5rem;
    color: rgb(94, 94, 94);
}

.menu .menu-item:hover, .menu .menu-item:hover i {
    font-weight: 500;
    color: rgb(55, 182, 139);
}

.menu .menu-item.endCall i {
    color: rgb(199, 1, 1);
    font-weight: 500;
}

.home-content {
    position: relative;
    margin-top: 60px;
    margin-bottom: 68px;
}

/************************ CALL ************************************************************************/
.call {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    margin: auto;
    height: 100%;
}

.call .call-item {
    margin: 10px;
    align-items: center;
    display: flex;
    flex-direction: column;
    font-size: 0.75rem;
    cursor: pointer;
}

.call .call-item i {
    font-size: 2.5rem;
    color: rgb(94, 94, 94);
}

.call .call-item:hover, .call .call-item:hover i {
    font-weight: 500;
    color: rgb(55, 182, 139);
}

.call .call-item.active i {
    font-weight: 500;
    color: rgb(55, 182, 139);
}

.call .call-item.endCall i {
    color: rgb(199, 1, 1);
    font-weight: 500;
}


@-webkit-keyframes typing {

    0%,
    75%,
    100% {
        transform: translate(0, 0.25rem) scale(0.9);
        opacity: 0.5;
    }

    25% {
        transform: translate(0, -0.25rem) scale(1);
        opacity: 1;
    }
}

@keyframes typing {

    0%,
    75%,
    100% {
        transform: translate(0, 0.25rem) scale(0.9);
        opacity: 0.5;
    }

    25% {
        transform: translate(0, -0.25rem) scale(1);
        opacity: 1;
    }
}

.call-wrapper {
    position: relative;
    height: 100vh;
}

.calling {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 100;
}

.calling .pluse {
    height: 120px;
    width: 120px;
    background-color: #35c4a5;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.calling .pluse:before {
    content: "";
    position: absolute;
    width: calc(100% + 10px);
    height: calc(100% + 10px);
    border-radius: 50%;
    border: 8px solid #2fc9a7;
    animation: calling-animate 1.2s linear infinite;
    animation-delay: 0.6s;
}

.calling .pluse:after {
    content: "";
    position: absolute;
    width: calc(100% + 25px);
    height: calc(100% + 25px);
    border-radius: 50%;
    border: 13px solid #2ac9a6;
    animation: calling-animate 1.2s linear infinite;
    animation-delay: 0.4s;
}

.calling .pluse i {
    font-size: 3rem;
    color: #fff;
}

.calling .pluse.no-response {
    height: 120px;
    width: 120px;
    background-color: #c01919;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.calling .pluse.no-response:before {
    content: "";
    position: absolute;
    width: calc(100% + 10px);
    height: calc(100% + 10px);
    border-radius: 50%;
    border: 8px solid #fa3858;
    animation: calling-animate 1.2s linear infinite;
    animation-delay: 0.6s;
}

.calling .pluse.no-response:after {
    content: "";
    position: absolute;
    width: calc(100% + 25px);
    height: calc(100% + 25px);
    border-radius: 50%;
    border: 13px solid #f04242;
    animation: calling-animate 1.2s linear infinite;
    animation-delay: 0.4s;
}


#call-conversation {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 100;
}

#peerVid {
    position: fixed;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    -ms-transform: translateX(-50%) translateY(-50%);
    -moz-transform: translateX(-50%) translateY(-50%);
    -webkit-transform: translateX(-50%) translateY(-50%);
    transform: translateX(-50%) translateY(-50%);
}


@keyframes calling-animate {
    0% {
        transform: scale(0.5);
        opacity: 0;
    }

    50% {
        transform: scale(1);
        opacity: 1;
    }

    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}