Spaces:
Running
Running
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 */ | |
} |