body {
  font-family: sans-serif;
  margin: 0;
  padding: 20px;
  background-color: #f4f4f4;
  color: #333;
}

.container {
  max-width: 800px;
  margin: 0 auto;
  background-color: #fff;
  padding: 20px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
}

h1, h2 {
  color: #0056b3;
}

.post-form {
  margin-bottom: 30px;
  padding: 20px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background-color: #e9ecef;
}

.post-form textarea {
  width: 100%;
  padding: 10px;
  margin-bottom: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box; 
  min-height: 100px;
  resize: vertical;
  font-family: sans-serif;
}

.post-form button {
  display: block;
  width: 100%;
  padding: 10px;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
}

.post-form button:hover {
  background-color: #0056b3;
}

.posts-list {
  margin-top: 20px;
}

.blog-post {
  border: 1px solid #ddd;
  padding: 15px;
  margin-bottom: 15px;
  border-radius: 8px;
  background-color: #f8f9fa;
  display: flex;
  gap: 15px;
}

.post-author-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 60px; 
    flex-shrink: 0; 
}

.post-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-bottom: 5px;
    border: 1px solid #ccc;
}

.post-username {
    font-weight: bold;
    font-size: 0.9em;
    word-break: break-all; 
    text-align: center;
}

.post-content-area {
    flex-grow: 1;
}

.post-content {
  margin-top: 0;
  white-space: pre-wrap; 
  word-wrap: break-word; 
}

.post-timestamp {
  display: block;
  margin-top: 10px;
  font-size: 0.8em;
  color: #666;
  text-align: right;
}

#online-users {
  margin-top: 30px;
  margin-bottom: 20px;
  padding: 15px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background-color: #e9ecef;
}

#online-users h2 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #0056b3;
    font-size: 1.2em;
}

#user-list {
  font-size: 0.9em;
  color: #555;
}

#user-list span {
    display: inline-block;
    margin-right: 10px;
    padding: 3px 8px;
    background-color: #d4edda; 
    border: 1px solid #c3e6cb;
    border-radius: 12px;
    margin-bottom: 5px; 
}

#user-list span.current-user {
    background-color: #fff3cd; 
    border-color: #ffeeba;
    font-weight: bold;
}