/* Chatroom specific styles */

.server-message {
  color: #00ff00; /* Bright green */
  font-weight: bold; /* Bold text */
}

.chatMaintenance {
  pointer-events: none;
  opacity: 0.5;
}

#messageInputWrapper {
  position: relative;
  display: flex;
  width: 100%;
  z-index: 1;
}


#messageInput {
  width: 100%;
  padding: 10px;
  border-radius: 4px;
  border: 1px solid #ccc;
  box-sizing: border-box;
  padding-right: 60px;
}

#sendMessage {
  position: absolute;
  right: 5px;
  top: 50%;
  transform: translateY(-50%);
  padding: 5px 10px;
  border: none;
  background-color: #4CAF50;
  color: white;
  border-radius: 4px;
  cursor: pointer;
  height: 30px;
}

#sendMessage:hover {
  background-color: #45a049;
}

#chatroom {
  margin-top: 20px;
}

#messages {
  height: 400px;
  overflow-y: auto;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  margin-bottom: 10px;
}

.message {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.timestamp {
  margin-right: 10px;
  color: gray;
  font-size: 0.85em;
}

.username {
  color: blue;
  font-weight: bold;
  margin-right: 5px;
}

.username.admin {
  color: red;
}

.username.owner {
  color: darkred;
}

.admin-tag {
  color: red;
  font-weight: bold;
  margin-right: 5px;
}

.owner-tag {
  color: darkred;
  font-weight: bold;
  margin-right: 5px;
}

@keyframes rainbowAnimation {
  0% {
    background-position: 0% 50%;
    color: black;
  }
  10% {
    color: transparent;
  }
  50% {
    background-position: 100% 50%;
    color: transparent;
  }
  90% {
    color: transparent;
  }
  100% {
    background-position: 0% 50%;
    color: black;
  }
}

.rainbow-name {
  background-image: linear-gradient(
    90deg,
    red,
    orange,
    yellow,
    green,
    cyan,
    blue,
    violet,
    red
  );
  background-size: 400%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: rainbowAnimation 6s linear infinite;
}


.text {
  word-wrap: break-word;
}