@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@100;400;500;700;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+TC:wght@200;300;400;500;600;700;900&display=swap');
@import url("https://pro.fontawesome.com/releases/v5.10.0/css/all.css");
:root {
    --primary: #38b4c4;
    --primary-darker: #2c808d;
    --primary-lighter: #c8dce4;
    --secondary: #ec7a3b;
    --gray: #dbdbdb;
    --light-gray: #f2f2f2;
    --dark: #383838;
    --red: #e00000;
    --orange-gradient: linear-gradient(120deg, #d73e29, #EF874E);
    --itemhover: #FFF8D7;
    --itemhover-border: #FFE666;
    scroll-padding-top: 120px;
}

*,
*::before,
*::after {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    list-style: none;
    list-style-type: none;
    text-decoration: none;
    line-height: 1.5!important;
    letter-spacing:.12em!important;
    word-spacing: .16em !important;
}

body {
    color: var(--dark);
    font-family: 'Noto Sans TC', sans-serif;
    font-size: 1em;
    line-height: 1.5em;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 400;
    line-height: 1.2;
}

h2 {
    font-size: 1.2rem;
}

h3 {
    font-size: 1.05rem;
}

h4 {
    font-size: 0.95rem;
}

a {
    color: var(--dark);
}
/*
a:focus,
a:focus-within {
    outline: 2px solid var(--secondary) !important;
    outline-offset: -2px;
    border-radius: 4px;
}
*/
a:focus,a:focus-within,button:focus,button:focus-within,input:focus,input:focus-within,select:focus,select:focus-within{
    outline: solid 5px #E00000;
    z-index: 100;
    
}
.navList a:focus,.navList a:focus-within{
    outline: solid 2px #000 !important;
    outline-offset: -2px;
}
.goCenter {
    position: absolute;
    top: 0;
    left: 0;
    font-size: 0.9em;
    text-decoration: none;
    z-index: 1000;
    opacity: 0;
    transition: .5s;
    margin:5px;
}

.goCenter:focus {
    opacity: 1;
    border:5px soild #e00000;
}

button, .btn {
    transition: 0.3s ease-in-out;
    transform: scale(1);
}

button:hover, .btn:hover {
    transform: scale(1.06);
}

a.btn {
    display: block;
}
/* navbar */

.backdrop {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.5);
}

.navigation {
    position: fixed;
    left: 0;
    top: 55px;
    height: 100%;
    background: #fff;
    z-index: 1030;
    min-width: 250px;
    overflow: auto;
    padding: 5px 0 15px;
    transform: translateX(-100%);
    transition: all 0.5s ease-in-out;
}

.navigation.open {
    transform: translateX(0);
}

.navigation a {
    padding: 0.6rem 1rem;
}

.menuItem a {
    transition: 0.2s ease-out;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.menuItem.hasChild i {
    transform: rotate(0deg);
    transition: all 0.5s;
}

.menuItem.active.hasChild i {
    transform: rotate(90deg);
}

.menuItem.active.hasChild .dropdown {
    display: block;
    opacity: 1;
    visibility: visible;
    background-color: var(--light-gray);
}

.menuItem.hasChild .dropdown {
    display: none;
    opacity: 0;
    visibility: hidden;
}

.menuItem.hasChild .dropdown li:hover a {
    background-color: var(--primary-darker);
    color: #ffffff;
}

.navigation ul.subMenu {
    margin: 50px 0;
}

.navigation ul.subMenu li {
    margin: 8px 0;
    font-size: 0.8em;
}

.navigation ul.subMenu li a:hover {
    color: var(--primary-darker);
}

@media screen and (min-width: 768px) {
    .navigation {
        display: none;
    }
}

ul.topMenu {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    font-size: 0.9em;
    margin: 5px auto 0;
}

ul.topMenu li {
    margin: 0 10px;
    position: relative;
}

ul.topMenu li::before {
    content: "";
    width: 1px;
    height: 12px;
    background-color: var(--dark);
    position: absolute;
    left: -11px;
    top: 7px;
}

ul.topMenu li:first-child:before {
    width: 0;
}

ul.topMenu li a:hover {
    color: var(--primary-darker);
}

.memberGreeting {
    background: #c2e0e3;
    padding: 0 2px;
    border-radius: 5px;
}

.burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    cursor: pointer;
    z-index: 1010;
}

.mainNavbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: 0.3s all ease-in-out;
    margin: 0 auto;
}

.mainNavbar.open .burger .line1 {
    transform: rotate(-45deg);
    transform-origin: top right;
}

.mainNavbar.open .burger .line2 {
    opacity: 0;
}

.mainNavbar.open .burger .line3 {
    transform: rotate(45deg);
    transform-origin: bottom right;
}

.burger div {
    width: 23px;
    height: 2px;
    background-color: #fff;
    margin: 3px 0;
    border-radius: 2px;
    transition: all 0.4s ease-in;
    z-index: 1;
}

.burger .line1 {
    transform: rotate(0);
    transform-origin: top right;
}

.burger .line3 {
    transform: rotate(0);
    transform-origin: bottom right;
}

.mainNavbar .logo {
    width: 345px;
}

.mainNavbar .logo a {
    display: inline-block;
}

.mainNavbar .logo img {
    object-fit: contain;
    width: 100%;
}

.options {
    display: flex;
}

.fontChange {
    display: flex;
    align-items: center;
    margin-right: 15px;
}

.fontChange ul {
    display: flex;
}

.fontChange ul li {
    margin-left: 5px;
}

.fontChange ul li a {
    width: 28px;
    height: 28px;
    background-color: var(--gray);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    box-shadow: 0 0 2px rgb(0 0 0 / 50%);
    transform: scale(0.9);
    transition: all 0.2s ease-in;
}

.fontChange ul li a.active {
    background-color: var(--primary);
    color: #fff;
}

.fontChange ul li a:hover {
    background-color: var(--primary);
    color: #fff;
    transform: scale(1);
}

@media (min-width: 1400px) {
    .fontChange ul li a {
        width: 33px;
        height: 33px;
    }
}

.searchWrap {
    position: relative;
}

.search .fab {
    background: var(--primary);
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
    line-height: 40px;
    text-align: center;
    animation: fab-animation-reverse 0.4s ease-out forwards;
}

.search.active .fab {
    animation: fab-animation 0.4s ease-out forwards;
}

.search~.fac {
    width: 100px;
    border-radius: 10px;
    position: absolute;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
    opacity: 0;
    top: 0;
    right: 3px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: opacity 0.2s ease-in, top 0.2s ease-in, width 0.1s ease-in;
    font-size: 0.9em;
    font-weight: 400;
    padding: 8px;
    z-index: 1030;
    display: none;
}

.search.active~.fac {
    animation: fac-animation 0.4s ease-out forwards 0.1s;
    top: 45px;
    opacity: 1;
    display: flex;
}

.search~.fac a {
    margin-bottom: 10px;
}

.search~.fac a:last-child {
    margin-bottom: 0;
}

.search~.fac a:hover {
    color: var(--primary-darker);
}

.navList {
    background-color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1030;
}

.navList.fixed {
    position: fixed;
    top: 0;
    width: 100%;
}

.navList ul.menu {
    display: flex;
    width: 100%;
}

