html,
body {
  width: 100%;
  height: 100%;
  min-height: 100%;
  overflow: hidden;
  margin: 0;
  background: #333;
}

body {
  display: flex !important;
  align-items: center;
  justify-content: center;
}

.header,
.footer {
  display: none !important;
}

#GameDiv {
  box-sizing: border-box;
  flex: none;
  width: 100vw !important;
  height: 100vh !important;
  margin: auto !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

#Cocos3dGameContainer,
#GameCanvas {
  width: 100% !important;
  height: 100% !important;
}

@supports (height: 100dvh) {
  #GameDiv {
    height: 100dvh !important;
  }
}

/* Browsers cannot rotate a physical display, so use a centered portrait game
   surface whenever the browser viewport itself is landscape. */
@media (orientation: landscape) {
  #GameDiv {
    width: min(100vw, calc(100vh * 750 / 1334)) !important;
    height: min(100vh, calc(100vw * 1334 / 750)) !important;
  }

  @supports (height: 100dvh) {
    #GameDiv {
      width: min(100vw, calc(100dvh * 750 / 1334)) !important;
      height: min(100dvh, calc(100vw * 1334 / 750)) !important;
    }
  }
}
