﻿body {
}

#header {
    background: rgba(12, 11, 9, 0.45);
    transition: all 0.5s;
    z-index: 990;
    padding: 6px 0;
    display: flex;
    align-items: center;
}

    #header img {
        width: 75%;
        margin: 0 0 0 15px;
    }
/** Desktop Nav **/
.navbar-top {
    display: flex;
    width: 100%;
}

    .navbar-top ul {
        margin: 0;
        padding: 0 5px;
        display: flex;
        list-style: none;
        align-items: center;
    }

    .navbar-top li {
        position: relative;
    }

    .navbar-top a,
    .navbar-top a:focus {
        display: flex;
        align-items: center;
        /*        justify-content: space-between;*/
        padding: 10px 25px 10px 25px;
        color: #fff;
        white-space: nowrap;
        transition: 0.3s;
        font-size: 16px !important;
    }

        .navbar-top a i,
        .navbar-top a:focus i {
            font-size: 12px;
            line-height: 0;
            margin-left: 5px;
        }

        .navbar-top a:hover,
        .navbar-top .active,
        .navbar-top .active:focus,
        .navbar-top li:hover > a {
            color: #fff;
            background: #ffffff36;
        }

    .navbar-top .dropdown ul {
        display: block;
        position: absolute;
        left: 14px;
        top: calc(100% + 30px);
        margin: 0;
        padding: 10px 0;
        z-index: 99;
        opacity: 0;
        visibility: hidden;
        background: #fff;
        box-shadow: 0px 0px 30px rgba(127, 137, 161, 0.25);
        transition: 0.3s;
        border-radius: 4px;
    }

        .navbar-top .dropdown ul li {
            min-width: 200px;
        }

        .navbar-top .dropdown ul a {
            padding: 10px 20px;
            color: #444444;
        }

            .navbar-top .dropdown ul a i {
                font-size: 12px;
            }

    .navbar-top .caret {
        border-top: 4px solid white;
    }

    .navbar-top .dropdown ul a:hover,
    .navbar-top .dropdown ul .active:hover,
    .navbar-top .dropdown ul li:hover > a {
        color: #5e67cd;
    }

    .navbar-top .dropdown:hover > ul {
        opacity: 1;
        top: 100%;
        visibility: visible;
    }

    .navbar-top .dropdown .dropdown ul {
        top: 0;
        left: calc(100% - 30px);
        visibility: hidden;
    }

    .navbar-top .dropdown .dropdown:hover > ul {
        opacity: 1;
        top: 0;
        left: 100%;
        visibility: visible;
    }

.dropdown:nth-child(-n+2) .mega-dropdown-menu {
    display: flex;
    align-items: flex-start;
}
/*大型選單*/
.mega-dropdown-menu .mega-dropdown-header {
    color: #7b83e5;
    font-size: 16.5px;
    font-weight: 500;
    line-height: 30px;
    border-bottom: 2.5px solid #7b83e580; /*#51c6df*/
    margin: 0 6px;
}

    .mega-dropdown-menu .mega-dropdown-header .title-icon::before {
        font-family: "bootstrap-icons";
        transform: translate(-50%, -50%);
        margin: 0 6px 0 16px;
        font-size: 14.5px;
        font-weight: 400;
    }

.mega-dropdown-menu div .title-icon::before {
    content: '\F625';
}

.dropdown:nth-child(-n+2) .mega-dropdown-menu div:nth-child(1) .title-icon::before {
    content: '\F7E0';
}

.dropdown:nth-child(-n+2) .mega-dropdown-menu div:nth-child(2) .title-icon::before {
    content: '\F8EF';
}

.dropdown:nth-child(-n+2) .mega-dropdown-menu div:nth-child(3) .title-icon::before {
    content: '\F87D';
}

.dropdown:nth-child(-n+2) .mega-dropdown-menu div:nth-child(4) .title-icon::before {
    content: '\F775';
}

.dropdown:nth-child(-n+2) .mega-dropdown-menu div:nth-child(5) .title-icon::before {
    content: '\F667';
}

.dropdown:nth-child(-n+2) .mega-dropdown-menu div:nth-child(6) .title-icon::before {
    content: '\F5B2';
}

.dropdown:nth-child(-n+2) .mega-dropdown-menu div:nth-child(7) .title-icon::before {
    content: '\F5B2';
}

.dropdown:nth-child(-n+2) .mega-dropdown-menu div:nth-child(8) .title-icon::before {
    content: '\F8D7';
}

