* {
    box-sizing: border-box;
    /* border: 1px solid ; */
}

body {
    background-color: #F4F4F4;
    font-size: 14px;
    position: relative;
}

header.mainheader {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
}

nav.navbar.second {
    border: none !important;
    transition: all 1s ease;
    flex-basis: 100%;
    -webkit-flex-basis: 100%;
    order: 2;
}


/*--/navbar--*/

.navbar {
    /*padding: 0em 2em;*/
    border-bottom: 1px solid rgba(243, 242, 242, 0.41);
    /* background: transparent !important;*/
    flex-basis: 100%;
    -webkit-flex-basis: 100%
}

a.navbar-brand img {
    width: 70%;
}


/*--logo--*/

h1 a.navbar-brand {
    font-size: 0.8em;
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 0px;
    color: #fff;
}

.navbar-light .navbar-brand {
    color: #fff;
    font-family: 'Open Sans', sans-serif;
}

.logo i {
    color: #03cce6;
    text-shadow: none;
}


/*--logo--*/

a.navbar-b li.nav-item {
    margin: 0 1px;
}

.navbar-light .navbar-nav .nav-link {
    padding: 0.7em 2em;
    color: #b3853e;
    background: transparent;
    font-size: 1.1em;
    letter-spacing: 1px;
    font-weight: 500;
}

.navbar-light .navbar-nav .show>.nav-link,
.navbar-light .navbar-nav .active>.nav-link,
.navbar-light .navbar-nav .nav-link.show,
.navbar-light .navbar-nav .nav-link.active,
.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link:focus {
    background: transparent;
    /* border-bottom: 2px solid #004F7B;  */
    color: #0072b2;
}

.dropdown-item {
    padding: 0.5em 1.5rem;
    font-size: 0.9em;
    margin: 0;
}

.dropdown-menu {
    margin: 0;
    padding: 0;
}

.dropdown-menu.second {
    min-width: 9rem !important;
}

.navbar-light .navbar-brand:hover,
.navbar-light .navbar-brand:focus {
    color: #fff;
}

a.nav-link.request {
    padding: 0em 1.2em;
    color: rgba(104, 101, 84, 1);
    background: transparent;
    /*  font-size: 0.9em;*/
    letter-spacing: 1px;
    font-weight: 500;
}

a.nav-link.request:hover {
    color: rgba(104, 101, 84, .7);
}

.dropdown-toggle::after {
    width: 0;
    height: 0;
    margin-left: 0;
    content: "";
    border-top: 0.3em solid;
    border-right: 0.3em solid transparent;
    border: 0px;
}

li.nav-item.active {
    color: #03cce6;
}

.dropdown-item:hover,
.dropdown-item:focus {
    color: #686554;
    text-decoration: none;
    background-color: rgba(235, 227, 203, 0.6);
}

