.modal {
  line-height: 3.2rem;
  font-weight: 500;
  text-align: left;
  width: 70%;
  /* text-shadow: #000 1px 0 10px; */
  text-align: justify;
  scrollbar-width: none;
  /* padding-left: 16px; */
}

.modal-backdrop {
  /* background-color: rgba(0, 0, 0, 1) !important; */
}

.modal-content {
  background-color: transparent !important;
  background: url(../images/modal/modal_bg_01.png) no-repeat center center;
  background-size: 100% 100%;
  border: none !important;
}

.btn_close {
  max-width: 220px;
}

.form_block .s1_t_03 {
  width: 100%;
}

.form_block .s1_t_03:after {
  width: auto !important;
}

.modal-header,
.modal-footer {
  border: 0px solid #dee2e6 !important;
  margin-bottom: 0.5rem;
}

#pop_03 .modal-header,
#pop_03 .modal-footer {
  border: 0px solid #dee2e6 !important;
  margin-top: 0.5rem;
}

.modal-body {
  width: 90%;
  margin: auto;
  text-align: center;
  padding-bottom: 0 !important;
}
.modal-footer,
.modal-title {
  text-align: center;
}
.modal-footer {
  padding: 0 0.75rem 0.75rem 0.75rem !important;
  justify-content: center !important;
}
.modal-footer a {
  margin-bottom: 1.5rem;
}

/* 標題的img */

.modal .s1_t_03:after {
  width: 400px;
  height: 110px;
}

.row {
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  margin-right: -15px;
  margin-left: -15px;
  align-items: center;
}

.s1_t_07 {
  font-family: 'Noto San TC', 'serif;', 'Maven Pro', 'Droid Sans', 'Myriad Pro', Helvetica, Verdana, Geneva, sans-serif !important;
  position: relative;
  font-size: 1.3rem;
  font-weight: 800;
  color: #b95a00;
  line-height: 1.3rem;
}

.modal_p p.s1_t_08 {
  position: relative;
  margin-top: 0.5rem;
  font-size: 1.2rem;
  border-radius: 5px;
  line-height: 1.5;
  font-weight: 800;
  color: #4d3a1e;
}

.s1_t_08::before {
  content: '';
  position: absolute;
  top: 24px;
  left: 0;
  width: 100%;
  height: 20px;
  background: url(../images/modal/modal03_line.png) no-repeat;
  background-size: 100% auto;
}

.s1_t_09 {
  font-family: 'Noto San TC', 'serif;', 'Maven Pro', 'Droid Sans', 'Myriad Pro', Helvetica, Verdana, Geneva, sans-serif !important;
  position: relative;
  font-size: 2rem;
  font-weight: 900;
  color: #ffffff;
  -webkit-text-fill-color: transparent;
  background: linear-gradient(to bottom, #0f212e 30%, #1f354d 60%, #424960 100%);
  background-clip: text;
  z-index: 3;
  width: 40%;
}

.s1_t_09::before {
  content: '';
  position: absolute;
  top: 1rem;
  left: 0rem;
  bottom: 0;
  right: 0;
  background: url(../images/modal/modal_titledot01.png) no-repeat;
}

.s1_t_09::after {
  content: '';
  position: absolute;
  top: 1rem;
  left: 10rem;
  right: 0;
  bottom: 0;
  background: url(../images/modal/modal_titledot01.png) no-repeat;
}

.s1_t_09_1 {
  font-family: 'Noto San TC', 'serif;', 'Maven Pro', 'Droid Sans', 'Myriad Pro', Helvetica, Verdana, Geneva, sans-serif !important;
  position: relative;
  font-size: 2rem;
  font-weight: 900;
  color: #ffffff;
  -webkit-text-fill-color: transparent;
  background: linear-gradient(to bottom, #2e1b01 30%, #3b2002 40%, #994806 100%);
  background-clip: text;
  z-index: 3;
  width: 40%;
}

#pop_07 .s1_t_09_1 {
  width: 45%;
}

#pop_07 .s1_t_09_1::after {
  left: 11.6rem;
}

