/*@import url(//fonts.googleapis.com/earlyaccess/notosansjapanese.css);
*/
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}
body {
    max-width: 512px; /* 원하는 최대 너비 설정 */
    margin: 0 auto; /* 가운데 정렬 */
    overflow-x: hidden; /* 가로 스크롤 방지 */
}
.container {
	width: 100%;
	height: 100%;
	margin-top:20px;
	bottom: 0;
	/* background:url("../img/bg.png") 0 0; */
}

.container_error {
	width: 100%;
	height: 100%;
	/*background:url("../img/error_img.png") 0 0;*/
}

A:link {text-decoration:none;color:#FFFFFF;}
A:visited {text-decoration:none;color:#FFFFFF;}
A:active {text-decoration:none;color:#FFFFFF;}
A:hover {text-decoration:none;color:#FFFFFF;}

.headerArea, .topArea, .footerArea, .mycodeArea, .downloadArea, .itemArea, .bottomArea, .boothBottomArea, .boothNoticeArea,
.imageDownloadArea, .avatarArea, .photoArea, .avatarAreaExist, .periodArea, .boothMycodeArea, .mycodeBoothBottomArea {
	width: inherit;
	height: auto;
	z-index: 1;
}
.mycodeArea, .downloadArea, .bottomArea, .footer-box, .boothMycodeArea, .booth-footer-box {
	position: relative;
}

/* .mycodeArea {
	margin-bottom: -0.2em;
} */

.boothMycodeArea {
	margin-top: -0.4em;
}

.topArea {
    margin-bottom: 0;
    padding-bottom: 0;
}

.photoArea {
    margin-top: -0.5em;
	padding-top: 0;
	position: relative;
    display: flex;
    justify-content: center;  /* 가로 가운데 */
    align-items: center;      /* 세로 가운데 */
    width: 100%;
    height: 100%; /* 필요시 높이 지정 */
}

.avatarArea {
	margin-top: 0;
	padding-top: 0;
	position: relative;
    display: flex;
    justify-content: center;  /* 가로 가운데 */
    align-items: center;      /* 세로 가운데 */
    width: 100%;
    height: 100%; /* 필요시 높이 지정 */
}

.avatarAreaExist {
	width: 100%;
}

.downloadArea {
	margin-top: -0.35em;
	padding-bottom: 0; /* 아래쪽 여백 제거 */
}

.howToArea {
	margin-top: -0.2em;
	margin-bottom: -0.2em;
}
.mycodeBottomArea {
	margin-top: -0.5em;
}
.mycodeBoothBottomArea {
	margin-top: -5px;
	margin-bottom: -5px;
}

.headerArea {
	text-align: center;
	/* margin-bottom: 3vw; */
}
#imgHeader {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	width:100%;
	max-width: 512px; /* body의 max-width와 동일하게 설정 */
	margin: 0 auto; /* 가운데 정렬 */
	z-index: 1000; /* 다른 요소 위에 표시되도록 설정 */
}

#imgTop {
	margin-top: 1em;
	margin-bottom: -1em;
	width:100%;
}

#imgCheckTop {
	width:100%;
}

#imgCheckBottom {
	width:100%;
	margin-bottom: 5em;
}

#imgBoothTop {
	margin-top: 2em;
	width:100%;
}


#imgPhoto {
    display: block;
    width: 100%;
    position: relative;
    z-index: 1;
}

#img4cut {
	width: 70%;
    max-width: 100%;
    height: auto;
    z-index: 2;
    pointer-events: none; /* 필요시 클릭 막기 */
    /* position: absolute; <-- 제거 */
    /* left/top 속성 제거 */
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
	border: 4px solid #fff; /* 흰색 테두리 추가 */
    box-sizing: border-box;  /* 테두리 포함 크기 계산 */
}

#presentExist {
	display: block;
	width: 100%;
}

#presentNew {
	display: block;
    width: 100%;
    position: relative;
    z-index: 1;
}

#imgPeriod {
	width: 100%;
}

