Spaces:
Sleeping
Sleeping
File size: 5,272 Bytes
00bfbaf f2490ec 00bfbaf f2490ec 00bfbaf 726c45e 00bfbaf f2490ec 56230b4 00bfbaf f2490ec 56230b4 00bfbaf f2490ec 00bfbaf 56230b4 00bfbaf 56230b4 f2490ec 00bfbaf f2490ec 56230b4 00bfbaf f2490ec 56230b4 00bfbaf f2490ec 00bfbaf 56230b4 00bfbaf f2490ec 56230b4 00bfbaf 56230b4 00bfbaf f2490ec 56230b4 f2490ec 00bfbaf 56230b4 00bfbaf f2490ec 56230b4 cf231bc 00bfbaf a6f7e17 f2490ec cf231bc 2f303fb 757470c 2f303fb 757470c 2f303fb 757470c 2f303fb 757470c 2f303fb 757470c 2f303fb 757470c 2f303fb 757470c 2f303fb 757470c 2f303fb 757470c cf231bc 56230b4 cf231bc 56230b4 cf231bc 56230b4 cf231bc 56230b4 cf231bc 56230b4 cf231bc 757470c 2f303fb 757470c 2f303fb 757470c 2f303fb cf231bc 56230b4 cf231bc 56230b4 cf231bc 56230b4 cf231bc 56230b4 cf231bc 56230b4 cf231bc 757470c 2f303fb 757470c 2f303fb 757470c 2f303fb f2490ec |
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 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 |
body {
font-family: Arial, sans-serif;
margin: 0;
padding: 0;
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
background-color: #f0f2f5;
overflow: auto;
}
/* Existing CSS remains the same until new sections */
/* Popup styling */
.popup {
display: none;
position: fixed;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
background: white;
padding: 20px;
border: 1px solid #ccc;
border-radius: 5px;
box-shadow: 0 0 10px rgba(0,0,0,0.1);
z-index: 1000;
max-height: 80vh;
overflow-y: auto;
}
.popup-content {
max-width: 300px;
}
.close-btn {
position: absolute;
top: 10px;
right: 10px;
cursor: pointer;
font-size: 20px;
}
/* Existing media queries remain the same */
.chat-container {
width: 100%;
max-width: 400px;
height: 80vh;
max-height: 600px;
border: 1px solid #ccc;
border-radius: 10px;
overflow: hidden;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
background-color: white;
display: flex;
flex-direction: column;
margin: 10px;
}
.chat-header {
background-color: #f28c38;
color: white;
padding: 10px;
text-align: center;
font-size: 20px;
flex-shrink: 0;
}
.chat-messages {
flex: 1;
overflow-y: auto;
padding: 15px;
box-sizing: border-box;
}
.bot-message {
background-color: #fffbe6;
padding: 10px;
margin: 10px 0;
border-radius: 5px;
max-width: 70%;
word-wrap: break-word;
font-size: 14px;
}
.user-message {
background-color: #e1f5fe;
padding: 10px;
margin: 10px 0;
border-radius: 5px;
max-width: 70%;
margin-left: auto;
text-align: right;
word-wrap: break-word;
font-size: 14px;
}
.chat-input {
display: flex;
padding: 10px;
border-top: 1px solid #ccc;
flex-shrink: 0;
}
.chat-input input {
flex: 1;
padding: 8px;
border: 1px solid #ccc;
border-radius: 5px;
box-sizing: border-box;
font-size: 14px;
min-height: 40px;
}
.chat-input button {
padding: 8px 15px;
margin-left: 10px;
background-color: #f28c38;
color: white;
border: none;
border-radius: 5px;
cursor: pointer;
transition: background-color 0.3s;
font-size: 14px;
min-height: 40px;
}
.chat-input button:hover {
background-color: #d8702a;
}
.option-button {
display: inline-block;
padding: 10px 15px;
margin: 5px;
background-color: #9c27b0;
color: white;
border: none;
border-radius: 5px;
cursor: pointer;
transition: background-color 0.3s;
font-size: 14px;
min-width: 100px;
text-align: center;
}
.option-button.green {
background-color: #4caf50;
}
.option-button.red {
background-color: #f44336;
}
.option-button:hover {
opacity: 0.9;
}
/* Horizontal scrollable ingredient list with images */
.ingredients-list {
max-height: 200px;
overflow-x: auto;
overflow-y: hidden;
white-space: nowrap;
padding: 10px;
margin: 10px 0;
background-color: #f9f9f9;
border-radius: 5px;
display: flex;
gap: 10px;
}
.ingredients-list .ingredient-item {
display: inline-flex;
flex-direction: column;
align-items: center;
margin-right: 15px;
}
.ingredients-list img {
width: 80px;
height: 80px;
object-fit: cover;
border-radius: 5px;
}
.ingredients-list button {
padding: 5px 10px;
margin-top: 5px;
background-color: #4caf50;
color: white;
border: none;
border-radius: 5px;
cursor: pointer;
font-size: 12px;
}
.ingredients-list button:hover {
background-color: #45a049;
}
/* Non-editable selected ingredients box */
.selected-ingredients {
padding: 10px;
margin: 10px 0;
border: 1px solid #ccc;
border-radius: 5px;
background-color: #f0f0f0;
overflow-y: auto;
max-height: 100px;
}
.selected-ingredients div {
margin: 5px 0;
word-wrap: break-word;
}
/* Media Queries */
@media (max-width: 768px) {
.chat-container {
max-width: 100%;
height: 90vh;
margin: 5px;
}
.chat-header {
font-size: 18px;
}
.chat-messages {
padding: 10px;
}
.chat-input input,
.chat-input button {
padding: 6px;
font-size: 12px;
min-height: 35px;
}
.option-button {
padding: 8px 12px;
font-size: 12px;
min-width: 90px;
}
.ingredients-list {
max-height: 150px;
}
.ingredients-list img {
width: 60px;
height: 60px;
}
.selected-ingredients {
max-height: 80px;
}
}
@media (min-width: 769px) {
.chat-container {
margin: 20px;
}
.chat-header {
font-size: 22px;
}
.bot-message,
.user-message {
font-size: 16px;
}
.chat-input input,
.chat-input button {
font-size: 16px;
min-height: 45px;
}
.option-button {
font-size: 16px;
min-width: 120px;
}
.ingredients-list {
max-height: 250px;
}
.ingredients-list img {
width: 100px;
height: 100px;
}
.selected-ingredients {
max-height: 120px;
}
} |