@charset "UTF-8";

body {
  font-family: "微軟正黑體";
}

/* 登入頁面 */
#welcome_page_body {
  background: url(../imgs/welcome_background.jpg);
  margin: 0;
  padding: 0;
  background-size: 100% 100%;
}

#head {
  width: 100%;
  background: black;
}

#wrap {
  width: 1000px;
}

#backstage_login_form_wrap {
  width: 350px;
  background: rgba(255, 0, 0, 0);
  margin: 0 auto;
  padding: 25vh 0 0 0;
  display: table;
  color: #fff;
}

.backstage_login_form_row {
  width: 100%;
  display: inline-block;
  clear: both;
  position: relative;
  text-align: center;
  margin: 10px 0;
}

.backstage_login_form_row_text_input {
  width: 240px;
  padding: 10px;
  background: none;
  border: 1.5px solid gray;
  font-size: 20px;
  line-height: 28px;
  color: #fff;
}

.welcome_page_login_button {
  border: 1px solid #000;
  width: 220px;
  font-size: 22px;
  line-height: 28px;
  padding: 10px;
  cursor: pointer;
  transition: all 0.5s ease-in-out;
  background: #fff;
  color: orange;
}

.welcome_page_login_button:hover {
  background: #fb9532;
  border: 1px solid #fb9532;
  color: #fff;
}

/* 後臺選單 */
.nav-small-cap {
  background: #fb9678;
  color: #fff;
}

.nav-small-cap {
  font-size: 1.3em;
}

#side-menu li a {
  color: #000;
  font-size: 1.1em;
}

/* bootstrap 4 table 框線顏色 */
.table-bordered > tbody > tr > td,
.table-bordered > tbody > tr > th,
.table-bordered > tfoot > tr > td,
.table-bordered > tfoot > tr > th,
.table-bordered > thead > tr > td,
.table-bordered > thead > tr > th {
  border: 1px solid gray;
}

/* bootstrap 4 分頁置中 */
.pagination {
}

/* 分頁 */
.pagenate {
  width: 100%;
  justify-content: center;
  padding: 2.5em 0 0 0;
  clear: both;
  text-align: center;
  background: none;
  box-shadow: none;
  margin: 0;
}

.pagenate a {
  padding: 0.3em 0.7em;
  color: #aaa;
  font-size: 18px;
  margin: 0 0.1em;
  border: 1px solid #aaa;
  border-radius: 5px;
  transition: all 0.2s ease-in-out;
  display: inline-block;
  text-decoration: none;
}

.pagenate a.active {
  padding: 0.3em 0.7em;
  background: #5867dd;
  color: #fff;
  font-size: 18px;
  margin: 0.1em;
  border: 1px solid #5867dd;
  border-radius: 5px;
  transition: all 0.2s ease-in-out;
  display: inline-block;
}

.pagenate a:hover,
.pagenate a.active:hover {
  color: #fff;
  background: #5867dd;
  border-color: #5867dd;
}

/* bootstrap 4 按鈕尺寸 */
.btn {
  font-size: 1.2em;
}

.custom-file-input ~ .custom-file-label::after {
  content: "選擇檔案";
}

/* bootstrap 4 input 框色 */
.input-group input[type="text"],
.input-group textarea,
.form-group select {
  border: 1px solid #ccc;
}

/* 鎖定裝置最小大小 */
@media screen and (max-width: 1025px) {
  #mobile_disable_mask {
    width: 100vw;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    background: black;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999999999999999999;
    font-size: 2em;
  }
}

@media screen and (min-width: 1026px) {
  #mobile_disable_mask {
    display: none;
  }
}

#watting_disable_mask {
  width: 100vw;
  height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  background: white;
  color: black;
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 99999999999999999999;
  font-size: 2em;
}

@media (min-width: 1025px) {
  .m-header-menu
    .m-menu__nav
    > .m-menu__item.m-menu__item--tabs.m-menu__item--active
    > .m-menu__link
    .m-menu__link-text {
    /*color: #382244;*/
  }
}

#popupbox {
  width: 95%;
  max-width: 800px;
  display: none;
  background: #fff;
}

.popupbox_title {
  display: inline-block;
  width: 100%;
  margin: 10px;
  font-size: 22px;
  font-weight: 600;
  text-align: center;
  letter-spacing: 2px;
}

#popupbox_button_wrap {
  text-align: center;
  margin-bottom: 20px;
}

.popup_cancel i {
  font-size: 2em;
  float: right;
  margin: 10px 10px 0 0;
  cursor: pointer;
  transition: all 1s ease-in-out;
}

.popup_cancel i:hover {
  opacity: 0.7;
}

@media (max-width: 1025px) {
  .m-brand__logo-desktop {
    min-width: 15em;
    font-size: 18px;
  }
}

