body{
	margin:0px;
	padding:0px;
	position: absolute; 
	height:100%;
	width:100%;
	background-size:cover;
	font-style: regular;
	font-family:"Myriad Pro", Myriad,"Helvetica Neue", Helvetica, Arial, sans-serif;
	background-color:white;
}

.webgl-content,#loadingBlock,#errorBrowserBlock{
    position: absolute; /* 절대 위치 설정 */
    top: 50%; /* 중앙 정렬을 위해 50% */
    left: 50%; /* 중앙 정렬을 위해 50% */
    transform: translate(-50%, -50%); /* 중앙 정렬 */
    height: auto; /* 자동 높이 */
    width: auto; /* 자동 너비 */
    display: flex; /* flexbox 사용 */
    justify-content: center; /* 수평 중앙 정렬 */
    align-items: center; /* 수직 중앙 정렬 */
}

#gameContainer,canvas{
	position:absolute;
	height:100%;
	width:100%;
	background-color:white;
}

#fullScreenButton{
	height:9vh;
	width:9vh;
	position:absolute;
	z-index:1;
	bottom:2vh;
	right:2vh;
	background-color:transparent;
	background-image:url("../img/ez_fullScreen_on.png");
	background-repeat: no-repeat;
	background-position: center;
	background-size: 7vh 7vh;
	border:none;
	cursor: pointer;
	display: none;
}

.subtitle{
	color:#515151;
	font-size:2.3vh;
	padding-bottom:2.3vh;
	padding-top:2.5vh;
	display: block;
	height:20vh;
	width:40vw;
	margin:auto;
	text-align: center;
}

.logo{
    position: absolute; /* 절대 위치 설정 */
    height: 15vh; /* 높이 설정 */
    width: auto; /* 너비 자동 */
    margin: 0; /* 마진 제거 */
	padding-bottom: 15vh;
}

#full {
	opacity: 0;
}


#loadingBlock,#errorBrowserBlock{
	/* background-image:url("../img/background.png"); */
	background-size:cover;
}


#emptyBar{
	background: url("../img/progressEmpty.png") no-repeat right;
	float: right; 
	width: 60%; 
	height: 100%; 
	display: inline-block;
}

#fullBar{
	background: url("../img/progressFull.png") no-repeat right;
	float: left; 
	width: 40%; 
	height: 100%; 
	display: inline-block;
}


#progressBar,#warningBrowserBlock,#warningMobileBlock,#errorContent{
	height:25vh;
	width:40vw;
	margin:auto;
	text-align: center;
}

#progressBar{
	color:#515151;
	font-size:3.5vh;
	position: absolute; /* 절대 위치 설정 */
    width: auto; /* 너비 자동 */
    padding-top: 30vh; /* 위쪽 패딩 */
}

#waitText{
	color:#9B9B9B;
	font-size:3.5vh;
	position: absolute; /* 절대 위치 설정 */
	width: auto; /* 너비 자동 */
	padding-top: 70vh; /* 위쪽 패딩 */
}

#warningBrowserBlock,#warningMobileBlock,#errorContent{
	margin-top:15vh;
	color:#666666;
	font-size:2.3vh;
}

.browserIcons{
	display: inline-flex;
	margin-top:2vh;
}

.browserIcons a{
	width:150px;
}

#errorContent{
	font-size:3vh;
	margin-top:5vh;
}

.centered{
	height: 100%;
	max-width:770px;
	margin-left:auto;
	margin-right:auto;
}


/* When aspect-ratio is smaller than 4/3*/

@media (max-aspect-ratio: 4/3){
	.webgl-content{
		-webkit-transform: translate(0%, 0%); transform: translate(0%, 0%);
		-webkit-box-shadow: 0px 0px 29px 0px rgba(0,0,0,0.15);
		-moz-box-shadow: 0px 0px 29px 0px rgba(0,0,0,0.15);
		box-shadow: 0px 0px 29px 0px rgba(0,0,0,0.15);
	}
	
	.keepRatio{
		width:100%;
		padding-top: 75%;
		position: relative;
		top: 50%;
		transform: translateY(-50%);
	}

	.webgl-content,#loadingBlock,#errorBrowserBlock{
		position: absolute;
		top: 0;
		left: 0;
		bottom: 0;
		right: 0;
		height:100%;
	}

	.logo{
		width:25vw;
		height:auto;
		margin-top:1vh;
	}
	
	.subtitle{
		font-size:2vw;
		height:10vw;
		padding-bottom:1vw;
		padding-top: 1vw;
	}

	.subtitle,#progressBar,#warningBrowserBlock,#warningMobileBlock,#errorContent{
		width:80vw;
	}
	
	#progressBar{
		height:6vw;
		margin-top: 2vw;
		font-size:3vw;
	}
	
	#emptyBar,#fullBar{
		height: 2vw; 
	}
	
	#warningBrowserBlock,#warningMobileBlock,#errorContent{
		margin-top:3vw;
		font-size:2vw;
	}
	
	.browserIcons{
		margin-top:1vw;
	}
	
	.browserIcons a{
		width:15vw;
	}
	
	.browserIcons a img{
		width:8vw;
	}
}


/* When aspect-ratio is bigger than 16/9*/

@media (min-aspect-ratio: 16/9){
	body{
		display:flex;
		flex-wrap:wrap;
		justify-content:space-between;
	}
	
	.keepRatio{
		width:178vh;
		height:100%;
		margin:0 auto;
	}
	
	.webgl-content,#gameContainer,canvas,#loadingBlock,#errorBrowserBlock{
		width: inherit;
	}
	
	.webgl-content{
		-webkit-box-shadow: 0px 0px 29px 0px rgba(0,0,0,0.15);
		-moz-box-shadow: 0px 0px 29px 0px rgba(0,0,0,0.15);
		box-shadow: 0px 0px 29px 0px rgba(0,0,0,0.15);
	}
	
	.subtitle,#progressBar,#warningBrowserBlock,#warningMobileBlock,#errorContent{
		width:100vh;
	}
}
