@charset "UTF-8";

/*
  ─────────────────────────────────────────────────────────────
  TonTon Maps 전용 스타일
  위치: Assets/WebGLTemplates/TonTonMaps/TemplateData/tontonmaps.css

  ★주의★ 이 파일도 Unity 가 빌드 때 서식으로 읽는다.
  주석 안이라도 줄 맨 앞(공백 뒤 포함)에 샵 기호와
  if, else, endif 같은 단어를 붙여 쓰면 빌드가 멈춘다.
  CSS 선택자(샵 기호 + site-bar 같은 것)는 괜찮다.
  ─────────────────────────────────────────────────────────────
*/

/*
  하단 정보 바
  개인정보처리방침 링크와 사업자 표기를 놓는 자리다.
  AdSense 심사에서 이 링크를 찾으므로 지우지 말 것.

  지도 캔버스는 Unity 기본값(데스크톱 960x600 + 전체화면 버튼)
  그대로 두고, 이 바만 화면 맨 아래에 고정한다.

  AdSense 승인 후 광고를 넣을 때는 height 를 50px 정도로 키우고
  맨 아래 calc(100% - 32px) 도 같은 값으로 고칠 것.
*/
#site-bar {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 32px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 10px;
  background: #f4f4f4;
  border-top: 1px solid #dcdcdc;
  font-family: -apple-system, BlinkMacSystemFont, "Malgun Gothic", "맑은 고딕", Arial, sans-serif;
  font-size: 12px;
  line-height: 1;
  color: #5a5a5a;
  white-space: nowrap;
  overflow: hidden;
  z-index: 10;
}

#site-bar a {
  color: #3c6ea5;
  text-decoration: none;
}

#site-bar a:hover {
  text-decoration: underline;
}

#site-bar .bar-title {
  font-weight: bold;
  color: #333333;
}

#site-bar .bar-sep {
  color: #b8b8b8;
}

/* 화면이 좁으면 설명 문구만 접어서 링크를 남긴다 */
@media (max-width: 760px) {
  #site-bar .bar-desc,
  #site-bar .bar-desc-sep {
    display: none;
  }
}

/*
  모바일에서는 Unity 가 캔버스로 화면을 꽉 채운다.
  그대로 두면 하단 바가 지도를 덮으므로 32px 만큼 줄인다.
  데스크톱(960x600)은 건드리지 않는다.
*/
#unity-container.unity-mobile {
  height: calc(100% - 32px);
}
