geethareddy commited on
Commit
6a405b6
·
verified ·
1 Parent(s): ae31d8c

Update static/styles.css

Browse files
Files changed (1) hide show
  1. static/styles.css +211 -57
static/styles.css CHANGED
@@ -1,116 +1,270 @@
1
  body {
2
  font-family: Arial, sans-serif;
3
- background-color: #f7f7f7;
4
  margin: 0;
5
  padding: 0;
6
  display: flex;
7
  justify-content: center;
8
  align-items: center;
9
- height: 100vh;
 
 
10
  }
11
 
12
  .chat-container {
13
- background-color: #fff;
14
- width: 400px; /* Increased width */
15
- height: 600px; /* Increased height */
16
- border-radius: 8px;
17
- box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
 
18
  overflow: hidden;
 
 
 
 
 
19
  }
20
 
21
  .chat-header {
22
- background-color: #4CAF50;
23
  color: white;
 
24
  text-align: center;
25
- padding: 15px;
26
- font-size: 18px;
27
  }
28
 
29
  .chat-messages {
30
- padding: 15px;
31
- height: 450px; /* Increased height for messages */
32
  overflow-y: auto;
33
- border-bottom: 1px solid #ddd;
 
34
  }
35
 
36
  .bot-message {
37
- background-color: #f1f1f1;
38
- padding: 8px;
 
39
  border-radius: 5px;
40
- margin-bottom: 10px;
 
 
41
  }
42
 
43
  .user-message {
44
- background-color: #007BFF;
45
- color: white;
46
- padding: 8px;
47
  border-radius: 5px;
48
- margin-bottom: 10px;
 
49
  text-align: right;
 
 
50
  }
51
 
52
- .ingredient-item {
53
- display: block; /* Change to block to stack vertically */
54
- width: 100%; /* Make the ingredient item take full width */
55
  padding: 10px;
56
- margin-bottom: 15px; /* More space between items */
57
- border: 1px solid #ddd;
58
- border-radius: 5px;
59
  }
60
 
61
- .ingredient-item img {
62
- width: 100%; /* Make image fill the width of the container */
63
- max-width: 150px; /* Set a max-width for images */
64
- height: auto;
65
- object-fit: cover;
66
  border-radius: 5px;
67
- margin-bottom: 10px;
 
 
68
  }
69
 
70
- .ingredient-item .name {
71
- text-align: center;
 
 
 
 
 
 
 
72
  font-size: 14px;
73
- font-weight: bold;
74
- margin-top: 10px;
75
  }
76
 
77
- .ingredient-item .description {
78
- font-size: 12px;
79
- color: #666;
80
- margin-top: 5px;
81
- text-align: center;
82
  }
83
 
84
- button {
85
- background-color: #4CAF50;
 
 
 
86
  color: white;
87
- padding: 5px 10px;
88
  border: none;
89
  border-radius: 5px;
90
  cursor: pointer;
91
- width: 100%;
92
- margin-top: 10px;
 
 
93
  }
94
 
95
- button:hover {
96
- background-color: #45a049;
97
  }
98
 
99
- .selected-ingredients {
100
- padding: 15px;
101
- margin-top: 10px;
102
  }
103
 
104
- .send-button {
105
- margin-top: 10px;
106
- width: 100%;
 
 
 
 
 
 
 
 
 
 
 
107
  padding: 10px;
108
- background-color: #007BFF;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
109
  color: white;
110
  border: none;
111
  border-radius: 5px;
 
 
 
 
 
 
112
  }
113
 
114
- .send-button:hover {
115
- background-color: #0056b3;
 
 
 
 
 
 
 
116
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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.gray {
124
+ background-color: #9e9e9e;
125
+ }
126
+
127
+ .option-button:hover {
128
+ opacity: 0.9;
129
+ }
130
+
131
+ /* Horizontal scrollable ingredient list with images */
132
+ .ingredients-list {
133
+ max-height: 200px;
134
+ overflow-x: auto;
135
+ overflow-y: hidden;
136
+ white-space: nowrap;
137
  padding: 10px;
138
+ margin: 10px 0;
139
+ background-color: #f9f9f9;
140
+ border-radius: 5px;
141
+ display: flex;
142
+ gap: 10px;
143
+ }
144
+
145
+ .ingredients-list .ingredient-item {
146
+ display: inline-flex;
147
+ flex-direction: column;
148
+ align-items: center;
149
+ margin-right: 15px;
150
+ }
151
+
152
+ .ingredients-list img {
153
+ width: 80px;
154
+ height: 80px;
155
+ object-fit: cover;
156
+ border-radius: 5px;
157
+ }
158
+
159
+ .ingredients-list button {
160
+ padding: 5px 10px;
161
+ margin-top: 5px;
162
+ background-color: #4caf50;
163
  color: white;
164
  border: none;
165
  border-radius: 5px;
166
+ cursor: pointer;
167
+ font-size: 12px;
168
+ }
169
+
170
+ .ingredients-list button:hover {
171
+ background-color: #45a049;
172
  }
173
 
174
+ /* Non-editable selected ingredients box */
175
+ .selected-ingredients {
176
+ padding: 10px;
177
+ margin: 10px 0;
178
+ border: 1px solid #ccc;
179
+ border-radius: 5px;
180
+ background-color: #f0f0f0;
181
+ overflow-y: auto;
182
+ max-height: 100px;
183
  }
184
+
185
+ .selected-ingredients div {
186
+ margin: 5px 0;
187
+ word-wrap: break-word;
188
+ }
189
+
190
+ /* Media Queries */
191
+ @media (max-width: 768px) {
192
+ .chat-container {
193
+ max-width: 100%;
194
+ height: 90vh;
195
+ margin: 5px;
196
+ }
197
+
198
+ .chat-header {
199
+ font-size: 18px;
200
+ }
201
+
202
+ .chat-messages {
203
+ padding: 10px;
204
+ }
205
+
206
+ .chat-input input,
207
+ .chat-input button {
208
+ padding: 6px;
209
+ font-size: 12px;
210
+ min-height: 35px;
211
+ }
212
+
213
+ .option-button {
214
+ padding: 8px 12px;
215
+ font-size: 12px;
216
+ min-width: 90px;
217
+ }
218
+
219
+ .ingredients-list {
220
+ max-height: 150px;
221
+ }
222
+
223
+ .ingredients-list img {
224
+ width: 60px;
225
+ height: 60px;
226
+ }
227
+
228
+ .selected-ingredients {
229
+ max-height: 80px;
230
+ }
231
+ }
232
+
233
+ @media (min-width: 769px) {
234
+ .chat-container {
235
+ margin: 20px;
236
+ }
237
+
238
+ .chat-header {
239
+ font-size: 22px;
240
+ }
241
+
242
+ .bot-message,
243
+ .user-message {
244
+ font-size: 16px;
245
+ }
246
+
247
+ .chat-input input,
248
+ .chat-input button {
249
+ font-size: 16px;
250
+ min-height: 45px;
251
+ }
252
+
253
+ .option-button {
254
+ font-size: 16px;
255
+ min-width: 120px;
256
+ }
257
+
258
+ .ingredients-list {
259
+ max-height: 250px;
260
+ }
261
+
262
+ .ingredients-list img {
263
+ width: 100px;
264
+ height: 100px;
265
+ }
266
+
267
+ .selected-ingredients {
268
+ max-height: 120px;
269
+ }
270
+ }