nav.navbar.second {
    border: none !important;
    transition: all 1s ease;
    background: transparent !important;
    background: rgba(256, 256, 256, 0.8)!important;
    border-bottom: 1px solid rgba(243, 242, 242, 0.41)!important;
}


}
a.nav-item.nav-link.sec {
    padding: 0.3em 1.7em;
    color: #686554;
    font-size: 1.1em;
    letter-spacing: 1px;
    font-weight: 600 !important;
}
a.nav-item.nav-link.sec:hover {
    border: 2px solid #004F7B
}
a.pagescrolldisplay {
    visibility: hidden;
    transition: all 0s ease;
}
nav.navbar.shrink.pagescrollfix a.pagescrolldisplay {
    visibility: visible;
    transition: all 0.5s ease;
    color: #000000;
}
nav.navbar.shrink.pagescrollfix {
    width: 100%;
    < !--height: 65px;
    -->box-shadow: 0 1px 0 0 #dadada;
    position: fixed;
    left: 0px;
    transition: all 1.2s ease;
    -webkit-box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    -moz-box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    background: #fff !important;
    z-index: 9;
}
a.navbar-brand.pagescrolldisplay i {
    font-size: 2em;
    color: #333;
}
nav.navbar.shrink .navbar-brand img {
    < !--height: 50px;
    width: 120px;
    -->transition: all 1s ease;
}
nav.navbar.shrink a {
    < !--font-size: 14px;
    -->transition: all 1s ease;
}
nav.navbar.shrink .navbar-toggler {
    transition: all 1.5s ease;
}
.bg-transparent {
    background: transparent;
}
.top-info {
    position: absolute;
    padding: 0 43px 0 0;
    right: 75px;
    top: 20px;
}
.top-info ul {
    padding: 0;
    margin-top: 0;
    margin-bottom: 0;
    list-style: disc;
    padding-left: 1em;
}
.langPadding {
    padding-top: 15px;
}
.top-info ul li {
    list-style: none;
    display: inline-block;
    color: #686554;
    letter-spacing: 1px;
    vertical-align: top;
    margin-top: 0.4em;
    float: left;
    list-style: none;
    padding-left: 0.5em;
}
#logindtpmenu {
    list-style: none;
    display: inline-block;
    color: #686554;
    letter-spacing: 1px;
    vertical-align: top;
    margin-top: 0.4em;
    float: left;
    list-style: none;
    padding-left: 0.5em;
    padding-top: 0;
}
.py-4 {
    z-index: 1;
    position: relative;
    top: -364px;
}
.btn {
    width: 200px;
}
.btn-fg {
    font-size: 12px;
    text-decoration: none;
}
.btn-sign {
    padding-left: 150px;
}
.btn-cancel {
    background: none;
    color: #828282;
    border: solid 0.5px #bbbaba;
}
.btn-sign-ins {
    padding: 0;
    margin: 25px 0 auto;
}
.btn-light {
    background: none;
    border: 1px solid #f4f4f4;
    top: -17px;
    position: absolute;
    right: -400px;
    font-size: 14px;
    margin-top: 3px;
}
.collapsing {
    transition: none;
}
.show {
    text-align: center;
}
.btn-primary {
    background-color: #0072b2;
    border: 1px solid #0072b2;
}
.card {
    border-top: 4px solid #004F7B;
    box-shadow: 0 3px 3px 0 rgba(26, 19, 17, 0.08);
    background: rgba(255, 255, 255, 0.68);
}
.card-header {
    background-color: transparent;
    border-bottom: none;
    text-align: center;
    font-size: 26px;
    color: #004f7b;
    letter-spacing: 0.26px;
    margin: 36px 25px 0
}
.bg {
    height: 387px;
    background-image: url("../images/customer/bg.png");
    /* Center and scale the image nicely */
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}
.row {
    margin: 0;
}
.form-group {
    margin-top: 30px;
}
.username {
    margin-left: -123px;
    padding-top: 9px;
    position: absolute;
}
.username-1 {
    margin-left: -123px;
    padding-top: 9px;
    position: absolute;
    color: #000;
}
.footer {
    margin-top: 1px;
}
#desktopHeader {
    display: flex;
}
#mobileHeader {
    display: none;
}
#spinnercontainer {
    position: absolute;
    z-index: 999;
    left: 50%;
    top: 340px;
}

/* -----------指示頁----------- */
.ins_text {
    letter-spacing: 0.5px;
    color: #535453;
    background: #fff;
    padding: 20px;
    line-height: 1.5;
    max-height: 290px;
    min-height: 200px;
    overflow: auto;
}

/* --------footer--------- */
footer {
    width: 100%;
    box-sizing: border-box;
    height: 180px;
    position: absolute;
    bottom: 0;
}
.line {
    height: 4px;
    background-color: #CFB06D;
    margin-bottom: 1px;
}
#end_nav {
    height: 45px;
}
#end_nav ul {
    width: 500px;
    margin-left: auto;
    margin-right: auto;
    list-style: none;
}
#end_nav ul li {
    float: left;
    color: #b3853e;
    margin-right: 12%;
}
#end_nav ul li a {
    color: #b3853e;
    font-size: 16px;
    text-decoration: none;
    ;
}
#end_nav ul li a:hover {
    color: #1376b5;
}
.copyright {
    text-align: center;
    border-top: solid 1px #C9B159;
    color: #b3853e;
    line-height: 30px;
    padding-top: 20px;
    padding-bottom: 20px;
}
.copyright a {
    color: #898989;
    text-decoration: none;
}
.copyright a:hover {
    color: #1376b5;
}

/* --------投資風格問卷---------- */
.progress {
    height: 8px;
    margin: 0 180px
}
.progress-bar {
    width: 20%;
}
.qs_num {
    text-align: center;
    margin-bottom: 12px;
    color: #b3b3b3;
}
.ques_title {
    text-align: center;
    margin: 24px 0;
    font-size: 16px;
    color: #4b4b4b;
}

/* ------------評估結果----------- */
.evalu_btn {
    border-radius: 5px;
    padding: 4px 12px;
    font-size: 12px;
    background-color: #ffc107;
    border: 1px solid #ffc107;
    color: #fff;
    display: inline-block;
    text-align: center
}
.evalu_img img {
    width: 75px;
}