.m-header-menu .m-menu__nav > .m-menu__item.m-menu__item--tabs > .m-menu__link {
  padding: 0 5px;
}

.pc_item {
  display: inline-block;
}

@media (max-width: 1024px) {
  .pc_item {
    display: none !important;
  }
}

.mobile_item {
  display: none !important;
}

@media (max-width: 1024px) {
  .mobile_item {
    display: inline-block !important;
  }
}
.navi2_list {
  border-bottom: 1px solid #666;
  padding-bottom: 10px;
  margin-bottom: 10px;
}

.navi2_list:last-child {
  border: none;
  padding-bottom: 0;
  margin-bottom: 0;
}

.card_list_all:hover .card_list_all_name {
  transition: all 0.3s;
}
.card_list_all:hover .card_list_all_name {
  text-decoration: underline;
}
/* 購物商城彌月小卡內頁 */
.mall_card_box_wrap {
  position: fixed;
  inset: 0 0;
  overflow: auto;
  z-index: 100;
  background-color: rgba(0, 0, 0, 0.2);
  display: none;
}
.mall_card_box_wrap::-webkit-scrollbar {
  width: 3px;
}
.mall_card_box_wrap::-webkit-scrollbar-track {
  border-radius: 5px;
}
.mall_card_box_wrap::-webkit-scrollbar-thumb {
  border-radius: 5px;
  background: #787878;
}

.mall_card_box {
  position: absolute;
  left: 50%;
  top: 5%;
  transform: translate(-50%, 0%);

  margin: 0 auto 100px;
}
.card_download_wrap {
  position: absolute;
  top: 102%;
  left: 50%;
  transform: translateX(-50%);
  padding-bottom: 20px;
}
#card_download {
  /* height: 100px; */
}
.mall_card_content_img {
  position: relative;
  top: 50%;
  z-index: 150;
  /* display: inline-block; */
  margin: auto;
  display: flex;
}
#card_img1 {
  width: 680px;
  height: 454px;
}
#card_img2 {
  width: 551px;
  height: 919px;
}
#card_img3 {
  width: 654px;
  height: 382px;
}
#card_img4 {
  width: 546px;
  height: 910px;
}

.card_cross {
  position: absolute;
  right: -40px;
  top: 0;
  font-size: 20px;
  width: 32px;
  height: 32px;
  color: #fff;
  background-color: #000;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: color 0.3s, background-color 0.3s;
  cursor: pointer;
}
.card_cross:hover {
  background-color: #fff;
  color: #000;
}

.mall_card_content_img_box img {
  max-width: 100%;
  height: 100%;
  object-fit: contain;
  vertical-align: bottom;
}

/* 彌月小卡1 */
.mall_card_content_img1_input_wrap {
  position: absolute;
  inset: 0 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  padding: 7% 12% 0% 7%;
  overflow: hidden;
}
.mall_card_content_img_upload_box {
  position: relative;
  padding: 5%;
}
.mall_card_content_img_upload_box img {
  position: absolute;
  top: 11%;
  left: 5%;
  right: 5%;
  aspect-ratio: 1;
  border-radius: 50%;
  max-height: 272px;
  /* width: 100%; */
  z-index: -1;
  object-fit: cover;
}
.mall_card_content_img_upload_btn {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 18%;
  z-index: 1;
}
.mall_card_content_img_input_text {
  position: relative;
  margin: 45% 0% 0% 8%;
  /* height: 100%; */
  /* overflow: hidden; */
}

.mall_card_content_img_birthday_text1 {
  position: absolute;
  right: 7%;
  top: -20.5%;
  font-size: 22px;
  font-weight: bold;
  width: 52%;
  color: #fff;
  outline: none;
  /* overflow-y: scroll; */
}
.mall_card_contenteditable {
  outline: none;
  overflow-y: scroll;
}

.mall_card_contenteditable1 {
  height: 100%;
  width: 100%;
  position: absolute;
  bottom: 0;
  right: 0;

  text-align: center;
  font-size: 22px;
  color: #fff;
  font-weight: bold;
}
.mall_card_contenteditable::-webkit-scrollbar {
  width: 3px;
}
.mall_card_contenteditable::-webkit-scrollbar-track {
  border-radius: 5px;
  /* background: #ddd; */
}
.mall_card_contenteditable::-webkit-scrollbar-thumb {
  border-radius: 5px;
  background: #787878;
}

.mall_card_content_input_remind {
  width: 114px;
  height: 36px;
  font-size: 18px;
  text-align: center;
  line-height: 36px;
  border: 1px solid #fff;
  color: #fff;
  box-shadow: 0 0 0px 5px rgba(0, 0, 0, 0.76);
  background-color: rgba(0, 0, 0, 0.76);
  border-radius: 5px;
  position: absolute;
  z-index: 1;
  left: 50%;
  transform: translateX(-50%);
  top: 70%;
}