#imgAvatar {
	width: 45%;
    max-width: 100%;
    height: auto;
    z-index: 2;
    pointer-events: none; /* 필요시 클릭 막기 */
    /* position: absolute; <-- 제거 */
    /* left/top 속성 제거 */
    display: block;
    position: absolute;
    top: 70%;
    left: 50%;
    transform: translate(-50%, -50%);
}

#imgTitle, #imgMycode, #imgStamp, #imgFooter {
	position: relative;
	top: 0;
	left: 0;
	right: 0;
	width: inherit;
	height: auto;
	display: block;
}
#imgMycode {
	width: 100%;
	position: relative; /* 기준 위치 설정 */
	/* margin: 8vw auto; */
}

#mycodeText {
	position: absolute; 
    bottom: 10px;
    left: 50%; 
    transform: translateX(-50%);
    width: 100%;
    z-index: 10;
}

#imgBoothBottom {
	width: 100%;
}

#imgBoothNotice {
	width: 100%;
	margin-top: -0.4em;
}

#imgBtnImageDownload {
	width: 100%;
	/* margin: 1em auto; */
	display: block;
}

#imgBtnGet {
	width: 60%;
	margin: 0.7em auto;
}
#imgBtnBoothRewardGet {
	width: 60%;
	margin: 0.7em auto;
}
#imgBtnAfterGet, #imgBtnBoothAfterGet {
	width: 100%;
	margin: 2em auto;
}
#imgBtnHowTo, #imgBtnBoothHowTo {
	width: 100%;
	margin-bottom: 0;
}
#imgHowTo, #imgBoothHowTo {
	width: 100%;
	padding-top: -3px;
}
#imgMycodeBottom, #imgBoothMycodeBottom {
	width: 100%;
	margin-top: 0;
}
#imgDownload {
	width: 100%;
	display: block;
	margin-bottom: 0;
}
#imgBtnDownload {
	position: absolute; /* 절대 위치 설정 */
    bottom: 75px;
    left: 50%; /* 수평 가운데 정렬 */
    transform: translateX(-50%); /* 가운데 정렬 보정 */
    width: 100%; /* 버튼 크기 유지 */
    z-index: 10;
}
#imgBtnBoothDownload {
	position: absolute; /* 절대 위치 설정 */
	bottom: 20px;
	left: 50%; /* 수평 가운데 정렬 */
	transform: translateX(-50%); /* 가운데 정렬 보정 */
	width: 100%; /* 버튼 크기 유지 */
	z-index: 10;
}
#imgItem {
	width:100%;
	display: block;
}
#imgBottom {
	width: 100%;
}
#imgBtnDownload2 {
	position: absolute; /* 절대 위치 설정 */
    bottom: 20px;
    left: 50%; /* 수평 가운데 정렬 */
    transform: translateX(-50%); /* 가운데 정렬 보정 */
    width: 100%; /* 버튼 크기 유지 */
    z-index: 10;
}


#etcText {
	background-color: transparent;
	text-align: center;
	font-size: 2.7vw;
	color: #FFFFFF;

	position: absolute;
	top:20%;
	left:0;
	right:0;
	transform: translate( 0, -50% );
}

