:root {
    --flip-ani-time: 0.5s;
    --scroll-bar-color: #d1d1d1;
    --primary-color: #3F4B69;
    --stress-color: #C00000;
}

* {
    font-family: 'Microsoft JhengHei';
}

html {
    overflow: overlay;
}

html,
body {
    width: 100%;
    height: auto;
}

body {
    overflow-x: hidden;
}

h1 {
    margin-bottom: 0px !important;
    font-weight: bolder;
    color: #002060;
}


/* 圖片輪播 */

.carousel-item {
    width: 100%;
    height: 450px;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/* 搜尋框 */

.search-bar {
    position: absolute;
    top: 0;
    left: 15%;
    right: 15%;
    margin-left: auto;
    margin-right: auto;
    z-index: 1;
    height: 100%;
    width: 70%;
}

#select_box {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    border-style: solid;
    border-radius: 5px;
    border-color: #ffffffe9;
    background-color: #ffffffe9;
    padding: 0.7rem;
}


/* 服務項目 */

[class^="service_item"] {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 13vw;
    margin: 6px;
    font-size: 2rem;
    color: white;
    text-shadow: 1px 2px 2px black;
    background-size: cover;
    background-position: center;
    border-radius: 3px;
    cursor: pointer;
}

[class^="service_item"]:hover {
    box-shadow: 0 0 8px 0px black;
}

@media (max-width: 767px) {
    [class^="service_item"] {
        height: 25vw;
    }
}

.service_item_activity {
    background-image: url("/static/project/img/service_item/activity.jpg");
}

.service_item_classcial {
    background-image: url("/static/project/img/service_item/classcial.jpg");
}

.service_item_day {
    background-image: url("/static/project/img/service_item/day.jpg");
}

.service_item_marry {
    background-image: url("/static/project/img/service_item/marry.jpg");
}

.service_item_party {
    background-image: url("/static/project/img/service_item/party.jpg");
}


/*card翻轉*/

@-webkit-keyframes flipOutYtest {
    from {
        -webkit-transform: perspective(1400px);
        transform: perspective(1400px);
    }
    40% {
        -webkit-transform: perspective(1400px) rotate3d(0, 1, 0, 60deg);
        transform: perspective(1400px) rotate3d(0, 1, 0, 60deg);
        opacity: 1;
    }
    50% {
        -webkit-transform: perspective(1400px) rotate3d(0, 1, 0, 90deg);
        transform: perspective(1400px) rotate3d(0, 1, 0, 90deg);
        opacity: 0;
    }
    to {
        -webkit-transform: perspective(1400px) rotate3d(0, 1, 0, 180deg);
        transform: perspective(1400px) rotate3d(0, 1, 0, 180deg);
        opacity: 0;
    }
}

.card_flipout {
    -webkit-animation: flipOutYtest var(--flip-ani-time) linear;
    animation: flipOutYtest var(--flip-ani-time) linear;
    -webkit-animation-fill-mode: both;
    animation-fill-mode: both;
}

@-webkit-keyframes flipInYtest {
    from {
        -webkit-transform: perspective(1400px) rotate3d(0, 1, 0, -180deg);
        transform: perspective(1400px) rotate3d(0, 1, 0, -180deg);
        opacity: 0;
    }
    50% {
        -webkit-transform: perspective(1400px) rotate3d(0, 1, 0, -90deg);
        transform: perspective(1400px) rotate3d(0, 1, 0, -90deg);
        opacity: 0;
    }
    60% {
        -webkit-transform: perspective(1400px) rotate3d(0, 1, 0, -60deg);
        transform: perspective(1400px) rotate3d(0, 1, 0, -60deg);
        opacity: 1;
    }
    to {
        -webkit-transform: perspective(1400px);
        transform: perspective(1400px);
        opacity: 1;
    }
}

.card_flipin {
    -webkit-animation: flipInYtest var(--flip-ani-time) linear;
    animation: flipInYtest var(--flip-ani-time) linear;
    -webkit-animation-fill-mode: both;
    animation-fill-mode: both;
}