@media (max-width: 1366px) {
    .navbar-top .dropdown .dropdown ul {
        left: -90%;
    }

    .navbar-top .dropdown .dropdown:hover > ul {
        left: -100%;
    }
}

/** Mobile Nav **/
.mobile-nav-top-toggle {
    color: #fff;
    font-size: 28px;
    cursor: pointer;
    display: none;
    line-height: 0;
    transition: 0.5s;
}

@media (max-width: 991px) {
    .mobile-nav-top-toggle {
        display: block;
    }

    .navbar-top {
        display: flex;
        align-items: center;
        flex-direction: row-reverse;
    }

        .navbar-top ul {
            display: none;
        }

    .mobile-nav-top-toggle .mega-dropdown-menu .mega-dropdown-header {
        color: #7b83e5;
        background-color: rgb(171 176 247 / 10%);
        font-size: 16px;
        font-weight: 500;
        line-height: 30px;
        border-bottom: 0;
        margin: 0 12px;
        padding: 0 8px;
    }
}

@media (max-width: 1920px) {
    .navbar-top-mobile .bi-x {
        display: block;
    }

    .navbar-top-mobile .mega-dropdown-menu .mega-dropdown-header {
        color: #7b83e5;
        background-color: rgb(171 176 247 / 10%);
        font-size: 16px;
        font-weight: 500;
        line-height: 30px;
        border-bottom: 0;
        margin: 0 12px;
        padding: 0 8px;
    }
}

.navbar-top-mobile {
    position: fixed;
    overflow: hidden;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    background: rgb(38 47 72 / 90%);
    transition: 0.3s;
    z-index: 999;
}

    .navbar-top-mobile .nav-notification {
        display: none;
    }

    .navbar-top-mobile .mobile-nav-top-toggle {
        position: absolute;
        top: 15px;
        right: 15px;
    }

    .navbar-top-mobile ul {
        display: block;
        position: absolute;
        top: 55px;
        right: 15px;
        bottom: 15px;
        left: 15px;
        padding: 10px 0;
        border-radius: 6px;
        background-color: #fff;
        overflow-y: auto;
        transition: 0.3s;
    }

    .navbar-top-mobile a,
    .navbar-top-mobile a:focus {
        padding: 10px 20px;
        font-size: 15px;
        color: #1a1814;
    }

        .navbar-top-mobile a:hover,
        .navbar-top-mobile .active,
        .navbar-top-mobile li:hover > a {
            color: #5e67cd;
        }

    .navbar-top-mobile .getstarted,
    .navbar-top-mobile .getstarted:focus {
        margin: 15px;
    }

    .navbar-top-mobile .dropdown ul,
    .navbar-top-mobile .dropdown .mega-dropdown-menu {
        position: static;
        display: none;
        margin: 10px 20px;
        padding: 10px 0;
        z-index: 99;
        opacity: 1;
        visibility: visible;
        background: #fff;
        box-shadow: 0px 0px 30px rgba(127, 137, 161, 0.25);
    }

        .navbar-top-mobile .dropdown ul li {
            min-width: 200px;
        }

        .navbar-top-mobile .dropdown ul a {
            padding: 10px 20px;
        }

            .navbar-top-mobile .dropdown ul a i {
                font-size: 12px;
            }

            .navbar-top-mobile .dropdown ul a:hover,
            .navbar-top-mobile .dropdown ul .active:hover,
            .navbar-top-mobile .dropdown ul li:hover > a {
                color: #5e67cd;
                background: aliceblue;
            }

    .navbar-top-mobile .dropdown > .dropdown-active {
        display: block;
    }

    .navbar-top-mobile ul .dropdown a .caret {
        margin-left: auto !important;
        border-top: 4px solid #000 !important;
    }

.mr-1 {
    margin-right: 0.5rem;
}

.ml-auto {
    margin-left: auto;
}

.ml-1 {
    margin-left: 0.5rem;
}

.d-inline-block {
    display: inline-block;
}
/**過濾舊版*/
#banner {
    margin-top: 0 !important;
}

#top-nav .nav-notification > li > a {
    color: #e9e9e9 !important;
}

.modal-dialog-centered {
    -ms-flex-align: center;
    align-items: center;
    display: -ms-flexbox;
    display: flex;
    min-height: calc(100% - 1rem);
}

#qrcode {
    padding: 1.5rem;
    margin: 2.5rem 0;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
