body {
    margin: auto;
    max-width: 768px;
}

a {
  webkit-tap-highlight-color: transparent;
}

.top_bar {
    position: fixed;
    top: 0;
    max-width: 768px;
    width: 100%;
    height: 56px;
    padding: 16px;
    box-sizing: border-box;
    background-color: white;
    z-index: 1000;
    display: flex;
    align-items: center;
}

.subtitle {
  font-weight: 600;
  font-size: 5vw;
  line-height: 8.5vw;
  text-align: center;
  color: #343E47;
  padding-top: 72px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.top_bar img {
    width: 24px;
    height: 24px;
}

.topbar_btn {
    max-height: 96px;
    padding: 0 12px;
    justify-content: center;
    align-items: center;
    height: 100%;
    font-size: 15px;
}

img {
    width: 100%;
    max-width: 768px; 
}

.flex {
    display: flex;
}

.flex.btn_group {
    bottom: 0;
    position: fixed;
    z-index: 2000;
    max-width: 768px;
}

.flex.desc.btn_group {
    font-size: 3.5vw;
    bottom: 16.5vw;
}

.flex.desc.btn_group div {
text-align: center;
    margin: auto;
    padding: 1vw 3.5vw;
    border-radius: 10vw;
    box-shadow: 0px 0px 1px 0px rgba(0, 0, 0, 0.06), 0px 2px 8px 0px rgba(0, 0, 0, 0.08);
    color: #B4791B;
    background: linear-gradient(271deg, #FFFBEF 19.72%, #FFE9A8 83.53%);

}

.relative {
    position: relative;
}

.absolute {
    position: absolute;
}

#code {
    font-size: 26px;
    line-height: 31px;
    text-align: center;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: max-content;
}

.dimmed {
    display: none;
    position: fixed;
    top: 0;
    width: 100vw;
    height: 100vh;
    z-index: 3000;
}

.bottom_sheet {
    position: fixed;
    bottom: 0;
    background: #FFFFFF;
    border-radius: 16px 16px 0px 0px;
}

.notice {
    margin: auto;
    background: #F7F7F7;
    padding: 32px 24px 56px;
}

.notice .text_group {
    padding: 24px 20px;
}

.notice .group ul {
    margin: 24px 0px 24px -24px;
}

.notice .group li {
    padding-bottom: 8px;
}

.bottom_sheet .text_group {
    padding: 24px 20px;
}

.bottom_sheet .text_group .text {
    margin-top: 12px;
    margin-bottom: 16px;
}

.bottom_sheet .btn_group {
    padding: 12px 16px;
}

#btn_close_bottom {
    text-align: center;
    background: #00AFFF;
    border-radius: 10px;
    padding: 12px 0;
}

.title {
text-align: center;
padding-top: 72px;
}

.desc {
font-weight: 500;
font-size: 3.9vw;
line-height: 5.7vw;
text-align: center;
color: #8E98A0;
padding-top: 16px;
padding-bottom: 14px;
}

.main.guide {
  background: linear-gradient(180deg, #FFF 6.47%, #FFF3C4 100%);
  height: 100vh;
}

.main.share {
display: block;
}

.section.left {
padding: 0vw 6vw;
}

.section.left .title  {
text-align: left;
font-size: 6vw;
line-height: 7.5vw;
}

.section.left .desc  {
text-align: left;
padding: 1vw 0vw;
}

.section.card_box {
background: linear-gradient(180deg, #FFFBEF 0%, #FFE9A8 100%);
margin: 3vw 6vw;
border-radius: 5vw;
}
.card_box_header {
padding: 6vw 6vw 0vw 6vw;
font-size: 6vw;
line-height: 8.5vw;
color: #71634C;
}

.card_box_bottom {
padding: 5.5vw 6vw 6vw 6vw;
font-size: 3.6vw;
line-height: 5.2vw;
text-align: center;
color: #71634C;
opacity: 0.8;
}

input[type=text] {
  width: 100%;
  padding: 0 6vw 0 0;
  margin: 1vw 0;
  box-sizing: border-box;
  border: none;
  /* border-bottom: 0.8vw solid #F2B942; */
  background: transparent;
  font-size: 5vw;
  color: #A96E0E;
  -webkit-appearance: none;
  border-radius: 0;
  caret-color: #00AFFF;
  vertical-align: middle;
  text-align: center;
}

.bottom_sheet_container {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100dvw;
  height: 100dvh;
  z-index: 3000;
}

.bottom_sheet_container .dim {
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.50);
}

.bottom_sheet {
  /* width: 100dvw; */
  background-color: #FFFFFF;
  position: absolute;
  bottom: 0;
  left: 0;
  padding: 24px 20px 12px;
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
}


.bottom_sheet p, .bottom_sheet div {
  margin: auto;
}

.ul_container {
  padding: 25px 0 72px;
  height: auto;
  overflow: hidden;
}

.ul_container p {
  font-size: 4.5vw;
  margin-top: 3vw;
}

.ul_container ul {
  padding: 12px 16px 12px 32px;
  background-color: #F2F4F6;
  border-radius: 16px;
  margin: 2vw 0 0;
}

li {
  color: #6D7882;
  font-size: 13px;
  font-weight: 500;
  line-height: 21px;
}

.input_box {
  background: white;
  display: flex;
  width: 60vw;
  border-radius: 3vw;
  box-shadow: 0px 0px 1px 0px rgba(0, 0, 0, 0.06), 0px 2px 8px 0px rgba(0, 0, 0, 0.08);
  align-items: center;
  margin: auto;
  padding: 1.7vw 4vw;
}

input[type=text]:focus {
border: none;
}

textarea:focus, input:focus{
outline: none;
}

input::placeholder {
color: #E8DBC5;
}

.nickname {
color: #D78910;
}

.box_input {
  flex: 1;
  position: relative;
}

.box_title {
  font-size: 4vw;
}

.input_box img {
  width: 5.5vw;
  opacity: 0.2;
  position: absolute;
  right: 0.2vw;
  top: 0;
  bottom: 0;
  margin: auto;
  overflow: hidden;
  pointer-events: none;
}

#ok_btn {
  width: 100%;
  height: 48px;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #F3A528;
  color: #FFFFFF;
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
}