.s1_t_09_1::before {
  content: '';
  position: absolute;
  top: 1rem;
  left: 0rem;
  bottom: 0;
  right: 0;
  background: url(../images/modal/modal_titledot.png) no-repeat;
}

.s1_t_09_1::after {
  content: '';
  position: absolute;
  top: 1rem;
  left: 10rem;
  right: 0;
  bottom: 0;
  background: url(../images/modal/modal_titledot.png) no-repeat;
}

.s1_t_010 {
  font-family: 'Noto San TC', 'serif;', 'Maven Pro', 'Droid Sans', 'Myriad Pro', Helvetica, Verdana, Geneva, sans-serif !important;
  position: relative;
  font-size: 1.3rem;
  font-weight: 800;
  color: #402d14;
}

.modal-header .close {
  margin: auto;
  position: absolute;
  top: -2.5rem;
  right: 0rem;
}

a.close {
  background: url(../images/modal/modal_btn_x.webp) no-repeat center center;
  background-size: 90% 90%;
  width: 40px;
  height: 40px;
}
a:focus {
  outline: 0px dotted !important;
  outline: 0px auto -webkit-focus-ring-color !important;
}

.store a.btn_m {
  display: inline-block !important;
}

.btn_copy {
  transition: transform 0.1s ease-in-out;
  background: url(../images/modal/modal_btn_copy.png) no-repeat center center;
  background-size: 110% auto;
}

#pop_05 .btn_copy {
  transition: transform 0.1s ease-in-out;
  background: url(../images/modal/modal_btn_copy.png) no-repeat center center;
  background-size: 100% auto;
}

.btn_go {
  transition: transform 0.1s ease-in-out;
  background: url(../images/modal/modal_btn_go.png) no-repeat center center;
  background-size: 110% auto;
}

.btn_go:active,
.btn_copy:active {
  transform: scale(0.95);
  transition: transform 0.1s ease-in-out;
}

.form-control:disabled {
  background-color: rgba(188, 147, 76, 0.3) !important;
}

.form-control:read-only {
  background-color: #ffffff !important;
  opacity: 1;
}

/* ////////////// 共用：捲軸底色 ////////////// */
.modal-body::-webkit-scrollbar-track,
#modal07 .con::-webkit-scrollbar-track {
  -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
  background-color: #fff6c0;
}
/* 捲軸寬度 */
.modal-body::-webkit-scrollbar,
#modal07 .con::-webkit-scrollbar {
  width: 6px;
  background-color: black;
}
/* 捲軸本體顏色 */
.modal-body::-webkit-scrollbar-thumb,
#modal07 .con::-webkit-scrollbar-thumb {
  background-color: #bba765;
}
/* ////////////// 捲軸底色 ////////////// */

.modal_p p {
  font-size: 1.2rem;
  border-radius: 5px;
  line-height: 1.5;
  font-weight: 600;
  color: #29180d;
}
p.modal_p_1 {
  background-color: rgba(43, 38, 29, 0.6) !important;
  border: 1px solid rgba(204, 198, 186, 0.4) !important;
  text-align: center !important;
  font-size: 1.4rem !important;
  padding: 1rem 1rem;
  margin-bottom: 0;
}
p.modal_p_2 {
  text-align: center !important;
  font-size: 1.4rem !important;
  background: rgba(43, 38, 29, 0) !important;
  border: none !important;
  font-weight: bolder;
}
p.modal_p_3 {
  margin-bottom: 0rem;
  margin-top: 0.5rem;
  color: #402d14;
  line-height: 1.5rem;
  font-size: 0.9rem;
  font-weight: 600;
}

p.form_check {
  font-size: 1rem;
  border-radius: 5px;
  line-height: 1.5;
  font-weight: 400;
  color: #3f2e1d;
}

.form-check {
  text-align: left;
}

.form-check a {
  width: 100%;
  height: 100%;
  display: inline;
  color: #a2741c;
  text-decoration: none;
}

.form-check a:hover {
  color: #8f6414;
}

/* ////////////// 各區塊 ////////////// */

/* ////////////// 1. ////////////// */

.store {
  display: flex;
  justify-content: space-evenly;
}
.store a {
  width: 40%;
}

