@import url("bootstrap-icons.min.css");

body {
    font-family: 'Arial', "Microsoft Jhenghei", 'Raleway', sans-serif, 'Noto Sans TC', "微軟正黑體", "Trebuchet MS";
    line-height: 1.4em;
    letter-spacing: .3px;
    height: 100% !important;
    background-color: #f3f2f8;
    background: url(../img/bg.png) repeat;
}

:root {
    --main-bg-color: #0d5e61;
    --main-link-color: #006f73;
    --box-bg-color: #d7e1f0;
    --color-white: #fff;
    --color-yellow: #fdd93d;
    --color-red: #fc2c00;
}

img {
    max-width: 100%;
}

p {
    font-size: 1em;
    margin-bottom: 0px;
}

h1,
h2,
h3,
h4,
h5,
strong,
caption {
    font-weight: 600;
}

.red {
    color: var(--color-red) !important;
    margin: 5px;
}

a,
a:hover,
a:focus {
    text-decoration: none;
    -o-transition: all .3s;
    -moz-transition: all .3s;
    -webkit-transition: all .3s;
    -ms-transition: all .3s;
    transition: all .3s;
}

ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.sr-only {
    position: absolute;
    top: auto;
    left: 0;
    width: 1px;
    height: 1px;
    overflow: hidden;
    z-index: -999;
}

.sr-only:focus,
.sr-only:active {
    color: var(--color-white);
    background-color: var(--bs-green);
    top: auto;
    left: calc(50% - 110px);
    width: 220px;
    height: auto;
    overflow: auto;
    margin: 10px auto;
    padding: 0.5rem;
    border-radius: 0.5rem;
    text-align: center;
    font-size: 1em;
    z-index: 999;
    position: absolute;
}

a:focus-visible {
    outline: 2px var(--color-yellow) dotted !important;
}

.accesskey {
    color: var(--color-white) !important;
}

.navbar-brand img {
    max-width: 200px;
}

nav.navbar {
    background: var(--color-white);
    border-bottom: none;
    padding: 10px 0;
    -webkit-transition: all 0.5s;
    -o-transition: all 0.5s;
    transition: all 0.5s;
}

nav.navbar .navbar-toggler {
    border: none;
    padding: 5px 8px;
    border-radius: 15px;
    transition: all 0.5s;
    font-size: 1.8em;
    background: var(--main-bg-color);
    color: var(--color-white);
}

nav.navbar .navbar-toggler:hover,
nav.navbar .navbar-toggler:focus {
    background: var(--color-yellow);
    color: var(--color-white);
    transition: all 0.5s;
}

nav.navbar .nav-item .bi {
    font-size: 1.2em;
}

nav.navbar .nav-item a {
    color: var(--main-bg-color);
    padding: 10px 15px !important;
    font-weight: 500;
}

nav.navbar .nav-item a:hover,
nav.navbar .nav-item a:focus,
nav.navbar .active {
    color: var(--color-white);
    background: var(--main-bg-color);
    transition: all 0.5s;
}

nav.navbar ul.dropdown-menu {
    background: var(--color-yellow);
    border: 0;
    border-radius: 0;
    margin-top: -2px;
}

nav.navbar ul.dropdown-menu a {
    color: var(--main-bg-color);
    border-radius: 0;
}

nav.navbar ul.dropdown-menu a:hover,
nav.navbar ul.dropdown-menu a:focus {
    color: var(--main-bg-color);
    background: var(--color-white);
    transition: all 0.5s;
}

header .header-item {
    height: 460px;
}

header .header-img {
    position: relative;
    background-position: center bottom;
    background-repeat: no-repeat;
    background-size: cover;
    height: 100%;
}

ul#black_img {
    margin-top: -150px;
    position: relative;
    z-index: 99;
}

ul#black_img li {
    position: relative;
    padding-top: 20%;
    margin: 10px;
}

ul#black_img li:hover img {
    -webkit-filter: grayscale(20%);
    transform: scale(1.15);
}

ul#black_img li:hover .image-bg {
    opacity: 1;
}

ul#black_img li:hover .description-wrap {
    background: rgba(186, 186, 186, 0.6);
}

