body { margin: 0; padding: 0; height: 100vh; display: flex; flex-direction: column; background-color: #e5dcd0; font-family: Arial, sans-serif; } .chat-container { display: flex; flex-direction: column; height: 100vh; } .chat-header { background-color: #f0f0f0; padding: 10px; text-align: center; border-bottom: 1px solid #ddd; box-shadow: 0 3px 3px rgba(0, 0, 0, 0.3); } #chat-partner-name { margin: 0; font-size: 18px; color: #333; text-shadow: 0 1px 1px rgba(0, 0, 0, 0.3); /* Add text shadow */ } #chat-box { flex: 1; overflow-y: auto; padding: 10px; background-color: #e5dcd0; } .message { max-width: 70%; padding: 8px 12px; margin: 5px 0; border-radius: 12px; /* Adjust as desired for bubble roundness */ word-wrap: break-word; position: relative; display: inline-block; font-size: 14px; background-color: #fff; /* Reset background for shadows to work */ box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Add a slight bottom shadow */ } .message.user { background-color: #dcf8c6; align-self: flex-end; float: right; clear: both; border-top-right-radius: 0; /* Remove top-right radius for user bubble */ border-bottom-left-radius: 12px; /* Keep bottom-left radius for user bubble */ } .message.other { background-color: #ffffff; align-self: flex-start; float: left; clear: both; border-top-left-radius: 0; /* Remove top-left radius for other bubble */ border-bottom-right-radius: 12px; /* Keep bottom-right radius for other bubble */ } .message small { display: block; font-size: 0.7em; color: #999; margin-top: 2px; } .chat-footer { background-color: #f0f0f0; padding: 10px; border-top: 1px solid #ddd; } #chat-form { display: flex; padding: 10px; background-color: #f0f0f0; } #message { flex: 1; padding: 10px; border: 1px solid #ccc; border-radius: 20px; margin-right: 10px; } button { padding: 10px 20px; background: #007bff; color: #fff; border: none; border-radius: 20px; cursor: pointer; } #mobile-only-warning { display: none; }