* {
  box-sizing: border-box;
}
html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  width: 100%;
  overflow: hidden;
  background-color: #000;
  font-family: sans-serif;
  color: #fff;
}
model-viewer {
  width: 100%;
  height: 100%;
  display: block;
}

/* --- UI要素のスタイル --- */
#drop-area {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: rgba(0, 0, 0, 0.85);
  color: #fff;
  font-size: 20px;
  border: 3px dashed #aaa;
  padding: 2rem;
  text-align: center;
  z-index: 10;
}
#drop-area.hidden {
  display: none;
}
#filename {
  position: absolute;
  top: 10px;
  left: 10px;
  background-color: rgba(0,0,0,0.5);
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 16px;
  max-width: 90vw;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  z-index: 5;
}
#delete-button {
  position: absolute;
  bottom: 20px;
  left: 20px;
  background-color: #c00;
  color: white;
  padding: 10px 16px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  display: none;
  z-index: 20;
}

/* --- 読み込み中オーバーレイのスタイル --- */
#loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9); /* 少し暗めの背景 */
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 24px;
  z-index: 100; /* 最前面に表示 */
}
#loading-overlay.hidden {
  display: none;
}

/* スマートフォン縦画面向けのアスペクト比調整（CSSでは直接行わない） */
/* CSSではmodel-viewerの表示サイズのみを制御し、
   内部のカメラ設定はJavaScriptで行います。 */
@media screen and (orientation: portrait) and (max-width: 768px) {
  /* ここに特別なCSS調整は不要です */
}