.mall_card_content_img_upload_btn {
  width: 126px;
  height: 52px;
  font-size: 22px;
  text-align: center;
  line-height: 52px;
  border: 1px solid #fff;
  color: #fff;
  box-shadow: 0 0 0px 5px rgba(0, 0, 0, 0.76);
  background-color: rgba(0, 0, 0, 0.76);
  border-radius: 5px;
}
/* @media screen and (max-width: 1180px) {
  .mall_card_content_img_birthday_text1 {
    font-size: 18px;
  }
  .mall_card_contenteditable1 {
    font-size: 18px;
  }
}
@media screen and (max-width: 991px) {
  .mall_card_contenteditable1 {
    font-size: 20px;
  }
}
@media screen and (max-width: 767px) {
  .mall_card_content_img_birthday_text {
    font-size: 14px;
  }
  .mall_card_contenteditable1 {
    font-size: 14px;
  }

  .mall_card_content_input_remind {
    width: 76px;
    height: 28px;
    font-size: 16px;
    line-height: 28px;
  }
  .mall_card_content_img_upload_btn {
    width: 80px;
    height: 40px;
    font-size: 18px;
    line-height: 40px;
  }
}
@media screen and (max-width: 476px) {
  .mall_card_content_img_input_family_wrap {
    gap: 0px;
  }
  .mall_card_content_img_birthday_text {
    font-size: 12px;
  }
  .mall_card_contenteditable1 {
    font-size: 12px;
  }
} */
/* 彌月小卡2 */
.mall_card_content_img2_input_wrap {
  position: absolute;
  inset: 0 0;
  display: grid;
  grid-template-columns: 1fr;
  overflow: hidden;
}
.mall_card_content_img2_upload_box {
  position: relative;
}
.mall_card_content_img2_upload_box img {
  position: absolute;
  top: 20.5%;
  left: 15%;
  right: 15%;
  aspect-ratio: 1;
  height: 364px;
  transform: rotate(-4deg) translate(12px, 16px);
  z-index: -1;
  object-fit: cover;
}
.mall_card_content_img2_upload_btn {
  bottom: 0;
}
.mall_card_content_img2_input_text {
  margin: 0 14% 18% 14%;
}

.mall_card_content_img2_birthday_text {
  position: absolute;
  right: 0%;
  top: 20%;
  width: 40%;
  color: #5d5f8a;
  font-size: 28px;
  z-index: 1;
  outline: none;
}

.mall_card_contenteditable2 {
  position: absolute;
  bottom: -60px;
  left: 0;
  right: 0;
  font-size: 28px;
  color: #5d5f8a;
  height: 74.5%;
  padding: 0 14%;
  text-align: center;
}

/* @media screen and (max-width: 767px) {
  .mall_card_content_img2_birthday_text {
    font-size: 24px;
  }
  .mall_card_contenteditable2 {
    font-size: 24px;
  }
}
@media screen and (max-width: 576px) {
  .mall_card_content_img2_input_family_wrap {
    gap: 16px;
  }
  .mall_card_contenteditable2 {
    font-size: 20px;
  }
}
@media screen and (max-width: 476px) {
  .mall_card_content_img2_input_wrap {
    overflow: hidden;
  }
  .mall_card_content_img2_upload_box img {
    top: 6.5%;
    left: 0;
    right: 0;
    width: 100%;
    height: 100%;
    max-height: 360px;
  }

  .mall_card_content_img2_birthday_text {
    font-size: 16px;
  }
  .mall_card_contenteditable2 {
    font-size: 16px;
  }
} */
/* 彌月小卡3 */
.mall_card_content_img3_input_wrap {
  position: absolute;
  inset: 9% 6%;
  display: grid;
  grid-template-columns: 0.44fr 0.56fr;
  overflow: hidden;
}
.mall_card_content_img3_upload_box {
  position: relative;
}
.mall_card_content_img3_upload_box img {
  position: absolute;
  inset: 0 0;
  aspect-ratio: 1;
  width: 100%;
  height: 100%;
  border-radius: 5px;
  object-fit: cover;

  z-index: -1;
}
.mall_card_content_img3_upload_btn {
  bottom: 0;
}
.mall_card_content_img3_input_text {
  margin: 0 9% 3% 9%;
}

.mall_card_content_img3_birthday_text {
  position: absolute;
  right: -5%;
  top: 84%;
  width: 32%;
  color: #f4ab9a;
  font-size: 26px;
  line-height: 1;
  z-index: 0;
  outline: none;
}

