@import "vtb.css";

.c {
  text-align: center;
  vertical-align: middle !important;
}

.m {
  vertical-align: middle !important;
}

.nw {
  white-space: nowrap;
}

h1.my,
h2.my,
h1 > span.my,
h2 > span.my {
  padding: 6px;
  /* 離標題邊框距離 */
  text-align: left;
  /* 文字靠左 */
  font-weight: normal;
  /* 不要粗體 */
  font-family: HanWangMingBlack, Iansui, "Noto Sans TC";
  /* 字型 */
  color: rgb(33, 51, 51);
}

h3.my,
h4.my,
h5.my,
h3 > span.my,
h4 > span.my,
h5 > span.my {
  padding: 6px;
  /* 離標題邊框距離 */
  text-align: left;
  /* 文字靠左 */
  font-weight: normal;
  /* 不要粗體 */
  font-family: JfOpenhuninn, Iansui, "Noto Sans TC";
  /* 字型 */
  color: rgb(92, 41, 56);
}

.my-title {
  padding: 6px;
  /* 離標題邊框距離 */
  text-align: left;
  /* 文字靠左 */
  font-weight: normal;
  /* 不要粗體 */
  font-family: JfOpenhuninn, Iansui, "Noto Sans TC";
  color: #3a322e;
}

.content-border {
  padding: 12px 18px;
  margin: 10px auto;
}

.my-border {
  padding: 12px 20px;
  border: 1px solid rgb(225, 225, 225);
  border-radius: 8px;
  background: rgb(245, 245, 245);
  /* box-shadow: 0px 0px 6px 1px rgba(37, 37, 37, 0.2); */
  margin: 10px auto;
}

.my-sm-border {
  padding: 6px 10px 8px 10px;
  border: 1px solid rgb(225, 225, 225);
  border-radius: 4px;
  background: rgb(245, 245, 245);
  margin: 10px auto;
}

ol {
  list-style-type: decimal;
  list-style-position: outside;
  padding-left: 20px;
}

ul {
  list-style-type: disc;
  list-style-position: outside;
  padding-left: 20px;
}

.tooltip-inner {
  max-width: 600px;
  background-color: #3c65b1;
  box-shadow: 2px 2px 5px 0px rgba(0, 0, 0, 0.5);
  line-height: 1.8;
  color: rgb(255, 255, 255);
}

.tooltip-inner li {
  color: rgb(255, 255, 255);
}

.tooltip.bs-tooltip-right .arrow:before {
  border-right-color: #3c65b1 !important;
}

.tooltip.bs-tooltip-left .arrow:before {
  border-left-color: #3c65b1 !important;
}

.tooltip.bs-tooltip-bottom .arrow:before {
  border-bottom-color: #3c65b1 !important;
}

.tooltip.bs-tooltip-top .arrow:before {
  border-top-color: #3c65b1 !important;
}

.bar {
  text-align: center;
  margin: 3em auto;
}

.btn {
  font-family: 微軟正黑體;
}

.help-title {
  font-weight: bold;
  color: rgb(63, 9, 27);
}

.help-txt {
  font-size: 85%;
  color: rgb(51, 51, 0);
}

label {
  font-weight: bold;
}

.empty {
  color: rgb(185, 216, 245);
}

.line th {
  text-align: center;
  vertical-align: middle;
  color: black;
  background-color: #dcede8;
  border-color: #000;
}

.line td {
  text-align: center;
  vertical-align: middle;
  background-color: white;
  border-color: #000;
}

.btn-coral {
  color: #fff;
  background-color: coral;
  border-color: coral;
}

.btn-coral:hover,
.btn-coral:focus,
.btn-coral:active:hover {
  color: #fff;
  background-color: coral;
  border-color: coral;
}

.color-picker {
  width: 80%;
  display: inline-block;
}

.my-badge {
  border-radius: 4px;
  padding: 3px 6px;
  font-size: 0.8em;
}

.num {
  font-family: "Arial Narrow", Roboto, "Helvetica Neue", sans-serif;
}

.val {
  border-bottom: 1px solid gray;
  color: blue;
}

.keyword {
  background-color: yellow;
  color: #000000;
  border-radius: 4px;
  padding: 2px;
}

.image-text {
  position: relative;
  display: inline-block;
  width: 100%;
  padding: 2px 10px;
}

.image-text img {
  width: 100%;
  height: auto;
  opacity: 0.1;
  border-radius: 0px;
  margin: 0px;
  padding: 0px;
}

.image-text .text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  width: 100%;
  height: auto;
  padding: 2px 10px;
}

.image-text .text a {
  color: rgb(23, 10, 80);
}

.image-text .text a:hover,
.image-text:hover .text a {
  color: rgb(255, 255, 255);
}

.image-text:hover .text {
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 5px;
  color: rgb(255, 255, 255);
}

.require {
  color: red;
  font-size: 90%;
}

.thumb-cate-img {
  object-fit: cover;
  padding: 0px;
  background-color: rgb(212, 212, 212);
}

.thumb-img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  object-position: top center;
  padding: 0px;
  background-color: rgb(212, 212, 212);
}

div.polaroid-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: start;
}

div.polaroid {
  padding: 0px;
  margin: 15px;
  background-color: white;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
  border-radius: 5px;
}

div.polaroid img {
  border-radius: 5px 5px 0px 0px;
}

div.polaroid-text {
  padding: 10px;
  font-size: 90%;
  text-align: center;
  height: 25%;
  overflow: hidden;

  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2; /* 顯示行數 Chrome & Safari */
}

div.polaroid-text:after {
  content: "";
  display: inline-block;
  width: 100%; /* 使用空元素將文字垂直置中 */
  height: 0;
  vertical-align: middle;
}

div.polaroid-text > * {
  display: inline-block;
  vertical-align: middle; /* 使內容垂直置中 */
  text-align: left; /* 將多行文字靠左對齊 */
}

.page-content-wrapper {
  font-size: 120%;
  line-height: 2.5rem;
  padding: 2rem;
  border: 1px solid rgb(225, 225, 225);
  border-radius: 8px;
  background: rgb(255, 255, 255);
  color: #000000;
  box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
  position: relative;
}

.prev_next {
  position: fixed;
}

.flex-container {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: normal;
  align-items: normal;
  align-content: normal;
}

.flex-items:nth-child(1) {
  display: block;
  flex-grow: 0;
  flex-shrink: 1;
  flex-basis: auto;
  align-self: auto;
  order: 0;
  min-width: 50px;
  width: 50px;
}

.flex-items:nth-child(2) {
  display: block;
  flex-grow: 1;
  flex-shrink: 1;
  flex-basis: auto;
  align-self: auto;
  order: 0;
}

.flex-items:nth-child(3) {
  display: block;
  flex-grow: 0;
  flex-shrink: 1;
  flex-basis: auto;
  align-self: auto;
  order: 0;
  min-width: 50px;
  width: 50px;
}

@media (max-width: 768px) {
  .content-border {
    padding: 4px 6px;
    margin: 10px auto;
  }

  div.page-content {
    padding: 0.5rem;
  }

  .page-content-wrapper {
    padding: 1rem;
    border: 1px solid rgb(225, 225, 225);
    border-radius: 0px;
    box-shadow: none;
  }

  .prev_next {
    width: 24px;
  }

  .flex-items:nth-child(1),
  .flex-items:nth-child(3) {
    min-width: 32px;
    width: 32px;
  }
}
