@import "../public/hansSetting.less";

html {
    scroll-padding-top: @mobile-menu-height + 0.5rem;
}

@media (min-width: 992px) {
    html {
        scroll-padding-top: @pc-menu-height + 0.5rem;
    }

    .contentStart {
        margin-top: @pc-menu-height !important;
    }

    .content-width {
        width: 70% !important;
        min-width: 991px;
        max-width: 1280px;
        padding: 0 !important;
    }
}
@media (max-width: 991.98px) {
    body {
        font-size: 4vmin;
    }
    h5 {
        margin: 0 !important;
    }
    .iframe-auto {
        iframe {
            width: auto;
            height: auto;
        }
    }
    .ch-title {
        padding-right: 1em;
    }
    .reserve .detail {
        padding: 0 !important;
        .form-title {
            padding-bottom: 0.5rem;
        }
    }
}
.ShareIcon {
    img {
        width: 1.5em;
    }
}

.ShareIcon:hover {
    opacity:0.8;
}

.desktop-logo {
    padding: 0;
    width: 100%;
    height: @pc-menu-height;
    background-color: @deep_bg_color;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 10000;
}

.desktop-logo li{
    display: flex;
    justify-content: center;
    padding: 0.75rem 0 !important;
}

.mobile-logo {
    padding: 0;
    width: 100%;
    height: @mobile-menu-height;
    background-color: @deep_bg_color;
    box-shadow: 0 0 8px black;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 10000;
    .hans-logo {
        padding:0;
        text-decoration: none;
        &:focus {
            text-decoration: none;
        }
        &:before{
            content:'';
            position: fixed;
            background-image: url(/static/img/front/home/hans-logo-nobg.png);
            background-size: 5.5rem 5.5rem;
            width: 5.5rem;
            height: 5.5rem;
            filter: drop-shadow(7px 7px 5px rgba(0, 0, 0, 0.57));
            z-index: 10002;
            background-color: @standard_color;
        }
        font-weight: bolder;
        color: @standard_color;
        line-height: 1.3rem;
        .wording {
            margin-left: 5.5rem;
            padding-left: 1rem;
            width: 100%;
            height: 100%;
            display: flex;
            justify-content: start;
            align-items: center;
            .en-title {
                font-size: 1.3rem;
            }

            .cn-title {
                font-size: 0.8rem;
                letter-spacing: 1px;
            }
        }
    }
}

.mobile-menu-icon {
    position: fixed;
    height: @mobile-menu-height;
    top: 0;
    right: 0;
    z-index: 10000;
}

.mobile-menu {
    position: fixed;
    top: @mobile-menu-height;
    left: 0;
    right: 0;
    background: @deep_support_color;
    border-radius: 0 0 1rem 1rem;
    z-index: 10001;
    filter: drop-shadow(0 0.2rem 0.1rem rgba(0, 0, 0, 0.5));
    a{
        font-size: @mobile-font-size-lg;
        font-weight: 400;
        color: white;
    }
}
.ham-icon {
    color: @standard_color;
    &:hover {
        color: @standard_color;
    }
}
.contentStart{
    margin-top: @mobile-menu-height;
}

.content-width {
    width: 100%;
    padding: 0 15px;
}

.navbar-nav{
    margin-bottom: @mobile-font-size-lg;
    li{
        display: flex;
        justify-content: center;
        padding: @mobile-font-size-lg 0 0 0 !important;
    }
}

.Navbarshow.mask{
    position: fixed;
    top: @mobile-menu-height;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
}

#footer {
    .info_block {
        margin-bottom: 1rem;
        .infoLink {
            margin: 5px 0;

            div {
                border: 1px solid @deep_support_color;
                display: flex;
                justify-content: center;
                align-items: center;
                width: 100%;
                height: 100%;

                span {
                    color: darkgray;
                }
            }
        }
    }
}
.required:before {
    content: '*';
    color: red;
    font-weight: bolder;
}