/* .modal_monsrer {
  position: absolute;
  width: 240px;
  right: -140px;
  bottom: -60px;
  z-index: 5;
  pointer-events: none;
} */
.modal_monsrer {
  position: absolute;
  width: 240px;
  right: -170px;
  bottom: -12px;
  z-index: 5;
  pointer-events: none;
}
/* ////////////// 2. ////////////// */

#pop_02 .modal-dialog {
  max-width: 550px;
}

.modal_money {
  position: absolute;
  width: 180px;
  right: -50px;
  bottom: -60px;
  z-index: 5;
  pointer-events: none;
}

/* ////////////// 3. ////////////// */

#pop_03 .modal-content {
  background-color: transparent !important;
  background: url(../images/modal/modal_bg_02.png) no-repeat center center;
  background-size: 100% 100%;
  border: none !important;
}

#pop_03 .modal-dialog {
  max-width: 570px;
}

#pop_03 .mt-1 {
  margin-top: -0.5rem !important;
}

/* ////////////// 6. ////////////// */

.m_box {
  display: flex;
  justify-content: center;
  justify-content: space-between;
  /* margin: 0 2.5rem 0 0rem; */
}

#pop_06 .modal-content {
  background-color: transparent !important;
  background: url(../images/modal/modal_bg_01.png) no-repeat center center;
  background-size: 100% 100%;
  border: none !important;
}

#pop_06 .modal-dialog {
  max-width: 800px;
  /* width: auto !important; */
  margin: 1.75rem auto;
}

.m_box-left {
  width: 15%;
}

.m_box-right,
.m_box-center {
  position: relative;
  width: 40%;
  height: 100%;
}

#pop_06 .s1_t_09_1 {
  font-size: 1.6rem;
  width: auto;
}

#pop_06 .s1_t_09_1::before {
  content: '';
  position: absolute;
  top: 1rem;
  left: -1.2rem;
}

#pop_06 .s1_t_09_1::after {
  left: 9.8rem;
  right: -4rem;
}

.m_box-left img {
  width: 90%;
  margin-top: 2.5rem;
}

.m_line {
  transform: rotate(180deg);
  width: 100px;
  height: 100px;
}

.m_gift_box {
  /* height: 320px; */
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: space-around;
  height: auto;
}

.m_gift {
  display: flex;
  justify-content: space-evenly;
}

.m_gift::before {
  content: '';
  width: 100%;
  position: absolute;
  top: 10.6rem;
  left: 0;
  bottom: 0;
  right: 0;
  background: url(../images/modal/m_line01.png) no-repeat;
  background-size: 100% auto;
}

.m_gift::after {
  content: '';
  width: 100%;
  position: absolute;
  top: 18.6rem;
  left: 0;
  bottom: 0;
  right: 0;
  background: url(../images/modal/m_line01.png) no-repeat;
  background-size: 100% auto;
}

.m_box-right::before {
  content: '';
  width: 100%;
  position: absolute;
  top: 0;
  left: -0.5rem;
  bottom: 0;
  right: 0;
  background: url(../images/modal/m_line.png) no-repeat;
  background-size: auto 100%;
}

.m_gift img {
  width: 70px;
}

.gift_name {
  font-size: 0.9rem;
  text-wrap: nowrap;
}

/* ////////////// 7. ////////////// */

#pop_07 .m_box {
  display: flex;
  justify-content: center;
  justify-content: space-between;
  flex-direction: column;
}

#pop_07 .s1_t_09_1 {
  font-size: 1.6rem;
  width: auto;
}

#pop_07 .s1_t_09_1::before {
  content: '';
  position: absolute;
  top: 1rem;
  left: -1.2rem;
}

#pop_07 .s1_t_09_1::after {
  left: 13.2rem;
  right: -4rem;
}

#pop_07 .m_gift::before,
#pop_07 .m_gift::after,
#pop_07 .m_box-right::before {
  content: '';
  display: none;
}

#pop_07 .m_box-right,
.m_box-center {
  position: relative;
  width: 80%;
  height: 100%;
  margin: auto;
}

