/* General Reset */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

/* styles.css */
body {
	margin: 0;
	font-family: Arial, sans-serif;
	background-color: #f0f4f7;
	display: flex;
	justify-content: center;
	align-items: center;
	height: 100vh;
	overflow: hidden;
}

.voice-chat-ui {
	text-align: center;
	padding: 20px;
	border-radius: 15px;
	width: 300px;
}

/* 水波纹部分 */
.ripple-container {
	position: relative;
	width: 150px;
	height: 200px;
	margin: 0 auto;
	user-select: none;
	pointer-events: none;
}

.ripple-image {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 200px;
	height: 120px;
	border-radius: 50%;
	transform: translate(-50%, -50%);
	z-index: 2;
	object-fit: contain;
}

.ripple {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 150px;
	height: 150px;
	margin: -50% 0 0 -50%;
	border: 3px solid #3498db;
	border-radius: 50%;
	opacity: 0.8;
	animation: ripple-animation 2s infinite ease-in-out;
	z-index: 1;
}

#ripple2 {
	animation-delay: 0.5s;
}

#ripple3 {
	animation-delay: 1s;
}

@keyframes ripple-animation {
	0% {
		transform: scale(1);
		opacity: 0.8;
	}

	50% {
		transform: scale(1.5);
		opacity: 0.4;
	}

	100% {
		transform: scale(2);
		opacity: 0;
	}
}

.ripple-text {
	display: none;
	position: absolute;
	left: -65%;
}

.ripple-text>div {
	position: absolute;
	top: 10px;
	left: 20px;
}



/* 文本展示 */
.text-display {
	margin-top: 20px;
	font-size: 14px;
	color: #333;
}

/* 按钮样式 */
.controls button {
	border-radius: 8px;
	text-shadow: none;
	box-shadow: none;
	border: none;
	background: linear-gradient(95.87deg, #1664FF 0%, #8040FF 97.7%);
	padding: 10px 20px;
	color: white;
	font-size: 14px;
	cursor: pointer;
	transition: background-color 0.3s;
	margin-bottom: 8px;
}

.controls button:disabled {
	background-color: #ccc;
	cursor: not-allowed;
}

.controls button:hover:not(:disabled) {
	background-color: #2980b9;
}

/* 麦克风切换 */
.mic-list {
	margin-top: 15px;
}

.mic-list label {
	margin-right: 5px;
	font-size: 14px;
	color: #666;
}

.mic-list select {
	padding: 5px;
	font-size: 14px;
	border-radius: 5px;
	border: 1px solid #ccc;
}




/* Overlay Style */
.overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.5);
	/* Transparent background */
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 1000;
}

/* Modal Container */
.modal {
	background: #ffffff;
	padding: 20px 30px;
	width: 90%;
	max-width: 400px;
	border-radius: 12px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
	text-align: center;
	animation: slideIn 0.3s ease-out;
}

/* Modal Title */
.modal-title {
	font-size: 1.5rem;
	font-weight: bold;
	margin-bottom: 8px;
	color: #333333;
}

/* Modal Subtitle */
.modal-subtitle {
	font-size: 0.9rem;
	color: #666666;
	margin-bottom: 20px;
}

/* Form Styles */
.modal-form {
	display: flex;
	flex-direction: column;
	gap: 15px;
}

/* Input Group */
.input-group label {
	display: block;
	font-size: 0.9rem;
	margin-bottom: 5px;
	color: #555555;
	text-align: left;
}

.input-group input {
	width: 100%;
	padding: 10px;
	font-size: 1rem;
	border: 1px solid #cccccc;
	border-radius: 8px;
	outline: none;
	transition: border-color 0.2s;
}

.input-group input:focus {
	border-color: #2196f3;
}

/* Login Button */
.modal-button {
	background: linear-gradient(95.87deg, #1664FF 0%, #8040FF 97.7%);
	color: #ffffff;
	font-size: 1rem;
	padding: 10px;
	border: none;
	border-radius: 8px;
	cursor: pointer;
	transition: background 0.2s;
}

.modal-button:hover {
	background: linear-gradient(95.87deg, #aa00ff 0%, #8040FF 97.7%);
}

/* Animation */
@keyframes slideIn {
	from {
		transform: translateY(-50%);
		opacity: 0;
	}

	to {
		transform: translateY(0);
		opacity: 1;
	}
}