.well {
    width: 1000px;
    min-height: 400px;
    /*  margin: auto;
    min-width: 1250px;
    column-width: 250px;
    -webkit-column-width: 250px;
    -webkit-column-gap: 0px;
    column-gap: 0px;*/
    margin-left: auto;
    margin-right: auto;
    height: auto;
}

.well .well-item {
    position: relative;
    float: left;
    width: 23%;
    min-height: 250px;
    margin: 1%;
}

.well .well-item img {
    width: 100%;
    min-height: 250px;
}

.correct {
    position: absolute;
    width: 100%;
    border-color: #c8c5c5;
    border-style: solid;
    /* border-width: 1px; */
}

.opposite {
    min-height: 300px;
    width: 100%;
    border-color: #c8c5c5;
    /* border-width: 1px; */
    border-top: solid;
    border-left: solid;
    border-right: solid;
}

.opposite div {
    min-height: 250px;
    width: 100%;
}

.opposite-content {
    display: table;
    width: 100%;
    min-height: 250px;
    background-color: #ffffff;
}

.opposite-content-text {
    display: table-cell;
    vertical-align: middle;
    text-align: center;
    color: #000000;
    font-weight: bold;
    font-size: 24px;
    padding-top: 10px;
    padding-right: 10px;
}

h5 {
    color: #075985;
    font-weight: bold;
}

.number {
    text-align: right;
    font-size: 12px;
    font-weight: bold;
}

.card_content {
    font-size: 12px;
}

.card_remark {
    color: gray;
    font-size: 11px;
    height: 100%;
}


/* btn style */

.btn-info {
    font-weight: 700;
    background: #23bbd3 !important;
    border-color: #23bbd3;
}

.btn-info:hover {
    background: #2cc8e0 !important;
    border-color: #2cc8e0
}

.btn-normal {
    background-color: #0D8599;
    color: white;
}

.btn-normal:hover {
    background-color: #0F9DB5;
    color: white;
}

.btn_register {
    background-color: #0D8599;
    border-color: #0D8599;
    color: #ffffff;
}

.btn_register:hover {
    background-color: #119fb8;
    border-color: #119fb8;
}

.btn_register:disabled {
    background-color: gray;
    border-color: gray;
    color: #ffffff;
}

.btn_register:disabled:hover {
    background-color: gray;
    border-color: gray;
}

.btn-trash {
    background-color: #A6A6A6;
    color: #fff;
}

.btn-phone {
    background-color: #0FB6CC;
    color: #fff;
}

.btn-comment {
    background-color: #0CA88E;
    color: #fff;
}

.btn-checkout {
    background-color: #f27501;
    color: #fff
}

.btn_search {
    background-color: #0D8599;
    border-color: #0D8599;
    color: #ffffff;
}

.btn_search:hover {
    background-color: #115b67;
    border-color: #115b67;
}

.btn_more {
    background-color: #0D8599;
    border-color: #0D8599;
    color: #ffffff;
}

.btn_more:hover {
    background-color: #0e98b1;
}

.btn_line {
    background-color: #00b900;
    color: #ffffff;
}

.btn_line:hover {
    background-color: #36d836;
}

.btn_red {
    background-color: #DC3545;
    color: #fff;
}

.btn_red:hover {
    background-color: rgb(201, 91, 102);
}

.btn_grey {
    background-color: rgb(150, 150, 150);
    color: #fff;
}

.btn_cyan {
    background-color: #038095;
    color: #fff;
}

.btn_grass_green {
    background-color: #3B9774;
    color: #fff;
}

.btn_danger_red {
    background-color: #DC3545;
    color: #fff;
}

.btn_orange {
    background-color: #FA710A;
    color: #fff;
}


/* Tag Color */

.tag {
    color: white;
    font-size: medium;
}

.tag_light_dark_green {
    background-color: #079a13e0;
}

.tag_light_blue {
    background-color: #17a2b8;
}

.newline {
    word-wrap: break-word;
}

.primary-text {
    color: var(--primary-color) !important;
}