#pop_07 .modal_monsrer {
  position: absolute;
  width: 180px;
  right: -82px;
  bottom: -10px;
  z-index: 5;
  pointer-events: none;
}

#pop_07 .m_gift img {
  width: 80px;
  margin: 0rem 0.5rem;
}

#pop_07 .m_gift {
  display: flex;
  justify-content: center;
}

@media (max-width: 1600px) {
  /* ////////////// 2. ////////////// */
  #pop_02 .modal-dialog {
    max-width: 500px;
    margin: 1.75rem auto;
  }
}
@media (max-width: 1024px) {
}

@media (max-width: 992px) {
  .form-select {
    margin-bottom: 0 !important;
  }
  /* p.modal_p_2 {
    font-size: 1.05rem !important;
  } */

  p.modal_p_3 {
    font-size: 1rem;
  }
}
@media (max-width: 769px) {
  .modal-body .btn_m {
    margin-bottom: 0;
  }
  .form-select {
    font-size: 13.5px !important;
  }
  .d-md-none {
    display: none !important;
  }
  p.modal_p_1 {
    font-size: 1.2rem !important;
    padding: 0.5rem;
  }
}

@media (max-width: 576px) {
  select,
  input {
    font-size: 1rem !important;
  }
  .modal-body a.btn_m {
    max-width: 150px;
    margin: 0;
  }

  .modal_p_1 {
    font-size: 1.2rem !important;
  }
  .modal-footer a {
    margin-bottom: 1rem;
  }
  .modal-footer img {
    max-width: 220px;
  }

  .modal_monsrer {
    display: none;
  }

  .s1_t_09,
  .s1_t_09_1 {
    width: 44%;
  }

  .s1_t_010 {
    font-size: 1.2rem;
  }

  .m_box-left img {
    width: 100%;
    margin-top: 3.5rem;
  }

  .m_box-right,
  .m_box-center {
    position: relative;
    width: 48%;
    height: 100%;
  }

  .m_gift {
    flex-wrap: wrap;
  }

  .m_gift_box .m_gift:nth-child(3) {
    display: flex;
    flex-wrap: wrap; /* 允許換行 */
    justify-content: center; /* 水平居中對齊 */
    align-items: center; /* 垂直居中對齊 */
  }

  .m_gift_box .m_gift:nth-child(3) span {
    flex: 0 1 50%; /* 預設每行最多放兩個元素 */
    text-align: center; /* 元素內容居中 */
  }

  .m_gift_box .m_gift:nth-child(3) span:first-child {
    flex-basis: 100%; /* 第一個元素佔整行 */
  }

  .gift_name {
    font-size: 0.8rem;
    text-wrap: nowrap;
  }

  .m_box-right::before {
    left: -0em;
  }

  .m_gift img {
    width: 65px;
  }

  .m_gift::before {
    top: 10.3rem;
  }

  .m_gift::after {
    top: 17.9rem;
  }

  #pop_07 .m_box-right,
  .m_box-center {
    position: relative;
    width: 100%;
    height: 100%;
  }
}

@media (max-width: 480px) {
  h3 {
    font-size: calc(1.1rem + 0.6vw);
  }
  h3 img {
    max-width: 35px !important;
  }
  .modal-body {
    width: 98%;
  }
  .form-check label {
    line-height: 1.5;
  }
  p.modal_p_1 {
    font-size: 0.9rem !important;
  }

  p.modal_p_2 {
    font-size: 1.2rem !important;
  }

  .s1_t_09,
  .s1_t_09_1 {
    width: 46%;
  }

  #pop_06 .modal-content {
    background-color: transparent !important;
    background: url(../images/modal/modal_bg_03.png) no-repeat center center;
    background-size: 100% 100%;
    border: none !important;
  }

  #pop_06 .s1_t_09_1 {
    font-size: 1.2rem;
  }

  #pop_06 .s1_t_09_1::after {
    left: 7.4rem;
    right: -2rem;
  }

  .modal_p p.s1_t_08 {
    font-size: 0.9rem;
  }
}

@media (max-width: 390px) {
  .s1_t_010 {
    font-size: 1rem;
  }

  p.modal_p_2 {
    font-size: 1.1rem !important;
  }
}
