html {
    /*
    overflow-x: hidden;
    */
}

body {
    font-family: 'Microsoft JhengHei', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    background: #f1f1f1;
    font-size: 1rem;
    color: #3d3d3d;
}

h1,
h2,
h3 {
    font-family: 'Microsoft YaHei', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    color: inherit;
}

h4,
h5,
h6 {
    font-family: inherit;
    color: inherit;
}

h1 {
    font-size: 28px;
    line-height: 1.4;
    margin-top: 0;
}

h2 {
    font-size: 21px;
    line-height: 1.4;
    margin-top: 0;
}

h3 {
    font-size: 18px;
}

a {
    color: #af7558;
}

a:hover {
    color: #d12420;
    text-decoration: none;
}

.a-text-white a {
    color: white !important;
}

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


#book-tab {}

#book-tab .nav-item {
    flex-basis: auto;
}

#book-tab .nav-link {
    transition: .2s;
}

.nav-pills .nav-link.active,
.nav-pills .show>.nav-link {
    background-color: #28a745 !important;
}

.nav-pills .nav-link.active p,
.nav-pills .show>.nav-link {
    background-color: #28a745 !important;
    color: #fff !important;
    transition: .2s;
}

.nav-pills .nav-link:hover {
    background-color: #28a7457d;
    transition: .2s;
}

/*custmiz table*/
.table-booking td.enabled {
    cursor: pointer;
    transition: .2s;
}

.table-booking td.enabled.active {
    background-color: #28a745 !important;
    color: #fff !important;
    transition: .2s;
}

.table-booking td.enabled:hover {
    background-color: #28a7457d;
    transition: .2s;
}

.table-booking.exhibit td {
    cursor: unset;
}

.table-booking.exhibit td:hover,
.table-booking.exhibit td.active {
    background-color: transparent;
}

.table-booking.exhibit td.rented {
    background-color: #6c757d;
    color: #fff;
    font-size: .9rem;
}

.table-booking.exhibit td.irented {
    background-color: #28a745;
    color: #fff;
    font-size: .9rem;
}

.table-booking td.disabled {
    color: #ccc;
    pointer-events: none;

}

/*table border size*/
.table-border-9b9b9b td,
.table-border-9b9b9b th {
    border: .25rem solid #9b9b9b !important;
}

.table-border-sm-9b9b9b td,
.table-border-sm-9b9b9b th {
    border: .1rem solid #9b9b9b !important;
}

/*table box size*/
.table-xs td,
.table-xs th {
    padding: .3rem .15rem;
}

.table-xxs td,
.table-xxs th {
    padding: .05rem;
}

/*timebox*/

.timebox {
    margin-bottom: 2.5rem;
}

.timebox .timeoc {
    position: relative;
}

.timebox .timeoc:not(:last-child) {
    border-top: 2px solid #9b9b9b;
    /*border-right: 2px solid #666;*/
    border-bottom: 2px solid #9b9b9b;
    border-left: 2px solid #9b9b9b;
    width: 100%;
    padding-top: 1rem;
}

.timebox .timeoc:last-child {
    border-top: 2px solid #9b9b9b;
    border-right: 2px solid #9b9b9b;
    border-bottom: 2px solid #9b9b9b;
    width: 0;
}

@media only screen and (max-width: 575.98px) {
    .timebox .timeoc:not(:last-child) {
        border-top: 1px solid #9b9b9b;
        /*border-right: 2px solid #666;*/
        border-bottom: 1px solid #9b9b9b;
        border-left: 1px solid #9b9b9b;
        width: 100%;
        padding-top: 1rem;
    }

    .timebox .timeoc:last-child {
        border-top: 1px solid #9b9b9b;
        border-right: 1px solid #9b9b9b;
        border-bottom: 1px solid #9b9b9b;
        width: 0;
    }
}

.timebox .timeoc span {
    position: absolute;
    bottom: -1.5rem;
    left: -1px;
    /* 補上 ".timeoc" 的borderleft 但要扣掉1/2因為border只有一邊 */
    transform: translate(-50%, 0);
    /* 讓切線維持在號碼的正中間 */
}

.timebox .timeoc:last-child span {
    left: 0;
}

.timebox .timeoc.rented {
    background-color: #888;
}

.timebox .timeoc.irented {
    background-color: #28a745;
}

/*bg*/
.bg-ffffffba {
    background-color: #ffffffba;
}

.bg-0000008f {
    background-color: #0000008f;
}

.bg-ffffff85 {
    background-color: #ffffff85;
}

.bg-ffffff80 {
    background-color: #ffffff80;
}

.bg-ffc24d {
    background-color: #ffc24d;
}

.line-height-120 {
    line-height: 120%;
}

/*font*/
.font-sm {
    font-size: .9rem;
    line-height: 110%;
}

.font-xs {
    font-size: .7rem;
    line-height: 100%;
}

.font-16 {
    font-size: 16px;
}

@media only screen and (max-width: 575.98px) {
    .font-rwd {
        font-size: .8rem;
    }

    .card-box {
        padding: 10px;
    }
}

.py-05 {
    padding-bottom: .125rem;
    padding-top: .125rem;
}

.py-025 {
    padding-bottom: .0625rem;
    padding-top: .0625rem;
}

/*position*/
.rbl-0 {
    right: 0;
    bottom: 0;
    left: 0;
}

.tab-content {
    box-shadow: none !important;
    color: #3d3d3d;
}


.mobile-lh-120 {
    line-height: 1.5;
}

@media only screen and (max-width: 575.98px) {
    .mobile-lh-120 {
        line-height: 1.2;
    }

    .schedule-table {
        font-size: 14px !important;

    }

    .schedule-table th,
    .schedule-table td {
        padding: 2px 1px;
    }
}

/* fancybox */
.fancybox-skin {
    background: #fff;
}

/* parsley-error */

.parsley-error.custom-select:focus {
    box-shadow: 0 0 0 .2rem rgba(239, 69, 84, .25);
}

.parsley-error .modal {
    display: block;
}

.parsley-error input[type="checkbox"]::after,
.parsley-error .checkbox input[type="checkbox"]::after,
.parsley-error .checkbox-inline input[type="checkbox"]::after {
    border: 2px solid #ef4554 !important;
}

/* checkbox */
input[type="checkbox"]:checked::after,
.checkbox input[type="checkbox"]:checked::after,
.checkbox-inline input[type="checkbox"]:checked::after {
    background-color: #676767;
    border-color: #676767;
}

.pe-auto {
    pointer-events: auto;
}