@import url("https://fonts.googleapis.com/css?family=Montserrat");

/*-------------------------------- END ----*/

/* editors layout*/
.ui.segment {
  border: none;
  border-radius: 0;
  box-shadow: none;
  -webkit-box-shadow: none;
}

.ui[class*="very relaxed"].grid {
  margin-left: 0.5rem;
  margin-right: 0.5rem;
}
.ui[class*="two column"].grid .column__edit {
  box-shadow: 0px 0px 8px rgb(182, 181, 181);
  -webkit-box-shadow: 0px 0px 8px rgb(182, 181, 181);
  -moz-box-shadow: 0px 0px 8px rgb(182, 181, 181);
  border-radius: 5px;
  width: 49% !important;
  margin-right: 2%;
  padding: 1rem !important;
}

.ui[class*="two column"].grid .column__preview {
  overflow: hidden;
  box-shadow: 0px 0px 8px rgb(182, 181, 181);
  -webkit-box-shadow: 0px 0px 8px rgb(182, 181, 181);
  -moz-box-shadow: 0px 0px 8px rgb(182, 181, 181);
  width: 49% !important;
  border-radius: 5px;
  padding: 1rem !important;
}

/* editors layout title*/
.column__h3 {
  font-size: 1.5rem;
}

/* blocks in editors */
.blockDiv {
  box-shadow: 0px 0px 8px rgb(211, 211, 211);
  -webkit-box-shadow: 0px 0px 8px rgb(211, 211, 211);
  -moz-box-shadow: 0px 0px 8px rgb(211, 211, 211);
  padding: 1rem;
  border-radius: 5px;
  height: 30vh;
  overflow: hidden;
  position: relative;
}
.blockDiv::before {
  position: absolute;
  width: 100%;
  height: 25px;
  content: "";
  bottom: 0px;
  left: 0;
  z-index: 3;
  background: -moz-linear-gradient(
    top,
    rgba(255, 255, 255, 0.397) 0%,
    rgba(255, 255, 255, 1) 90%,
    rgba(255, 255, 255, 1) 100%
  );
  background: -webkit-linear-gradient(
    top,
    rgba(255, 255, 255, 0.397) 0%,
    rgba(255, 255, 255, 1) 90%,
    rgba(255, 255, 255, 1) 100%
  );
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.397) 0%,
    rgba(255, 255, 255, 1) 90%,
    rgba(255, 255, 255, 1) 100%
  );
}

/* blocks title in editors */
.blockDiv__h2 {
  font-size: 1.3rem;
}

/* description textarea block */
.descBlock {
  margin: 1.5rem 0;
}

/* image block */
.imgBlock {
  margin-bottom: 1rem;
}

/* btns in blocks editor */
[class^="btn__"] {
  margin-right: 0.5rem;
  padding: 0.5rem;
  outline: none;
  border: none;
  transition: all 0.3s;
  cursor: pointer;
  border-radius: 10px;
}

[class^="btn__"]:hover {
  background-color: rgb(211, 211, 211);
}

[class^="btn__"]:focus {
  outline: none;
}

.btn__editOpen {
  width: 2.5rem;
  height: 2.5rem;
  position: absolute;
  right: 0px;
  top: 0.5rem;
  border-radius: 50%;
  box-shadow: 0 0 6px rgb(179, 179, 179);
  -webkit-box-shadow: 0 0 6px rgb(179, 179, 179);
  -moz-box-shadow: 0 0 6px rgb(179, 179, 179);
}

.btn__addimg {
  border-radius: 50%;
}

.btn__imgEdit {
  display: inline-block;
}

.btn__add {
  border-radius: 50%;
  display: inline-block;
  width: 2.5rem;
  height: 2.5rem;
  position: relative;
  transition: all 0.3s;
}
/*btn in modals*/
.btn__submitadd {
  background-color: rgb(179, 179, 179);
  color: white;
  padding-left: 1rem;
  padding-right: 1rem;
  transition: all 0.3s;
}

.btn__submitadd:hover {
  background-color: grey;
}

.btn__cancel {
  background-color: white;
}
.btn__add i {
  transition: all 0.3s;
}

.btn__add:hover i {
  transform: translateX(-1.3rem);
}

.btn__add:hover {
  width: 5rem;
  border-radius: 30px;
}

