.chat-messages {
    position: relative;
    padding-inline: 30px;
    padding-block: 30px;
    overflow-y: scroll;
    height: 350px;
}

.message-box {
    margin-top: 10px;
    position: relative;
    width: auto;
    display: flex;
    align-items: center;
    gap: 15px;
    will-change: contents;
    transition: all 0.3s ease;
}

.message-box-right {
    margin-top: 50px;
    position: relative;
    width: auto;
    display: flex;
    align-items: center;
    gap: 15px;
    will-change: contents;
    transition: all 0.3s ease;
}

.chat img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.chat .img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.chat p {
    margin: 0px;
    padding: 0px;
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    color: #FFFFFF;
}

.chat .message_content {
    margin: 0px;
    padding: 0px;
    padding-inline: 16px;
    padding-block: 8px;
    /* background: linear-gradient(45deg, #707DF7, #EF7196); */
    background: linear-gradient(45deg, #707DF7, #EF7196);
    border-radius: 50px 50px 50px 50px;
}

.chat .message-box-right .message_content {
    background: linear-gradient(45deg, #a0c7d4, #de9fb2);
    position: absolute;
    right: 0px;
}


.chat {
    position: fixed;
    top: 0px;
    left: 0px;
    height: 100%;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.352);
    z-index: 9999999999;
}

.chat-send {
    display: flex;
    align-items: center;
    padding-inline: 20px;
    padding-block: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.chat-send button {
    width: 80px;
    height: 40px;
    line-height: 0;
    background-color: #6574ff;
    border-radius: 6px;
    border: 0;
    cursor: pointer;
    color: white;
}

.chat-send input {
    width: 100%;
    padding-inline: 10px;
    font-family: 'Poppins', sans-serif;
    height: 40px;
    font-size: 14px;
    color: white;
    background-color: transparent;
    border: 0;
    margin-right: 40px
}

.chat-send input::placeholder {
    color: white;
    opacity: 0.3;
}

.chat-box h5 {
    margin: 0px;
}

.chat-header {
    display: flex;
    align-items: center;
    padding: 15px 0px 15px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.31);
    color: white;
    opacity: 1;
}

.chat-header div {
    margin: 0px 30px 0px auto;
    justify-self: end;
    transform: scale(1.4);
}

.chat-header div:hover {
    cursor: pointer;
    color: rgb(255, 129, 129)
}

.chat-list {
    width: 100px;
    height: 500px;

    background-color: #1A1C26;
    background-color: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 2px 30px rgba(0, 0, 0, 0.5);
    border-radius: 14px 0px 0px 14px;
    overflow: hidden;
}

.chat-list-user {
    padding: 0px 30px;
    margin: 0px;
    padding: 0px;
    height: 427px;
    width: 100%;
    overflow-y: scroll;
    overflow-x: hidden;
}

.chat-item {
    margin-top: 30px;
    color: white;
    text-align: center;
}

.chat-item:hover {
    cursor: pointer;
}

.chat-center {
    display: grid;
    grid-template-columns: auto auto;
    grid-template-rows: 1fr;

    position: fixed;
    top: 50%;
    left: 50%;
    margin-top: -250px;
    /* half the height */
    margin-left: -300px;
    /* half the height */
    /* cant use transform, blur messes with it */
}

.chat-box {
    width: 500px;
    height: 500px;

    display: grid;
    background-color: #1A1C26;
    background-color: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 2px 30px rgba(0, 0, 0, 0.5);
    border-radius: 0px 14px 14px 0px;
    overflow: hidden;
}

.chat-add {
    color: white;
    position: absolute;
    bottom: 0px;
    margin: 24px 43px;
    transform: scale(1.5);
}

.chat-add:hover {
    cursor: pointer;
    color: rgb(203, 203, 203);
}

.chat-modal {
    position: fixed;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9999999999;
}

.chat-modal>div {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translateX(-50%) translateY(-50%);
    z-index: 999999999999;
    width: 600px;
    height: 180px;
    border-radius: 10px;
    background-color: white;
    padding: 30px;
}

.chat-modal Button {
    margin: 30px 0px 0px auto;
    width: 120px;
    text-align: center;
    float: right;
}

.chat-modal .Close {
    position: absolute;
    right: 25px;
    top: 25px;
    width: 15px;
    height: 15px;
    background: transparent url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23000'%3e%3cpath d='M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414z'/%3e%3c/svg%3e") no-repeat;
}

.chat-modal .Close:hover {
    cursor: pointer;
}