:root {
  /* CSS 전역 변수 선언 */
  --banner-short: 7.5vw;
  --banner-long: 49.7vw;
  --banner-middle: 28vw;
  --banner-bg-color: rgba(214, 214, 214, 0.5);
  --gap: 8px;
}

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

body {
  font-size: 16px;
}
.container {
  width: 100vw;
  height: 100vh;
  background-image: url("./assets/Webplatform_PC.png");
  /* background-size: contain;
  background-repeat: no-repeat; 
  background-position: center; 
  background-color: #000000; */
  background-size: cover;
  background-position: center center;
}

header {
  width: 100%;
  position: relative; /* z-index가 적용되도록 설정 */
  z-index: 999 !important;
}

.nav {
  display: flex;
  padding: 0.2rem 2rem;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  position: fixed;
  top: 0;
}

.icon-container {
  display: flex;
  height: 100%;
  gap: 1.5rem;
  align-items: center;
  opacity: 1;
}

.icon-container a {
  margin-top: 5px;
}

#unity-container {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
}

main {
  width: 100%;
}

#unity-container.unity-desktop .unity-vertical-container {
  display: flex;
  flex-direction: column;
  gap: var(--gap);
  width: 100%;
  justify-content: center;
  align-items: center;
  margin-top: 0.29rem;
}
#unity-container.unity-desktop .unity-canvas-container {
  width: 100%;
  display: flex;
  gap: var(--gap);

  justify-content: center;
}
#unity-container.unity-desktop .banner-vertical {
  width: var(--banner-short);
}
#unity-container.unity-desktop .banner-horizontal {
  width: var(--banner-long);
  height: var(--banner-short);
  /* border: 1px dashed var(--banner-bg-color); */
  opacity: 0.5;
}

.container-with-icon {
  display: flex;
  gap: var(--gap);
  padding-left: calc(3.5vw + 8px);
}

#unity-container.unity-desktop .banners {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.8vw;
}
#unity-container.unity-mobile {
  position: fixed;
  width: 100%;
  height: 100%;
}
#unity-container.unity-desktop .unity-canvas-container {
  display: flex;
  gap: var(--gap);
}

#unity-canvas {
  background: #000000;
  width: calc(100vh * 1.775);
  max-width: calc(1136px * 1.2);
  min-width: 500px;
  aspect-ratio: 1.775 / 1;
  margin-top: 24px;
}

.unity-mobile #unity-canvas {
  width: 100%;
  aspect-ratio: 1.775 / 1;
}

#unity-logo {
  position: absolute;
  left: 50%;
  top: 45%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  background: url("././UnityWebGL/TemplateData/unity-logo-dark.png") no-repeat
    center;
}
#unity-loading-text {
  position: absolute;
  left: 50%;
  top: 70%;
  transform: translate(-50%, -50%);
  color: #d7a647;
}
#unity-loading-bar {
  position: absolute;
  left: 50%;
  top: 73%;
  transform: translate(-50%, -50%);
}

#unity-progress-bar-empty {
  width: 360px;
  height: 18px;
  margin-top: 10px;
  margin-left: 6.5px;
  background: url("././UnityWebGL/TemplateData/progress-bar-empty-dark.png")
    no-repeat center;
}
#unity-progress-bar-full {
  width: 0%;
  height: 18px;
  margin-top: 10px;
  background: url("././UnityWebGL/TemplateData/progress-bar-full-dark.png")
    no-repeat center;
  margin-left: 2.5px;
}
#unity-footer {
  width: var(--banner-long);
  position: relative;
  display: flex;
  justify-content: flex-end;
  gap: var(--gap);
}
.unity-mobile #unity-footer {
  display: none;
}
.img-container {
  width: 100%;
  padding-top: 0.5rem;
}

.banners .img-container img {
  width: 100%;
  height: auto;
}
#unity-build-title {
  line-height: 38px;
  font-family: arial;
  font-size: 18px;
  color: #fff;
}

#unity-fullscreen-button {
  cursor: pointer;
  width: 1.6rem;
  height: 1.6rem;
}

#unity-fullscreen-button img {
  width: 100%;
  height: 100%;
  opacity: 0.5;
}

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

.only-canvas-container {
  position: relative;
}
#dax-logo {
  width: 20rem;
}
/* 반응형 */
@media (max-width: 1000px) {
  .icon-container {
    display: none;
  }
  #dax-logo {
    width: 20rem;
  }
}
#xsolla-overlay {
  display: none;
  position: fixed;
  z-index: 9998;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.7); /* 반투명 검정 */
}
#xsolla-frame-container {
  position: absolute;
  z-index: 9999;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: none;
  border: none;
}
#xsolla-frame {
  display: none;
  border: none;
  border-radius: 0.7rem;
}

#xsolla-close-btn {
  position: absolute;
  top: -3rem;
  right: -3rem;
  width: 3rem;
  height: 3rem;
  z-index: 9999;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  display: none; /* 기본은 숨김, overlay 활성화 시 보이게 */
  background-color: rgb(255, 255, 255);
  text-align: center;
  font-weight: bold;
}

#mobile-message {
  display: none;
  position: fixed;
  top: 30%;
  left: 50%;
  transform: translate(-50%, -50%);
}
#mobile-message span {
  color: #fff;
  font-size: 30px;
  font-weight: bold;
}
