html, body {
  padding: 0;
  margin: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;

  background-color: #000;
  background-image: url('./load.jpeg');
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
}

#unity-container {
  position: absolute;

  background-color: #000;
  background-image: url('./load.jpeg');
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
}

#unity-container.unity-desktop {
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

#unity-container.unity-mobile {
  position: fixed;
  width: 100%;
  height: 100%;
}

/* สำคัญ: เอาพื้นหลังดำเดิมออก แล้วใส่ภาพพื้นหลังเข้า canvas ด้วย */
#unity-canvas {
  background-color: transparent !important;
  background-image: url('./load.jpeg') !important;
  background-repeat: no-repeat !important;
  background-position: center center !important;
  background-size: cover !important;
}

.unity-mobile #unity-canvas {
  width: 100%;
  height: 100%;
}

/* ตัวโหลดอยู่กลางจอ */
#unity-loading-bar {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: none;
  width: 180px;
  text-align: center;
  z-index: 10;
}

/* เอาโลโก้ Unity ออก */
#unity-logo {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  background: none !important;
}

/* ตัวโหลด Unity */
#unity-progress-bar-empty {
  width: 141px;
  height: 18px;
  margin: 0 auto;
  background: url('./progress-bar-empty-dark.png') no-repeat center;
}

#unity-progress-bar-full {
  width: 0%;
  height: 18px;
  margin-top: 0;
  background: url('./progress-bar-full-dark.png') no-repeat center;
}

#unity-footer {
  position: relative;
}

.unity-mobile #unity-footer {
  display: none;
}

#unity-logo-title-footer {
  display: none !important;
}

#unity-build-title {
  float: right;
  margin-right: 10px;
  line-height: 38px;
  font-family: arial;
  font-size: 18px;
}

#unity-fullscreen-button {
  cursor: pointer;
  float: right;
  width: 38px;
  height: 38px;
  background: url('./fullscreen-button.png') no-repeat center;
}

#unity-warning {
  position: absolute;
  left: 50%;
  top: 5%;
  transform: translate(-50%);
  background: white;
  padding: 10px;
  display: none;
  z-index: 20;
}