#btn_close_bottom {
  width: 100%;
  height: 48px;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #00AFFF;
  color: #FFFFFF;
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
}

button {
  text-align: center;
  padding: 8px 12px;
  background-color: #F2F4F6;
  color: #505C66;
  border: none;
  border-radius: 8px;
}

.giftcard_frame .preview {
  padding-bottom: 10vw;
}

.giftcard_frame_preview {
  position: absolute;
  left: 7vw;
  bottom: 17vw;
  font-size: 6vw;
  color: #B98B4F;
}

.giftcard_frame_preview span {
  color: #895605;
  margin-left: 0.5vw;
}   

.giftcard_frame .name {
  padding: 2vw 0 0 1.6vw;
}

.giftcard_frame_name {
  position: absolute;
  left: 12.5vw;
  bottom: 13vw;
  font-size: 4.5vw;
  color: #B98B4F;
}

.giftcard_frame_name span {
  color: #895605;
  margin-left: 0.5vw;
}   

.card_box_header {
  padding: 6vw 6vw 0vw 8vw;
  font-size: 5.5vw;
  line-height: 8.5vw;
  color: #794A00;
}

.card_box_bottom {
  padding: 3.5vw 6vw 2vw 8vw;
  font-size: 3.6vw;
  line-height: 5.2vw;
  color: #A37E3F;
  opacity: 0.8;
  text-align: left;
}

.card_box_logo {
  padding: 4vw 8vw 7vw 8vw;
  display: flex;
  justify-content: flex-end;

}

.card_box_logo img {
  width: 30vw;
}

