@import url("https://webfontworld.github.io/NanumBarunpen/NanumBarunpen.css");

body {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "NanumBarunpen", Arial, sans-serif;
}
.container {
  width: 100%;
  height: 100vh;
  background-color: #2c2c2c;

  display: flex;
  align-items: center;
  justify-content: center;
}
.chat-container {
  width: 500px;
  height: 600px;
  background-color: #fff;
  border-radius: 12px;

  padding: 20px;
  font-size: 1.3rem;
  position: relative;
}

.chat-box {
  background-color: #f2f2f2;
  padding: 10px;
  border-radius: 10px;
  margin-bottom: 10px;
  overflow-y: auto;
  height: 490px;
}
.chat-box::-webkit-scrollbar {
  width: 10px;
}
.chat-box::-webkit-scrollbar-thumb {
  height: 30%;
  background: #1a1a1a;

  border-radius: 10px;
}
.chat-box::-webkit-scrollbar-track {
  background: rgba(65, 65, 65, 0.1);
}

.chat-message {
  background-color: #fff;
  padding: 10px;
  margin-left: 20px;
  margin-right: 20px;
  border-radius: 10px;
  margin-bottom: 10px;
  position: relative;
}

.chat-message p {
  margin: 0;
  padding: 0;
}

.chat-input {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
  display: flex;
  margin-top: 20px;
}

.chat-input input {
  flex: 1;
  padding: 10px;
  border: none;
  border-bottom: 1px solid #444;
  margin-right: 10px;
  outline: transparent;
  font-size: 1.13rem;
}

.chat-input button {
  background-color: #5e77b6;
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  transition: 0.25s;
  font-size: 1.2rem;
}

.chat-input button:hover {
  background-color: #374870;
  transition: 0.25s;
}

.assistant {
  color: rgb(36, 36, 62);
  position: relative;
  font-weight: 800;
}

.assistant::before {
  content: "";
  display: block;
  position: absolute;
  bottom: -3px;
  left: -36px;

  width: 0;
  height: 0;
  border-bottom: 10px solid transparent;
  border-top: 10px solid transparent;
  border-left: 10px solid transparent;
  border-right: 20px solid #fff;
}

.user {
  color: #222;
  position: relative;
}
.user::after {
  content: "";
  display: block;
  position: absolute;
  bottom: -3px;
  right: -36px;

  width: 0;
  height: 0;
  border-bottom: 10px solid transparent;
  border-top: 10px solid transparent;
  border-right: 10px solid transparent;
  border-left: 20px solid #fff;
}

/* LOADER */
#loader {
  font-size: 25px;
  text-align: center;
}