.mall_card_contenteditable3 {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 15%;
  height: 55%;
  font-size: 18px;
  color: #f4ab9a;
  padding: 0 14% 0 0;
  text-align: center;
  line-height: 1.1;
}

/* @media screen and (max-width: 1180px) {
  .mall_card_contenteditable3 {
    font-size: 14px;
  }
}
@media screen and (max-width: 991px) {
  .mall_card_contenteditable3 {
    font-size: 16px;
  }
}
@media screen and (max-width: 767px) {
  .mall_card_content_img3_birthday_text {
    font-size: 19px;
  }
  .mall_card_contenteditable3 {
    font-size: 14px;
  }
}
@media screen and (max-width: 525px) {
  .mall_card_content_img3_birthday_text {
    font-size: 14px;
  }
  .mall_card_contenteditable3 {
    font-size: 12px;
  }
}
@media screen and (max-width: 476px) {
  .mall_card_contenteditable3 {
    font-size: 10px;
  }
} */
/* 彌月小卡4 */
.mall_card_content_img4_input_wrap {
  position: absolute;
  top: 30%;
  bottom: 9%;
  left: 5%;
  right: 5%;

  display: grid;
  grid-template-columns: 1fr;
  overflow: hidden;
}
.mall_card_content_img4_upload_box {
  position: relative;
  padding-bottom: 16%;
}
.mall_card_content_img4_upload_box img {
  position: absolute;
  inset: 0 0;
  width: 100%;
  height: 100%;
  border-radius: 5px;
  object-fit: cover;

  z-index: -1;
}
.mall_card_content_img4_upload_btn {
  bottom: 10%;
}
.mall_card_content_img4_input_text {
  margin: 0 9% 0% 0%;
}

.mall_card_content_img4_birthday_text {
  position: absolute;
  right: 0%;
  top: 22.5%;
  width: 32%;
  color: #fff;

  outline: none;
  font-size: 26px;
  line-height: 1;
  z-index: 0;
}

.mall_card_contenteditable4 {
  position: absolute;
  top: 17%;
  left: 0;
  font-size: 26px;
  color: #db80b2;
  width: 58%;
  height: 100%;
  text-align: left;
  background-color: transparent;
  line-height: 1.2;
}
.mall_card_contenteditable4_name {
  position: absolute;
  top: 52%;
  right: -12px;
  font-size: 26px;
  color: #db80b2;
  width: 34%;
  height: 50%;
  text-align: center;
  background-color: transparent;
  line-height: 1.2;
}

/* @media screen and (max-width: 1200px) {
  .mall_card_contenteditable4 {
    font-size: 24px;
  }
  .mall_card_contenteditable4_name {
    font-size: 24px;
  }
}
@media screen and (max-width: 767px) {
  .mall_card_content_img4_birthday_text {
    font-size: 24px;
  }

  .mall_card_content_img4_input_family_wrap {
    gap: 44px;
    top: 54%;
  }
}
@media screen and (max-width: 576px) {
  .mall_card_contenteditable4 {
    font-size: 18px;
  }
  .mall_card_contenteditable4_name {
    font-size: 18px;
  }
}
@media screen and (max-width: 520px) {
  .mall_card_content_img4_birthday_text {
    font-size: 18px;
  }
}
@media screen and (max-width: 476px) {
  .mall_card_content_img4_input_family_wrap {
    gap: 24px;
  }
  .mall_card_contenteditable4 {
    font-size: 16px;
  }
  .mall_card_contenteditable4_name {
    font-size: 16px;
  }
}
@media screen and (max-width: 400px) {
  .mall_card_content_img4_birthday_text {
    font-size: 16px;
  }
  .mall_card_contenteditable4 {
    font-size: 14px;
  }
  .mall_card_contenteditable4_name {
    font-size: 14px;
  }
} */

.mall_card_content_qty {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 40%;
}
.mall_card_content_qty input {
  width: calc(100% - 78px);
  height: 39px;
  border: 1px solid #888888;
  text-align: center;
  font-size: 18px;
}
.mall_card_content_reduce,
.mall_card_content_add {
  width: 39px;
  height: 39px;
  background-color: #000;
  color: #fff;
  border: 1px solid #000;

  cursor: pointer;
  transition: opacity 0.3s;
}
.mall_card_content_reduce i {
  font-size: 39px;
}
.mall_card_content_add i {
  font-size: 24px;
}
.mall_card_content_reduce:hover,
.mall_card_content_add:hover {
  opacity: 0.7;
}

.mall_card_content_box {
  width: 40%;
}
/* @media screen and (max-width: 991px) {
  .mall_card_content_img_wrap {
    width: 100%;
  }
  .mall_card_content_box {
    width: 100%;
  }
} */
/* 購物商城彌月小卡內頁 */