.download-button, .present-button {
	background: linear-gradient(to bottom, #fcd6e6, #f59ec3);
	width: 55%;
	border: none;
	border-radius: 30px;
	color: white;
	font-weight: bold;
	font-size: 5vw;
	padding-top: 2.7vw;
	padding-bottom: 2.7vw;
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
	cursor: pointer;
	text-align: center;
	display: inline-block;
	transition: all 0.2s ease;
}

.download-button:hover {
	box-shadow: 0 6px 10px rgba(0, 0, 0, 0.15);
	transform: translateY(-2px);
}

.button-wrapper {
	display: flex;
	justify-content: center;
}

.input-box {
	/* margin: 10px auto; */
	/* margin-top: 10vw; */
	/* margin-bottom: 2em; */
	/* display: flex; */
	justify-content: center;
	/* max-width: 300px;  */
}


input[type="text"] {
    /* width: 85%;
    max-width: 380px;
    min-width: 180px;
    font-size: clamp(14px, 5vw, 25px);
    box-sizing: border-box;
	border: 2px solid #f8a8c3;
	border-radius: 10px;
	padding: 10px;
	font-size: 25px;
	background-color: white;
	box-sizing: border-box;
	outline: none;
	text-align: center;
	opacity: 0.9; */

	width: 85%;
	max-width: 380px;
	min-width: 180px;
	
	height: auto;       
	/* padding: 3vw 2vw;    */
	padding: 12px 16px;
	
	font-size: clamp(14px, 4vw, 22px); /* 작은 화면일 땐 작아짐 */
	
	border: 2px solid #C7E8A6;
	border-radius: 10px;
	background-color: white;
	box-sizing: border-box;
	text-align: center;
	opacity: 0.9;
}

/* 포커스 시에도 초록색 유지 + 기본 아웃라인/섀도 제거 */
input[type="text"]:focus,
input[type="text"]:focus-visible,
input[type="text"]:focus-within {
  border-color: #C7E8A6 !important;
  outline: none !important;
  box-shadow: none !important;
}

input[type="text"]:invalid,
input[type="text"]:user-invalid,
input[type="text"]:-moz-ui-invalid {
  border-color: #C7E8A6 !important;
  box-shadow: none !important;
  outline: none !important;
}

/* input[type="text"]::placeholder {
	color: #d4a73f;
	font-weight: 900;
	opacity: 0.5;
} */


.centerText {
	display: flex;
	justify-content: center;  /* 수평 정렬 */
	align-items: center;      /* 수직 정렬 */
	font-size: 10px;
	font-weight: bold;
}

.footer-box {
	background-color: #54C843;
	padding-left: 30px;
	padding-right: 30px;
	padding-top:2em;
	padding-bottom: 3.5em;
	font-family: sans-serif;
	font-size: 11px;
	color: #000000;

	display: flex; /* 플렉스 박스 사용 */
	flex-direction: column; /* 세로 정렬 */
	align-items: center; /* 가로 가운데 정렬 */
	justify-content: center; /* 세로 가운데 정렬 (필요 시) */
	text-align: center; /* 텍스트 가운데 정렬 */
	margin: -5px auto; /* 외부 여백으로 가운데 정렬 */
}

.booth-footer-box {
	background-color: #54C843;
	padding-left: 30px;
	padding-right: 30px;
	padding-top:2em;
	padding-bottom: 3.5em;
	font-family: sans-serif;
	font-size: 11px;
	color: #000000;

	display: flex; /* 플렉스 박스 사용 */
	flex-direction: column; /* 세로 정렬 */
	align-items: center; /* 가로 가운데 정렬 */
	justify-content: center; /* 세로 가운데 정렬 (필요 시) */
	text-align: center; /* 텍스트 가운데 정렬 */
	margin: -0.5em auto 0 auto; /* 외부 여백으로 가운데 정렬 */
}

.footer-inner {
	display: flex;
	gap: 20px;
	align-items: flex-start;
}

.footer-icon {
	width: 60px;
	height: 60px;
	padding: 0px;
	background-color: #54C843;
}

.booth-footer-icon {
	width: 60px;
	height: 60px;
	padding: 0px;
}

.footer-texts .booth-footer-texts {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.footer-texts a {
	color: #FCFFA5;
	text-decoration: underline;
	/* font-weight: bold; */
}

.booth-footer-texts a {
	color: #ffffff;
	text-decoration: underline;
	/* font-weight: bold; */
}

.footer-texts div {
    display: flex; /* 플렉스 박스를 사용하여 정렬 */
    align-items: center; /* 수직 가운데 정렬 */
}

.footer-texts span {
    width: 50px; /* 고정 너비 설정으로 라인 맞춤 */
    text-align: left; /* 텍스트 왼쪽 정렬 */
}

.booth-footer-texts div {
    display: flex; /* 플렉스 박스를 사용하여 정렬 */
    align-items: center; /* 수직 가운데 정렬 */
}

.booth-footer-texts span {
    width: 50px; /* 고정 너비 설정으로 라인 맞춤 */
    text-align: left; /* 텍스트 왼쪽 정렬 */
}

  
.footer-note {
	margin-top: 15px;
	color: #000000;
	text-align: left;
}

.footer-note a {
	color: #FCFFA5;
	text-decoration: underline;
}

.booth-footer-note {
	margin-top: 15px;
	color: #000000;
}

.booth-footer-note a {
	color: #ffffff;
	text-decoration: underline;
}

.footer-copy {
	margin-top: 15px;
	font-size: 11px;
	color: #a0a0a0;
	border-top: 3px dashed #B5E87E;
	padding-top: 10px;
	text-align: center;
}

#imgCopyrights {
	position: absolute; /* 절대 위치 설정 */
	bottom: 1.5em;
	left: 50%; /* 수평 가운데 정렬 */
	transform: translateX(-50%); /* 가운데 정렬 보정 */
	width: 75%; /* 버튼 크기 유지 */
	z-index: 10;
}

#imgBoothCopyrights {
	position: absolute; /* 절대 위치 설정 */
	bottom: 1.5em;
	left: 50%; /* 수평 가운데 정렬 */
	transform: translateX(-50%); /* 가운데 정렬 보정 */
	width: 75%; /* 버튼 크기 유지 */
	z-index: 10;
}

