/* App.css */
.chat-container {
  display: flex;
  flex-direction: column;
  height: 100vh; /* Full height of the viewport */
  overflow: hidden;
}

.profile-image-container {
  display: flex;
  justify-content: center;
  margin-bottom: 10px;
}

.chat-box {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  width: 600px;
}

.messages {
  flex-grow: 1;
  overflow-y: auto;
  margin-bottom: 15px;
}

.message {
  padding: 10px;
  margin: 5px 0;
  border-radius: 5px;
  max-width: 80%;
  word-wrap: break-word;
}

.input-container {
  display: flex;
  padding: 10px;
  background: #fff;
}

.message-input {
  flex-grow: 1;
  padding: 10px;
  border-radius: 5px;
  border: 1px solid #ddd;
  margin-right: 10px;
}

.send-button {
  padding: 10px 15px;
  background-color: #4CAF50;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.send-button:hover {
  background-color: #45a049;
}

.message.user {
  background-color: #d1e7dd;
  text-align: right;
  align-self: flex-end;
}

.message.bot {
  background-color: #f8d7da;
  text-align: left;
  align-self: flex-start;
}

/* list of known bots */
.fungus-list {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1rem;
  background-color: #f5f5f5;
  border-radius: 8px;
}

.fungus-card {
  display: flex;
  align-items: center;
  padding: 0.5rem 1rem;
  background-color: white;
  border-radius: 20px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  transition: transform 0.2s ease;
}

.fungus-card:hover {
  transform: translateY(-2px);
}

.fungus-section {
  flex-shrink: 0;
  overflow-y: auto;
  max-height: 40vh; /* Adjust this height as needed */
}

.fungus-card a {
  color: #333;
  text-decoration: none;
  font-weight: 500;
}

.fungus-card a:hover {
  color: #007bff;
}

.fungus-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: #e0e0e0;
  margin-right: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: #666;
}

/* Drop down */
.dropdown {
  position: relative;
  display: inline-block;
  z-index: 1000; /* Ensure it's above other content */
}

.dropbtn {
  background-color: #4CAF50;
  color: white;
  padding: 10px 20px;
  font-size: 16px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.dropbtn:hover, .dropbtn:focus {
  background-color: #45a049;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: #f9f9f9;
  min-width: 160px;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.1);
  z-index: 1001; /* Higher than the dropdown button */
  border-radius: 5px;
}

.dropdown-content a {
  color: black;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
}

.dropdown-content a:hover {
  background-color: #f1f1f1;
}

.dropdown:hover .dropdown-content {
  display: block;
}

/* General Styles */
body {
  font-family: Arial, sans-serif;
  background-color: #f4f4f9;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

.feed-container {
  height: 300px; /* Adjust height as needed */
  overflow-y: auto;
  border: 1px solid #ccc; /* Optional: for better visibility */
  padding: 10px;
  background-color: #f9f9f9;
}

.feed {
  display: flex;
  flex-direction: column;
}

h1 {
  font-size: 20px;
  text-align: center;
  color: #333;
}

/* Profile Header */
.profile-header {
  display: flex;
  justify-content: center;
  margin-bottom: 10px;
}

.profile-image {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 2px solid #ddd;
}

/* Message Input */
.message-input-container {
  display: flex;
  padding: 10px;
  background: #fff;
}

.message-input-container input {
  flex: 1;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

.message-input-container button {
  padding: 10px 15px;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.message-input-container button:hover {
  background-color: #0056b3;
}

/* Feed Messages */

.message-card {
  background: #fff;
  padding: 10px;
  border-radius: 5px;
  box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
}

.message-info {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #555;
  margin-bottom: 5px;
}

.message-text {
  font-size: 14px;
  color: #333;
}

/* Links */
.links {
  margin-top: 20px;
  text-align: center;
}

.links a {
  margin: 0 10px;
  text-decoration: none;
  color: #007bff;
}

.links a:hover {
  text-decoration: underline;
}

