.chat { background-color: #282828; border: 1px solid #444; border-radius: 8px; padding: 10px; margin: 20px auto; max-width: var(--design-width); width: 100%; box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3); font-size: .8em; line-height: 125%; } .chat-me, .chat-other { padding: 8px 12px; border-radius: 15px; margin-bottom: 4px; color: #fff; display: block; max-width: 70%; } .chat-me { background-color: #3178c6; align-self: flex-end; margin-left: auto; } .chat-other { background-color: #4b5563; align-self: flex-start; }