.modal {
  font-family: "Noto Serif TC", "serif;", "Maven Pro", "Droid Sans",
    "Myriad Pro", Helvetica, Verdana, Geneva, sans-serif;
  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.webp) no-repeat center center;
  background-size: 100% 100%;
}

.modal-header,
.modal-footer {
  border: 0px solid #dee2e6 !important;
}

.modal-header .close {
  margin: auto;
  position: absolute;
  top: -3.5rem;
  right: 0rem;
}
.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 */
img.modal-title {
  max-width: 350px !important;
  margin: 0rem 0rem 1rem 0rem;
}

.row {
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  margin-right: -15px;
  margin-left: -15px;
  align-items: center;
}

a.close {
  background: url(../images/modal/modal_btn_x.webp) no-repeat center center;
  width: 50px;
  height: 50px;
}
a:focus {
  outline: 0px dotted !important;
  outline: 0px auto -webkit-focus-ring-color !important;
}

/* ////////////// 共用：捲軸底色 ////////////// */
.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: 1rem;
  color: #fff !important;
  border-radius: 5px;
  text-align: left;
  line-height: 1.5;
}
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.2rem !important;
  background: rgba(43, 38, 29, 0) !important;
  border: none !important;
}

/* ////////////// 各區塊 ////////////// */

/* ////////////// 1. ////////////// */
#pop_01 .col-sm-4 {
  margin-top: 2%;
}

/* ////////////// 2. ////////////// */
/* 獲得獎勵 */

#modal02 .modal-body {
  height: 550px;
  overflow-y: scroll;
}
.modal_p_block {
  margin-top: 0.5rem;
  margin-bottom: 1.7rem;
}
#modal02 h3 {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  font-size: calc(1.1rem + 0.6vw);
}
h3 img {
  width: 100%;
  max-width: 70px;
  height: fit-content;
}
#modal02 h3 span {
}
#modal02 .modal-footer {
  padding: 1.5rem 0.75rem 0.75rem 0.75rem;
}

/* ////////////// 4. ////////////// */

/* 立即預約 */
#modal04 .modal-body {
  z-index: 99;
}

#modal04 .form-check {
  padding-left: 0;
  line-height: 1.5;
  color: rgb(177, 160, 139);
}
#modal04 .form-check input {
  margin-top: 1.15rem;
  float: none;
  margin-left: 0;
}
#modal04 .d-flex,
#modal05 .d-flex {
  width: 100%;
  flex-wrap: wrap;
  justify-content: center;
}

#modal04 .gift img,
#modal05 .gift img {
  width: 25%;
  margin: 0 2.5px 7px 2.5px;
}
#modal04 .store,
#modal05 .store {
  flex-wrap: nowrap;
}

/* BG：角色 */
.modal04_bg {
  position: absolute;
  top: 5%;
  left: -70%;
}
.modal04_bg img {
  max-width: 750px;
}

/* ////////////// 5. ////////////// */
/* 預約完成 */
#modal05 .modal-body {
  z-index: 99;
}

.modal05_bg {
  position: absolute;
  top: -10%;
  left: -85%;
  width: 700px;
  z-index: 1;
}

/* ////////////// 6. ////////////// */
/* 創建軍團 */
#modal06 .row {
  justify-content: center;
}
#modal06 .col-lg-12 {
  font-size: 1rem;
  background: url(../images/modal/modal_txt_form.webp) no-repeat center center;
  background-size: 100% 100%;
  background-color: rgba(43, 38, 29, 0.6) !important;
  color: #fff !important;
  border: 1px solid rgba(204, 198, 186, 0.4) !important;
  border-radius: 5px;
  display: flex;
  justify-content: space-evenly;
  text-align: left;
  line-height: 2;
  padding: 0.5rem 1rem;
  margin-bottom: 0.5rem;
}
#modal06 span {
  margin-right: 0.9rem;
}
#modal06 input,
#modal06 textarea {
  background-color: rgb(255 255 255 / 20%);
  border: 0px solid #bc934c94;
  box-sizing: border-box;
  padding: 0 10px;
  color: #fff;
  width: 70%;
}
#modal06 .form-select {
  display: inline-block;
  background-color: rgb(255 255 255 / 20%);
  border: 0px solid #ced4da;
  width: 70%;
  line-height: 2;
  color: #aaa9a9;
  padding: 0 10px;
}

@media (max-width: 540px) {
  #modal06 .col-lg-12 {
    font-size: 14px;
  }
}

@media (max-width: 420px) {
  #modal06 .col-lg-12 {
    width: 90%;
    padding: 0.5rem;
  }
}

