/* === 기본 리셋 & 레이아웃 설정 === */
html {
  color-scheme: light;
  background-color: #fff;
  color: #333;
  height: 100%;                /* 추가: flex 레이아웃용 */
}

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

body {
  font-family: sans-serif;
  line-height: 1.5;
  color: #333;
  background-color: #fff;
  display: flex;               /* 추가: header/main/footer 세로 배치 */
  flex-direction: column;      /* 추가 */
  height: 100%;                /* 추가 */
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid #ccc;
}

.header-left {
  font-weight: bold;
  font-size: 1.2rem;
}

nav a {
  margin-left: 15px;
  text-decoration: none;
  color: #333;
  font-size: 0.9rem;
}

/* === 메인 컨텐츠 === */
main {
  max-width: 800px;
  margin: 40px auto;
  padding: 0 20px;
  text-align: center;
  flex: 1;                     /* 추가: footer를 하단에 고정 */
}

.title-link {
  text-decoration: none;  /* 밑줄 제거 */
  color: inherit;         /* 부모의 색상 계승 */
}

h1 {
  font-size: 2rem;
  margin-bottom: 5px;
}

h2 {
  font-size: 1.2rem;
  margin-top: 1px;
  margin-bottom: 20px;
}

.sub-text {
  font-size: 1rem;
  margin: 11px 0;
}

.sub-text-color {
  font-size: 1rem;
  margin: 10px 0;
  color: hsl(0, 100%, 67%);
}

.sub-text-bold {
  font-weight: bold;
  font-size: 1rem;
  margin: 1px 0;
}

/* === 버튼 스타일 === */
.button-container {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 20px;
}

.generated-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,1);
  color: rgba(0,0,0,1) !important;
  width: 200px;
  height: 50px;
  border: 1px solid rgba(199,199,199,1);
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 16px;
  font-weight: 400;
  line-height: 150%;
  letter-spacing: -0.025em;
}

.generated-button:active {
  background: rgba(199,199,199,0.60) !important;
}

/* === 탭 메뉴 === */
.tab-menu-container {
  text-align: center;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: none;        /* 수정: 기존 경계선 제거 */
}

.tab-link {
  display: inline-block;
  margin: 0 10px;
  padding: 6px 12px;
  text-decoration: none;
  color: #333;
  font-size: 1rem;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease;
}

.tab-link:hover {
  color: rgb(128,128,128);
}

.tab-link.active {
  border-bottom-color: #333;
  font-weight: bold;
  color: #333;
}

/* === 투표 섹션 === */
.vote-section {
  display: none;
}

#vote-section1 {
  display: block;
}

/* === 배너 컨테이너 === */
.banner-container {
  width: 100%;
  height: 120px;           /* 플레이스홀더 높이 */
  overflow: hidden;
  border: none;            /* 추가: 테두리 제거 */
}

.banner-container img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* === SNS 로고 === */
.social-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}

.twitter-logo,
.instagram-logo {
  display: inline-block;
  text-decoration: none;
  color: inherit;
}

.twitter-logo svg,
.instagram-logo svg {
  fill: hsl(0,0%,25%);
  opacity: 0.8;
  width: 14px;
  height: 14px;
}

.twitter-logo:hover svg,
.instagram-logo:hover svg {
  opacity: 0.8;
  fill: hsl(0,0%,25%);
}

/* === footer === */
footer {
  text-align: center;
  margin: 30px 0;          /* index.css와 동일한 상하 여백 */
}

.footer-info {
  text-align: center;
  margin-top: 10px;
  font-weight: bold;
  font-size: 0.9em;
}

/* src가 빈 문자열인 img는 숨기기 */
.banner-container img[src=""] {
  display: none;
}
