@import url("https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@400..700&display=swap");

/* Jelly 覆寫 主CSS=Bootstrap v5.2.3 */

/* Edit bootstrap | START */
:root {
  --ff-heading: "Playfair Display", serif;
  --ff-body: "Montserrat", sans-serif;
  --bs-primary: #252c6a;
  --bs-primary-rgb: 37, 44, 106;
  --bs-info: #00adef;
  --bs-info-rgb: 0, 173, 239;
}

h1,
h2,
h3,
h4 {
  font-family: var(--ff-heading);
  font-weight: 700;
  color: var(--bs-primary);
}
/* 非常手段用iframe取得 sharepoint cookie */
#getsharepointcookie{ position: absolute; left: -99999; top: -99999; width:1px; height:1px; }
.btn {
  font-weight: 700;
}

.btn-primary {
  --bs-btn-color: #fff;
  --bs-btn-bg: var(--bs-primary);
  --bs-btn-border-color: var(--bs-primary);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: var(--bs-info);
  --bs-btn-hover-border-color: var(--bs-info);
  --bs-btn-focus-shadow-rgb: 49, 132, 253;
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: var(--bs-info);
  --bs-btn-active-border-color: var(--bs-info);
  --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
  --bs-btn-disabled-color: #fff;
  --bs-btn-disabled-bg: #181c43;
  --bs-btn-disabled-border-color: #181c43;
}

.btn-outline-primary {
  --bs-btn-color: var(--bs-primary);
  --bs-btn-border-color: var(--bs-primary);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: var(--bs-primary);
  --bs-btn-hover-border-color: var(--bs-primary);
  --bs-btn-focus-shadow-rgb: 13, 110, 253;
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: var(--bs-primary);
  --bs-btn-active-border-color: var(--bs-primary);
  --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
  --bs-btn-disabled-color: var(--bs-primary);
  --bs-btn-disabled-bg: transparent;
  --bs-btn-disabled-border-color: var(--bs-primary);
  --bs-gradient: none;
}

.font-body {
  font-family: var(--ff-body);
}

.bg-light {
  background-color: #F9FAFD !important;
}

/* Edit bootstrap | END */

.jq_box_highlight {
  background-color: #282b2e;
  color: #fff;
}
.web_dump_footer {
  width: 90%;
  margin: auto;
  background-color: #282b2e;
  padding: 2rem 2rem 5rem 2rem;
}
.clearfix {
}
/* 取消討厭的 href=# */
a {
  cursor: pointer !important;
}
.alert-danger.bg-danger-light a:link {
  color: #028798;
}
.alert-danger.bg-danger-light a:hover {
  color: #028798;
}
.alert-danger.bg-danger-light a:focus {
  color: #028798;
}
.alert-danger.bg-danger-light a:visited {
  color: #028798;
}

.jq_btn_switchpw {
  cursor: pointer !important;
}

/* 修正 boxicon 在 input-group */
.input-group .bx {
  font-size: 1.6rem;
  padding-top: 0.5rem;
}

/* 取消 boostrap form focus */
input.form-control:focus {
  border: 1px solid #ced4da;
  box-shadow: none;
  background-color: #f8fafc;
}
textarea.form-control:focus {
  border: 1px solid #ced4da;
  box-shadow: none;
  background-color: #f8fafc;
}
select.form-select:focus {
  border: 1px solid #ced4da;
  box-shadow: none;
  background-color: #f8fafc;
}

/* 表單錯誤訊息 */
.msgerr4form {
  margin: 10px;
  color: #842029;
  border: 1px solid #ff0000;
  border-radius: 5px;
  background-color: #f8d7da;
  padding: 0.6rem;
}

body {
  min-height: 100vh;
  min-height: -webkit-fill-available;
  font-family: var(--ff-body);
  background-color: #f7f7f7;
  background-color: #fff;
}
/* 登入頁面 body */
body:has(.loginbox) {
  background-color: #252c6a;
  background-image: url(../imgs/tas.svg);
  background-repeat: no-repeat;
  background-position: 40px 8px;
}

body:has(.loginbox) .sidemenu {
  display: none !important;
}

html {
  height: -webkit-fill-available;
}

i.hadtxt { margin-right: 1rem; }

/* header nav | START */
.header {
  position: fixed;
  z-index: 10;
  top: 0;
  right: 0;
  left: 0;
  font-weight: 700;
}

.navbar-brand {
  padding: 1rem 0 1.5rem;
}