.btn__add::after {
  position: absolute;
  content: "新增";
  opacity: 0;
  top: 0.7rem;
  left: 30%;
  width: 3rem;
}

.btn__add:hover::after {
  opacity: 1;
  transition: all 0.3s;
}

/* img in blocks editor */
.img__container {
  width: 100%;
  height: 15rem;
  margin-bottom: 0.5rem;
}
.img__container img {
  object-fit: cover;
  width: 100%;
  height: 100%;
}

/* input in blocks editor */
.input {
  outline: none;
  border: 1.5px solid rgb(240, 240, 240);
  padding: 0.5rem;
  min-width: 20%;
  margin-right: 6px;
  margin-bottom: 6px;
  transition: all 0.3s;
  border-radius: 5px;
}

.textarea {
  padding: 5px;
  width: 100%;
  height: 8rem;
  border: 2px solid rgb(240, 240, 240);
  border-radius: 5px;
  outline: none;
  transition: all 0.3s;
}
.input:focus,
.textarea:focus {
  border: 1px solid grey;
}

/* upload button label */
#file {
  display: none;
}

label[for="file"] {
  display: block;
  width: 7rem;
  padding: 0.5rem;
  margin-bottom: 0.5rem;
  outline: none;
  border: none;
  border-radius: 10px;
  background-color: rgb(224, 222, 222);
  cursor: pointer;
  transition: all 0.3s;
}

label[for="file"]:hover {
  background-color: rgb(211, 211, 211);
}

/* btn in collections, blogs */
.btn__edit {
  display: inline-block;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  box-shadow: 0 0 6px rgb(179, 179, 179);
  -webkit-box-shadow: 0 0 6px rgb(179, 179, 179);
  -moz-box-shadow: 0 0 6px rgb(179, 179, 179);
  padding: 0.5rem;
  padding-left: 0.7rem;
  color: black;
  background-color: white;
}
.btn__edit i {
  display: inline-block;
  line-height: 24px;
}
.btn__edit:hover {
  background-color: rgb(211, 211, 211);
  color: black;
}
.btn__delete {
  display: inline-block;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  box-shadow: 0 0 6px rgb(179, 179, 179);
  -webkit-box-shadow: 0 0 6px rgb(179, 179, 179);
  -moz-box-shadow: 0 0 6px rgb(179, 179, 179);
  color: black;
  margin-right: 0;
  background-color: #e74c3c;
}
.btn__delete:hover {
  background-color: #d0ece7;
}
.btn__delete i {
  color: white;
}
.btn__edit:active,
.btn__edit:focus {
  background-color: #b9bcbe;
}
.btn__delete:active,
.btn__delete:focus {
  background-color: #fc919c;
}

/* --- Table */
.table .table__head {
  text-align: center;
  vertical-align: middle;
}
.table .table__data {
  vertical-align: middle;
  text-align: center;
}
.img__table {
  width: 4.5rem;
  height: 3rem;
}

/* toTop */
.toTop {
  position: fixed;
  cursor: pointer;
  right: 1%;
  bottom: 2%;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgb(252, 252, 252);
  box-shadow: 0 0 6px rgb(179, 179, 179);
  -webkit-box-shadow: 0 0 6px rgb(179, 179, 179);
  -moz-box-shadow: 0 0 6px rgb(179, 179, 179);
  display: flex;
  align-items: center;
  justify-content: center;
}

.toTop:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 3px rgb(179, 179, 179);
  -webkit-box-shadow: 0 0 6px rgb(179, 179, 179);
  -moz-box-shadow: 0 0 6px rgb(179, 179, 179);
}

.toTop:active {
  transform: translateY(2px);
}

.toTop i {
  font-size: 1.6rem;
  color: hsl(209, 11%, 57%);
}

/* functional class */
.inline_block {
  display: inline-block;
}

/* menu icons move left when collapsing */
.menu-icon {
  margin-left: 1.2rem;
}

/* -------sidebar */
#sidebar-container {
  min-height: 100vh;
  background-color: rgb(216, 215, 215);
  padding: 0;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 100;
  position: fixed;
}

/* --------- sidebar list item*/
#sidebar-container .list-group a {
  height: 50px;
  color: black;
  line-height: 26px;
}

