#chatBox {
  position: relative;
}

#chatList {
  font-family: Arial, Helvetica, sans-serif;
  width: 100%;
  height: 100%;
  padding: 10px;
  word-break: break-all;
  overflow-y: scroll;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

#chatList .chat {
  position: relative;
}

#chatList .chat ul {
  position: absolute;
  display: none;
  flex-direction: column;
  border: 1px solid #bbb;
  background-color: #fff;
  width: 100px;
  font-size: 0.9em;
  z-index: 10;
}

#chatList .chat ul.active {
  display: flex;
}

#chatList .chat ul li {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 6px 0;
  border-bottom: 1px solid #bbb;
  cursor: pointer;
}

#chatList .chat ul li:last-child {
  border-bottom: 0;
}

#chatList .chat ul li.unactive {
  display: none;
}

#chatList .chat ul li:hover {
  background-color: #eee;
}

#chatList .nickName {
  font-weight: bold;
  margin-right: 10px;
  cursor: pointer;
}

#chatList .nickName img {
  width: 14px;
  height: 14px;
  margin-right: 4px;
}

#chatList .datetime {
  /* display: flex; */
  justify-content: flex-start;
  align-items: center;
  color: #888;
  font-size: 0.9em;
  margin-right: 4px;
  padding: 6px 0;
}

#chatList .time {
  color: #888;
  font-size: 0.9em;
  margin-right: 4px;
}

.message.red {
  color: red;
  background-color: rgb(255, 230, 230);
}

.message.blue {
  color: blue;
  background-color: rgb(230, 230, 255);
}

.message.green {
  color: green;
  background-color: rgb(230, 255, 230);
}

.message.dType {
  color: #000;
  background-color: rgb(255, 255, 0);
}

.message.eType {
  color: #000;
  background-color: rgb(0, 255, 200);
}

/* #newMessage {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  display: none;
  justify-content: center;
  align-items: center;
  gap: 10px;
  background-color: #fff;
  padding: 10px;
  border: 1px solid #bbb;
  cursor: pointer;
} */

#newMessage {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translate(-50%, 0);
  width: 90%;
  display: none;
  /* display: flex; */
  justify-content: center;
  align-items: center;
  gap: 10px;
  background-color: #fff;
  padding: 10px;
  box-sizing: border-box;
  border: 1px solid #bbb;
  cursor: pointer;
}

#newMessage.active {
  display: flex;
}

@media (max-width: 1280px) {
  body {
    font-size: 0.8em;
  }
}

#colorSelect {
  position: fixed;
  top: 0;
  left: 0;
  display: none;
  /* display: flex; */
  justify-content: center;
  align-items: center;
  flex-direction: column;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

#colorSelect .wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  width: max-content;
  gap: 10px;
  padding: 20px;
  background-color: #fff;
  border: 1px solid #bbb;
}

#colorSelect.active {
  display: flex;
}

#colorSelect .colors {
  width: 100%;
  display: flex;
  gap: 10px;
}

#colorSelect .colors div {
  width: 40px;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}

#colorSelect .red {
  color: red;
  background-color: rgb(255, 230, 230);
}

#colorSelect .blue {
  color: blue;
  background-color: rgb(230, 230, 255);
}

#colorSelect .green {
  color: green;
  background-color: rgb(230, 255, 230);
}

#colorSelect .dType {
  color: #000;
  background-color: rgb(255, 255, 0);
}

#colorSelect .eType {
  color: #000;
  background-color: rgb(0, 255, 200);
}