ul#black_img li img {
    position: absolute;
    width: 100%;
    left: 0;
    top: 0;
    /*-webkit-filter: grayscale(100%);*/
    transition: filter, transform, 0.5s;
}

ul#black_img li .decription-wrap {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    transition: background, 0.5s;
}

ul#black_img li .image-bg {
    color: #fff;
    background: rgb(0 0 0 / 60%);
    text-transform: uppercase;
    width: 104%;
    height: 96%;
    display: inline-block;
    -ms-transform: translate(-50%, -50%);
    /* IE 9 */
    -webkit-transform: translate(-50%, -50%);
    /* Chrome, Safari, Opera */
    transform: translate(-50%, -50%);
    top: 46%;
    left: 49%;
    padding: 20px;
    position: relative;
    margin: 0 auto;
    text-align: center;
    opacity: 0;
    -webkit-filter: grayscale(20%);
    transition: opacity, 0.5s;
}

ul#black_img li .desc {
    width: 80%;
    position: absolute;
    margin: 20% auto;
    z-index: 1;
    left: 0;
    display: table-cell;
    right: 0;
    text-align: center;
    font-size: 1.6em;
    font-weight: 600;
}

main {
    margin: 30px 0 50px;
    min-height: calc(100vh - 350px);
}

.breadcrumb {
    background-color: aliceblue;
    display: inline-flex;
    padding: 8px 10px;
    border-radius: 15px;
    border: 1px solid var(--box-bg-color);
    box-shadow: 0 .3rem 0.8rem #d0dff5 !important;
}

caption {
    color: var(--main-bg-color);
    font-size: calc(1.275rem + .1vw);
    margin-bottom: 10px;
}

th {
    white-space: nowrap;
}

th,
td {
    vertical-align: middle;
}

.table-responsive input.form-label {
    min-width: 120px;
}

.table-yellow {
    background-color: var(--color-yellow);
}

.table-group-divider,
.plan_from {
    background-color: var(--color-white);
}

.table-group-divider {
    border-top: none;
}

.table-success {
    --bs-table-color: var(--color-white);
    --bs-table-bg: var(--main-bg-color);
}

.table-group-divider a {
    color: var(--main-link-color);
    font-weight: bold;
}

.title {
    color: var(--main-bg-color);
    font-size: 1.6em;
    text-align: center;
    margin-bottom: 30px;
}

.title::before,
.title::after {
    content: "";
    width: 50px;
    height: 3px;
    background: var(--color-yellow);
    display: inline-block;
    margin: 5px 20px;
}

#about h3 {
    font-size: 1.2em;
    color: var(--main-bg-color);
}

#about i {
    font-size: calc(2rem + .3vw);
}

.btn.active {
    background-color: var(--main-bg-color);
}

.form-bg {
    background-color: var(--color-white);
    border-radius: 10px;
    padding: 20px 30px;
}

.form-label {
    margin-right: 15px;
    padding-top: 6px;
    color: var(--main-bg-color);
    font-weight: 600;
}

.form-control {
    border-radius: 12px !important;
}

.form-control,
.form-check-input {
    border: var(--bs-border-width) solid #b4d3ff;
}

.form-check-input {
    width: 1.2em;
    height: 1.2em;
    margin-top: -0.5px;
}

.form-check {
    margin: 5px 30px 0 0;
}

.form-bg .alert-success {
    background-color: #cee2b1;
    border-top: 15px #e5efd4 solid;
    border-bottom: 15px #e5efd4 solid;
    border-radius: 0px;
}

.form-bg .alert-light {
    background-color: #e9edf0;
    border-top: 15px #7fa6ad solid;
    /*border-radius: 0% 0% 50% 0% / 0% 50% 50% 0%;*/
}

.box-item {
    background-color: var(--color-white);
    display: flex;
    padding: 20px 15px;
    transition: all 0.5s;
    margin: 8px 5px;
    align-self: stretch !important;
}

.box-item:hover {
    background-color: var(--color-yellow);
}

.box-item h3,
.box-item span {
    color: var(--main-bg-color);
    float: left;
}

.box-item span {
    float: left;
    white-space: nowrap;
    text-align: center;
    padding: 0 8px;
    margin: 3px 5px;
    font-size: 1.5em;
}

