File size: 859 Bytes
061161f
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
ba4ce1a
 
061161f
 
 
ba4ce1a
061161f
 
 
 
 
ba4ce1a
 
061161f
 
 
ba4ce1a
061161f
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
body {
    font-family: Arial, sans-serif;
}

.chat-box {
    height: 70vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    padding: 1rem;
}

.message-container {
    display: flex;
    margin-bottom: 1rem;
}

.message-bubble {
    max-width: 70%;
    padding: 0.75rem 1rem;
    border-radius: 1.25rem;
    word-wrap: break-word;
}

/* My messages align to the right (blue) */
.my-message {
    justify-content: flex-end;
}

.my-message .message-bubble {
    background-color: #0d6efd; /* Bootstrap primary color */
    color: white;
    border-bottom-right-radius: 0.25rem;
}

/* Other users' messages align to the left (grey) */
.other-message {
    justify-content: flex-start;
}

.other-message .message-bubble {
    background-color: #e9ecef; /* Bootstrap light grey */
    color: black;
    border-bottom-left-radius: 0.25rem;
}