.stress-text {
    color: var(--stress-color) !important;
}


/* 自訂複寫datepicker 的樣式 */


/* 日曆的底層樣式 */

.bootstrap-datetimepicker-widget table {
    background-color: #fff !important;
    color: black;
}


/* 當月日期文字顏色 */

.bootstrap-datetimepicker-widget table td {
    color: black !important;
}


/* 非當月日期文字顏色 */

.bootstrap-datetimepicker-widget table td.old,
.bootstrap-datetimepicker-widget table td.new {
    color: black !important;
}


/* 當天日期的標示 */

.bootstrap-datetimepicker-widget table td.today:before {
    border-bottom-color: #ca3534 !important;
}


/* 日期被hover的背景色 */

.bootstrap-datetimepicker-widget table td.day:hover,
.bootstrap-datetimepicker-widget table td.hour:hover,
.bootstrap-datetimepicker-widget table td.minute:hover,
.bootstrap-datetimepicker-widget table td.second:hover {
    background-color: #25bae4 !important;
    color: #fff !important;
    font-weight: bold;
}


/* 被選取日期的樣式 */

.bootstrap-datetimepicker-widget table td.active,
.bootstrap-datetimepicker-widget table td.active:hover {
    background-color: #25bae4 !important;
    color: #fff !important;
    font-weight: bold;
}


/* 非當年月文字顏色 */

.bootstrap-datetimepicker-widget table td span.old {
    color: black !important;
}


/* 年月被hover的背景色 */

.bootstrap-datetimepicker-widget table td span:hover {
    background: #25bae4 !important;
    color: #fff !important;
    font-weight: bold;
}


/* 被選取年月的樣式 */

.bootstrap-datetimepicker-widget table td span.active {
    background-color: #25bae4 !important;
    color: #fff !important;
    font-weight: bold;
}


/* 最上方正中央的年月按鈕 樣式 */

.bootstrap-datetimepicker-widget table thead tr:first-child th {
    background-color: #25bae4;
    color: #fff;
}


/* 最上方正中央的年月按鈕 hover樣式 */

.bootstrap-datetimepicker-widget table thead tr:first-child th:hover {
    background-color: #58d4f7;
    color: #fff;
    font-weight: bold;
}


/* 最上方的前後按鈕 disable樣式 */

.bootstrap-datetimepicker-widget table th.disabled,
.bootstrap-datetimepicker-widget table th.disabled:hover {
    background-color: #fff !important;
    color: #DAECF3 !important;
}


/* disabled年月 */

.bootstrap-datetimepicker-widget table td span.disabled,
.bootstrap-datetimepicker-widget table td span.disabled:hover {
    background-color: #fff !important;
    color: #DAECF3 !important
}


/* disabled日期 */

.bootstrap-datetimepicker-widget table td.disabled,
.bootstrap-datetimepicker-widget table td.disabled:hover {
    background-color: #fff !important;
    color: #DAECF3 !important;
}


/* scroll bar 設定 */

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    border-radius: 2px;
}

::-webkit-scrollbar-thumb {
    background: var(--scroll-bar-color);
    border: 6px solid transparent;
    border-radius: 9px;
    background-clip: content-box;
}

body::-webkit-scrollbar-thumb {
    border-radius: 3px;
    border: 3px solid transparent;
}


/* 手機版 */

@media (max-width:575px) {
    .select_box {
        max-width: 100%;
    }
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    padding-top: 30px;
    height: 0;
    overflow: hidden;
}

.video-container iframe,
.video-container object,
.video-container embed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}


/* 連結手指 */

.cursor-pointer {
    cursor: pointer;
}


/* 字的顏色 */

.blue_text {
    color: rgb(0, 32, 96);
}

.red_text {
    color: rgb(192, 0, 0);
}

.green_text {
    color: rgb(0, 128, 0);
}


/* 浮動 Line 球球 */

.line-flow-icon {
    position: fixed;
    bottom: 10px;
    right: 10px;
    z-index: 9999;
    width: 50px;
    height: auto;
}

.comming_soon_title {
    color: red;
}