@charset "UTF-8";
/* 폰트 파일 불러오기 */
@font-face {
  font-family: 'IQOS Regular';
  src: url('../font/IQOSHangul-Regular.woff') format('woff');
}

@font-face {
  font-family: 'IQOS Bold';
  src: url('../font/IQOSHangul-Bold.woff') format('woff');
}

/* 애니메이션 (fade-in, slide-in) */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}


/* 공통 초기화 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html {
    height: 100%;
    margin: 0;
    padding: 0;
}
body {
    background: #fff;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-family: "IQOS Regular", sans-serif;
    font-size: 16px; /* 기본 */
    -webkit-text-size-adjust: 100%;
}

img {display: block;}

.btn_fullscreen {position: absolute; display: inline-block; bottom: 0px; left: 0px; width: 80px; height: 80px; border: 0px solid #f00; cursor: pointer; cursor: pointer; z-index: 99999;}

/* 페이지 전체 스타일 */
.bestbreakup {
    position: relative;
    min-height: 100vh;
    width: 100%;
    background: url("../assets/bg01.jpg") 0 0 no-repeat;
    background-size: 100%;
    background-position: top center;
    background-repeat: no-repeat;
    /*padding: 0px 0px 10vh;*/ /* 아래 공간 확보 (fixed footer 고려) */
    z-index: 99;
    
    display: flex;
    flex-direction: column;
}

/* 1단 – 키비주얼 + 헤드카피 */
.bestbreakup .section_top {
    position: relative;
    width: 100%;
    text-align: center;
    padding: 0px;
}
.bestbreakup .section_top .visual_top {width: 100%;}
.bestbreakup .section_top .visual_top img {width: 100%;}

.bestbreakup .section_top .HeadTxt {
    position: absolute;
    bottom: 20px;
    width: 100%;
    padding: 0;
    font-family: "IQOS Bold", sans-serif;
    font-size: 1.8rem;
    text-align: center;
    color: #393e44;
    text-shadow: 0px 0px 20px rgba(224, 201, 173, 0.0.75); 
    background: rgba(108, 69, 42, 0);
}

/* 2단 – 메시지 입력 */
.bestbreakup .section_input {
    margin-top: 0px;
}

.bestbreakup .section_input .example_box {
    position: relative;
    margin: 0 30px 20px;
    padding: 20px;
    border: 1px solid #666;
    border-radius: 8px;
}
.bestbreakup .section_input .example_box .ico_example {position: absolute; width: 60px; top: -12px; background: #fff; overflow: hidden;}
.bestbreakup .section_input .example_box .ico_example img {width: 60px;}
.bestbreakup .section_input .example_box .example_txt {text-align: center; font-size: 4.5vw;}

.bestbreakup .section_input .input_determination {
    margin: 0 30px 20px;
    padding: 20px 15px;
    border-radius: 8px;
    border: none;
    resize: none;
    font-size: 1.5rem;
    letter-spacing: -0.5px;
    text-align: justify;
    line-height: 3.2rem;
    background: rgba(255, 255, 255,0.3);
}
.bestbreakup .section_input .input_determination input {font-family: "IQOS Regular", sans-serif; font-size: 1.3rem; border: none; height: 40px; text-align: center; padding: 0 8px; border-radius: 6px;}
.bestbreakup .section_input .input_determination .message01 {width: 40%; max-width: 140px;}
.bestbreakup .section_input .input_determination .message02 {width: 47%; max-width: 160px;}

.bestbreakup .section_input .btn_save {
    display: flex;
    width: calc(100% - 200px);
    margin: 0 auto;
    padding: 14px 0;
    border-radius: 99px;
    border: none;
    background: #00d1d2;
    color: #fff;
    font-family: "IQOS Regular", sans-serif;
    font-size: 16px;
    font-weight: 700;
    justify-content: center;
    cursor: pointer;
}

.raffle {
    /*position: absolute;
    top: 0;
    left: 0;*/
    min-height: 100vh;
    width: 100%;
    background: url("../assets/bg02.jpg") 0 0 no-repeat;
    background-size: 100%;
    background-position: top center;
    background-repeat: no-repeat;
    /*padding: 0px 0px 10vh;*/
    display: none;
    /*display: flex;*/
    flex-direction: column;
}

.raffle.show {
    display: flex;
}

/* raffle 안의 본문이 되는 영역 */
.raffle_body {
    padding-top: 50px; /* 필요시 조절 */
    padding-bottom: 20px;
}

.raffle .load_determination {margin: 50px 30px 30px; padding: 20px 10px; background: rgba(255, 255, 255, 1); border: none; border-radius: 20px; z-index: 2000; animation: fadeIn 0.3s ease-out;}
.raffle .load_determination .MyDeterminationTit {padding: 5px; color: #815a3c; font-size: 1.5rem; text-align: center; background: rgba(221, 195, 165, 0.75); border-radius: 99px;}
.raffle .load_determination .MyDetermination {margin: 10px 0px; font-size: 1.3rem; text-align: center;}

.raffle .las_messagebox {margin: 50px 30px 0px; padding: 10px 0px 0px; background: rgba(255, 255, 255, 0); border: none; border-radius: 20px; z-index: 2000; animation: fadeIn 0.3s ease-out;}
.raffle .las_messagebox .lasTit {padding: 5px; color: #815a3c; font-size: 1.5rem; text-align: center; background: rgba(221, 195, 165, 0.75); border-radius: 99px;}
.raffle .las_messagebox .lasTxt {margin: 30px 0 10px; font-size: 1.2rem; text-align: center; color: #333; /*color: #fff; text-shadow: 0px 1px 4px rgba(0, 0, 0, 0.6);*/ line-height: 1.5;}
.raffle .las_messagebox .lasTxt span { letter-spacing: -0.5px;}

.raffle .raffleTit {font-size: 1.7rem; text-align: center; color: #333; /*text-shadow: 0px 1px 5px rgba(0, 0, 0, 0.45);*/}

.raffleInfo {margin: 0 30px; text-align: center; color: #333; /*color: rgba(255, 255, 255, 1);*/ display: none;}
.raffleInfo .InfoTit {font-size: 1.3rem;}
.raffleInfo .InfoTxt {margin: 10px 0; font-size: 1.3rem; text-align: justify; letter-spacing: -0.5px; word-spacing: 0px;}
.raffleInfo .InfoNotice {font-size: 0.9rem; text-align: justify; opacity: 0.75;}




.screen {
    position: fixed;
    min-height: 100vh;
    width: 100%;
    background: url("../assets/bg_screen.jpg") 0 0 no-repeat;
    background-size: 100%;
    background-position: top center;
    background-repeat: no-repeat;
    overflow: hidden;
    /*padding: 0px 0px 10vh;*/ /* 아래 공간 확보 (fixed footer 고려) */
    z-index: 99;
}
.screen .screen_Tit {margin-top: 620px; font-family: 'IQOS Bold'; font-size: 4.0rem; text-align: center; color: #393e44; /*text-shadow: 0px 2px 8px rgba(0, 0, 0, 0.3);*/}
.screen .screen_Txt {margin: 5px 0 20px; font-size: 3.3rem; text-align: center; color: #393e44; /*text-shadow: 0px 2px 8px rgba(0, 0, 0, 0.3);*/}
.screen .NumCounter {height: 100px; display: flex; justify-content: center; align-content: center; align-items: center; font-size: 3.5rem; border: 0px solid #aaa;}
.screen .NumCounter .TickComma {padding: 0 5px;}
.screen .NumCounter .TickTxt {align-content: flex-end; font-size: 3.0rem; margin-top: 10px; padding-left: 5px;}
.screen .MessageList {
    margin-top: 30px;
    padding: 0 90px;

    /* 화면 높이에 맞게 맞추는 쪽이 더 안정적 */
    height: 700px; /* 필요하면 calc(100vh - XXpx)로 조정 */

    overflow-y: auto;
    -ms-overflow-style: none;
    scrollbar-width: none;

    overscroll-behavior: contain;  /* ⬅️ 이게 핵심 */
}

/* 스크롤바 숨기기 유지 */
.screen .MessageList::-webkit-scrollbar {
    display: none;
}
/* .MessageBox 스타일 */
.screen .MessageList .MessageBox {
    width: 70%;
    padding: 20px;
    font-size: 1.8rem;
    text-align: center;
    margin-bottom: 30px;
    border-radius: 20px;
    position: relative;
    clear: both; /* Clear both floats */
    opacity: 0;  /* 처음에 숨겨 놓기 */
    animation: fadeInUp 1s forwards;  /* fadeInUp 애니메이션 추가 */
}

/* .MessageBox에서 수평 정렬을 위해 flex 사용 */
.screen .MessageList {
    display: flex;
    flex-direction: column;  /* 수직으로 정렬 */
}

/* 상단 Feather 이미지 */
.screen .feather_top {
    position: absolute;
    top: 918px;
    left: 0;
    width: 100%;
    height: 50px;  /* 높이는 30px */
    background: url('../assets/messaget.png') 0 0 no-repeat;
    background-size: 100% 100%;
    z-index: 10;  /* 메세지 위에 올라가도록 설정 */
}

/* 하단 Feather 이미지 */
.screen .feather_bottom {
    position: absolute;
    bottom: 290px;
    left: 0;
    width: 100%;
    height: 50px;  /* 높이는 30px */
    background: url('../assets/messageb.png') no-repeat center;
    background-size: 100% 100%;
    z-index: 10;  /* 메세지 위에 올라가도록 설정 */
}

/* 홀수번째 메시지: 왼쪽에 위치 */
.screen .MessageList .MessageBox:nth-child(odd) {
    background-color: #fffdfb;
    color: #393e44;
    align-self: flex-start; /* 왼쪽 정렬 */
    margin-right: 20%; /* 오른쪽 여백 */
    position: relative; /* 삼각형을 위한 상대 위치 설정 */
}

/* 짝수번째 메시지: 오른쪽에 위치 */
.screen .MessageList .MessageBox:nth-child(even) {
    background-color: #fffdfb;
    color: #393e44;
    align-self: flex-end; /* 오른쪽 정렬 */
    margin-left: 20%; /* 왼쪽 여백 */
    position: relative; /* 삼각형을 위한 상대 위치 설정 */
}

/* 말풍선 하단 삼각형 추가 */
.screen .MessageList .MessageBox:nth-child(odd)::after,
.screen .MessageList .MessageBox:nth-child(even)::after {
    content: '';
    position: absolute;
    bottom: -15px; /* 삼각형이 박스 바로 아래에 위치 */
    width: 0;
    height: 0;
    border-left: 13px solid transparent;
    border-right: 13px solid transparent;
    border-top: 15px solid #fffdfb; /* 삼각형 색상 */
}

/* 홀수번째 메시지의 삼각형 */
.screen .MessageList .MessageBox:nth-child(odd)::after {
    left: 40px; /* 왼쪽에 삼각형 위치 */
}

/* 짝수번째 메시지의 삼각형 */
.screen .MessageList .MessageBox:nth-child(even)::after {
    right: 40px; /* 오른쪽에 삼각형 위치 */
}

/* 3번째 메시지: 다른 배경 */
.screen .MessageList .MessageBox:nth-child(3n) {
    background-color: #fffdfb;
    color: #393e44;
}

/* fadeOut 애니메이션 */
@keyframes fadeOut {
    0% { opacity: 1; }
    100% { opacity: 0; }
}

/* fadeInUp 애니메이션 */
@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}


.screen .DotMessageBox {
    position: relative; /* 삼각형을 위한 상대 위치 설정 */
    align-self: flex-start; /* 왼쪽 정렬 */
    margin: 30px auto 0; /* 좌/우 여백으로 센터 */
    padding: 30px 20px;
    width: 60%;
    color: #393e44;
    font-size: 2.0rem;
    text-align: center;
    border-radius: 20px;

    background-color: #fffdfb;    
    clear: both; /* Clear both floats */
}

.screen .DotMessageBox::after {
    content: '';
    position: absolute;
    bottom: -15px; /* 삼각형이 박스 바로 아래에 위치 */
    right: 40px;
    width: 0;
    height: 0;
    border-left: 13px solid transparent;
    border-right: 13px solid transparent;
    border-top: 15px solid #fffdfb; /* 삼각형 색상 */
}


.typing-indicator {
  align-items: center;
  gap: 10px;
  padding: 6px 10px;
  border-radius: 999px;
  /*background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 0 8px rgba(0,0,0,0.1);*/
}

.typing-indicator span {
  margin: 0 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #393e44; /* 점 색상 */
  display: inline-block;
  animation: typingBounce 1s infinite ease-in-out;
}

.typing-indicator span:nth-child(2) {
  animation-delay: 0.15s;
}
.typing-indicator span:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes typingBounce {
  0%, 80%, 100% {
    transform: translateY(0);
    opacity: 0.3;
  }
  40% {
    transform: translateY(-4px);
    opacity: 1;
  }
}

/* 보여줄 때 쓸 클래스 */
.typing-indicator.show {
  display: inline-flex;
}



.page_footer {
    margin-top: auto;              /* 이게 footer를 맨 아래로 밀어내는 핵심 */
    padding: 16px 0 8px;
}

/* 안내 문구 텍스트 */
.section_notice {
    /*position: absolute;
    bottom: 6vh;*/
    margin-top: 10px;
    display: block;
    text-align: left;
}
.section_notice ul {/*width: calc(100% - 60px); margin: 0 auto;*/ padding: 0 30px;}
.section_notice ul li {list-style-type: none; font-size: 13px; color: #393e44;}
.section_notice ul li:nth-child(1) {margin-bottom: 10px;}

/* 하단 고정 경고 */
.footer_dti {
    /*position: absolute;
    bottom: 0;
    left: 0;*/
    width: 100%;
    height: 6vh;
    /*background: #ffffff;*/
    color: #393e44;
    text-align: center;
    font-size: 0.75rem;

    display: flex;
    align-items: center;      /* 세로 가운데 */
    justify-content: center;  /* 가로 가운데 */
    padding: 0 10px;
}

.footer_lasdti {
    /*position: absolute;
    bottom: 0;
    left: 0;*/
    width: 100%;
    height: 6vh;
    /*background: #ffffff;*/
    color: #393e44;
    text-align: center;
    font-size: 0.75rem;

    display: flex;
    align-items: center;      /* 세로 가운데 */
    justify-content: center;  /* 가로 가운데 */
    padding: 0 10px;
}

.screen_dti {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 8vh;
    /*background: #ffffff;*/
    color: #fff;
    text-align: center;
    font-size: 1.9rem;

    display: flex;
    align-items: center;      /* 세로 가운데 */
    justify-content: center;  /* 가로 가운데 */
    padding: 0 10px;
}

.modal_black {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999;
  animation: fadeIn 0.3s ease-out;
  /*display: none;*/
}

.lasmodal_black {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999;
  animation: fadeIn 0.3s ease-out;
  display: none;
}

.MyDetermination_Box {
    position: fixed;
    width: 85%;
    padding: 20px;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 0 100px #000;
    /*background: url("../assets/bg01.jpg") 0 0 no-repeat;*/
    background-size: 100%;
    border-radius: 20px;
    border: 4px solid rgba(255, 255, 255, 0.5);
    justify-content: center;
    align-items: center;
    display: none; /* 기본적으로 숨겨져 있음 */
    z-index: 1000;
    animation: fadeIn 0.3s ease-out;
}

.MyDetermination_Box .MyDeterminationTit {padding: 5px; color: #815a3c; font-size: 1.5rem; text-align: center; background: rgba(221, 195, 165, 0.75); border-radius: 99px;}
.MyDetermination_Box .MyDetermination {margin: 30px 0; font-size: 1.3rem; text-align: center;}
.MyDetermination_Box .MyDetermination p {margin-top: 10px; padding-top: 10px; font-size: 1.2rem; color: #333; border-top: 1px dashed #aaa;}
.MyDeterminationBtnBox {display: flex; justify-content: center; align-items: center;}
.MyDeterminationBtnBox button {padding: 8px 20px; /*margin: 0 5px;*/ font-family: "IQOS Regular", sans-serif; font-size: 16px; border: none; border-radius: 99px; cursor: pointer;}
.MyDeterminationBtnBox .btn_ok {margin-left: 10px; background: #00d1d2; color: #fff;}
.MyDeterminationBtnBox .btn_cancel {margin-right: 10px; background: #aaa; color: #fff;}

.Intro_Box {
    position: fixed;
    width: 85%;
    padding: 20px;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 0 100px #000;
    /*background: url("../assets/bg01.jpg") 0 0 no-repeat;*/
    background-size: 100%;
    border-radius: 20px;
    border: 4px solid rgba(255, 255, 255, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 1000;
    animation: fadeIn 0.3s ease-out;
}

.Intro_Box .Intro_Message {margin: 30px 0; font-size: 1.2rem; text-align: center;}
.Intro_Box .IntroBtnBox {display: flex; justify-content: center; align-items: center;}
.Intro_Box .IntroBtnBox button {padding: 8px 30px; margin: 0 10px; font-family: "IQOS Regular", sans-serif; font-size: 16px; border: none; border-radius: 99px; cursor: pointer;}
.Intro_Box .IntroBtnBox .Introbtn_ok {background: #00d1d2; color: #fff;}

/* 스크래치 카드 기본 스타일 */
#scratch_card {
    position: relative;
    margin: 10px auto 20px;
    width: 350px;
    height: 200px;
    background-color: rgba(255, 255, 255, 1); /* 긁기 전 덮개 색 */
    border-radius: 24px;
    border: 4px solid rgba(255, 255, 255, 1);
    cursor: pointer;
}

/* 덮개 이미지 (긁기 전) */
.scratch_cover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    border-radius: 20px;
    z-index: 10;
    display: block; /* 기본적으로 보이게 설정 */
}

/* 선물 이미지 (긁은 후) */
.gift-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    border-radius: 20px;
    z-index: 5;
    /*display: none;*/ /* 기본적으로 숨겨짐 */
}
#progress {
    position: absolute;
    top: 4px;
    right: 4px;
    color: black;
    pointer-events: none;
    z-index: 30;
    opacity: 0;
}

/* 모바일 전용 반응형 – max-width: 480px */
@media (max-width: 480px) {
    body {
        font-size: 15px;
    }
    .bestbreakup .section_top .HeadTxt {
        font-size: 1.65rem;
    }
}

@media (max-width: 402px) {
    body {
        font-size: 14px;
    }
    .Intro_Box .Intro_Message {font-size: 1.1rem; letter-spacing: -1px;}
    .bestbreakup .section_input .input_determination {font-size: 1.3rem;}
    .MyDeterminationBtnBox button {padding: 8px 20px; word-spacing: -2px; border: none;}
    .MyDeterminationBtnBox .btn_ok {margin-left: 4px;}
    .MyDeterminationBtnBox .btn_cancel {margin-right: 4px;}
    .footer_dti {font-size: 0.7rem;}
    .footer_lasdti {font-size: 0.7rem;}
}