main .messages {
    width: 80%;
    height: 728px;
}
main .messages h1{
    margin-top: 100px;
    font-family: Inter;
    font-weight: 700;
    line-height: 59.8px;
    font-size:52px;
}
main .messages .chat{
    margin-top: 50px;
    height: calc(100% - 109.8px);
    display: flex;
    justify-content: center;
    align-items: center;
    /* background-color: brown; */
}
main .messages .chat .groups{
    /* background-color: orange; */
    width: 40%;
    height: 100%;
    border: 1px solid var(--gray_l);
    border-right: 0;
    border-bottom: 0;
    border-top-left-radius: 25px;
    overflow: hidden;

}
main .messages .chat .groups aside{
    /* background-color: orange; */
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid var(--gray_l);

}
main .messages .chat .groups aside:hover{
    cursor: pointer;
    background-color: var(--gray_l);

}
main .messages .chat .groups aside img{
    width: 83px;
    /* background-color: brown; */
    height: 83px;
    border-radius: 6px;

}
main .messages .chat .groups aside div{
    /* background-color: green; */
    width: calc(100% - 103px);
    
}
main .messages .chat .groups aside div h2{
    font-family: Inter;
    font-weight: 700;
    line-height: 21px;
    font-size:14px;
    margin: 0;
}
main .messages .chat .groups aside div p{
    font-family: Inter;
    font-weight: 400;
    line-height: 18.2px;
    font-size:14px;
    margin: 5px 0;
    color: var(--gray_d);
}
main .messages .chat .groups aside div p.time{
    font-family: Inter;
    font-weight: 400;
    line-height: 18.2px;
    font-size:14px;
    margin: 0;
    color: var(--gray);

}
main .messages .chat .messages-box{
    /* background-color: violet; */
    width: 60%;
    height: 100%;
    border: 1px solid var(--gray_l);
    border-top-right-radius: 25px;
    border-bottom: 0;
    overflow: hidden;
}
main .messages .chat .messages-box .top-nav{
    width: 100%;
    border-bottom: 1px solid var(--gray_l);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
}
main .messages .chat .messages-box .top-nav div{
    width: 100%;
    display: flex;
    align-items: center;
}
main .messages .chat .messages-box .top-nav div span.name{
    margin-left: 10px;
    font-family: Inter;
    font-weight: 700;
    line-height: 25.2px;
    font-size:18px;
}

main .messages .chat .messages-box .top-nav div span.go-to-listing{
    margin-right: 20px;
    font-family: Inter;
    font-weight: 500;
    line-height: 15.6px;
    font-size:12px;
}

main .messages .chat .messages-box .messages-list {
    display: flex;
    width: 100%;
    height: calc(100% - 80px);
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;

}
main .messages .chat .messages-box .messages-list .msgs {
    display: flex;
    flex-direction: column;
    width: 95%;
    flex-direction: column;
    justify-content: center;
    align-items: center;

}
main .messages .chat .messages-box .messages-list .msgs p{
    width: 100%;
    /* background-color: red; */
    text-align: center;
    font-family: Inter;
    font-weight: 500;
    line-height: 15.6px;
    font-size:12px;
    color: var(--gray);

}
main .messages .chat .messages-box .messages-list .msgs div{
    width: 215px;
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    background-color: var(--gray_l);
    margin-bottom: 15px;

}
main .messages .chat .messages-box .messages-list .msgs div p{
    text-align: left;
    font-family: Inter;
    font-weight: 400;
    line-height: 18.2px;
    font-size:14px;
    color: var(--gray_d);


}
main .messages .chat .messages-box .messages-list .msgs aside{
    display: flex;
    justify-content: center;
    align-items: flex-start;

}
main .messages .chat .messages-box .messages-list .msgs aside img{
    width: 30px;
    aspect-ratio: 1;
    margin-right: 7.5px;
}
main .messages .chat .messages-box .messages-list .input-bar{
    background-color: var(--gray_l);
    display: flex;
    width: 100%;
    justify-content: space-evenly;
    align-items: center;
    padding: 10px 20px;

}
main .messages .chat .messages-box .messages-list .input-bar .form-group {
    margin: auto;
    width: 80%;
}