.navList ul.menu>li {
    position: relative;
    flex: 100%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.navList ul.menu>li>a {
    padding: 15px;
    width: 100%;
    display: inline-block;
    text-align: center;
    transition: 0.2s ease-in-out;
}

.navList ul.menu li ul.dropdown {
    background: var(--bg-color);
    height: 0;
    border-top: 0;
    min-width: 100%;
    left: 0;
    margin: 0;
    position: absolute;
    text-align: left;
    top: 100%;
    visibility: hidden;
    height: 1px;
    overflow: hidden;
    z-index: 10;
}

.navList ul.menu li ul.dropdown li a {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 0;
    white-space: nowrap;
    background-color: var(--primary-lighter);
    transition: 0.2s ease-in-out;
}

.navList ul.menu li:hover .dropdown {
    visibility: visible;
    height: auto;
}

.navList ul.menu li:focus-within .dropdown {
    visibility: visible;
    height: auto;
}

.navList ul.menu li a:hover,
.navList ul.menu li a:focus {
    background-color: var(--primary-darker);
    color: #fff;
}

.navList ul.menu li ul.dropdown li:hover a,
.navList ul.menu li ul.dropdown li:focus a,
.navList ul.menu li ul.dropdown li:focus-within a {
    background-color: var(--primary-darker);
    color: #fff;
}
.dropdownWrap ul.dropdown li:focus-within h4{
    outline: 2px solid black !important;
    outline-offset: 1px;
    border-radius: 4px;
}
@media screen and (max-width: 768px) {
    ul.topMenu,
    .fontChange,
    .navList {
        display: none;
    }
    .mainNavbar {
        background-color: var(--primary);
        padding: 6px 10px;
        position: fixed;
        width: 100%;
        z-index: 1030;
    }
    .burger {
        display: flex;
    }
    .search .fab {
        background: #fff;
        color: var(--primary);
    }
    .mobileMainNavbar {
        display: flex;
        z-index: 1000;
    }
    .mainNavbar .logo {
        width: 230px;
        transform: translateY(3px);
    }
}

.container {
    width: 100%;
    margin-right: auto;
    margin-left: auto;
    padding-bottom: 25px;
    display: flex;
}

@media (min-width: 576px) {
    .container {
        max-width: 540px;
    }
}

@media (min-width: 768px) {
    .container,
    ul.topMenu,
    .mainNavbar,
    .navList ul.menu {
        max-width: 720px;
    }
}

@media (min-width: 992px) {
    .container,
    ul.topMenu,
    .mainNavbar,
    .navList ul.menu {
        max-width: 960px;
    }
}

@media (min-width: 1200px) {
    .container,
    ul.topMenu,
    .mainNavbar,
    .navList ul.menu {
        max-width: 80%;
    }
}

@media (min-width: 1400px) {
    .container,
    ul.topMenu,
    .mainNavbar,
    .navList ul.menu {
        max-width: 70%;
    }
    body {
        font-size: 1.2em;
    }
}

@media screen and (max-width: 768px) {
    .container {
        padding: 65px 20px 25px;
    }
}


/* main content */

.mainContent {
    width: 100%;
}

.topContent {
    display: flex;
    flex-direction: column;
    font-size: 0.9em;
    margin: 15px 0;
}

.currentTab {
    margin-top: 5px;
}

.currentTab a:hover {
    color: var(--primary-darker);
}

.currentTab span::after {
    content: '/';
    font-size: 13px;
    font-weight: 600;
    margin: 0 5px;
    color: var(--primary-darker);
}

.currentTab span:last-child:after {
    content: '';
}

.currentPage {
    font-size: 1.5em;
    text-align: center;
    margin-top: 8px;
    color: var(--primary-darker);
}

.currentPage::after,
.currentPage::before {
    content: '';
    font-weight: bold;
    margin: 0 5px;
    color: var(--primary-darker);
}

.currentPage a {
    color: var(--primary-darker);
}

.signOut {
    display: inline-block;
    background-color: #d73e29;
    color: #fff;
    border-radius: 20px;
    padding: 0 10px;
    margin-left: 7px;
    transform: scale(0.9);
    transition: 0.2s;
}

.signOut i {
    margin-left: 3px;
}

.signOut:hover {
    transform: scale(1);
}

@media (max-width: 768px) {
    .topContent {
        align-items: center;
        margin: 10px 0;
    }
    .user_tab {
        flex-direction: column;
    }
}

.card {
    border: 1px solid var(--gray);
    letter-spacing: 1px;
    padding: 20px 20px 30px;
    margin-bottom: 30px;
    border-radius: 10px;
}

.card p {
    text-align: justify;
    text-indent: 2em;
    padding-top: 20px;
}

.cardTitle {
    font-size: 1.2em;
    width: fit-content;
    color: var(--primary-darker);
    margin-bottom: 15px;
    border-left: 4px solid var(--primary-darker);
    padding-left: 12px;
}

.attention {
    margin-top: 5px;
    font-weight: 500;
    color: var(--red);
}

.formGroup {
    margin: 10px 0;
    display: flex;
    align-items: center;
    width: 100%;
}

.formGroup label {
    width: 25%;
}

@media (max-width: 768px) {
    .formGroup {
        flex-direction: column;
    }
    .formGroup label {
        width: 100%;
    }
}

.formControl {
    display: block;
    width: 100%;
    padding: .25rem .5rem;
    font-weight: 400;
    font-family: inherit;
    font-size: inherit;
    line-height: 1.5;
    color: var(--dark);
    border: 1px solid var(--primary-darker);
    transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}

.formSelect {
    display: block;
    width: 100%;
    padding: .375rem 0.1rem;
    -moz-padding-start: calc(0.75rem - 3px);
    font-weight: 400;
    font-size: inherit;
    /*color: var(--primary-darker);*/
    color: var(--dark);
    border: 1px solid var(--primary-darker);
    transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}

.formControl:focus {
  /*background-color: var(--itemhover);*/
  /*background-color: var(--primary-darker);*/
  background-color: #FFFF00;
  outline: solid 5px #E00000;
}
.formSelect:focus {
  color: #666666;
  outline: solid 5px #E00000;
}
.primaryBtn {
    border: 1px solid var(--primary-darker);
    background-color: #fff;
    color: var(--primary-darker);
    padding: 10px;
    cursor: pointer;
    font-size: inherit;
    transition: all 0.2s ease-in-out;
}

.primaryBtn:hover {
    background-color: var(--primary-darker);
    color: #fff;
}
.otherBtn {
    border: 1px solid #8BB5C6;
    background-color:var(--primary-lighter);
    color:#000;
    padding: 10px;
    margin-top: 20px;
    cursor: pointer;
    font-size: 0.9em;
    font-weight:bold;
    transition: all 0.2s ease-in-out;
}
.otherBtn:hover{
    color: #FFF;
    background-color:#325462;
} 

.delBtn {
    border: 1px solid #8BB5C6;
    background-color:var(--primary-lighter);
    color:#000;
    padding-top: 3px;
    padding-left: 10px;
    padding-right: 10px;
    padding-bottom: 3px;
    margin: 5px;
    cursor: pointer;
    font-size: 0.9em;
    font-weight:bold;
    transition: all 0.2s ease-in-out;
}
.delBtn:hover{
    color: #FFF;
    background-color:#325462;
}
table.leftThead td {
    padding: 10px;
}

table.leftThead td:first-child {
    background: var(--primary-lighter);
    font-weight: 500;
}

table.leftThead td:nth-child(2) {
    background: var(--light-gray);
}

@media (max-width: 576px) {
    table.leftThead tbody tr {
        display: flex;
        flex-direction: column;
        margin-bottom: 10px;
    }
}

.pagination {
    text-align: center;
}

.pagination .page {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.pagination .page li {
    margin: 2px;
    flex: 0 0 35px;
}

.pagination .page li a {
    border-radius: 10px;
    padding: 6px;
    font-weight: 600;
    display: block;
    white-space: nowrap;
    color: var(--dark);
    background-color: var(--light-gray);
}

.pagination .page li.active a {
    color: #fff !important;
    background-color: var(--primary);
}

.pagination .page li {
    transform: scale(1);
    transition: 0.3s all ease;
}

.pagination .page li:hover {
    transform: scale(1.1);
}

.pagination .page li:not(.active):hover a {
    background-color: var(--primary);
    color: #fff;
}


/* footer */

footer {
    background-color: var(--primary);
    font-size: 0.85em;
    padding: 20px 15%;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

.footerIconWrap {
    display: flex;
    margin-top: 20px;
}

.footerIcon:first-child {
    margin-right: 10px;
}

.footerIcon,
.footerLink {
    display: flex;
    align-items: flex-start;
}

.footerIcon img {
    width: 23px;
}

.footerLink img {
    margin-right: 10px;
}

@media screen and (max-width: 991px) {
    footer {
        flex-direction: column;
        padding: 20px 50px;
    }
    .footerIconWrap {
        flex-direction: column;
    }
    .footerLink {
        margin-top: 10px;
        align-items: flex-end;
    }
}

@media screen and (max-width: 576px) {
    footer {
        padding: 15px 30px;
    }
}

.floatNav {
    position: fixed;
    top: 150px;
    right: 0;
    width: 43px;
    height: auto;
    padding: 1rem 0;
    background: var(--orange-gradient);
    box-shadow: -2px 4px 5px rgb(0 0 0 / 20%);
    border-radius: 5px;
    cursor: pointer;
    transition: 0.4s ease-in-out;
    max-height: calc(100vh - 150px);
    overflow-y: auto;
    overflow-x: hidden;
}

@media screen and (max-width: 450px) {
    .floatNav {
        overflow-y: scroll;
        overflow-x: hidden;
        max-height: 350px;
    }
}

.floatNavItems {
    display: flex;
    flex-direction: column;
    transform: translateX(10px);
}

.floatNavItems.scrollTop {
    transition: all 0.4s ease-in-out 0s;
    cursor: pointer;
}

.floatNavItem {
    display: flex;
    align-items: center;
    color: #fff;
    font-size: 1.5em;
    height: 35px;
}

.floatNavIcon {
    width: 25px;
    margin-right: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.floatNavIcon.tool {
    //transform: translateX(-12px);
}

.floatNavName {
    color:#fff;
    font-size: 0.75em;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    transition: .3s;
    display: none;
}

.floatNavName i {
    margin-left: 4px;
    transform: translateY(4px);
}

.floatNav:hover,
.floatNav:focus-within {
    width: 170px;
}

.floatNav a:focus-within {
    outline: 2px solid black !important;
    width: 90%;
}

.floatNav:hover .floatNavName,
.floatNav:focus-within .floatNavName {
    opacity: 1;
    display: flex;
}

.floatNav:hover .floatNavIcon.tool {
    //transform: translateX(-8px);
}

.floatNav .dropdownWrap .dropdown,
.floatNav:hover .dropdownWrap .dropdown,
.floatNav:not(:hover) .dropdownWrap.active .dropdown {
    display: none;
    opacity: 0;
    visibility: hidden;
}

.floatNav:hover .dropdownWrap.active .dropdown,
.floatNav:focus-within .dropdownWrap.active .dropdown {
    display: block;
    opacity: 1;
    visibility: visible;
}

.floatNav .dropdown li {
    padding: 6px 13px;
    margin-bottom: 4px;
    background-color: #fff;
}

.floatNav .dropdown li a {
    color: #d73e29;
}

.floatNav .dropdown li a:focus-within {
    color: rgb(0, 0, 0) !important;
}

.floatNav .dropdown li:hover a{
    color:black;
}

@media (max-width: 578px) {
    .floatNavIcon.tool img {
        width: 40px;
        //transform: translateX(10px);
    }
    .floatNav:hover .floatNavIcon.tool {
        //transform: translateX(-14px);
    }
}

.progressbarWrap {
    margin: 30px 0;
}

.progressbarWrap .progressbar {
    counter-reset: step;
    display: flex;
}

.progressbarWrap .progressbar li {
    position: relative;
    width: 33.33%;
    text-align: center;
}

.progressbarWrap .progressbar li:before {
    content: counter(step);
    counter-increment: step;
    width: 40px;
    height: 40px;
    border: 3px solid var(--primary-darker);
    color: var(--dark);
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px auto;
    border-radius: 50%;
    background-color: #fff;
}

.progressbarWrap .progressbar li:after {
    content: '';
    position: absolute;
    width: 100%;
    height: 1px;
    background: var(--primary-darker);
    top: 20px;
    left: -50%;
    z-index: -1;
}

.progressbarWrap .progressbar li:first-child:after {
    content: none;
}

.progressbarWrap .progressbar li.active:before {
    background-color: var(--primary-darker);
    color: #fff;
}

.my-3 {
    margin-top: 0.3rem;
    margin-bottom: 0.3rem;
}

input[type="radio" i],
input[type="checkbox" i] {
  width: 20px !important;
  height: 20px !important;
  transform: translateY(3px);
}

.fa-user {
    font-size:120%;
    margin-left: 2px;
}
.expand_arrow {
    display:none;
}
.floatNav:hover, .floatNav:focus-within {
    width: 185px;
}
.burger div {
    pointer-events: none;
}
@media (max-height: 480px) {
    .mainNavbar {
        position: static;
        top: 0;
    }
    .container.bannerArea {
        padding:0 !important;
    }
}

@media (max-height: 400px) {
    .floatNav {
        top:21% !important;
        padding: 0.5rem 0.5rem 0.5rem 0;
    }
    .my-3 {
        margin:0.1rem 0;
    }   
    .floatNav {
        transform: translateX(43px);
        box-shadow: none;
        overflow-y: scroll;
        overflow-x: hidden;
        max-height: 205px;
    }
    .floatNav:hover, .floatNav:focus-within {
        transform: translateX(0px);
    }
    
    .expand_arrow_area {
        transition: 0.4s ease-in-out;
        display:flex;
        position:fixed;
        top: 21%;
        height:203.75px;
        align-items: flex-end;      
        right: 0;
    }
    .expand_arrow {
        display:block;
        padding:5px;
        background:var(--orange-gradient);
        border-radius: 5px 0 0px 5px;
    } 
 
}

@media (max-height: 350px) {
    

       
}

