-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyles.css
86 lines (75 loc) · 1.14 KB
/
styles.css
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
body {
font-family: Arial, sans-serif;
background-color: #884ab1
margin: 0;
padding: 0;
header {
background-color: #331f00;
color: white;
text-align: center;
padding: 1em 0;
}
#chatbox {
max-width: 600px;
margin: 20px auto;
padding: 10px;
background-color: white;
border: 1px solid #ddd;
border-radius: 10px;
height: 400px;
overflow-y: auto;
}
.user-message, .ai-message {
padding: 10px;
margin: 10px 0;
border-radius: 10px;
max-width: 80%;
}
.user-message {
background-color: #d1e7dd;
align-self: flex-end;
}
.ai-message {
background-color: #E7E6E6;
align-self: flex-start;
}
input[type="text"] {
width: calc(100% - 100px);
padding: 10px;
margin: 10px 0;
border: 1px solid #ddd;
border-radius: 5px;
}
button {
padding: 10px;
background-color: #4CAF50;
color: white;
border: none;
border-radius: 5px;
cursor: pointer;
}
button:hover {
background-color: #CB7A01;
}
main {
display: flex;
flex-direction: column;
align-items: center;
}
#chatbox {
display: flex;
flex-direction: column;
}
/* Responsive styles */
@media (max-width: 600px) {
#chatbox {
width: 90%;
height: 300px;
}
input[type="text"] {
width: calc(100% - 80px);
}
button {
width: 70px;
}
}