@charset "UTF-8";

:root {
  --bgc-popup-mask: rgba(255, 250, 250, 0.75);
}

/* 通用型CSS及優化CSS [S] */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	/* border: .1px dashed gray; */
}

body {
	overscroll-behavior-y: contain;
	touch-action: manipulation;
	font-family: "NotoSansTC", "Microsoft JhengHei", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
}

.row {
	margin-right: 0;
	margin-left: 0;
}

ol, ul {
	margin-left: 1.5rem;
	margin-bottom: 0;
}

h1, h2, h3, h4, h5, h6 {
	margin-bottom: 0;
	font-weight: bold;
}

pre {
	white-space: pre-wrap;
	margin-bottom: 0;
}

button {
	outline: 0 !important;
}

select {
  padding: 0 5px;
  background: #eee;
  border-radius: 5px;
  font-size: 1.2rem;
  height: 2.5rem;
}

input[type="text"],
input[type="number"],
input[type="password"] {
  background: #fff;
}

input[type="number"] {
  padding-right: 0;
}

input[type="text"].error,
input[type="date"].error,
input[type="time"].error,
input[type="number"].error,
input[type="password"].error,
select.error {
  border: 1px solid var(--c-error) !important;
}

input,
textarea {
  font-size: initial;
}

label input[type="radio"],
label input[type="checkbox"] {
  margin-right: 0.5rem;
}

input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
}

input[type="number"] {
  -moz-appearance: textfield;
}

input:focus-visible {
  outline: 0;
}

a {
  color: var(--c-secondary);
  font-weight: 600;
}

a:hover {
  color: var(--c-primary);
  text-decoration: none;
}

a:active {
  color: var(--c-primary);
}

img[src=""] {
  display: none;
}

video::-webkit-media-controls-fullscreen-button {
  display: none !important;
  -webkit-appearance: none;
}

video::-webkit-media-controls-play-button {
  display: none !important;
  -webkit-appearance: none;
}

video::-webkit-media-controls-timeline {
  display: none !important;
  -webkit-appearance: none;
}

video::-webkit-media-controls-current-time-display {
  display: none !important;
  -webkit-appearance: none;
}

video::-webkit-media-controls-time-remaining-display {
  display: none !important;
  -webkit-appearance: none;
}

video::-webkit-media-controls-mute-button {
  display: none !important;
  -webkit-appearance: none;
}

video::-webkit-media-controls-toggle-closed-captions-button {
  display: none !important;
  -webkit-appearance: none;
}

video::-webkit-media-controls-volume-slider {
  display: none !important;
  -webkit-appearance: none;
}

video::-webkit-media-controls-enclosure {
  display: none !important;
  -webkit-appearance: none;
}

video::-webkit-media-controls-panel {
  display: none !important;
  -webkit-appearance: none;
}

video::-webkit-media-controls-start-playback-button {
  display: none !important;
  -webkit-appearance: none;
}

video::-webkit-media-controls {
  display: none !important;
  -webkit-appearance: none;
}

.media-controls-container {
  display: none !important;
}

video::-webkit-media-controls-start-play-button {
  display: none !important;
  -webkit-appearance: none;
}

video::-webkit-media-controls-timeline {
  display: none !important;
  -webkit-appearance: none;
}

video::-webkit-media-controls-current-time-display {
  display: none !important;
  -webkit-appearance: none;
}

video::-webkit-media-controls-fullscreen-button {
  display: none !important;
  -webkit-appearance: none;
}

video::-webkit-media-controls-time-remaining-display {
  display: none !important;
  -webkit-appearance: none;
}

video::-webkit-media-controls-mute-button {
  display: none !important;
  -webikit-appearance: auto;
}

video::-webkit-media-controls-seek-back-button {
  display: none;
}

video::-webkit-media-controls-seek-forward-button {
  display: none;
}

video::-webkit-media-controls-fullscreen-button {
  display: none;
}

video::-webkit-media-controls-rewind-button {
  display: none;
}

video::-webkit-media-controls-return-to-realtime-button {
  display: none;
}

video::-webkit-media-controls-toggle-closed-captions-button {
  display: none;
}

.buttons-container.left {
  display: none !important;
}

.time-control {
  display: none !important;
}


.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.mb-gap {
  margin-bottom: 8px;
}

/* 通用型CSS及優化CSS [E] */



/* 自訂訊息框 [S] */
.pop-msg {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  z-index: 100010;
  background: var(--bgc-popup-mask);
  padding: 0 5px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
}

.pop-msg .pm-box {
  padding: 1rem;
  min-width: 250px;
  max-width: 500px;
  max-height: 90%;
  overflow-y: auto;
  -webkit-box-shadow: 1px 1px 5px #caa;
  box-shadow: 1px 1px 5px #caa;
  background-color: white;
  border-radius: 0.5rem;
  text-align: center;
  border: 1px solid var(--c-secondary);
}

.pop-msg .pm-box img.pm-alert {
  width: 60px;
}

.pop-msg .pm-box .pm-title {
  font-size: 1.25rem;
  font-weight: 700;
  text-align: center;
}

.pop-msg .pm-box .pm-msg {
  font-size: 1.2rem;
  word-break: break-word;
  margin-top: 1rem;
  text-align: left;
}

.pop-msg .pm-box .pm-msg img {
  /* max-height: 2rem; */
  max-width: 100%;
}

.pop-msg .pm-box .pm-btns {
  padding-top: 1rem;
  display: flex;
  justify-content: space-around;
}

.pop-msg .pm-box .pm-btns button {
    border-radius: 5px;
    height: auto;
    font-size: 16px;
    line-height: 2;
}