.center {
    display: flex;
    justify-content:center;
    align-items: center;
    width:100%;
    height:100%;
}

.shadow-bottom {
    box-shadow: #000000b3 0px 8px 33px 9px;
}

.hide {
    display: none;
}

.menuLink:hover {
    color:@standard_color;
}

//預約表單
.reserve{
    &.show{
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        display: flex;
    }
    color: @deep_font_color;
    border: @deep_support_color solid;
    border-width: 5rem 0;
    display: none;
    position: fixed;
    z-index: 10001;
    top: 100vh;
    background-color: @deep_support_color;
    justify-content: center;
    overflow-y: auto;
    .closeBtn {
        position: fixed;
        top: 2.5rem;
        right: 1.5rem;
        img {
            width: 2rem;
        }
    }
    .title{
        color: @standard_color;
        border-left: @title-border-width @standard_color solid;
        padding: 5px 0 5px 15px;
    }
    .detail {
        padding-left: 25px;
        .row {
            padding-top: 1rem;
        }
        span {
            align-items: flex-end;
        }
        textarea {
            resize: none;
        }
        .btnDiv{
            justify-content: space-around;
        }
        input.form-control {
            padding: 0.375rem 0.75rem;
        }
    }
    .errorMsg{
        background-color: white;
        color: @deep_bg_color;
        padding: 0 1rem;
        height: 2rem;
        &:before{
            content: '';
            background: url(/static/img/common/icon/warning.png) no-repeat center bottom;
            display: inline-block;
            width: 20px;
            height: 20px;
            background-size: 20px 20px;
            margin-right: 5px;
            transform: translateY(3px);
        }
    }
}

.desktop-logo {
    ul span {
        font-size: 1rem !important;
    }
    span.list-group-item {
        padding: 0.75rem !important;
    }
    .hans-logo {
        padding-left: 3rem;
        text-decoration: none;
        &:focus {
            text-decoration: none;
        }
        &:before{
            content:'';
            position: fixed;
            background-image: url(/static/img/front/home/hans-logo-nobg.png);
            background-size: 5.5rem 5.5rem;
            width: 5.5rem;
            height: 5.5rem;
            filter: drop-shadow(7px 7px 5px rgba(0, 0, 0, 0.57));
            z-index: 10002;
            background-color: @standard_color;
        }
        font-weight: bolder;
        color: @standard_color;
        line-height: 1.3rem;
        .wording {
            height: 100%;
            display: flex;
            align-items: center;
            justify-content: flex-end;
            width: 17rem;
            .en-title {
                font-size: 1.5rem;
            }

            .cn-title {
                font-size: 1rem;
                letter-spacing: 1px;
            }
        }
    }
}

.disableScroll {
    overflow: hidden;
}

/*圖片陰影*/
.shadow-box {
    filter: drop-shadow(0 0 0.3rem rgba(0, 0, 0, 0.5));
    padding: 10px;
}

body {
    word-break: break-all;
}
.bg-deep-support{
    background-color: @deep_support_color !important;
}

.bg-deep-sup-2{
    background-color: @deep_support_color_2 !important;
}

.loading-mask {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: @loading-zindex;
    background-color: rgba(0,0,0, 0.6);
    &.show {
        display: block;
    }
    img {
        width: 20%;
    }
}
@scroll-btn-size:3rem;
.scrollTop{
    position: fixed;
    right: 1rem;
    bottom: 3rem;
    z-index: 10002;
    div {
        width: @scroll-btn-size;
        height: @scroll-btn-size;
        img {
            width: @scroll-btn-size;
            height: @scroll-btn-size;
            background-color: #0000;
            border-radius: 50%;
            opacity: 50%;
        }
    }
}

@media (max-width: 768px) {
    .scrollTop {
        bottom: 1rem;
        left: 1rem;
        right: auto;
    }
}

/* Chrome, Safari, Edge, Opera */
input[type=number]::-webkit-outer-spin-button,
input[type=number]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Firefox */
input[type=number] {
    -moz-appearance: textfield;
}