html {
	-ms-touch-action: none;
}

body,
canvas,
div {
	display: block;
	outline: none;
	-webkit-tap-highlight-color: rgba(0, 0, 0, 0);

	user-select: none;
	-moz-user-select: none;
	-webkit-user-select: none;
	-ms-user-select: none;
	-khtml-user-select: none;
	-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

/* Remove spin of input type number */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
	/* display: none; <- Crashes Chrome on hover */
	-webkit-appearance: none;
	margin: 0;
	/* <-- Apparently some margin are still there even though it's hidden */
}

body {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	padding: 0;
	border: 0;
	margin: 0;

	cursor: default;
	color: #888;
	background-color: #333;

	text-align: center;
	font-family: Helvetica, Verdana, Arial, sans-serif;

	display: flex;
	flex-direction: column;
}

canvas {
	background-color: rgba(0, 0, 0, 0);
}

#GameDiv,
#Cocos3dGameContainer,
#GameCanvas {
	width: 100%;
	height: 100%;
	position: relative;
}

:root {
	--safe-top: env(safe-area-inset-top);
	--safe-right: env(safe-area-inset-right);
	--safe-bottom: env(safe-area-inset-bottom);
	--safe-left: env(safe-area-inset-left);
}

html,
body {
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 0;
}

.root {
	width: 100%;
	height: 100%;
	position: absolute;
	left: 0;
	top: 0;
}

.box {
	width: 100%;
	height: 100%;
	display: flex;
	justify-content: center;
	align-items: center;
	padding-bottom: 80%;
	box-sizing: border-box;
}

.toast {
	padding: 6px 15px;
	box-sizing: border-box;
	font-size: 16px;
	background: rgb(215, 215, 215);
	color: #fff;
	opacity: 0;
	border-radius: 10px;
	transition: opacity 0.5s ease-in;
	z-index: 100;
}

   
@keyframes spin {
	0% { transform: rotate(0deg); }
	100% { transform: rotate(360deg); }
}


.flex-child {
	margin-right: 10px; /* 可以添加间距 */
}

.splash-screen {
	z-index: 99;
	position: absolute;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
}

.splash-screen-image {
	display: block;
	max-width: 100%;
	max-height: 100%;
	margin: 0 auto;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
}

.progress-bar {
	position: relative;
	bottom: 10%;
	/* 调整进度条距离底部的距离 */
	left: 50%;
	transform: translateX(-50%);
	width: 70%;
	height: 20px;
	background-color: #f5f5f5;
	border-radius: 10px;
}

.progress-bar-fill {
	height: 100%;
	background-color: #4CAF50;
	width: 0;
	border-radius: 10px;
	transition: width 0s;
}

.flex-container {
	display: flex;
	justify-content: center;
	align-items: center;
}

.spinner {
	width: 16px;
	height: 16px;
	margin: 0px;
	border-radius: 50%; /* 使div变成圆形 */
	border: 2px solid #f3f3f3; /* 转圈的边框颜色和宽度 */
	border-top-color: #333; /* 转动时的颜色 */
	animation: spin 2s linear infinite; /* 应用转动动画 */
}

.progress-text {
	margin: 0px;
	font-size: 20px;
	color: #FFFFFF;
	direction: rtl;
	-webkit-text-stroke: 1px black;
}