* {
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Arial', sans-serif;
  color: #333;
}

.heroimage {
  width: 150px;
  margin-bottom: 20px;
}

.chat-container {
  width: 100%;
  max-width: 600px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  text-align: center;
}

.chat-box {
  max-height: 300px;
  overflow-y: auto;
  margin-bottom: 20px;
}

.chat-list {
  list-style: none;
  padding: 0;
}

.message {
  background: #e9f5e9;
  margin-bottom: 10px;
  padding: 10px;
  border-radius: 5px;
  text-align: left;
  font-size: 14px;
}

.message.user-txt {
  background: #d3f2d8;
  text-align: right;
}

.username {
  font-weight: bold;
}

.time {
  font-size: 10px;
  color: #666;
  margin-left: 5px;
}

.avatar{
  margin-left: 5px;
}

.inputs {
  display: flex;
  flex-direction: column;
  padding: 5px;
  gap: 10px;
}

.pseudo,
.couleur,
.message-input {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 14px;
}

.send-btn {
  padding: 10px;
  background: #4CAF50;
  color: white;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
  transition: background-color 0.3s;
}

.send-btn:hover {
  background: #45a049;
}

.bg {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
  background-size: 500% 500%;
  background-image: linear-gradient(-45deg, rgb(68, 170, 82) 0%, rgb(122, 202, 93) 25%, rgb(104, 229, 121) 51%, #7fbf5f 100%);
  animation: AnimateBG 10s ease infinite;
}

@keyframes AnimateBG {
  0% {
      background-position: 0% 50%;
  }
  50% {
      background-position: 100% 50%;
  }
  100% {
      background-position: 0% 50%;
  }
}


.chat-box::-webkit-scrollbar {
  width: 8px;
}

.chat-box::-webkit-scrollbar-thumb {
  background: #4CAF50;
  border-radius: 10px;
}
