body { padding: 0; margin: 0; background-color: #000; overflow: hidden;}
body::-webkit-scrollbar { display: none; }
#unity-container { position: absolute; width: 100%; height: 100% }
#unity-canvas { background: #000 }
#unity-loading-bar { width: 100%; height: 100%; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: none }
#unity-logo { margin-top: 5vh;margin-left: 30vh; margin-right: 30vh;width: auto; height: 45vh; background: no-repeat center; background-size:contain ;} 
#unity-progress-bar-empty { width: 284px; height: 15%; margin: 0 auto; background-image: url('progress-bar-empty-dark.png'); background-repeat: no-repeat; background-position: center; background-size: contain; }
#unity-progress-bar-full { width: 0%; height: 100%; background: url('progress-bar-full-dark.png') no-repeat center }
#unity-footer { position: fixed; width: 100%; bottom: 0; margin-top: 5px; line-height: 38px; }
#unity-webgl-logo { float:left; width: 204px; height: 38px; background: url('webgl-logo.png') no-repeat center }
#unity-build-title { float: right; margin-right: 10px; line-height: 38px; font-family: arial; font-size: 18px }
#unity-fullscreen-button { float: right; width: 38px; height: 38px; background: url('fullscreen-button.png') no-repeat center }
#landscape-only-container { background-color:white; position:fixed; top:0; left:0; overflow:hidden; min-height:100%; width:100%; z-index:100;visibility:hidden}
@font-face {
  font-family: 'NotoSansJP';
  src: url('./NotoSansJP-Regular.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
}
#landscape-only-text { color:black; position: absolute; width: 100%;left: 50%; top: 50%;text-align: center;transform: translate(-50%, -50%);white-space:nowrap; overflow: hidden;resize: both;font-family: 'NotoSansJP';}
@media screen and (orientation: portrait){
    #unity-caution-text { height: 30%; display: flex; align-items: center; justify-content: center; font-size: 2.5vw; vertical-align: middle; text-align:center; }
}
@media screen and (orientation: landscape) {
    #unity-caution-text { height: 30%; display: flex; align-items: center; justify-content: center; font-size: 1.5vw; vertical-align: middle; text-align:center; }
}

#loading-overlay {
  transition: opacity 1s, visibility 0s ease 1s;
}

#loading-overlay.is-hidden {
  animation: fadeout_anim 1s;
  animation-fill-mode: forwards;
}

#loading-overlay {
    position:absolute;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100vw; 
    height: 100vh;
    background-color: #000;
    background-size: cover;
    background-position: center; 
}

@keyframes fadeout_anim {
  0% {
    opacity: 1;
    visibility: visible;
  }
  100% {
    opacity: 0;
    visibility: hidden;
  }
}

#loading-spinner {
    position: absolute;
    background: url("icon_loading_notext.png") no-repeat center;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    width: 100%;
    animation: rotate_anim 2s cubic-bezier(0.33, 1, 0.68, 1) infinite;
}
@keyframes rotate_anim {
    0% {
      transform: rotate(0deg);
    }
    100% {
      transform: rotate(360deg);
    }
}

#loading-icon {
    position: absolute;
    background: url("LoadingText.png") no-repeat center;
    background-size: contain;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 5%;
    height: 5%;
}



#popup-switch {
	/* チェックボックスを非表示 */
	display: none;
}
.popup-background {
	/* 画面全体を暗くする透過背景 */
	position: fixed;
	width: 100%;
	height: 100%;
	background: rgba(0,0,0,.5);
	top: 0;
	left: 0;
	z-index: 1000;
}
.popup-content {
	/* ポップアップ本体 */
	display: inline-block;
	position: fixed;
	width: 75%;
  height: 40vh;
	z-index: 1100;
	background: #fff;
	padding: 2%;
	top: 50%;
	left: 50%;
	transform: translate(-50%,-50%);
  text-align: center;
  border-radius: 10px;
}
.popup-close {
	/* ポップアップ内の閉じるボタン */
	position: absolute;
  display: inline-block;
  background: #09f;
  color: #fff;
  width: 10vw;
  min-width: 70px;
  /* padding: 0 1em; */
  border-radius: 3px;
  cursor: pointer;
  bottom: 10px;
  left: 50%;
  transform: translate(-40%);
}
#dialog_text {
  width: 100%;
  position: absolute;
  top: 30%;
  left: 50%;
  transform: translate(-50%, 50%);
}
#popup-switch:checked ~ .popup-background, #popup-switch:checked ~ .popup-box {
	/* ポップアップ･透過背景を閉じる */
	display: none;
}