.section.card_box {
  background: linear-gradient(164deg, #FFF8DA 50%, #FFFBEC 63.41%, #FFF3C4 91.26%);
  margin: 3vw 6vw;
  border-radius: 5vw;
}

.bottom_sheet .text_group {
  padding: 0;
}

.topbar_guide {
  z-index: 3000;
}

.topbar_guide .bottom_sheet {
  max-height: 600px;
  overflow: scroll;
}

.ok_btn_container {
  width: 100%;
  box-sizing: border-box;
  position: fixed;
  bottom: 0;
  left: 0;
  padding: 12px 20px;
}

.subtitle.new {
  display: none;
}

.subtitle img {
  width: 20px;
  height: 20px;
  margin-right: 2px;
  filter: invert(21%) sepia(4%) saturate(2323%) hue-rotate(167deg) brightness(96%) contrast(90%);
}

.lottie_layout {
  width: 100vw;
  background: transparent;position: absolute;top:2vw;margin: auto;
  display: flex;
  justify-content: center;
  z-index: 2000;
  overflow: hidden;
}

.lottie_group {
  display: flex;
  justify-content: center;
  width: 160vw;
}

p {
  margin: 0;
}

.main.guide {
background: linear-gradient(180deg, rgba(255, 247, 218, 0.00) 1.58%, #FFF7DA 64.87%, rgba(255, 247, 218, 0.00) 98.95%);
}

.flex.btn_group {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 20px calc(env(safe-area-inset-bottom) + 12px);;
}

#btn_code_create {
  width: 100%;
  height: 48px;
  background-color: #F3A528;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

@keyframes fadeUp {
  0% {
      opacity: 0;
      transform: translateY(10px);
  }
  100% {
      opacity: 1;
      transform: translateY(0);
  }
}

@keyframes shake {
  0% {
      transform: rotate(0deg);
  }
  7.7% {  /* 0.6초의 12.5% 지점 (12.5% * 0.6/2.6) */
      transform: rotate(-4deg);
  }
  15.4% { /* 0.6초의 25% 지점 */
      transform: rotate(4deg);
  }
  23.1% { /* 0.6초의 37.5% 지점 */
      transform: rotate(-4deg);
  }
  30.8%, 100% { /* 0.6초의 50% 지점부터 끝까지 정지 */
      transform: rotate(0deg);
  }
}

.fade-up {
  animation: fadeUp 500ms ease-out forwards;
}

.shake {
  animation-name: shake;
  animation-duration: 2.6s;
  animation-iteration-count: infinite;
}

.main_content, .main_content .input_box, .main_content .flex.btn_group {
  display: none;
}

.share .subtitle {
  color: #442D00;
  font-weight: 700;
  font-size: 24px;
  line-height: 34px;
}

.main.share {
  background: linear-gradient(180deg, #EEAE31 1.73%, #FFF7DA 65.61%, #FFF6D7 100%);
  height: 100vh;
}

#image_card {
  border-radius: 36px;
  border: 1px solid #FFF;
  background: radial-gradient(233.71% 242.8% at 18.29% 95.31%, rgba(255, 255, 255, 0.60) 28.58%, rgba(254, 237, 196, 0.60) 40.65%), #FFF;
  box-shadow: 0px 0px 22.188px 0px rgba(80, 92, 102, 0.12);
  padding: 20px;
  position: relative;
  overflow: hidden;
  z-index: 200;
}

.shine_box{
  width: 100%;
  height: 343px;
  background: linear-gradient(119deg, rgba(255, 255, 255, 0.00) 36.29%, rgba(255, 255, 255, 0.70) 50.9%, rgba(255, 255, 255, 0.00) 64.77%);
  position: absolute;
  -webkit-animation: shine 2s ease-in-out infinite;
  left: 0;
  top: 0;
}
@-webkit-keyframes shine{
  0%{
      margin-left: -380px;
  }
  100%{
      margin-left: 380px;
  }
}
.card_box_bottom {
  color: #B07E2D;
  text-align: center;
  font-size: 16px;
  padding: 0;
}

.car, .amount {
  width: 72%;
  display: block;
  margin: 0 auto;
}

.amount {
  margin-top: 25px;
  margin-bottom: 11px;
}

.section.card_box {
  margin: 4vh 12.5vw;
}

.card_box_logo {
  padding: 0;
  margin-top: 30px;
  justify-content: center;
}

.card_box_logo img {
  width: 24vw;
}

.giftcard_frame_name {
  display: inline-flex;
  padding: 3.682px 11.047px;
  box-sizing: border-box;
  height: 28px;
  justify-content: center;
  align-items: center;
  background-color: #E3A221;
  border-radius: 28px;
  color: #FFFFFF;
  position: initial;
  font-size: 14px;
}

.giftcard_frame_name span {
  color: #FFFFFF;
}

.title {
  padding-top: 17vh;
}

.subtitle {
  padding-top: 8.5vh;
}

.main_intro .main_img {
  padding-top: 9vh;
}

.main_content .main_img {
  padding-top: 4vh;
}

.share_btn {
  display: flex;
}

.top_bar {
  background-color: transparent;
}

.main.share .btn_group {
  padding: 0;
  padding-bottom: env(safe-area-inset-bottom);
}

.banner_list {
  display: flex;
  animation: banner-animation 16s linear infinite;
  position: fixed;
  bottom: 14vh;
}

@keyframes banner-animation {
  0% {
      transform: translateX(0);
  }
  100% {
      transform: translateX(calc(-1094px - 14px * 4));
  }
}

.banner {
  height: 38px;
  background-color: #FFFAED;
  margin-right: 14px;
  flex-shrink: 0;
  box-sizing: border-box;
  color: #7E6B47;
  font-size: 15px;
  font-weight: 500;
  line-height: 22px;
  padding: 8px 12px;
  border-radius: 18px;
  box-shadow: 0px 0px 1px 0px rgba(0, 0, 0, 0.06), 0px 2px 8px 0px rgba(0, 0, 0, 0.08);
  display: flex;
}

.banner img {
  width: 28px;
  margin-right: 10px;
}