.navbar-brand img {
  height: 2.5rem;
}
.navbar-toggler {
  padding: 0;
  outline: none;
  border: none;
}
.navbar-toggler:focus {
  box-shadow: none;
}

.navbar-toggler-icon {
  --bs-navbar-toggler-icon-bg: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2030%2030%22%3E%3Cpath%20stroke%3D%22%23fff%22%20stroke-linecap%3D%22round%22%20stroke-miterlimit%3D%2210%22%20stroke-width%3D%222%22%20d%3D%22M4%207h22M4%2015h22M4%2023h22%22%2F%3E%3C%2Fsvg%3E");
  width: 1.5rem;
  height: 1.5rem;
}

.navbar .nav-link {
  margin-bottom: 20px;
  border-left: 0.25rem solid transparent;
  font-size: 1.125rem;
  color: #252c6a;
  text-align: left;
}

.navbar .nav-link.active {
  border-color: #252c6a;
  background-color: transparent;
  color: #00adef;
}

.vertical-line {
  width: 1px;
  color: white;
  background-color: white;
  opacity: 1;
  align-self: stretch;
  margin-inline: 20px;
}

.logout-btn {
  padding: 0.625rem 2.5rem;
  font-weight: 700;
}

/* header nav | END */

/* sidebars | START */
menu {
  padding: 0px;
  margin: 0px;
  height: 100vh;
  height: -webkit-fill-available;
  max-height: 100vh;
  overflow-x: auto;
  overflow-y: hidden;
  position: fixed;
  top: 0;
  left: 0;
}
.dropdown-toggle {
  outline: 0;
}
.btn-toggle {
  padding: 0.25rem 0.5rem;
  font-weight: 600;
  color: rgba(0, 0, 0, 0.65);
  background-color: transparent;
}
.btn-toggle:hover,
.btn-toggle:focus {
  color: rgba(0, 0, 0, 0.85);
  background-color: #d2f4ea;
}
.btn-toggle::before {
  width: 1.25em;
  line-height: 0;
  content: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='rgba%280,0,0,.5%29' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M5 14l6-6-6-6'/%3e%3c/svg%3e");
  transition: transform 0.35s ease;
  transform-origin: 0.5em 50%;
}
.btn-toggle[aria-expanded="true"] {
  color: rgba(0, 0, 0, 0.85);
}
.btn-toggle[aria-expanded="true"]::before {
  transform: rotate(90deg);
}
.btn-toggle-nav a {
  padding: 0.1875rem 0.5rem;
  margin-top: 0.125rem;
  margin-left: 1.25rem;
}
.btn-toggle-nav a:hover,
.btn-toggle-nav a:focus {
  background-color: #d2f4ea;
}
.scrollarea {
  overflow-y: auto;
}
.sidemenu {
  overflow-y: auto;
  width: 17.5rem;
  max-height: calc(100% - 6.5rem - 2.5rem);
  margin-top: 5rem;
  padding: 2.5rem 1rem 2.5rem 1.25rem;
  font-weight: 700;
  line-height: 1.875;
}
.sidemenu svg path {
  fill: #fff;
}
.sidemenu .dropdown-menu {
  z-index: 900;
}
.sidemenu i.fas {
  font-size: 2rem;
  color: #fff;
}
.sidemenu .nav-link {
  margin-bottom: 20px;
  border-left: 0.25rem solid transparent;
  font-size: 1.125rem;
  color: #252c6a;
  text-align: left;
}
.sidemenu .nav-link.active {
  border-color: #252c6a;
  background-color: transparent;
  color: #00adef;
}
/* sidebars | END */

/* main | START */
main.container-fluid {
  padding-top: calc(5rem + 2rem);
  min-height: calc(100dvh - 8.75rem);
}

.container-fluid {
  padding: 2rem;
}
/* main | END */

.pagecontainer {
  margin-top: 1rem;
  padding: 1rem;
  background-color: #fff;
}
.pagecontainer.nobg {
  background-color: transparent;
}

/* login | START */
.loginbox {
  padding: 0px;
  margin: 0px;
  justify-content: center;
  align-items: center;
  height: calc(95vh - 1rem);
}
.loginerrorbox {
}
.loginformbox {
  background-color: #fff;
  padding: 80px 40px;
}
.loginformbtn {
  display: inline-flex;
  align-items: center;
  margin-top: 36px;
  background-color: #252c6a;
  padding: 10px 20px;
  border-radius: 12px 0px;
  font-family: var(--ff-heading);
  line-height: 160%;
  white-space: nowrap;
}
.loginformtoggles {
  margin-bottom: 60px;
}
.loginformtoggles a {
  font-family: "Montserrat", sans-serif;
  color: #fff;
}
.loginform-email {
  margin-top: 36px;
}
.loginform-email .form-label {
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  color: #252c6a;
}