.box-item h3 {
    margin-top: 3px;
    font-size: 1.2em;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
}

.box-item a.btn-success {
    margin-left: 20px;
    margin-top: -5px;
    min-width: 80px;
}

.border-plan {
    padding: 15px;
    background-color: var(--color-white);
    border: 1px solid var(--box-bg-color);
    border-bottom: none;
    border-right: none;
}

.pagination {
    margin-top: 30px;
}

.page-link {
    color: var(--main-bg-color);
}

.active > .page-link {
    background-color: var(--main-bg-color);
}

#tag {
    background-color: var(--box-bg-color);
}

#tag .t1 {
    background-color: var(--main-bg-color);
    color: var(--color-white);
    height: 120%;
    margin-top: -2.5%;
    padding: 15px 10px 10px 20px;
    clip-path: polygon(0% 0%, 85% 0%, 100% 50%, 85% 100%, 0% 100%);
}

#tag .t2,
#tag .t3 {
    padding: 10px;
}

.tag_in {
    padding: 15px;
}

.tag_in h3 {
    font-size: 1.2em;
    line-height: 1.4;
    color: var(--main-bg-color);
}

.tag_in h3 span {
    font-size: 1em;
    color: #664d03;
}

.loginBox {
    background-color: aliceblue;
    background-image: linear-gradient(to bottom, aliceblue, #f8fafa);
    padding: 40px;
    border-radius: 10px;
}

footer {
    background: var(--main-bg-color);
    color: var(--color-white);
    padding: 40px 0;
}

footer a {
    color: var(--color-white);
}

footer a:hover {
    color: var(--color-yellow);
}

.declare {
    background: #05484a;
    padding: 8px 0;
    color: var(--color-white);
    font-size: 0.9em;
}

#gotop {
    position: fixed;
    right: 20px;
    bottom: 30px;
    font-size: 2.5em;
    border-radius: 3.125rem;
    transition-duration: 300ms;
    transition-property: all;
    transition-timing-function: cubic-bezier(0.7, 1, 0.7, 1);
    z-index: 1000;
    color: var(--color-yellow);
    border: 3px solid rgb(255 255 255 / 40%);
}

#gotop .fas {
    padding-right: 5px;
    font-weight: 700;
}

#gotop:hover {
    background: var(--color-white);
    color: var(--main-bg-color);
    border: 3px solid rgb(255 255 255 / 60%);
}

@media (min-width: 992px) and (max-width: 1199px) {
    header .header-item {
        height: 350px;
    }

    ul#black_img {
        margin-top: -100px;
    }

    ul#black_img li .desc {
        margin: 18% auto;
        font-size: 1.6em;
    }
}

@media (min-width: 768px) and (max-width: 992px) {
    header .header-item {
        height: 350px;
    }

    ul#black_img {
        margin-top: -80px;
    }

    ul#black_img li .desc {
        margin: 15% auto;
        font-size: 1.2em;
    }
}

@media (max-width: 768px) {
    nav.navbar .nav-item a {
        padding: 12px;
    }

    header .header-item {
        height: 180px;
    }

    ul#black_img {
        margin-top: -50px;
    }

    ul#black_img li .desc {
        margin: 12% auto;
        font-size: 1em;
    }

    main {
        margin: 0 0 40px;
    }

    .title {
        font-size: 1.4em;
        text-align: center;
        margin-bottom: 20px;
    }

    .title::before,
    .title::after {
        width: 20px;
        margin: 5px;
    }

    .form-bg {
        padding: 10px;
    }

    .box-item span {
        float: none;
        display: block;
    }

    .box-item span.i_none,
    .i_none {
        display: none;
    }

    #tag .t1 {
        padding: 10px;
        height: 100%;
        margin-top: 0%;
        clip-path: inset(0%);
    }

    footer .navbar-brand {
        margin-bottom: 20px;
    }
}

@media (max-width: 500px) {
    ul#black_img li .desc {
        margin: 5% auto;
        font-size: 0.8em;
    }

    .btn-group-lg > .btn,
    .btn-lg {
        --bs-btn-padding-x: 0.5rem;
        --bs-btn-font-size: 1rem;
    }

}