@font-face {
  font-family: "Pretendard";
  src: url("/public/font/Pretendard-Regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* 바디 스크롤 금지 → main만 스크롤 */
body {
  overflow: hidden;
}

/* 상단 타이틀 */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 50px;
  line-height: 50px;
  background: #333;
  color: #fff;
  text-align: center;
  font-size: 18px;
  z-index: 1000;

  font-family: "Pretendard", sans-serif;

  display: flex;
  align-items: center; /* 세로 가운데 */
  justify-content: center; /* 기본은 가운데 정렬 */
}

header div {
  position: absolute;
  right: 10px; /* 원하는 여백 */
  width: 20px;
  height: 20px;
  cursor: pointer;
  display: flex;
  flex-direction: row-reverse; /* ✅ 아이템을 오른쪽부터 채움 */
  gap: 12px;
}

header div img {
  display: block;
  width: 24px;
  height: 24px;
  cursor: pointer;
}

/* 우측 정렬 + 버튼 간격 */
.toolbar {
  position: absolute;
  right: 12px;
  top: 10px;
  display: flex;
  align-items: center;
  gap: 12px;
  /* 버튼들만 눌릴 수 있게 컨테이너는 클릭 효과 없음 */
  pointer-events: none;
  -webkit-tap-highlight-color: transparent; /* 모바일 터치 하이라이트 제거 */
  touch-action: manipulation; /* 더블탭 확대/지연 방지 */
}

/* 실제 클릭 대상: 각 버튼 */
.icon-btn {
  pointer-events: auto; /* 상위의 none을 무시하고 이 요소만 터치 가능 */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px; /* 모바일 권장 터치 타겟 */
  padding: 0;
  margin: 0;
  border: 0;
  background: transparent;
  position: relative; /* 겹침 방지용 기준 */
  -webkit-tap-highlight-color: transparent; /* 모바일 터치 하이라이트 제거 */
  touch-action: manipulation; /* 더블탭 확대/지연 방지 */
}

.icon-btn img {
  display: block;
  width: 24px;
  height: 24px;
  pointer-events: none; /* 아이콘 자체는 이벤트 안받음 */
  user-select: none;
  -webkit-user-drag: none;
}

/* 눌림 효과는 버튼 "자기 자신"에만 적용 (형제에 전파 X) */
.icon-btn:active {
  transform: scale(0.95);
}

/* 본문 영역 */
main {
  position: absolute;
  top: 50px;
  left: 0;
  right: 0;
  bottom: 0;

  padding: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: auto;
  -webkit-overflow-scrolling: touch; /* 모바일 부드러운 스크롤 */
}

main img {
  max-width: 90%; /* 화면 넘치지 않게 */
  height: auto;
  border-radius: 8px; /* 보기 좋게 */
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

/* 기본은 숨김 */
#btn-share {
  display: none;
}

/* 모바일 사이즈에서만 표시 */
@media (max-width: 768px) {
  #btn-share {
    display: inline-block; /* 혹은 flex/inline-flex 등 원하는 방식 */
  }
}