/* login | END */

.listtoolbox {
  margin-bottom: 2rem;
}
.listtablebox {
}
.listtable {
}
.listtable th {
  color: #545f71;
  vertical-align: text-top;
}
.listtable td {
  vertical-align: text-top;
}
.listpageberbox {
  margin-top: 2rem;
}
ul.listpageber {
}
ul.listpageber li {
  list-style: none;
  display: inline-block;
}
ul.listpageber li a {
  color: #000;
  padding: 0.5rem 0.8rem;
  border-radius: 8px;
  display: inline-block;
  transition-duration: 0.2s;
  text-decoration: none;
}
ul.listpageber li a:hover,
ul.listpageber li a.active {
  color: #fff;
  background-color: #252c6a;
}

.editbpx {
}
.editbpx .editbpxlabel {
  margin-top: 0.4rem;
  font-weight: 600;
}
img.imgmaxw {
  max-width: 100%;
}


/* 觸發上傳 box 容器 microsoft graph api upload */
.jq_box_ulfmgaupload{}
.jq_box_ulfmgatrigger{}
.ulfmgauploadbox{}
.ulfmgauploadbox input[type="file"]{ position: absolute; left: -9999px; top: -9999px; z-index: -9999; }
.ulfmgauploaddrop{  height: 100px; display: flex; justify-content: center; align-items: center; border: 3px dashed #a3afb7; cursor: pointer; }
.ulfmgauploaddrop.dragged{ border-color:#f90; }
.ulfmgauploaddrop span{ display: inline; font-weight: 900; }
.ulfmgauploaddrop span b{ color: #0c6efd; text-decoration: underline; }
.ulfmgauploaddrop.dragged span{  }
.ulfmgaonce{  }
.ulfmgaprogress{ padding:8rem 2rem 0rem; min-height:273px; border: 3px dashed #F8D7DA; border-radius: 10px; }
.ulfmgaprogress div:not(.progress){ text-align:center; }
.ulfmgaprogress .jq_div_ulfmgaconnect{}
.ulfmgaprogress .jq_div_ulfmgaprogress{ display:none; }
.ulfmgaprogress.ulfmgaprogress30{ width: 30%; }
/* 單一圖檔容器 microsoft graph api upload */
.ulfmgatarget .onefilebox{ position: relative; }
.ulfmgatarget .onefilebox .ulfmgaimg{ width:100%; }
.ulfmgatarget .onefilebox .inpfileimgchange{ position: absolute; left: -9999px; top: -9999px; z-index: -9999; }
.ulfmgatarget .onefilebox .imgchange{ position:absolute; right:0.5rem; bottom:0.5rem; }
.ulfmgatarget .onefilebox .imgrotateL{ position:absolute; left:0.5rem; bottom:0.5rem; }
.ulfmgatarget .onefilebox .imgrotateR{ position:absolute; left:3.5rem; bottom:0.5rem; }
.ulfmgatarget .onefilebox .changerprogress{ display:none; position:absolute; bottom:0.5rem; left:0.5rem; }
.ulfmgatarget .onefilebox .changerprogress .changerprogressconnect{}
.ulfmgatarget .onefilebox .changerprogress .changerprogresstext{ display:none; }
.ulfmgatarget .jq_ulfmga_imgbox{  /*padding:5px; border:1px solid #f90;*/  }
.ulfmgatarget .jq_ulfmga_imgbox img{ transition-duration:0.3s; }
.ulfmgatarget .imgrotate1{ transform-origin: center center; transform:rotate(90deg); width:auto; }
.ulfmgatarget .imgrotate2{ transform-origin: center center; transform:rotate(180deg); }
.ulfmgatarget .imgrotate3{ transform-origin: center center; transform:rotate(270deg); width:auto; }



/* microsoft graph api upload */
/* page sort my atw */
.pageatwsortatwholder{
  width: 200px; height: 200px;
  background-color: #f90;
}
.pageclrsortatwholder{
  width: 200px; height: 200px;
  background-color: #f90;
}
/* upload layout */
.editsortulfs {
  padding: 0px;
}
.editsortulfs .ulfmgaonce {
  list-style: none;
  margin-bottom: 2.5rem;
  background-color: #fff;
}
.editsortulfs .editsortulfsholder {
  width: 100%;
  height: 20px;
  margin: auto;
  margin-bottom: 2rem;
  background-color: #f90;
}
.editsortulfs .editsortulfsTh {
  display: flex;
}
.editsortulfs .editsortulfsHtools {
  display: none;
}
.editsortulfs .editsortulfsTd {
  display: flex;
  flex-direction: column;
}
.editsortulfs .editsortulfsVtools {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  flex-direction: column;
  flex-wrap: wrap;
  align-content: flex-start;
  height: 100%;
  gap: 5px;
}
/*排序狀態 隱藏不必要的欄位 並改浮動*/
.editsortulfs.startsort { }
.editsortulfs.startsort .ulfmgaonce {
  float: left;
  margin: 0rem 2rem 2rem 0rem;
}
.editsortulfs.startsort .editsortulfsholder {
  float: left;
  width: 200px;
  height: 200px;
  margin: 0rem 2rem 2rem 0rem;
  background-color: #f90;
}
.editsortulfs.startsort .editsortshow {
  width: 100% !important;
}
.editsortulfs.startsort .editsortulfsTh {
  display: none !important;
}
.editsortulfs.startsort .editsortulfsHtools {
  display: flex;
}
.editsortulfs.startsort .editsortulfsTd {
  display: none !important;
}
.editsortulfs.startsort img.ulfmgaimg {
  width: 300px;
}


/*應該不要了
.editsortulfs .atlitembox{ position: relative; }
.editsortulfs .inpfileimgchange{ position: absolute; left: -9999px; top: -9999px; z-index: -9999; }
.editsortulfs .imgchange{ position:absolute; right:0.5rem; bottom:0.5rem; }
.editsortulfs .imgrotateL{ position:absolute; left:0.5rem; bottom:0.5rem; }
.editsortulfs .imgrotateR{ position:absolute; left:3.5rem; bottom:0.5rem; }
.editsortulfs .atlitemprogress{ display:none; position:absolute; bottom:0.5rem; left:0.5rem; }
.editsortulfs .atlitemprogress .atlitemprogressconnect{}
.editsortulfs .atlitemprogress .atlitemprogresstext{ display:none; }
.editsortulfs .imgrotate1{ transform:rotate(90deg); }
.editsortulfs .imgrotate2{ transform:rotate(180deg); }
.editsortulfs .imgrotate3{ transform:rotate(270deg); }
*/
/* upload layout */




/* 檔案上傳框 */
.jFiler-item-list {
  position: absolute;
  display: none;
} /*幹掉預設樣板*/
.jq_box_ulfuploadpic1 {
}
.jq_box_ulftrigger {
}
.ulfuploadappbox {
}
.ulfuploadappbox input[type="file"] {
}
.ulfupload_cutter {
  margin-top: 10px;
}
.ulfupload_defval {
  margin-top: 10px;
}
.ulfupload_dropbox {
  height: 100px;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 3px dashed #a3afb7;
  cursor: pointer;
}
.ulfupload_dropbox.dragged {
  border-color: #f90;
}
.ulfupload_dropbox .ulfupload_dropbox_txt_wait {
  font-weight: 900;
  display: inline-block;
  text-align: center;
  line-height: 2rem;
}
.ulfupload_dropbox .ulfupload_dropbox_txt_wait b {
  color: #0c6efd;
  text-decoration: underline;
}
.ulfupload_dropbox .ulfupload_dropbox_txt_enter {
  display: none;
}
.ulfupload_dropbox.dragged .ulfupload_dropbox_txt_wait {
  display: none;
}
.ulfupload_dropbox.dragged .ulfupload_dropbox_txt_enter {
  display: inline;
}
.ulfonce {
}
.ulfonce_ui {
}
.ulfonce_ui img {
  width: 96px;
  height: 96px;
  background-color: #999;
}
.ulfonce_content {
}
.ulfonce_content .jq_a_ulfhref {
}
.ulfonce_tool {
  text-align: right;
}
.ulfonce_data {
}
.ulfonce_data textarea {
  margin-top: 8px;
}
.ulfonce_placeholder {
  width: 20px;
  height: 300px;
  background-color: #f90;
}

/* class 2 student */
.needstudenttable {
  background-color: #F9FAFD;
}
.needstudenttable td{
  border-bottom: 0;
}

.findstudenttable {
}
.oncestudent {
}
.oncestudentSelect {
}
.oncestudentAdd {
}
.oncestudentDel {
}

.needstudenttable .oncestudentSelect {
  display: block;
}
.needstudenttable .oncestudentAdd {
  display: none;
}
.needstudenttable .oncestudentDel {
  display: block;
}
.findstudenttable .oncestudentSelect {
  display: none;
}
.findstudenttable .oncestudentAdd {
  display: block;
}
.findstudenttable .oncestudentDel {
  display: none;
}

.classes-edit .needstudenttable .fa-circle,
.classes-edit .findstudenttable .fa-circle {
  color: #D9D9D9;
  font-size: 10px;
}

thead.space-bottom {
  position: relative;
  border-bottom: 21px solid #fff;
}

thead.space-bottom::after {
  position: absolute;
  content:'';
  background-color: #E5E7EB;
  height: 1px;
  left: 0;
  right: 0;
}

/* student's classes | START */
.myclasses .card {
  width: 100%;
  border: none;
  border-bottom: 1px solid #e0e0e0;
  font-family: var(--ff-body);
  color: #000;
}

.myclasses .card-header,
.myclasses .card-footer {
  padding-inline: 0;
  border: none;
  background-color: transparent;
}

.myclasses .card-header {
  padding-bottom: 0;
  font-size: 0.75rem;
}

.myclasses .card-footer {
  padding-bottom: 0.75rem;
  margin-top: auto;
}

.myclasses .card-body {
  flex-shrink: 0;
  padding-inline: 0;
  padding-top: 0.25rem;
}

.myclasses .class-year {
  margin-bottom: 1.25rem;
  font-family: var(--ff-body);
  font-size: 1.25rem;
  color: #000;
}

.myclasses .card-wrapper {
  row-gap: 1.5rem;
  margin-inline: 0;
  margin-bottom: 5rem;
}

.myclasses .card img {
  width: 100%;
  aspect-ratio: 180 / 200;
  object-fit: cover;
}

.myclasses .card-title {
  margin-bottom: 0.5rem;
  font-family: var(--ff-body);
  font-size: 1.125rem;
  color: #000;
}

.myclasses .card-btn {
  flex-shrink: 0;
  width: 100%;
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 2rem;
}

.artworklist .card-title {
  font-family: var(--ff-body);
  font-size: 1.125rem;
  line-height: 160%;
  color: #1f2937;
}

.artworklist .card-body p {
  font-size: 0.875rem;
  line-height: 160%;
}

.artworklist .card-link {
  --bs-link-color: #00adef;
  font-weight: 700;
}

/* student's classes | END */

.myclasses .row:has(> .artworklist),
.myartworks .row:has(> .artworklist) {
  --bs-gutter-x: 2.5rem;
}

.myartworks .card-header {
  padding-inline: 0;
  border: none;
  background-color: transparent;
}

/* student's artworks | START */
.class-info {
  padding-left: 1.25rem;
  border-left: 4px solid #000;
}

.class-info small,
.class-info h2 {
  font-family: var(--ff-body);
  color: #000;
}

.class-info h2 {
  font-size: 1.125rem;
}

.artworklist .card[data-card-option="hide"] .card-img-wrapper {
  position: relative;
}

.artworklist .card[data-card-option="hide"] .card-img-wrapper::after {
  content: "Hide";
  z-index: 2;
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  padding: 0rem 0.5rem;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.08);
  color: #000;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 2;
  letter-spacing: 0.84px;
}
/* student's artworks | END */

/* footer | START */
.footer {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  padding: 1.25rem 2.5rem;
  box-shadow: 0px -4px 20px 0px rgba(0, 0, 0, 0.03);
  font-size: 0.75rem;
  text-align: right;
}

.footer-logo {
  align-self: flex-start;
  padding: 0.25rem 1.5rem 0.875rem 0;
}

.footer-logo img {
  height: 2.5rem;
}

/* footer | END */

@media screen and (min-width: 768px) {
  main.container-fluid {
    padding-left: calc(17.5rem + 2.5rem);
    min-height: calc(100dvh - 6.5rem);
  }

  .loginform {
    max-width: 560px;
    margin-inline: auto;
  }
  .loginformbtn {
    padding-inline: 40px;
  }

  .footer {
    flex-direction: row;
  }

  .footer-logo img {
    height: auto;
  }

  .myclasses .card {
    border: 1px solid #e0e0e0;
  }
}

@media screen and (min-width: 1200px) {
  .myclasses .card-wrapper {
    row-gap: 1.5rem;
    column-gap: 2.5rem;
  }
  .myclasses:not(:has(.artworklist)) .card {
    width: calc(50% - 1.5rem);
  }
}
