Spaces:
Running
Running
File size: 2,015 Bytes
921fcc4 25fff3f 921fcc4 25fff3f 921fcc4 25fff3f |
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 |
body {
font-family: Arial, sans-serif;
margin: 0;
padding: 0;
background-color: #f4f4f4;
}
.header {
background: linear-gradient(135deg, #FFA500, #FF6347); /* Gradient from orange to coral */
color: #fff;
text-align: center;
padding: 20px 0;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Add a subtle shadow */
}
.header h1 {
margin: 0;
font-size: 24px;
}
/* Rest of the CSS for the chat-container, chat-box, input-container, and send button remains the same */
.chat-container {
max-width: 500px; /* Increased width */
margin: 20px auto;
background-color: #fff;
border-radius: 20px; /* Increased border radius */
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
overflow: hidden;
}
.chat-box {
height: 300px;
overflow-y: auto;
padding: 20px; /* Increased padding */
}
.user-message,
.bot-message {
background-color: #f2f2f2;
padding: 10px;
border-radius: 15px;
margin-bottom: 10px;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Add a subtle shadow */
}
.chat-message {
margin-bottom: 20px; /* Increased margin */
}
.user-message {
text-align: right;
}
.bot-message {
text-align: left;
}
.input-container {
display: flex;
align-items: center; /* Center vertically */
padding: 20px; /* Increased padding */
}
#user-input {
flex: 1;
padding: 15px; /* Increased padding */
margin: 10px; /* Margin added */
border: none;
border-radius: 20px;
background-color: #f2f2f2;
outline: none;
width: 100%; /* Ensure input takes up all available space */
max-width: 70%; /* Limit maximum width to avoid stretching too much */
}
#send-btn {
padding: 15px 25px; /* Increased padding */
border: none;
border-radius: 25px; /* Rounded borders */
background-color: #4CAF50; /* Green color */
color: white;
font-weight: bold;
cursor: pointer;
outline: none;
transition: background-color 0.3s ease; /* Smooth transition effect */
}
#send-btn:hover {
background-color: #45a049; /* Darker shade on hover */
} |