File size: 11,610 Bytes
42fbf12 80e5ce5 d3f5a0d 42fbf12 80e5ce5 d3f5a0d 42fbf12 80e5ce5 42fbf12 80e5ce5 0eb2ab9 d3f5a0d 80e5ce5 d978c44 6d98581 ec76d45 6d98581 d978c44 6d98581 80e5ce5 42fbf12 1e75be5 6d98581 d3f5a0d 6d98581 80e5ce5 ed40afb 80e5ce5 d3f5a0d 42fbf12 80e5ce5 42fbf12 80e5ce5 d3f5a0d 42fbf12 80e5ce5 42fbf12 80e5ce5 42fbf12 d3f5a0d 42fbf12 44f4c56 80e5ce5 a362025 80e5ce5 c44ecfa d3f5a0d 42fbf12 80e5ce5 42fbf12 80e5ce5 a362025 30658ce 4d04886 42fbf12 c44ecfa a362025 c44ecfa d3f5a0d 42fbf12 80e5ce5 c44ecfa 80e5ce5 a362025 80e5ce5 c44ecfa 80e5ce5 a362025 80e5ce5 d3f5a0d 42fbf12 80e5ce5 42fbf12 80e5ce5 d3f5a0d 42fbf12 80e5ce5 d3f5a0d 42fbf12 80e5ce5 e3ed462 d3f5a0d 42fbf12 80e5ce5 42fbf12 80e5ce5 d3f5a0d b7b09ce 80e5ce5 42fbf12 80e5ce5 6a9aee2 80e5ce5 7fdc3f0 80e5ce5 7fdc3f0 80e5ce5 7fdc3f0 e8cec11 80e5ce5 b7b09ce fc038e4 6d1c224 d9978ea 15a9302 d9978ea 15a9302 d9978ea 15a9302 d9978ea 15a9302 d9978ea 6d1c224 15a9302 d9978ea 15a9302 d9978ea 15a9302 d9978ea 15a9302 d9978ea 15a9302 d9978ea 15a9302 d9978ea 15a9302 d9978ea fc038e4 80e5ce5 b7b09ce 80e5ce5 b7b09ce 80e5ce5 b7b09ce 3b03dc1 3354989 3b03dc1 04aa90e 3b03dc1 80e5ce5 42fbf12 d978c44 6d98581 ec76d45 daf9e37 d978c44 80e5ce5 42fbf12 80e5ce5 42fbf12 80e5ce5 42fbf12 80e5ce5 e8cec11 80e5ce5 42fbf12 80e5ce5 42fbf12 80e5ce5 42fbf12 27dc1dc b9c4dfd 27dc1dc b9c4dfd 27dc1dc b9c4dfd 27dc1dc b9c4dfd | 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 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 | * {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: 'Arial', sans-serif;
}
body {
background-color: #f4f4f9;
color: #333;
}
.chat-container {
display: flex;
height: 100vh;
width: 100%;
background-color: #f4f4f9;
}
/* History Panel */
/* .history-panel {
background-color: #1f2937;
color: #fff;
width: 250px;
max-width: 250px;
height: 100%;
padding: 20px;
display: flex;
flex-direction: column;
position: absolute;
top: 0;
left: -250px; /* Hide off-screen initially on mobile */
transition: left 0.3s ease; /* Smooth transition */
z-index: 10;
} */
/* .history-panel {
background-color: #1f2937;
color: #fff;
width: 250px;
max-width: 250px;
height: 100%;
padding: 20px;
display: flex;
flex-direction: column;
position: relative;
} */
.history-panel.show {
left: 0; /* Slide in from the left */
}
.menu-icon {
/* font-size: 2rem; */
/* color: #fff; */
cursor: pointer;
}
.history-content {
margin-top: 20px;
}
.history-items {
margin-top: 20px;
overflow-y: auto;
height: calc(100% - 60px);
}
.history-items .history-item {
padding: 10px;
margin-bottom: 10px;
background-color: #333;
border-radius: 5px;
cursor: pointer;
}
/* Chat Panel */
.chat-panel {
flex-grow: 1;
display: flex;
flex-direction: column;
background-color: #fff;
}
.chat-header {
padding: 10px 20px;
background-color: #1f2937;
color: #fff;
display: flex;
justify-content: space-between;
align-items: center;
position: relative;
}
.chat-header h1 {
font-size: 1.5rem;
}
.icons {
display: flex;
align-items: center;
gap: 15px;
}
.header-icon {
width: 24px;
height: 24px;
cursor: pointer;
}
.charcha-button {
width: 24px;
height: 24px;
cursor: pointer;
}
.three-dot-menu {
/* font-size: 1.5rem; */
cursor: pointer;
position: relative;
display: inline-block;
}
.menu-options {
position: absolute;
right: 0;
top: 20px;
background-color: black;
border: 1px solid #ccc;
border-radius: 5px;
width: 150px;
/* overflow: hidden; */
box-shadow: 0 2px 5px rgba(0,0,0,0.15);
}
.menu-options ul {
list-style: none;
padding: 0;
margin: 0;
}
.menu-options li {
padding: 10px;
cursor: pointer;
border-bottom: 1px solid #ddd;
}
.menu-options li:hover {
background-color: #f0f0f0;
}
/* Chat Body */
.chat-body {
flex-grow: 1;
padding: 20px;
overflow-y: auto;
display: flex;
flex-direction: column;
gap: 10px;
}
/* User message on the right with light green */
.user-message {
background-color: #d1ffd1; /* Light green for user */
align-self: flex-end; /* Align user messages to the right */
padding: 10px 15px;
border-radius: 10px;
max-width: 70%;
word-wrap: break-word;
}
/* Bot message on the left with light blue */
.bot-message {
background-color: #e9efff; /* Light blue for bot */
align-self: flex-start; /* Align bot messages to the left */
padding: 15px; /* Increase padding for better spacing */
border-radius: 10px; /* Rounded corners */
max-width: 90%; /* Maximum width of the message */
word-wrap: break-word; /* Allow long words to break onto the next line */
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
margin-bottom: 10px; /* Space between messages */
}
/* Headings within bot messages */
.bot-message h1,
.bot-message h2,
.bot-message h3 {
margin: 0; /* Remove default margin */
color: #333; /* Darker color for headings */
}
/* Paragraphs within bot messages */
.bot-message p {
margin: 5px 0; /* Space between paragraphs */
line-height: 1.6; /* Increase line height for readability */
color: #555; /* Slightly darker color for text */
}
/* Lists within bot messages */
.bot-message ul,
.bot-message ol {
margin: 5px 0; /* Space around lists */
padding-left: 20px; /* Indent lists */
}
/* Adding a different style for emphasized text */
.bot-message strong {
font-weight: bold; /* Bold text for emphasis */
color: #000; /* Black color for emphasis */
}
/* Adding a different style for links */
.bot-message a {
color: #007bff; /* Link color */
text-decoration: underline; /* Underline links */
}
/* Adding a hover effect for links */
.bot-message a:hover {
text-decoration: none; /* Remove underline on hover */
color: #0056b3; /* Darker color on hover */
}
/* Welcome message, styled the same as bot-message */
.welcome-message {
background-color: #e9efff;
align-self: flex-start;
padding: 10px 15px;
border-radius: 10px;
max-width: 70%;
word-wrap: break-word;
}
/* Chat Footer */
.chat-footer {
padding: 10px 20px;
background-color: #f4f4f9;
display: flex;
align-items: center;
}
.input-container {
display: flex;
align-items: center;
width: 100%;
background-color: #fff;
border-radius: 50px;
padding: 10px;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.input-container input {
border: none;
flex-grow: 1;
padding: 0 10px;
font-size: 1rem;
outline: none;
}
.mic-icon {
width: 20px;
height: 20px;
background-color: red; /* Default mic button color */
border-radius: 50%;
transition: background-color 0.3s ease;
}
.modal {
display: none; /* Hidden by default */
position: fixed;
z-index: 1;
left: 0;
top: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.5); /* Black background with transparency */
}
.modal-content {
background-color: white;
margin: 15% auto;
padding: 20px;
border-radius: 8px;
width: 300px; /* Width of the modal */
}
.close {
color: #aaa;
float: right;
font-size: 28px;
font-weight: bold;
cursor: pointer;
}
.close:hover,
.close:focus {
color: black;
}
.input-container {
display: flex;
align-items: center;
width: 100%;
}
textarea {
flex-grow: 1;
max-height: 100px; /* Limit height to 4 lines */
min-height: 40px; /* Minimum height for 1 line */
padding: 10px;
border: 1px solid #ccc;
border-radius: 20px;
font-size: 16px;
resize: none; /* Disable manual resizing */
overflow-y: auto; /* Enable scrolling when content exceeds height */
outline: none;
width: calc(100% - 100px); /* Leave space for buttons */
}
textarea:focus {
border-color: #007bff;
}
#sendButton, #micButton {
background-color: transparent;
border: none;
cursor: pointer;
margin-left: 10px;
}
.mic-icon {
width: 24px;
height: 24px;
}
/* Mantra Block */
.mantra-block {
background: linear-gradient(to bottom, #fff3cd, #ffecb5); /* Light to deep yellow */
border-left: 4px solid #d4d4d4;
padding: 15px;
margin: 15px 0;
font-family: 'Courier New', Courier, monospace;
border-radius: 5px; /* Rounded corners for a softer look */
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
}
#mantraText {
white-space: pre-wrap; /* Ensure line breaks are respected */
font-size: 18px;
color: red; /* Red text for mantra */
font-weight: bold; /* Bold text for emphasis */
}
#repeat-control {
display: flex;
align-items: center;
margin-top: 10px;
}
/* Style for repeat control buttons */
#repeat-control button {
width: 40px; /* Increased width for better appearance */
height: 40px; /* Increased height for better appearance */
font-size: 20px; /* Increased font size */
margin: 0 5px;
background-color: #f8d7da; /* Light red background for the button */
border: 2px solid #dc3545; /* Dark red border */
border-radius: 5px; /* Rounded corners */
cursor: pointer;
transition: background-color 0.3s, transform 0.2s; /* Animation for hover effect */
}
#repeat-control button:hover {
background-color: #f5c6cb; /* Darker red on hover */
transform: scale(1.05); /* Slightly increase size on hover */
}
/* Style for the input box */
#repeat-control input {
width: 60px; /* Slightly wider input for better appearance */
text-align: center;
font-size: 18px; /* Increase font size for visibility */
margin: 0 5px; /* Margin to separate from buttons */
}
/* Play Mantra Button */
.play-mantra-button {
background-color: #007bff; /* Blue background */
color: white; /* White text */
border: none; /* No border */
border-radius: 5px; /* Rounded corners */
padding: 8px 12px; /* Padding for better appearance */
font-size: 16px; /* Font size for button */
cursor: pointer; /* Pointer cursor on hover */
transition: background-color 0.3s, transform 0.2s; /* Animation for hover effect */
}
.play-mantra-button:hover {
background-color: #0056b3; /* Darker blue on hover */
transform: scale(1.05); /* Slightly increase size on hover */
}
/* Style for the Play Mantra Button inside the mantra block */
.play-mantra-button-container {
margin-top: 10px; /* Margin to separate from input controls */
}
/* Mantra Block */
/* Active state for microphone button */
#micButton.active .mic-icon {
background-color: green; /* Change mic button color to green when active */
}
#sendButton {
background: none;
border: none;
color: #1f2937;
font-size: 1.5rem;
cursor: pointer;
}
/* Style for the logout button */
#logout-button {
background-color: #ff4c4c; /* Red background */
color: white; /* White text */
border: none; /* No border */
padding: 10px 15px; /* Padding around the text */
border-radius: 5px; /* Rounded corners */
cursor: pointer; /* Pointer cursor on hover */
font-size: 10px; /* Font size */
transition: background-color 0.3s ease; /* Smooth transition for background color */
}
/* Change background color on hover */
#logout-button:hover {
background-color: #e63939; /* Darker red on hover */
}
/* Style for the logout button when not hovered */
#logout-button:focus {
outline: none; /* Remove focus outline */
}
.home-button {
width: 100%;
padding: 10px;
margin-bottom: 15px;
font-size: 16px;
background-color: #4CAF50; /* Adjust as needed */
color: white;
border: none;
cursor: pointer;
}
.home-button:hover {
background-color: #45a049; /* Hover effect */
}
/* Mobile Responsiveness */
@media screen and (max-width: 768px) {
/* .history-panel {
left:0;
position: relative;
/* display: flex; */
/* width: 0; */
} */
.menu-icon {
position: absolute;
top: 10px;
left: 10px;
}
.chat-header h1 {
font-size: 1.2rem;
}
.chat-footer {
padding: 5px 10px;
}
.input-container {
padding: 5px;
}
.input-container input {
font-size: 0.9rem;
}
}
/* Menu Toggle */
.three-dot-menu.active .menu-options {
display: block;
}
/* For Donate */
/* Modal styling */
.modal {
display: none; /* Hidden by default */
position: fixed;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
width: 350px; /* Adjust to fit content */
max-width: 90%; /* Makes it responsive for small screens */
background-color: #fff;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
z-index: 1000;
border-radius: 8px; /* Adds a slight rounded corner */
}
.modal-content {
padding: 20px;
text-align: center;
}
.close {
color: #aaa;
float: right;
font-size: 24px;
font-weight: bold;
cursor: pointer;
}
.qr-code {
width: 150px;
height: 150px;
margin: 20px auto;
display: block;
}
|