#webviewContainer {
	width: 65%;
	height: 65%;
	position: absolute;
	top: 50%;
	left: 40%;
	transform: translate(-50%, -50%);
	z-index: 999;
	display: none;
}

iframe {
	width: 100%;
	height: 100%;
	border: none;
}

#unity-container {
overflow:hidden;
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 1;
}

#unity-canvas {
	width: 100% !important;
	height: 100% !important;
	cursor: none !important;
	z-index: 5;
}

#custom-loading-text {
	margin-bottom: 20px;
	text-align: center;
}

#custom-loading-bar-container {
	width: 100%;
	height: 20px;
	background-color: #333;
	border-radius: 10px;
	overflow: hidden;
}

#custom-loading-bar-fill {
	height: 100%;
	width: 00%;
	background-color: #4caf50;
	transition: width 0.3s ease;
	color:green;
}

#custom-loading-screen {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: black;
	color: white;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: space-evenly;
	font-size: 1.5em;
	z-index: 99999;
	transition: opacity 0.6s ease;
}

#loading-logo {
	width: 25%;
	height: auto;
	animation: pulse 2s infinite ease-in-out;
}

@keyframes pulse {
	0%, 100% {
		transform: scale(1);
		opacity: 1;
	}

	50% {
		transform: scale(1.05);
		opacity: 0.8;
	}
}

#custom-progress-bar {
	width: 50%;
	height: 16px;
	margin: 0 auto;
	background-color: #ccc;
	border-radius: 8px;
	overflow: hidden;
}

#custom-progress-fill {
	height: 100%;
	width: 100%;
	background-color: #007bff;
	transition: width 0.2s ease;
}

#custom-load-div {
	margin: 0 auto;
	width: 60%;
}

#loading-logo-univr {
	width: 15%;
}

/* Overlay affiché en cas de perte du contexte WebGL (CONTEXT_LOST_WEBGL) */
#webgl-context-lost-overlay {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.85);
	z-index: 100000;
	align-items: center;
	justify-content: center;
}

#webgl-context-lost-box {
	background-color: #1a1a2e;
	border: 1px solid #444;
	border-radius: 16px;
	padding: 50px 60px;
	text-align: center;
	max-width: 500px;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

#webgl-error-logo {
	width: 120px;
	height: auto;
	margin-bottom: 24px;
}

#webgl-error-title {
	color: #ffffff;
	font-size: 1.6em;
	font-weight: bold;
	margin: 0 0 16px 0;
}

#webgl-error-message {
	color: #cccccc;
	font-size: 1em;
	line-height: 1.6;
	margin: 0 0 32px 0;
}

#webgl-reload-btn {
	background-color: #4caf50;
	color: white;
	border: none;
	padding: 14px 40px;
	font-size: 1.1em;
	border-radius: 8px;
	cursor: pointer;
	transition: background-color 0.2s ease;
}

#webgl-reload-btn:hover {
	background-color: #45a049;
}

