/* Chat container */
.chat-container {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  border: 1px solid #ccc;
  box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 75vh;
}

.kakao-ad{
  margin-top:20px;
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 300px;
  min-height: 250px;
}

/* Profile */
.profile {
  display: flex;
  align-items: center;
  padding: 10px;
  background-color: black;
  color: #fff;
}

.profile img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin-right: 10px;
}

.profile h3 {
  margin: 0;
  font-size: 20px;
}

/* Chat body */
.chat-body {
  flex: 1;
  overflow-y: scroll;
  padding: 10px;
  background-color: #f2f2f2;
}

/* Chat message */
.message {
  margin-bottom: 10px;
  padding: 10px;
  border-radius: 5px;
  font-size: 14px;
  line-height: 1.4;
  max-width: 80%;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
}

/* Chat message position */
.message.right {
  background-color: black;
  color: #fff;
  align-self: flex-end;
}

.message.left {
  background-color: #fff;
  color: #333;
  align-self: flex-start;
}

.message-profile {
  margin-right: 100%;
}

.message-profile img {
  width: 30px;
  height: 30px;
  border-radius: 50%;
}

.message-content {
  display: inline-block;
  max-width: calc(100% - 40px); /* Adjust this value based on your desired width */
}

.message-time {
  font-size: 12px;
  color: #ccc;
  margin-top: 5px;
  text-align: right;
  margin-left: auto;
}


/* Chat footer */
.chat-footer {
  padding: 10px;
  background-color: #f2f2f2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  bottom: 0;
}

/* Buttons container */
.buttons-container {
  padding: 10px;
  background-color: #f2f2f2;
  display: flex;
  justify-content: flex-start; /* Align buttons to the left */
}

.buttons-container button {
  border: none;
  margin-left: 5px;
  margin-right: 5px;
  padding: 10px;
  border-radius: 5px;
  font-size: 12px;
  background-color: black;
  color: #fff;
  cursor: pointer;
}



/* Chat input field */
#input {
  flex-grow: 1;
  border: none;
  padding: 10px;
  border-radius: 5px;
  font-size: 16px;
  margin-right: 10px;
}

/* Chat send button */
#send {
  border: none;
  padding: 10px;
  border-radius: 5px;
  font-size: 16px;
  background-color: black;
  color: #fff;
  cursor: pointer;
}

#loading-icon {
  display: none;
  margin-left: 5px;
}