#sidebar-container .list-group .list-group-item {
  border: none;
  border-radius: 3rem;
  transition: all 0.3s;
}

#sidebar-container .list-group .list-group-item .list-group-item i {
  line-height: 26px;
}

/*sidebar header */
#sidebar-container .sidebar-header {
  background-image: url("../imgs/sidebar_\ backbround.jpeg");
  height: 65px;
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  position: relative;
}
/* sidebar header company name */
#sidebar-container .sidebar__company {
  position: absolute;
  bottom: 3px;
  left: 0.5rem;
  color: white;
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: 2px;
}

/* ----------| Submenu item*/
.sidebar-submenu {
  font-size: 0.9rem;
}

#sidebar-container .list-group .sidebar-submenu .list-group-item {
  height: 45px;
  padding-left: 30px;
  line-height: 21px;
  width: 80%;
}

/* ----------|bg-dark hover, active, focus, visited */
a.bg-dark,
a.bg-dark:visited {
  background-color: rgb(216, 215, 215) !important;
}

a.bg-dark:hover,
a.bg-dark:active,
a.bg-dark:focus {
  background-color: rgb(179, 179, 179) !important;
}
/* --- Modal */

.modal__label {
  font-size: 1.1rem;
  color: grey;
  letter-spacing: 1px;
}

.modal__title {
  font-size: 1.5rem;
  font-weight: 500;
}

.form-control:focus {
  border-color: rgb(179, 179, 179);
  box-shadow: 1px 1px 4px 2px rgb(216, 215, 215);
}

.modal__close:focus {
  outline: none;
}

.modal__close__back {
  display: inline-block;
  width: 2rem;
  height: 2rem;
  background-color: gray;
  border-radius: 50%;
}

.modal__close__back span {
  line-height: 1.7rem;
  color: white;
}

.modal__img {
  width: 100%;
  height: 100%;
  margin-top: 1.5rem;
}
.modal__img img {
  object-fit: cover;
  width: 100%;
  height: 100%;
}

.modal__file::-webkit-file-upload-button {
  border: none;
  padding: 0.2em 0.4em;
  border-radius: 0.2em;
  background-color: rgb(216, 215, 215);
  transition: 1s;
}
.modal__file::file-selector-button {
  border: none;
  padding: 0.2em 0.4em;
  border-radius: 0.2em;
  background-color: rgb(216, 215, 215);
  transition: 1s;
}
/* ---Badge */
.badge__txt {
  color: #1e819c;
  background-color: #d7eaf3;
  padding: 0.3rem 1rem;
}
.badge__img {
  color: #1cac23;
  background-color: #c5ecc7;
  padding: 0.3rem 1rem;
}

.badge__video {
  color: #9c9e23;
  background-color: #e3e4a8;
  padding: 0.3rem 1rem;
}

/* --- Table Block 區塊 */
.table__block {
  padding: 1.5rem;
  box-shadow: 0px 0px 8px rgb(211, 211, 211);
  -webkit-box-shadow: 0px 0px 8px rgb(211, 211, 211);
  -moz-box-shadow: 0px 0px 8px rgb(211, 211, 211);
  border-radius: 10px;
  margin-bottom: 1rem;
  position: relative;
}

.btn__opentab {
  display: flex;
  justify-content: center;
  background-color: white;
  width: 2.5rem;
  height: 2.5rem;
  position: absolute;
  right: 0px;
  top: 1rem;
  border-radius: 50%;
  box-shadow: 0 0 6px rgb(179, 179, 179);
  -webkit-box-shadow: 0 0 6px rgb(179, 179, 179);
  -moz-box-shadow: 0 0 6px rgb(179, 179, 179);
}

.btn__opentab i {
  line-height: 1.5rem;
}

/* --- Form Height Toggle */
.form__action {
  height: 0vh;
  overflow: hidden;
}

.autoHeight {
  height: auto;
}

.btn.focus,
.btn:focus {
  box-shadow: none;
}

.btn:hover {
  background-color: rgb(211, 211, 211);
}

.table-bordered td,
.table-bordered th {
  vertical-align: middle;
}

.disabled-link {
  display: inline-block;
  cursor: default;
  pointer-events: none;
  color: rgba(255, 255, 255, 0.7) !important;
}
