ajaybolloju commited on
Commit
8e191a2
·
verified ·
1 Parent(s): 2941d26

Update styles.css

Browse files
Files changed (1) hide show
  1. styles.css +36 -316
styles.css CHANGED
@@ -1,331 +1,51 @@
1
  body {
2
- font-family: Arial, sans-serif;
3
- margin: 0;
4
- padding: 0;
5
- display: flex;
6
- justify-content: center;
7
- align-items: center;
8
- min-height: 100vh;
9
- background-color: #f0f2f5;
10
- overflow: auto;
11
  }
12
 
13
  .chat-container {
14
- width: 100%;
15
- max-width: 400px;
16
- height: 80vh;
17
- max-height: 600px;
18
- border: 1px solid #ccc;
19
- border-radius: 10px;
20
- overflow: hidden;
21
- box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
22
- background-color: white;
23
- display: flex;
24
- flex-direction: column;
25
- margin: 10px;
26
  }
27
 
28
- .chat-header {
29
- background-color: #f28c38;
30
- color: white;
31
- padding: 10px;
32
- text-align: center;
33
- font-size: 20px;
34
- flex-shrink: 0;
35
  }
36
 
37
- .chat-messages {
38
- flex: 1;
39
- overflow-y: auto;
40
- padding: 15px;
41
- box-sizing: border-box;
 
 
42
  }
43
 
44
- .bot-message {
45
- background-color: #fffbe6;
46
- padding: 10px;
47
- margin: 10px 0;
48
- border-radius: 5px;
49
- max-width: 70%;
50
- word-wrap: break-word;
51
- font-size: 14px;
52
  }
53
 
54
- .user-message {
55
- background-color: #e1f5fe;
56
- padding: 10px;
57
- margin: 10px 0;
58
- border-radius: 5px;
59
- max-width: 70%;
60
- margin-left: auto;
61
- text-align: right;
62
- word-wrap: break-word;
63
- font-size: 14px;
64
  }
65
 
66
- .chat-input {
67
- display: flex;
68
- padding: 10px;
69
- border-top: 1px solid #ccc;
70
- flex-shrink: 0;
71
  }
