html, body {
	margin: 0;
	font-family: Arial, sans-serif;
	background: #f1f1f1;
	height: 100%;
	max-height: 650px;
	aspect-ratio: 9 / 16;
	display: flex;
	justify-content: center;
	align-items: flex-end;
}

#app {
	position: absolute;
	top: 0px;
	left: 0px;
	height: 100%;
	max-height: 650px;
	aspect-ratio: 9 / 16;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

.rtc_box_wrapper {
	position: absolute;
	top: 0px;
	left: 0px;
	height: 100%;
	max-height: 650px;
	aspect-ratio: 9 / 16;
	margin: 0 auto;
}
.rtc_box {
	width: 100%;
	height: 100%;
	margin: 0 auto;
	z-index: 1;
}
.rtc-container {
	width: 100%;
	height: 100%;
	margin: 0 auto;
}

.languageSelect {
	position: absolute;
	top: 70%;
	left: 50%;
	color: black;
	transform: translate(-50%, -50%); /* center the text */
	font-size: 18px;
	font-weight: bold;
	background: rgba(0, 123, 255, 0);; /* transparent background */
	padding: 5px 5px;
	border-radius: 5px;
	border: 0px;
	user-select: none;  /* Make it non-selectable */
	-webkit-user-select: none;  /* Safari */
	-moz-user-select: none;	 /* Firefox */
	-ms-user-select: none;	  /* IE/Edge */
	z-index: 999;
}
.languageSelectBox {
	background: rgba(0, 123, 255, 0.5);; /* semi-transparent background */
	color: white;
	font-size: 18px;
	font-weight: bold;
	border-radius: 5px;
	border: 0px;
	cursor: pointer;
}

.start_chat_button {
	position: absolute;
	top: 85%;
	left: 50%;
	transform: translate(-50%, -50%); /* center the text */
	color: white;
	font-size: 18px;
	font-weight: bold;
	background: rgba(0, 123, 255, 0.7); /* semi-transparent background */
	padding: 5px 5px;
	border-radius: 5px;
	border: 0px;
	cursor: pointer;
	z-index: 999;
}
.start_chat_button:hover {
	background-color: #66b1ff; /* lighter blue on hover */
	cursor: pointer;
}
.error-indicator {
	position: absolute;
	top: 90%;
	left: 0%;
	color: white;
	font-size: 18px;
	background: rgba(0, 123, 255, 0.2); /* semi-transparent background */
	padding: 2px 2px;
	border-radius: 5px;
	z-index: 999;
}
.stop_chat_button {
	position: absolute;
	top: 10px;
	right: 10px;
	width: 25px;
	height: 25px;
	padding: 0px 0px 0px 0px;
	color: white;
	font-size: 18px;
	font-weight: bold;
	background: rgba(0, 123, 255, 0); /* transparent background*/
	border: 0px;
	border-radius: 50%;
	cursor: pointer;
	overflow: hidden;
	z-index: 9999;
}
.stop_chat_button:hover {
	color: red;
	cursor: pointer;
	transform: scale(1.25);
}
.destroy_chat_button {
	position: absolute;
	top: 4%;
	left: 94%;
	width: 20px;
	height: 20px;
	padding: 0px -4px 4px;
	color: white;
	font-size: 18px;
	font-weight: bold;
	background: rgba(0, 123, 255, 0.7); /* semi-transparent background */
	border: 0px;
	overflow: hidden;
	z-index: 999;
}
.destroy_chat_button:hover {
	background-color: #66b1ff; /* lighter blue on hover */
	cursor: pointer;
}

.chat-container {
	position: absolute;
	top: 0px;
	left: 0px;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	height: 100%;
	width: 100%;
	background: white;
	box-shadow: 0 0 10px rgba(0,0,0,0.1);
	background: rgba(255,255,255,0);
	overflow: hidden;
	z-index: 999;
}
.chat-messages {
	max-height: 25%;
	overflow-y: auto;
	padding: 10px;
	font-size: 15px;
	display: flex;
	flex-direction: column;
	gap: 10px;
	scroll-behavior: smooth;
	background: rgba(255,255,255,0);
	-ms-overflow-style: none; /* IE and Edge */
	scrollbar-width: none; /* Firefox */
	/* Top fade using mask */
	-webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 20%);
	mask-image: linear-gradient(to bottom, transparent 0%, black 20%);
	z-index: 999;
}
/* Existing styles omitted for brevity */
.chat-messages::-webkit-scrollbar {
	width: 0;
	height: 0;
}
.message {
	max-width: 80%;
	padding: 10px 15px;
	border-radius: 15px;
	background: rgba(238,238,238, 0.8);
	align-self: flex-start;
}
.message.user {
	background: rgba(64, 158, 255, 1);
	color: white;
	align-self: flex-end;
}
.typing-indicator {
	max-width: 80%;
	padding: 10px 15px;
	border-radius: 15px;
	background: rgba(238,238,238, 0.8);
	align-self: flex-start;
	font-style: italic;
	color: #999;
}
.live-preview {
	max-width: 80%;
	padding: 10px 15px;
	border-radius: 15px;
	background: rgba(217, 233, 255, 1);
	color: #333;
	align-self: flex-end;
	font-style: italic;
	opacity: 0.8;
	margin-top: 5px;
}
.chat-input {
	display: flex;
	align-items: center;
	padding: 0px 10px 10px 10px;
	/* border-top: 1px solid #ccc; */
	/* background: #fafafa; */
	border: 0px;
	background: rgba(250, 250, 250, 0);
	z-index: 999;
}
.chat-input input, .volume-bars {
	flex: 1;
	height: 40px;
	padding: 0 10px;
	border-radius: 20px;
	border: 1px solid #ccc;
	margin-right: 5px;
	background: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	z-index: 999;
}
.chat-input button {
	height: 40px;
	width: 40px;
	background: #409EFF;
	color: white;
	border: none;
	padding: 0px 0px 3px 3px;
	border-radius: 35%;
	font-size: 18px;
	margin-left: 5px;
	z-index: 999;
}
.chat-input button:hover {
	background-color: #66b1ff; /* lighter blue on hover */
	cursor: pointer;
}
.volume-bar {
	width: 4px;
	min-height: 10px;
	background-color: #409EFF;
	border-radius: 2px;
	margin: 0 1px;
	transition: height 0.1s ease, box-shadow 0.2s ease, background-color 0.2s ease;
	z-index: 999;
}
.voice-prompt {
	position: absolute;
	left: 15px;
	text-align: left;
	font-size: 14px;
	color: #666;
	opacity: 1;
	transition: opacity 1s ease;
}
 .voice-prompt.hidden {
	opacity: 0;
}