/* ////////////// 7. ////////////// */
/* 軍團資訊 */
#modal07 .col-lg-12 {
  font-size: 1rem;
  background: url(../images/modal/modal_txt_form.webp) no-repeat center center;
  background-size: 100% 100%;
  background-color: rgba(43, 38, 29, 0.6) !important;
  color: #fff !important;
  border: 1px solid rgba(204, 198, 186, 0.4) !important;
  border-radius: 5px;
  display: flex;
  justify-content: flex-start;
  text-align: left;
  line-height: 2;
  padding: 0.5rem;
  margin-top: 1.5rem;
}
#modal07 .col-lg-12 .tle {
  width: 20%;
  max-width: 60px;
  margin-right: 7px;
  word-break: keep-all;
}
#modal07 .col-lg-12 .name {
  width: 100%;
  word-wrap: break-word;
  word-break: break-all;
}
#modal07 .col-lg-12 .link {
  font-size: 0.8rem;
  line-height: 20px;
  padding-left: 7px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
#modal07 .col-lg-12 a {
  width: 100px;
  margin-left: 7px;
  display: flex;
  align-items: center;
}
#modal07 .col-lg-12 .con {
  height: 80px;
  overflow-y: scroll;
}
@media (max-width: 1800px) {
}
@media (max-width: 1024px) {
  #modal04 .col-lg-4 {
    width: 30%;
  }
  #modal04 .col-lg-6 {
    width: 60%;
    padding-right: 0;
  }
  .modal04_bg {
    display: none;
  }
}

@media (max-width: 992px) {
  .form-select {
    margin-bottom: 0 !important;
  }
  p.modal_p_2 {
    font-size: 1.05rem !important;
  }
  #modal02 .modal-body {
    height: 470px;
  }
  #modal02 .modal-content {
    margin-top: -5vh;
  }

  #modal05 .modal_copy {
    width: 50px;
    margin: auto;
  }
  .modal05_bg {
    display: none;
  }
}
@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;
  }
  #modal05 .col-lg-7 {
    width: 75%;
    padding-right: 0;
    padding-left: 0;
    display: inline-block;
  }
  #modal05 .col-lg-3 {
    width: 20%;
  }

  #modal04 .store,
  #modal05 .store {
    justify-content: space-evenly;
  }
}

@media (max-width: 576px) {
  select,
  input {
    font-size: 13.5px !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: 130px;
  }
  #modal01 .modal-body {
    width: 85% !important;
  }
  #modal01 .col-sm-8 {
    width: 55%;
  }
  #modal01 .col-sm-4 {
    max-width: 120px;
  }
  /* 查詢序號 */
  #modal02 h3 {
    font-size: calc(1.1rem + 0.6vw);
  }
  #modal02 .modal-body a img {
    margin-bottom: 1rem;
  }
  #modal04 .col-lg-4 {
    width: 80px;
    padding-left: 0;
    padding-right: 0;
  }
  #modal04 .form-check {
    font-size: 13px;
  }
  #modal04 .form_block .gift {
    position: relative;
    top: 5px;
  }
  #modal05 .form_block .gift {
    position: relative;
    top: -10px;
    margin-bottom: 0.1rem !important;
  }
  #modal04 .d-flex img,
  #modal05 .d-flex img {
    width: 31%;
    margin-top: -0.5rem;
  }

  #modal06 .col-lg-5 {
    width: 40%;
    margin-bottom: 1.5rem;
  }
  #modal06 .col-lg-7 {
    padding-left: 7px;
    margin-bottom: 1.5rem;
  }
}

@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: 14.5px !important;
  }
  #modal01 .col-sm-4 {
    max-width: 100px;
  }

  #modal04 .form-check {
    margin: auto;
    margin-top: 0.5rem;
  }
  #modal04 .store a,
  #modal05 .store a {
    margin: 0 7px;
  }

  #modal06 .col-lg-4 {
    width: 110px;
  }

  #modal07 .col-lg-12 {
    flex-direction: column;
    align-items: center;
  }
  #modal07 .col-lg-12 .name {
    font-size: 13px;
    text-align: center;
  }

  #modal07 .col-lg-12 .link {
    font-size: 0.7rem;
    flex-direction: column;
  }
  #modal07 .col-lg-12 a {
    width: 65px;
    margin-bottom: 7px;
    margin-top: 7px;
  }
}

@media (max-width: 380px) {
  .modal-header {
    padding: 1rem 1rem 0rem 1rem !important;
  }
  #modal05 .form_block .mb-3 {
    margin-bottom: 0 !important;
  }
  #pop_07 .modal-dialog-centered {
    min-height: calc(100% - -1rem) !important;
  }
}
