@import "vtb.css";

.c {
  text-align: center;
  vertical-align: middle !important;
}

.m {
  vertical-align: middle !important;
}

.nw {
  white-space: nowrap;
}

h1.my,
h2.my,
h3.my,
h4.my,
h5.my,
h1 > span.my,
h2 > span.my,
h3 > span.my,
h4 > span.my,
h5 > span.my {
  padding: 6px;
  font-family: "Noto Sans TC";
}

.my-title {
  padding: 6px;
  text-align: left;
  font-weight: normal;
  font-family: KingnamMaiyuan, Iansui, "Noto Sans TC";
  color: #3a322e;
}

.my-border {
  padding: 1rem;
  border: 1px solid #00000022;
  border-radius: 8px;
  text-align: justify;
}

.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;
}

.community {
  border-radius: 4px;
  padding: 2px 4px;
  text-align: center;
  background-color: #173b7caa;
}

.community a {
  font-size: 0.825rem;
  font-family: "Noto Sans TC";
  font-weight: normal;
  color: #ffffff;
}
.community a:hover {
  color: #eeff04;
}

.form-floating > .form-control {
  color: #173b7c;
}

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;
  font-size: 1rem;
  background-color: #3c65b1;
  box-shadow: 2px 2px 5px 0px rgba(0, 0, 0, 0.5);
  line-height: 1.8;
  color: rgb(255, 255, 255);
  text-align: left;
}

.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;
}

.help {
  font-size: 0.9rem;
  color: rgb(63, 9, 27);
}

.my-label {
  font-size: 1rem;
}

.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: 2px 6px;
  font-size: 0.825rem;
  font-family: "Noto Sans TC";
  font-weight: normal;
  text-align: center;
}

.block_config_tool {
  display: none;
  text-align: right;
  position: absolute;
  top: 0px;
  right: 0px;
}

.num {
  font-family: "Arial Narrow", Roboto, "Helvetica Neue", sans-serif;
}

.small {
  font-size: 0.825rem;
}

.val {
  border-bottom: 1px solid gray;
  color: blue;
}

.keyword {
  background-color: yellow;
  color: #000000;
  border-radius: 4px;
  padding: 2px;
}

.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;
  position: relative;
}
div.polaroid > div.community {
  position: absolute;
  top: 0px;
  right: 0px;
}

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: 1.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;
}

fieldset.reset {
  all: revert;
  border: 1px solid #adbec9;
  border-radius: 5px;
}

legend.reset {
  all: revert;
  font-weight: normal;
  font-size: 1.25rem;
  color: #036aca;
  font-family: KingnamMaiyuan, Iansui, "Noto Sans TC";
}

fieldset.sub {
  border: 1px solid #e1ebf1;
  border-radius: 5px;
  background: #e1ebf1aa;
}

legend.sub {
  font-size: 1.15rem;
  color: #7f92a3;
  background: #ffffff;
  padding: 2px 1rem;
  border-radius: 5px;
}

.myTextarea {
  resize: none; /* 禁止手動調整大小 */
  overflow: hidden; /* 出現捲軸時顯示捲軸 */
  min-height: 2rem; /* 設定最小高度 */
}

.link {
  /* RESET */
  text-decoration: none;
  line-height: 1;

  position: relative;
  z-index: 0;
  display: inline-block;
  padding: 5px 5px;
  overflow: hidden;
  color: #333;
  vertical-align: bottom;
  transition: color .3s ease-out;
}

.link::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 0;
  left: 0;
  transform: translateY(calc(100% - 2px));
  width: 100%;
  height: 100%;
  background-image: linear-gradient(60deg, #64b3f4 0%, #c2e59c 100%);
  transition: transform .25s ease-out;
}

.link:hover {
  color: #fff;
}
.link:hover::before {
  transform: translateY(0);
  transition: transform .25s ease-out;
}

#sort_uninstall,
#sort_block1,
#sort_block2,
#sort_block3,
#sort_block4,
#sort_block5,
#sort_block6,
#sort_side {
  border: 1px dotted rgba(0, 0, 0, 0.3);
  min-height: 40px;
  list-style-type: none;
  margin: 0;
  padding: 5px 0 0 0;
  margin-right: 10px;
}

#sort_uninstall li,
#sort_block1 li,
#sort_block2 li,
#sort_block3 li,
#sort_block4 li,
#sort_block5 li,
#sort_block6 li,
#sort_side li {
  margin: 0 auto 5px auto;
  padding: 5px 8px;
  font-size: 1.2em;
  /* max-width: 220px; */
}

.default_block {
  background: #f7efde right bottom no-repeat;
  border: 1px solid #69572e;
}
.system_block {
  background: #dbe2f8 right bottom no-repeat;
  border: 1px solid #758ace;
}

.custom_block {
  background: #fceffc url("/modules/community/images/custom_block.png") right
    bottom no-repeat;
  border: 1px solid #ce75ce;
}

.block_content {
  border-radius: 5px;
  padding: 1rem;
}

ol.about > li {
  list-style-type: cjk-ideographic;
  font-size: 1.1rem;
  margin-bottom: 10px;
}
table.plan {
  border: 1px solid #080808;
}
table.plan th {
  background-color: #e4e3e3;
  text-align: center;
  vertical-align: middle;
}

a.btn-warning {
  color: #000000 !important;
}

/* Style the caret/arrow */
.caret {
  cursor: pointer;
  user-select: none; /* Prevent text selection */
}

/* Create the caret/arrow with a unicode, and style it */
.caret::after {
  content: "\25B6";
  font-size: 0.825rem;
  /* color: #00000033; */
  display: inline-block;
  margin-left: 9px;
  margin-right: 0px;
}

/* Rotate the caret/arrow icon when clicked on (using JavaScript) */
.caret-down::after {
  transform: rotate(90deg);
}

/* Hide the nested list */
.nested {
  display: none;
}

/* Show the nested list when the user clicks on the caret/arrow (with JavaScript) */
.active {
  display: block;
}

.active_cate {
  display: block;
  background:#c4ff5633;
}

ul.vertical-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

ul.vertical-menu li {
  margin-bottom: 3px;
  border-bottom: 1px solid #00000010;
}

ul.vertical-menu li:last-child {
  margin-bottom: 0;
}

ul.vertical-menu li a {
  display: inline-block;
  color: #000000cc;
  text-decoration: none;
  padding: 10px;
  border-radius: 5px;
  transition: all 0.3s ease;
}

ul.vertical-menu li:hover {
  background:#fbff0033;
}

ul.vertical-menu li ul li{
  list-style: none;
  padding: 0;
  margin: 0;
}

/* 在 label 前添加 * 符号 */
input[class*="validate[required"] + label:before,
select[class*="validate[required"] + label:before,
textarea[class*="validate[required"] + label:before,
input[class*="validate[required"] + div > label:before,
input[class*="validate[required"] + div > label.col-form-label:before,
select[class*="validate[required"] + div > label:before,
select[class*="validate[required"] + div > label.col-form-label:before,
textarea[class*="validate[required"] + div > label:before,
textarea[class*="validate[required"] + div > label.col-form-label:before {
    content: '＊';
    color: red;
}

@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;
  }
}