.pop-msg .pm-box .pm-btns button+button {
  margin-left: 0.25rem;
}

/* 自訂訊息框 [E] */



/* 遮罩 */
@-webkit-keyframes loading {
  100% {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}

@keyframes loading {
  100% {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}

@-webkit-keyframes loading-dot {

  80%,
  100% {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}

@keyframes loading-dot {

  80%,
  100% {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}

@-webkit-keyframes loading-dot-before {
  50% {
    -webkit-transform: scale(0.4);
    transform: scale(0.4);
  }

  100%,
  0% {
    -webkit-transform: scale(1);
    transform: scale(1);
  }
}

@keyframes loading-dot-before {
  50% {
    -webkit-transform: scale(0.4);
    transform: scale(0.4);
  }

  100%,
  0% {
    -webkit-transform: scale(1);
    transform: scale(1);
  }
}

.loading-block {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bgc-popup-mask);
  cursor: wait;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  z-index: 50000;
}

.loading-block .loading-block-container {
  display: flex;
  position: relative;
  width: 100%;
  justify-content: center;
  max-width: 500px;
}

.loading-block .loading-box {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  cursor: wait;
  margin-right: 1rem;
}

.loading-block .loading-box progress {
  width: 100%;
}

.loading-block .loading-box .loading-chase {
  width: 2rem;
  height: 2rem;
  position: relative;
  -webkit-animation: loading 2.5s infinite linear both;
  animation: loading 2.5s infinite linear both;
}

.loading-block .loading-box .loading-chase .loading-dot {
  width: 100%;
  height: 100%;
  position: absolute;
  left: 0;
  top: 0;
  -webkit-animation: loading-dot 2.0s infinite ease-in-out both;
  animation: loading-dot 2.0s infinite ease-in-out both;
}

.loading-block .loading-box .loading-chase .loading-dot:nth-child(1) {
  -webkit-animation-delay: -1.1s;
  animation-delay: -1.1s;
}

.loading-block .loading-box .loading-chase .loading-dot:nth-child(3) {
  -webkit-animation-delay: -0.9s;
  animation-delay: -0.9s;
}

.loading-block .loading-box .loading-chase .loading-dot:nth-child(4) {
  -webkit-animation-delay: -0.8s;
  animation-delay: -0.8s;
}

.loading-block .loading-box .loading-chase .loading-dot:nth-child(2) {
  -webkit-animation-delay: -1.0s;
  animation-delay: -1.0s;
}

.loading-block .loading-box .loading-chase .loading-dot:nth-child(5) {
  -webkit-animation-delay: -0.7s;
  animation-delay: -0.7s;
}

.loading-block .loading-box .loading-chase .loading-dot:nth-child(6) {
  -webkit-animation-delay: -0.6s;
  animation-delay: -0.6s;
}

.loading-block .loading-box .loading-chase .loading-dot:before {
  content: '';
  display: block;
  width: 25%;
  height: 25%;
  background-color: var(--c-primary);
  border-radius: 100%;
  -webkit-animation: loading-dot-before 2.0s infinite ease-in-out both;
  animation: loading-dot-before 2.0s infinite ease-in-out both;
}

.loading-block .loading-box .loading-chase .loading-dot:before:nth-child(1) {
  -webkit-animation-delay: -1.1s;
  animation-delay: -1.1s;
}

.loading-block .loading-box .loading-chase .loading-dot:before:nth-child(3) {
  -webkit-animation-delay: -0.9s;
  animation-delay: -0.9s;
}

.loading-block .loading-box .loading-chase .loading-dot:before:nth-child(4) {
  -webkit-animation-delay: -0.8s;
  animation-delay: -0.8s;
}

.loading-block .loading-box .loading-chase .loading-dot:before:nth-child(2) {
  -webkit-animation-delay: -1.0s;
  animation-delay: -1.0s;
}

.loading-block .loading-box .loading-chase .loading-dot:before:nth-child(5) {
  -webkit-animation-delay: -0.7s;
  animation-delay: -0.7s;
}

.loading-block .loading-box .loading-chase .loading-dot:before:nth-child(6) {
  -webkit-animation-delay: -0.6s;
  animation-delay: -0.6s;
}

.loading-block .loading-box .loading-text {
  font-size: 2rem;
  font-weight: 700;
  color: var(--c-primary);
}

/* 遮罩 [E] */



/* 圖片瀏覽 [S] */
.iv-block {
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  z-index: 10001;
  background: var(--bgc-popup-mask);
  padding: 0 5px;
}

.iv-block .iv-box {
  width: 100%;
  height: 100%;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
}

.iv-block .iv-box img {
  max-width: 90%;
  max-height: 90%;
  -webkit-box-shadow: 0 0 5px #888;
  box-shadow: 0 0 5px #888;
}

.iv-block .iv-box .iv-close-btn {
  position: absolute;
  top: 0;
  right: 0;
  width: 30px;
  height: 30px;
}

.iv-block .iv-box .iv-close-btn::before {
  -webkit-transform: rotate(-45deg);
  transform: rotate(-45deg);
}

.iv-block .iv-box .iv-close-btn::after {
  -webkit-transform: rotate(45deg);
  transform: rotate(45deg);
}

.iv-block .iv-box .iv-close-btn::before,
.iv-block .iv-box .iv-close-btn::after {
  width: 20px;
  height: 3px;
  content: "";
  display: block;
  background: #414141;
  position: absolute;
  top: 13px;
  left: 6px;
}

/* 圖片瀏覽 [E] */