Spaces:
Sleeping
Sleeping
File size: 4,582 Bytes
97c1fc3 |
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 |
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: Arial, sans-serif;
background-color: #181818; /* Dark background */
color: #e0e0e0; /* Light text color */
height: 100vh;
}
.Luna{
padding: 10px;
margin-left: 35px;
}
a:link, a:visited {
text-decoration: none;
color: #e0e0e0;
display: inline-block;
}
a:hover, a:active {
color:blueviolet;
}
.chat-container {
margin: 10px 20px 30px 40px;
height: 89vh;
width: 192vh;
background-color: #242424; /* Dark background */
border-radius: 12px;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
display: flex;
flex-direction: column;
}
.chat-header {
padding: 1rem;
border-bottom: 1px solid #444; /* Darker separator */
display: flex;
justify-content: space-between;
align-items: center;
}
.bot-profile {
display: flex;
align-items: center;
gap: 10px;
}
.bot-avatar {
width: 40px;
height: 40px;
border-radius: 50%;
}
.bot-name {
font-weight: bold;
font-size: 1.1rem;
color: #f0f2f5; /* Light text */
}
.voice-controls {
display: flex;
gap: 10px;
}
.voice-button {
background: none;
border: none;
cursor: pointer;
padding: 8px;
border-radius: 50%;
transition: background-color 0.3s;
color: #f0f2f5; /* Light text */
}
.voice-button:hover {
background-color: #444; /* Dark hover */
}
.chat-messages {
flex: 1;
overflow-y: auto;
padding: 1rem;
}
.message {
margin-bottom: 1rem;
display: flex;
align-items: flex-start;
gap: 10px;
}
.message.user {
flex-direction: row-reverse;
}
.message-content {
max-width: 70%;
padding: 0.8rem;
border-radius: 12px;
position: relative;
font-size: 20px;
}
.user .message-content {
background-color: #006acc; /* Blue background */
color: white;
border-radius: 18px 18px 4px 18px;
}
.bot .message-content {
background-color: #333; /* Dark message background */
color: #f0f2f5; /* Light text */
border-radius: 18px 18px 18px 4px;
}
.chat-input-container {
padding: 1rem;
border-top: 1px solid #444; /* Dark separator */
position: relative;
}
.chat-input-container textarea {
width: 100%;
padding: 0.8rem 80px 0.8rem 1rem;
border: 1px solid #444; /* Dark border */
border-radius: 20px;
resize: none;
height: 50px;
font-size: 1rem;
background-color: #333; /* Dark background for input */
color: #f0f2f5; /* Light text */
}
.input-buttons {
position: absolute;
right: 1.5rem;
bottom: 1.7rem;
display: flex;
gap: 8px;
}
.voice-input-button, .send-button {
background: none;
border: none;
cursor: pointer;
padding: 8px;
color: #006acc; /* Blue color */
transition: color 0.3s;
}
.voice-input-button:hover, .send-button:hover {
color: #004a77; /* Darker blue on hover */
}
.message-avatar {
width: 36px;
height: 36px;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
float: right;
display: none;
}
.message-avatar i {
font-size: 1.2rem;
color: #006acc; /* Blue icon */
}
/* Add these styles to your existing CSS */
.message-speaker {
background: none;
border: none;
color: #006acc;
cursor: pointer;
padding: 4px;
margin-left: 8px;
transition: color 0.3s;
}
.message-speaker:hover {
color: #004a77;
}
.message-speaker.speaking i {
color: #ff4444;
}
.user-message .message-avatar i {
color: #f0f2f5; /* Light icon for user messages */
}
.listening .fa-microphone {
color: #ff4444;
animation: pulse 1.5s infinite;
}
@keyframes pulse {
0% { transform: scale(1); }
50% { transform: scale(1.2); }
100% { transform: scale(1); }
}
.typing-indicator {
display: flex;
gap: 4px;
padding: 8px;
}
.typing-dot {
width: 8px;
height: 8px;
background-color: #90949c; /* Gray typing dots */
border-radius: 50%;
animation: typing 1.4s infinite ease-in-out;
}
.typing-dot:nth-child(1) { animation-delay: 200ms; }
.typing-dot:nth-child(2) { animation-delay: 300ms; }
.typing-dot:nth-child(3) { animation-delay: 400ms; }
@keyframes typing {
0%, 100% { transform: translateY(0); }
50% { transform: translateY(-10px); }
}
|