/* Estilos para asegurar el fondo azul en cualquier espacio sobrante */
body,
html {
	margin: 0;
	padding: 0;
	overflow: hidden;
	background-color: #87ceeb; /* Fondo azul */
	display: flex;
	align-items: center;
	justify-content: center;
	height: 100vh;
	width: 100vw;
}
input {
	font-size: 20px;
	padding: 10px;
	width: 300px;
	background-color: white;
	z-index: 9999;
	margin: 0 auto;
}
.dom-element {
	position: absolute;
}
#gameContainer {
	width: 100%;
	height: 100%;
	max-width: 800px; /* Ancho máximo del juego */
	max-height: 450px; /* Altura máxima del juego */
	background-color: transparent; /* Fondo azul en caso de espacio sobrante */
	display: flex;
	justify-content: center;
	align-items: center;
	position: relative; /* Necesario para la posición de los fondos */
	z-index: 99; /* Asegúrate de que esté delante de otros elementos */
}

.background {
	position: absolute; /* Posición absoluta para colocar correctamente los fondos */
	top: 0;
	left: 0;
	width: 100%; /* Asegúrate de que la imagen cubra todo el contenedor */
	height: 100%;
	object-fit: cover; /* Asegura que la imagen cubra el contenedor sin distorsión */
	z-index: 0; /* Fondo detrás del canvas de Phaser */
}

#backgroundBack {
	z-index: -99;
}

#rotateMessage {
	position: absolute;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	background-color: rgba(0, 0, 0, 0.8);
	color: white;
	font-size: 24px;
	display: flex;
	justify-content: center;
	align-items: center;
	text-align: center;
	z-index: 10;
	display: none; /* Oculto por defecto */
}