/* ----------詳細分析--------------- */
.chart_1 {
    display: inline-flex;
}
.chart_1 img {
    width: 200px;
    margin: 0 30px;
}
.chart_text {
    margin-top: 0;
    padding: 35px 15px;
}
.chart_title {
    font-size: 14px;
    padding: 4px 45px;
    background-color: #8fc9ea;
    color: #ffffff;
    border-radius: 3px;
}
.total {
    justify-content: flex-end;
    display: flex;
}
.btn-evalu-1 {
    margin: 0 24px 0 0
}
.inpbg {
    background-color: #ecf7ff;
}
input[type=checkbox] {
    /* One and Half-sized Checkboxes */
    -ms-transform: scale(1.5);

    /* IE */
    -moz-transform: scale(1.5);

    /* FF */
    -webkit-transform: scale(1.5);

    /* Safari and Chrome */
    -o-transform: scale(1.5);
    transform: scale(1.5);
    /* Opera */
    padding: 7px;
}
.x-small {
    font-size: x-small;
}
@media (max-width: 800px) {
    .form-check-inline {
        margin-left: 0 !important;
        margin-right: 10px !important;
    }

    a.navbar-brand img {
        width: 100% !important;
    }
}
@media screen and (max-width:1035px) {
    footer {
        margin-top: 50px;
    }
}
@media screen and (max-width: 1024px) {
    .btn-light {
        right: -325px;
    }

    .btn {
        width: 160px;
    }

    .navbarMargin {
        margin-left: 0;
    }

    .top-info ul {
        padding-top: 24px;
        margin-top: 0;
        margin-bottom: 0;
        list-style: disc;
        padding-left: 1em;
    }

    #desktopHeader {
        display: none;
    }

    #mobileHeader {
        display: block;
    }

    footer {
        margin-top: -205px;
    }

    .menuPaddingEng {
        padding: 0 0 0 429px;
    }

    .menuPaddingChi {
        padding: 0 0 0 429px;
    }

    .progress {
        margin: 0 100px;
    }
}
@media screen and (max-width: 768px) {
    .btn-light {
        right: -225px;
    }

    .navbar-brand {
        margin-left: 0;
    }

    .btn {
        width: 144px;
        margin: 8px 2px;
    }

    #desktopHeader {
        display: none;
    }

    #mobileHeader {
        display: block;
    }

    .menuPaddingeng {
        padding: 0 0 0 290px;
    }

    .menuPaddingChi {
        padding: 0 0 0 290px;
    }
}
@media screen and (max-width:415px) {
    #end_nav ul {
        width: auto;
    }

    #end_nav {
        display: none;
    }

    .copyright {
        border: 1px solid #f4f4f4;
    }

    .menuPaddingEng {
        padding: 0 0 0 90px;
    }

    .menuPaddingChi {
        padding: 0 0 0 119px;
    }
    label.form-check-label {
        padding-left: 8px;
    }
}
@media screen and (max-width: 376px) {
    .btn {
        width: 144px;
        margin: 12px 6px;
    }

    .btn-evalu {
        width: 85px;
        margin: 0;
    }

    .btn-evalu-1 {
        margin: 0 8px;
    }

    .btn-fg {
        margin-top: 15px;
    }

    .btn-light {
        right: 0;
        position: relative;
        top: 0;
    }

    .btn-sign {
        margin: auto;
        padding: 26px 0;
    }

    .card-body {
        padding: 0.5rem;
    }

    .chart_1 {
        display: block
    }

    .chart_1 img {
        margin: 0 20px;
    }

    .copyright {
        border: 1px solid #f4f4f4;
    }

    .evalu_form {
        max-height: 200px;
    }

    .menuPaddingEng {
        padding: 0 0 0 68px;
    }

    .menuPaddingChi {
        padding: 0 0 0 102px;
    }

    .mr-n {
        display: none;
    }

    .progress {
        margin: 0 30px;
    }

    .row {
        margin: auto;
        padding: 0;
    }

    .total {
        justify-content: flex-start;
    }

    .username-1 {
        margin-left: -45px;
    }

    .text-left {
        text-align: center;
    }

    #desktopHeader {
        display: none;
    }

    #end_nav ul {
        width: auto;
    }

    #end_nav {
        display: none;
    }

    #mobileHeader {
        display: block;
    }
}
@media screen and (max-width:320px) {
    #end_nav ul {
        width: auto;
    }

    #end_nav {
        display: none;
    }

    .copyright {
        border: 1px solid #f4f4f4;
    }

    .menuPaddingEng {
        padding: 0 0 0 33px;
    }

    .menuPaddingChi {
        padding: 0 0 0 73px;
    }
}
@media screen and (max-width:280px) {
    .card-header {
        margin: 36px 10px 0;
        font-size: 20px;
        letter-spacing: 0px;
    }

    .btn {
        width: 144px;
        margin: 4px 2px;
    }
}