Spaces:
Sleeping
Sleeping
/* Base styles */ | |
* { | |
margin: 0; | |
padding: 0; | |
box-sizing: border-box; | |
} | |
body { | |
font-family: Arial, sans-serif; | |
background-color: #181818; | |
color: #e0e0e0; | |
min-height: 100vh; | |
display: flex; | |
flex-direction: column; | |
} | |
.Luna{ | |
margin:0px 65px ; | |
} | |
a:link, a:visited { | |
background-color: #181818; | |
color:white; | |
padding: 10px 20px; | |
text-align: center; | |
text-decoration: none; | |
display: inline-block; | |
} | |
a:hover, a:active { | |
color: blue; | |
} | |
/* Chat container */ | |
.chat-container { | |
margin: 20px auto; | |
width: 95%; | |
max-width: 1200px; | |
height: 85vh; | |
background-color: #242424; | |
border-radius: 12px; | |
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3); | |
display: flex; | |
flex-direction: column; | |
} | |
/* Messages section */ | |
.chat-messages { | |
flex: 1; | |
overflow-y: auto; | |
padding: 1rem; | |
display: flex; | |
flex-direction: column; | |
} | |
.message { | |
display: flex; | |
align-items: flex-start; | |
margin-bottom: 1rem; | |
width: 100%; | |
} | |
.message.user { | |
justify-content: flex-end; | |
} | |
.message-content { | |
max-width: 70%; | |
padding: 0.8rem; | |
border-radius: 12px; | |
font-size: clamp(14px, 2vw, 20px); | |
word-wrap: break-word; | |
} | |
.user .message-content { | |
background-color: #006acc; | |
color: white; | |
border-radius: 18px 18px 4px 18px; | |
} | |
.bot .message-content { | |
background-color: #333; | |
color: #f0f2f5; | |
border-radius: 18px 18px 18px 4px; | |
} | |
/* Input section */ | |
.chat-input-container { | |
padding: 1rem; | |
border-top: 1px solid #444; | |
position: relative; | |
} | |
.chat-input-container textarea { | |
width: 100%; | |
padding: 0.8rem 60px 0.8rem 1rem; | |
border: 1px solid #444; | |
border-radius: 20px; | |
resize: none; | |
height: 50px; | |
font-size: clamp(14px, 1.5vw, 16px); | |
background-color: #333; | |
color: #f0f2f5; | |
} | |
/* Header section */ | |
.chat-header { | |
padding: 1rem; | |
border-bottom: 1px solid #444; | |
display: flex; | |
justify-content: space-between; | |
align-items: center; | |
} | |
.bot-profile { | |
display: flex; | |
align-items: center; | |
gap: 10px; | |
} | |
.bot-avatar { | |
width: clamp(30px, 4vw, 40px); | |
height: clamp(30px, 4vw, 40px); | |
border-radius: 50%; | |
} | |
.bot-name { | |
font-weight: bold; | |
font-size: clamp(16px, 2vw, 1.1rem); | |
color: #f0f2f5; | |
} | |
/* Responsive adjustments */ | |
@media screen and (max-width: 768px) { | |
.chat-container { | |
margin: 10px; | |
width: calc(100% - 20px); | |
height: calc(100vh - 20px); | |
} | |
.message-content { | |
max-width: 85%; | |
} | |
.input-buttons { | |
right: 1rem; | |
bottom: 1.5rem; | |
} | |
} | |
@media screen and (max-width: 480px) { | |
.chat-container { | |
margin: 5px; | |
width: calc(100% - 10px); | |
border-radius: 8px; | |
} | |
.message-content { | |
max-width: 90%; | |
padding: 0.6rem; | |
} | |
.chat-header { | |
padding: 0.8rem; | |
} | |
.chat-input-container { | |
padding: 0.8rem; | |
} | |
.voice-controls { | |
gap: 5px; | |
} | |
.input-buttons { | |
gap: 5px; | |
} | |
} | |
/* Button styles */ | |
.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; | |
transition: color 0.3s; | |
} | |
.voice-input-button:hover, | |
.send-button:hover { | |
color: #004a77; | |
} | |
/* Animation styles */ | |
.typing-indicator { | |
display: flex; | |
gap: 4px; | |
padding: 8px; | |
} | |
.typing-dot { | |
width: 8px; | |
height: 8px; | |
background-color: #90949c; | |
border-radius: 50%; | |
animation: typing 1.4s infinite ease-in-out; | |
} | |
@keyframes typing { | |
0%, 100% { transform: translateY(0); } | |
50% { transform: translateY(-10px); } | |
} |