Spaces:
Running
Running
File size: 2,186 Bytes
a1955ce |
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 |
body {
font-family: Arial, sans-serif;
background-color: #f4f4f4;
margin: 0;
padding: 0;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
overflow: scroll;
}
.chat-container {
max-width: 800px;
max-height: 1200px;
width: 100%;
height: 70vh;
background-color: #fff;
border-radius: 8px;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
display: flex;
flex-direction: column;
overflow: hidden;
}
.chat-box {
flex: 1;
padding: 20px;
overflow-y: auto;
border-bottom: 1px solid #ddd;
}
.chat-message {
margin-bottom: 15px;
}
.chat-message.user {
text-align: right;
}
.chat-message.user span {
background-color: #007bff;
color: #fff;
padding: 10px;
border-radius: 8px;
display: inline-block;
max-width: 70%;
}
.chat-message.bot span {
background-color: #e0e0e0;
color: #333;
padding: 10px;
border-radius: 8px;
display: inline-block;
max-width: 70%;
}
.input-container {
display: flex;
padding: 15px;
background-color: #f4f4f4;
}
#chat-input {
flex: 1;
padding: 10px;
border: 1px solid #ddd;
border-radius: 4px;
font-size: 16px;
}
#send-button {
padding: 10px 15px;
background-color: #007bff;
color: #fff;
border: none;
border-radius: 4px;
cursor: pointer;
margin-left: 10px;
font-size: 16px;
}
#send-button:hover {
background-color: #0056b3;
}
/* Dot Loader styles */
.dot-loader {
background-color: #e0e0e0;
color: #333;
padding: 10px;
border-radius: 8px;
width: fit-content;
display: flex;
justify-content: center;
align-items: center;
margin-top: 20px;
}
.dot-loader div {
width: 5px;
height: 5px;
margin: 0 5px;
background-color: #8a8a8a;
border-radius: 50%;
animation: dot 1.2s infinite ease-in-out;
}
.dot-loader div:nth-child(1) {
animation-delay: -0.32s;
}
.dot-loader div:nth-child(2) {
animation-delay: -0.16s;
}
@keyframes dot {
0%, 80%, 100% {
transform: scale(0);
}
40% {
transform: scale(1);
}
}
.hidden {
display: none;
} |