@charset "UTF-8";

body {
	font-family: Arial, sans-serif;
}

.post-box {
	border: 1px solid #ccc;
	padding: 20px;
	margin-bottom: 30px;
}

.comment-box {
	margin-bottom: 10px;
	padding: 10px;
	border-bottom: 1px solid #eee;
}

textarea {
  resize: none;
  overflow: hidden;
}

#postContent {
	resize: none;
	overflow-y: hidden;
}

.comment-author {
	font-weight: bold;
}

.post {
	position: relative;
	border-radius: 12px;
	padding: 12px 14px; 
	margin-bottom : 10px; 
	max-width : 70%; 
	font-size :	14px;
	line-height: 1.6;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
	transition: all 0.25s ease-in-out;
	color: #1c1c1c;
	/* margin-bottom: 10px;
	max-width: 70%; */
	font-size: 14px; /* 글자색은 진회색으로 선명하게 */
}

/* 내 메시지 */
.post.mine {
  background-color: #A8FFF0; /* 기존 색상 유지 */
  margin-left: auto;
}

.post.mine::after {
  content: "";
  position: absolute;
  bottom: -10px;
  right: 20px;
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 10px solid #A8FFF0;
}

/* 다른 세션의 메시지 */
.post.other {
  background-color: #ffd1dc; /* 분홍색 */
  margin-right: auto;
}

.post.other::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 20px;
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 10px solid #ffd1dc;
}

.post:hover {
	background-color: #94f0e3; /* 조금 더 진한 민트로 hover */
	transform: scale(1.01); /* 살짝 커지는 느낌 */
}

.post p:first-child {
	font-weight: bold;
	font-size: 16px;
	margin-bottom: 6px;
	color: #003b46;
}

.post p:nth-child(2) {
	font-size: 15px;
	color: #333;
	word-break: break-word;
}

/* 상단 유저 정보 */
.post-header {
	font-size: 13px;
	color: #555;
	margin-bottom: 6px;
}

/* 말풍선 꼬리 */
.post {
	position: relative;
}

.post::after {
	content: "";
	position: absolute;
	bottom: -10px;
	left: 20px;
	width: 0;
	height: 0;
	border-left: 8px solid transparent;
	border-right: 8px solid transparent;
	border-top: 10px solid #A8FFF0; /* 배경색과 같게 */
}

.chat-area {
	height: 60%; /* 또는 flex-grow 사용 */
	width: 100%;
}

.chat-input-wrapper {
	display: flex;
	padding: 10px;
	gap: 10px;
	border-top: 1px solid #333;
	background-color: #1E2026;
}

.chat-input-wrapper textarea {
	flex: 1;
	resize: none;
	padding: 10px;
	background-color: #2a2a2a;
	color: #fff;
	border: 1px solid #444;
	border-radius: 6px;
	height: 30px;
	font-size: 12px;
}

.chat-input-wrapper button {
	padding: 10px 16px;
	background-color: #00b386;
	color: white;
	border: none;
	border-radius: 6px;
	cursor: pointer;
	height: 30px;
}

#postList {
	height: 100%;
	max-height: 400px; /* 또는 원하는 높이 */
	overflow-y: auto;
	padding: 10px;
	box-sizing: border-box;
}