.button-box {
	display: flex;
	flex-direction: column;
	align-items: center;
	font-family: sans-serif;
	/* margin: 20px; */
}

.btn {
	width: 100%; /* 버튼 크기 설정 */
    height: auto; /* 이미지 비율 유지 */
}

.btn.on {
	display: block; /* on 상태일 때 표시 */
}

.btn.off {
    display: none; /* off 상태일 때 숨김 */
}

.imgResource.on {
	display: block; /* on 상태일 때 표시 */
}

.imgResource.off {
    display: none; /* off 상태일 때 숨김 */
}
.input-box.on {
	display: flex; /* on 상태일 때 표시 */
}
.input-box.off {
	display: none; /* off 상태일 때 숨김 */
}

.avatar.on {
	display: flex; /* on 상태일 때 표시 */
}
.avatar.off {
	display: none; /* off 상태일 때 숨김 */
}

/* .btn-get {
	background-color: #ff6cae;
}

.btn-done {
	background-color: #bbbbbb;
} */

.badge {
	position: absolute;
	top: -10px;
	right: -10px;
	background: #ff6cae;
	color: white;
	font-size: 12px;
	padding: 2px 6px;
	border-radius: 50%;
	font-weight: bold;
}

.sub-text {
	font-size: 16px;
	text-align: center;
	padding: 5px 0;
}

.sub-get {
	color: #ff6cae;
}

.sub-done {
	color: #999999;
}

.fixed-buttons {
	position: fixed;
	bottom: 0;
	left: 0;
	width: 100%;
	max-width: 512px;      /* 최대 가로 512px */
	margin: 0 auto;        /* 가운데 정렬 */
	background-color: #ffb4d2;
	z-index: 1000;
	padding: 20px 0;
	display: flex;
	justify-content: space-around;
	right: 0;              /* 필요시 추가 */
}

#imgBtnFooterGet2, #imgBtnFooterDownload2 {
	height: 8vh;
	width: auto;
	/* max-width: 90vw;
	max-height: 90px; */
	display: block;
}

.fixed-buttons img {
  height: 16vw;        /* 뷰포트 기준으로 높이 통일 */
  max-height: 80px;    /* 너무 커지지 않게 제한 */
  width: auto;         /* 원본 비율 유지 (자동 계산) */
}

/* footer-box를 1열 그리드로 만들고 가운데 배치 */
.footer-box{
  display: grid;
  justify-content: center;  /* 그리드 전체를 가운데 */
}

/* 두 요소를 같은 그리드 열(1번 열)에 배치 */
.footer-inner,
.footer-note{
  grid-column: 1;
}

/* note는 왼쪽 정렬 + 박스 안에서 좌측에 붙이기 */
.footer-note{
  justify-self: start;
  text-align: left;
  margin-top: 15px;
}