/* Master Setting */

/* Background Images */
body {
    padding-top: 80px;
    background-image: url('/static/images/sky.png');
    background-size: cover;
    background-position: center center;
    background-attachment: fixed;
    height: 100%;
}

/* Nav Bar Background Image */
.navbar {
    height: 80px !important;
    width: 100% !important;
    background-size: cover;
    background-attachment: fixed;
    background-image: linear-gradient(rgba(0,0,0,0.5),rgba(0,0,0,0.5)), url('/static/images/hk_view_top_menu.png');
}

/* Nav Bar Height and transparent */
.navbar {
    height: 80px !important;
    width: 100% !important;
    background-color: rgba(0, 0, 0, 0.5);
}

/* Nav Bar Toggler and Icon, change color to warning (rgba 255, 193, 7)*/
.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 193, 7, 0.5)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}
.navbar-toggler {
    margin-right:10px;
    border: 1px solid rgba(255, 193, 7, 0.5);
    box-shadow: none;
}
.navbar-toggler:focus {
    box-shadow: none;
}

/* nav bar Menu Text color */
.nav-link, .nav-link:active {
    color: #DCDCDC;
    font-weight: 500;
    position: relative;
}

/* nav-link underline */
.nav-link:hover {
    color: white;
}
@media(min-width:991px) {
    .nav-link:before{
        content:"";
        position: absolute;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 70%;
        height: 1px;
        background-color: grey;
        visibility: hidden;
        transition: 0.3s ease-in-out;
    }
}
.nav-link:hover::before, .nav-link:active::before{
    width: 70%;
    visibility: visible;
}

/* contact form */
.card {
    background-color: rgba(0, 0, 0, 0.5);
}

/* trade input Tabs Menu Change color */
.container-fluid .nav .nav-link {
    color: #ffc107 !important;
}

.container-fluid .nav .active {
    background: #adb5bd !important;
    border: #adb5bd !important;
    color: #000 !important;
}

/* Chart input Tabs Menu Change color */
.chart_nav .nav .nav-link {
    color: black !important;
}

.chart_nav .nav .active {
    background: #adb5bd !important;
    border: #adb5bd !important;
    color: #000 !important;
}

/* trade account radio button change color */
.custom-radio .form-check-input:checked {
            background-color: #006400;
            border-color: #006400;
        }

/* chart div overscroll */
/* this line not need, keep record only : -ms-scroll-chaining: contain; */
.chart {
    display: flex;
    justify-content: center;
    height: 825px;
    overflow: auto;
    overscroll-behavior: contain;
}
/*if total vertical div height exceed body, will have outer scroll bar.*/
.plotter {
    display: flex;
    justify-content: center;
    height: 795px;
    overflow: auto;
    overscroll-behavior: contain;
}

/* Language Flag */
.lang-menu {
    margin-top: 0px;
    position: relative;
}
.selected-lang {
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    width: 40px;
}
.lang-menu ul {
    margin: 0;
    padding: 0;
    background-color: #fff;
    border: 1px solid #f8f8f8;
    box-shadow: 0px 1px 10px rgba(0, 0, 0, 0.2);
    border-radio: 5px;
    display: none;
    position: absolute;
    top: 40px;
    right: 0;
}
.lang-menu ul li {
    list-style: none;
}
.lang-menu ul li a {
    width: 155px;
    display: block;
    padding 5px 10px;
    text-decoration: none;
}
.lang-menu ul li a:before {
    content: "";
    display: inline-block;
    width: 32px;
    height: 32px;
    margin-right: 10px;
    vertical-align: middle;
}
.lang-menu ul li a:hover {
    background-color: #E7E7E7;
}
.hk:before {
    background-image: url("https://flagsapi.com/HK/flat/32.png");
}
.lang-menu selected-lang ul li a {
}
.en:before {
    background-image: url("https://flagsapi.com/US/flat/32.png");
}
.cn:before {
    background-image: url("https://flagsapi.com/CN/flat/32.png");
}
.tw:before {
    background-image: url("https://flagsapi.com/TW/flat/32.png");
}
.lang-menu:hover ul {
    display: block;
}