Me_N_B / static /style.css
unknown
try 2
a6fd95e
Raw History Blame Contribute Delete
5.81 kB
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap');
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: "Poppins", sans-serif;
}
body {
background: transparent;
}
.chatbot-toggler {
position: fixed;
bottom: 30px;
right: 35px;
outline: none;
border: none;
height: 50px;
width: 50px;
display: flex;
cursor: pointer;
align-items: center;
justify-content: center;
border-radius: 50%;
background: #000000;
transition: all 0.2s ease;
}
body.show-chatbot .chatbot-toggler {
transform: rotate(90deg);
}
.chatbot-toggler span {
color: #fff;
position: absolute;
}
.chatbot-toggler span:last-child,
body.show-chatbot .chatbot-toggler span:first-child {
opacity: 0;
}
body.show-chatbot .chatbot-toggler span:last-child {
opacity: 1;
}
.header-content {
display: flex;
align-items: center;
justify-content: start;
padding: 10px;
position: relative;
border-bottom: 2px solid #000000; /* Red border added */
}
.profile-pic {
width: 50px;
height: 50px;
border-radius: 50%;
margin-right: 10px;
}
h3, p {
margin: 0;
}
.chatbot {
position: fixed;
right: 35px;
bottom: 90px;
width: 420px;
background: #fff;
border-radius: 15px;
overflow: hidden;
opacity: 0;
pointer-events: none;
transform: scale(0.5);
transform-origin: bottom right;
/* Removed the box-shadow and added a black border */
border: 0.5px solid #000000; /* Black border added */
transition: all 0.1s ease;
}
body.show-chatbot .chatbot {
opacity: 1;
pointer-events: auto;
transform: scale(1);
}
.chatbot header {
padding: 5px 0;
position: relative;
text-align: center;
color: #ffffff;
border-bottom: 2px solid #000000;
bottom: 2.5px;
background: rgb(255, 255, 255);
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}
.chatbot header span {
position: absolute;
right: 15px;
top: 50%;
display: none;
cursor: pointer;
transform: translateY(-50%);
}
.chat-icon {
width: 40px; /* Updated width */
height: 40px; /* Updated height */
border-radius: 50%;
margin-right: 10px;
vertical-align: middle; /* Aligns image with text */
margin-right: 10px; /* Adds some space between the icon and the text */
object-fit: cover; /* Ensures the image covers the area without being stretched */
border: none; /* Remove any border */
}
header h2 {
font-size: 1.4rem;
}
.chatbot .chatbox {
overflow-y: auto;
height: 510px;
padding: 30px 20px 100px;
}
.chatbot :where(.chatbox, textarea)::-webkit-scrollbar {
width: 6px;
}
.chatbot :where(.chatbox, textarea)::-webkit-scrollbar-track {
background: #fff;
border-radius: 25px;
}
.chatbot :where(.chatbox, textarea)::-webkit-scrollbar-thumb {
background: #ccc;
border-radius: 25px;
}
.chatbox .chat {
display: flex;
list-style: none;
}
.chatbox .outgoing {
margin: 20px 0;
color: #000;
justify-content: flex-end;
}
.chatbox .incoming span {
width: 32px;
height: 32px;
color: #fff;
cursor: default;
text-align: center;
line-height: 32px;
align-self: flex-end;
background: #000000;
border-radius: 4px;
margin: 0 10px 7px 0;
}
.chatbox .chat p {
white-space: pre-wrap;
padding: 12px 16px;
border-radius: 10px 10px 0 10px;
max-width: 75%;
color: #fffcfc;
font-size: 0.95rem;
background: #000000;
}
.chatbox .incoming p {
border-radius: 10px 10px 10px 0;
color: #303030; /* Darker text color for incoming messages */
background: #f2f2f2;
}
.chatbox .chat p.error {
color: #303030;
background: #f8d7da;
}
.chatbot .chat-input {
display: flex;
gap: 5px;
position: absolute;
bottom: 0;
width: 100%;
background: #fff;
padding: 3px 20px;
border-top: 1px solid #ddd;
}
@keyframes typing {
0% { content: 'Typing'; }
25% { content: 'Typing.'; }
50% { content: 'Typing..'; }
75% { content: 'Typing...'; }
}
.typing-animation {
display: inline-block;
position: relative;
}
.typing-animation::after {
content: 'Typing';
animation: typing 1.5s steps(4, end) infinite;
position: absolute;
left: 0;
bottom: 0;
}
.chat-input textarea {
height: 55px;
width: 100%;
border: none;
outline: none;
resize: none;
size: auto;
max-height: 60px;
padding: 17px 15px 15px 0;
font-size: 0.95rem;
}
.chat-input span {
align-self: flex-end;
color: #000000;
cursor: pointer;
height: 55px;
display: flex;
align-items: center;
visibility: hidden;
font-size: 1.35rem;
}
.chat-input textarea:valid ~ span {
visibility: visible;
}
/* Your existing styles */
header {
position: relative;
background-color: #913a3a; /* Adjust background color as needed */
}
.header-img {
width: 100%;
padding-right: 20px;
display: block;
}
.close-btn {
position: absolute;
right: 10px;
top: 10px;
color: #b82d2d; /* Adjust close button color as needed */
cursor: pointer;
}
/* New style for the chatbot icon within the chat messages */
.chat-icon {
width: 54px; /* Example size, adjust as needed */
height: fit-content; /* Example size, adjust as needed */
vertical-align: middle; /* Aligns image with text */
margin-right: 10px; /* Adds some space between the icon and the text */
}
.chat-input #microphone-btn {
align-self: flex-end;
color: #000000;
cursor: pointer;
height: 55px;
display: flex;
align-items: center;
font-size: 1.35rem;
background: transparent;
border: none;
margin-right: 10px;
}
@media (max-width: 490px) {
.chatbot-toggler {
right: 20px;
bottom: 20px;
}
.chatbot {
right: 0;
bottom: 0;
height: 100%;
border-radius: 0;
width: 100%;
}
.chatbot .chatbox {
height: 90%;
padding: 25px 15px 100px;
}
.chatbot .chat-input {
padding: 5px 15px;
}
.chatbot header span {
display: block;
}
}