72
-
73
- .chat-input input {
74
- flex: 1;
75
- padding: 8px;
76
- border: 1px solid #ccc;
77
- border-radius: 5px;
78
- box-sizing: border-box;
79
- font-size: 14px;
80
- min-height: 40px;
81
- }
82
-
83
- .chat-input button {
84
- padding: 8px 15px;
85
- margin-left: 10px;
86
- background-color: #f28c38;
87
- color: white;
88
- border: none;
89
- border-radius: 5px;
90
- cursor: pointer;
91
- transition: background-color 0.3s;
92
- font-size: 14px;
93
- min-height: 40px;
94
- }
95
-
96
- .chat-input button:hover {
97
- background-color: #d8702a;
98
- }
99
-
100
- .option-button {
101
- display: inline-block;
102
- padding: 10px 15px;
103
- margin: 5px;
104
- background-color: #9c27b0;
105
- color: white;
106
- border: none;
107
- border-radius: 5px;
108
- cursor: pointer;
109
- transition: background-color 0.3s;
110
- font-size: 14px;
111
- min-width: 100px;
112
- text-align: center;
113
- }
114
-
115
- .option-button.green {
116
- background-color: #4caf50;
117
- }
118
-
119
- .option-button.red {
120
- background-color: #f44336;
121
- }
122
-
123
- .option-button:hover {
124
- opacity: 0.9;
125
- }
126
-
127
- /* Horizontal scrollable ingredient list with images */
128
- .ingredients-list {
129
- max-height: 200px;
130
- overflow-x: auto;
131
- overflow-y: hidden;
132
- white-space: nowrap;
133
- padding: 10px;
134
- margin: 10px 0;
135
- background-color: #f9f9f9;
136
- border-radius: 5px;
137
- display: flex;
138
- gap: 10px;
139
- }
140
-
141
- .ingredients-list .ingredient-item {
142
- display: inline-flex;
143
- flex-direction: column;
144
- align-items: center;
145
- margin-right: 15px;
146
- }
147
-
148
- .ingredients-list img {
149
- width: 80px;
150
- height: 80px;
151
- object-fit: cover;
152
- border-radius: 5px;
153
- }
154
-
155
- .ingredients-list button {
156
- padding: 5px 10px;
157
- margin-top: 5px;
158
- background-color: #4caf50;
159
- color: white;
160
- border: none;
161
- border-radius: 5px;
162
- cursor: pointer;
163
- font-size: 12px;
164
- }
165
-
166
- .ingredients-list button:hover {
167
- background-color: #45a049;
168
- }
169
-
170
- /* Non-editable selected ingredients box */
171
- .selected-ingredients {
172
- padding: 10px;
173
- margin: 10px 0;
174
- border: 1px solid #ccc;
175
- border-radius: 5px;
176
- background-color: #f0f0f0;
177
- overflow-y: auto;
178
- max-height: 100px;
179
- }
180
-
181
- .selected-ingredients div {
182
- margin: 5px 0;
183
- word-wrap: break-word;
184
- }
185
-
186
- /* Menu items list */
187
- .menu-items-list {
188
- max-height: 200px;
189
- overflow-x: auto;
190
- overflow-y: hidden;
191
- white-space: nowrap;
192
- padding: 10px;
193
- margin: 10px 0;
194
- background-color: #f9f9f9;
195
- border-radius: 5px;
196
- display: flex;
197
- gap: 10px;
198
- }
199
-
200
- .menu-items-list .menu-item {
201
- display: inline-flex;
202
- flex-direction: column;
203
- align-items: center;
204
- margin-right: 15px;
205
- }
206
-
207
- .menu-items-list img {
208
- width: 80px;
209
- height: 80px;
210
- object-fit: cover;
211
- border-radius: 5px;
212
- }
213
-
214
- .menu-items-list button {
215
- padding: 5px 10px;
216
- margin-top: 5px;
217
- background-color: #4caf50;
218
- color: white;
219
- border: none;
220
- border-radius: 5px;
221
- cursor: pointer;
222
- font-size: 12px;
223
- }
224
-
225
- .menu-items-list button:hover {
226
- background-color: #45a049;
227
- }
228
-
229
- /* Customization input box */
230
- .customization-input {
231
- padding: 10px;
232
- margin: 10px 0;
233
- border: 1px solid #ccc;
234
- border-radius: 5px;
235
- background-color: #f0f0f0;
236
- }
237
-
238
- .customization-input textarea {
239
- width: 100%;
240
- padding: 8px;
241
- border: 1px solid #ccc;
242
- border-radius: 5px;
243
- font-size: 14px;
244
- min-height: 60px;
245
- }
246
-
247
- /* Media Queries */
248
- @media (max-width: 768px) {
249
- .chat-container {
250
- max-width: 100%;
251
- height: 90vh;
252
- margin: 5px;
253
- }
254
-
255
- .chat-header {
256
- font-size: 18px;
257
- }
258
-
259
- .chat-messages {
260
- padding: 10px;
261
- }
262
-
263
- .chat-input input,
264
- .chat-input button {
265
- padding: 6px;
266
- font-size: 12px;
267
- min-height: 35px;
268
- }
269
-
270
- .option-button {
271
- padding: 8px 12px;
272
- font-size: 12px;
273
- min-width: 90px;
274
- }
275
-
276
- .ingredients-list,
277
- .menu-items-list {
278
- max-height: 150px;
279
- }
280
-
281
- .ingredients-list img,
282
- .menu-items-list img {
283
- width: 60px;
284
- height: 60px;
285
- }
286
-
287
- .selected-ingredients {
288
- max-height: 80px;
289
- }
290
- }
291
-
292
- @media (min-width: 769px) {
293
- .chat-container {
294
- margin: 20px;
295
- }
296
-
297
- .chat-header {
298
- font-size: 22px;
299
- }
300
-
301
- .bot-message,
302
- .user-message {
303
- font-size: 16px;
304
- }
305
-
306
- .chat-input input,
307
- .chat-input button {
308
- font-size: 16px;
309
- min-height: 45px;
310
- }
311
-
312
- .option-button {
313
- font-size: 16px;
314
- min-width: 120px;
315
- }
316
-
317
- .ingredients-list,
318
- .menu-items-list {
319
- max-height: 250px;
320
- }
321
-
322
- .ingredients-list img,
323
- .menu-items-list img {
324
- width: 100px;
325
- height: 100px;
326
- }
327
-
328
- .selected-ingredients {
329
- max-height: 120px;
330
- }
331
- }
 
1
  body {
2
+ font-family: Arial, sans-serif;
3
+ background-color: #111;
4
+ color: #fff;
5
+ display: flex;
6
+ justify-content: center;
7
+ align-items: center;
8
+ height: 100vh;
 
 
9
  }
10
 
11
  .chat-container {
12
+ width: 400px;
13
+ background: #222;
14
+ padding: 20px;
15
+ border-radius: 10px;
 
 
 
 
 
 
 
 
16
  }
17
 
18
+ .chat-box {
19
+ height: 300px;
20
+ overflow-y: auto;
21
+ border: 1px solid #444;
22
+ padding: 10px;
23
+ margin-bottom: 10px;
24
+ background: #333;
25
  }
26
 
27
+ input[type="text"] {
28
+ width: 75%;
29
+ padding: 8px;
30
+ margin-right: 5px;
31
+ background: #444;
32
+ border: none;
33
+ color: white;
34
  }
35
 
36
+ button {
37
+ padding: 8px 10px;
38
+ background: #555;
39
+ border: none;
40
+ color: white;
 
 
 
41
  }
42
 
43
+ .user {
44
+ text-align: right;
45
+ color: #0f0;
 
 
 
 
 
 
 
46
  }
47
 
48
+ .bot {
49
+ text-align: left;
50
+ color: #0cf;
 
 
51
  }