nav.site-nav .nav-link {
    color: #fff;
    transition: all 0.3s;
    background-color: #213d86;
}

nav.site-nav {
    display: flex;
    justify-content: center;
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 1020;
    padding: 0;
    width: 100%;
    left: 0;
    background-color: #213d86;
}

nav.site-nav a.nav-link {
    height: 70px;
    line-height: 70px;
    text-align: center;
    font-size: 20px;
    position: relative;
    display: inline-block;
    padding: 0 2rem;
}

nav.site-nav a.nav-link.twphone {
    background-color: #ebde37;
    color: #000000;
    font-weight: bold;
}

nav.site-nav a.nav-link.twphone::after {
    display: none;
}

nav.site-nav a.nav-link:not(:first-child):after {
    content: "";
    display: block;
    height: 40%;
    width: 1px;
    background-color: rgba(255, 255, 255, 0.5);
    position: absolute;
    left: -1px;
    top: 30%;
}

nav.site-nav .nav-link:hover,
nav.site-nav .nav-link:focus {
    background-color: #0084FF;
    color: #fff;
    font-weight: bold;
}

nav a.nav-link:hover:after {
    display: none;
}

nav.site-nav .site-menu {
    display: flex;
    justify-content: center;
}

.top-triangle {
    position: absolute;
    z-index: 2;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 20px 0 0 800px;
    border-color: transparent transparent transparent #ebde37;
    top: -20px;
    left: 0;
}

.bottom-triangle {
    position: absolute;
    z-index: 2;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 800px 20px 0;
    border-color: transparent #ebde37 transparent transparent;
    bottom: -20px;
    right: 0;
}

nav.site-nav #toggler-icon {
    display: none;
    width: 2rem;
    height: 2rem;
    margin: 1rem;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><g fill="%23ffffff"><path d="M0 80c0-8.8 7.2-16 16-16l416 0c8.8 0 16 7.2 16 16s-7.2 16-16 16L16 96C7.2 96 0 88.8 0 80zM0 240c0-8.8 7.2-16 16-16l416 0c8.8 0 16 7.2 16 16s-7.2 16-16 16L16 256c-8.8 0-16-7.2-16-16zM448 400c0 8.8-7.2 16-16 16L16 416c-8.8 0-16-7.2-16-16s7.2-16 16-16l416 0c8.8 0 16 7.2 16 16z"/></g></svg>');
    ;
}

@media only screen and (max-width: 1024px) {
    nav.site-nav a {
        height: 70px;
        line-height: 70px;
    }
}

@media only screen and (min-width: 769px) and (max-width:1024px) {
    nav.site-nav a.nav-link {
        font-size: 17px;
    }
}


@media only screen and (max-width: 768px) {

    .top-triangle,
    .bottom-triangle {
        display: none;

    }

    nav.site-nav {
        flex-direction: column;
        align-items: flex-end;
    }

    nav.site-nav #toggler-icon {
        display: flex;
    }

    nav.site-nav {
        width: 100%;
        position: fixed;
        top: 0;
        z-index: 2000;
        height: 70px;
        justify-content: center;
    }

    nav.site-nav .site-menu {
        transition: right 0.2s;
        flex-direction: column;
        width: 50%;
        justify-content: flex-start;
        align-items: flex-start;
        position: fixed;
        right: 0;
        top: 70px;
        min-height: calc(100vh - 70px);
        background-color: #142247;
        right: -50%;
        box-shadow: -5px 1px 5px 0 rgba(0,0,0,0.5) ;
    }

    nav.site-nav .site-menu.navSHOW {
        right: 0;
    }

    .top-triangle {
        border-width: 0;
    }

    nav.site-nav .site-menu.navSHOW+#toggler-icon {
        background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><g fill="%23ffffff"><path d="M324.5 411.1c6.2 6.2 16.4 6.2 22.6 0s6.2-16.4 0-22.6L214.6 256 347.1 123.5c6.2-6.2 6.2-16.4 0-22.6s-16.4-6.2-22.6 0L192 233.4 59.6 100.9c-6.2-6.2-16.4-6.2-22.6 0s-6.2 16.4 0 22.6L169.4 256 36.9 388.5c-6.2 6.2-6.2 16.4 0 22.6s16.4 6.2 22.6 0L192 278.6 324.5 411.1z"/></g></svg>');;
    }
    .bottom-triangle {
        border-width: 0;
    }

    nav.site-nav .site-menu .nav-link {
        height: auto;
        line-height: 100%;
        padding: 20px 5px;
        background-color: #142247;
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    }
    nav.site-nav .site-menu a.nav-link:not(:first-child):after{
        display: none;
    }
    nav.site-nav .site-menu .nav-link:hover,
    nav.site-nav .site-menu .nav-link:focus {
        background-color: #000;
        color: #fff;
        font-weight: normal;
    }

}

.overLayer {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    min-height: 100vh;
    z-index: 999;
    display: none;
}