* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    overflow-y: hidden;
}

.box {
    /* width: 600px; */
    /* padding: 20px; */
    /* margin: 100px auto; */
    /* height: 100%; */
    background-color: #f5f5f5;
    position: relative;
    padding-bottom: 115px;
    padding-top: 50px;
    height: 100vh;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.chat {
    height: 100%;
    overflow-y: auto;
}

.leftBox, .rightBox {
    display: flex;
    margin-bottom: 10px;
    align-items: flex-start;
}

.leftBox {
    justify-content: flex-start;
}

.rightBox {
    justify-content: flex-end;
}

.chat img {
    border-radius: 50%;
    margin: 0 10px;
}

.left, .right {
    max-width: 70%;
    padding: 10px;
    border-radius: 10px;
    line-height: 20px;
    width: 181px;
    word-break: break-all;
}

.left {
    background-color: #e5e5e5;
    position: relative;
    margin-left: 10px;
}

.right {
    background-color: #007bff;
    color: white;
    position: relative;
    margin-right: 10px;
}

.left::before {
    content: "";
    width: 0;
    height: 0;
    position: absolute;
    border: 5px solid transparent;
    border-right-color: #e5e5e5;
    left: -10px;
    top: 10px;
}

.right::before {
    content: "";
    width: 0;
    height: 0;
    position: absolute;
    border: 5px solid transparent;
    border-left-color: #007bff;
    right: -10px;
    top: 10px;
}



.message-input input {
    width: 80%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.message-input button {
    padding: 10px 20px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.message-input button:hover {
    background-color: #0056b3;
}
