:root {
    /* --des_nav_hover: rgb(164, 213, 245); */
    /* --des_nav: rgb(217, 247, 248); */
    --fortuna_gold: #daa520;
    --theme_color: #11a1a1;
    --text_shadow: rgb(150, 150, 150) 0.5px 0.5px 0.8px;
    --font_color: rgb(66, 66, 66);
    --title_color: rgb(47, 47, 47);
}

/**
 * Initialization 
 */

a {
    text-decoration: none;
    background-color: transparent;
}

a:hover {
    cursor: pointer;
}

*,
::after,
::before {
    box-sizing: border-box;
}

nav a {
    text-decoration: none;
    list-style: none;
    color: var(--title_color);
}

ul {
    margin: 0;
}

#des_nav ul,
#mob_nav ul {
    list-style: none;
    padding: 0;
}

hr {
    margin: 50px 5%;
    border: 0;
    height: 1px;
    background-image: linear-gradient(to right, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0));
}

div#context a {
    text-decoration: underline;
}

h1,
h2,
h3,
h4,
h5 {
    margin: auto 0 10px 0;
    text-align: center;
    font-weight: 550;
}

h1 {
    font-size: 2.5em;
}

h2 {
    font-size: 2em;
}

h3 {
    font-size: 1.75em;
}

h4 {
    font-size: 1.5em;
}

/**
 * Default
 */

body {
    min-height: 100vh;
    margin: 0px;
    padding: 0px;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    overflow-y: scroll;
    line-height: 180%;
    font-size: 18px;
    font-family: 'PingFang', 'Pingfang TC', 'Noto sans TC', 'Roboto', 'STHeiti', 'Microsoft JhengHei', sans-serif;
    /* font-family: 'Roboto', 'Noto', sans-serif; */
    /* font-family: PingFang, Pingfang TC, STHeiti, Microsoft JhengHei, Noto sans, Noto sans TC, Roboto, sans-serif; */
    text-align: center;
    color: var(--font_color);
    letter-spacing: 0.5px;
    /* background-color: #f8f8f8; */
    background-color: #f0f0f0;
}

main {
    width: 100%;
    max-width: 1500px;
    margin: 0 auto;
    padding: 2em 3% 0;
    flex-grow: 1;
}

body a:hover {
    color: var(--fortuna_gold) !important;
    transition: 0.2s;
}

.icon_arrow_down {
    display: inline-block;
    width: 0.5em;
    height: 0.5em;
    margin-left: 5px;
    margin-bottom: 4px;
    border-top: 2px solid #fff;
    border-left: 2px solid #fff;
    transform: rotate(-135deg);
    transition: 0.2s ease-out;
}

.page_section {
    padding: 5em 2em;
}

section.page_section:nth-of-type(odd) {
    background-color: white;
}

.description {
    padding: 0 3em;
    margin-bottom: 4em;
    text-align: left;
}

.page_title {
    font-size: 4em;
    font-weight: bold;
    width: fit-content;
    color: rgb(80, 78, 78);
    text-align: center;
    margin: 2em auto 1.5em auto;
}

.page_subtitle {
    width: 100%;
    margin: 1em auto 2em;
    text-align: center;
    font-size: 3em;
    font-weight: bold;
    color: rgb(80, 78, 78);
}

.common_links {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 2em;
    margin-bottom: 6em;
}

.common_links-button {
    padding: 0.1em 1em;
    margin-bottom: 3px;
    background-color: rgb(0, 94, 200);
    border-radius: 20px;
    color: white;
}

.common_links-divider {
    width: 2px;
    height: 1em;
    margin: 0 1.5em;
    background-color: rgb(0, 94, 200);
}

.common_links-hyper {
    padding-bottom: 3px;
    border-bottom: 2px solid transparent;
    background-image: linear-gradient(150deg, rgb(7, 46, 117) 10%, rgb(27, 108, 139) 60%, rgb(7, 46, 117) 90%);
    -webkit-text-fill-color: transparent;
    text-fill-color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
}

.common_links-hyper:hover {
    border-bottom: 2px solid rgb(25, 79, 136);
}

.common_links-hyper i {
    width: 0.45em;
    height: 0.45em;
    transform: rotate(135deg);
    margin-bottom: 2px;
    border-width: 2px;
    border-color: rgb(60, 120, 185);
}

#page_bottom {
    padding: 8em 2em;
}

#page_bottom div {
    margin-bottom: 2em;
    line-height: 180%;
    font-size: 1.4em;
}

.bottom_link {
    padding: 0.3em 1em;
    background-color: rgb(0, 94, 200);
    border-radius: 20px;
    color: white;
}

@media only screen and (max-width: 768px) {
    .page_section {
        padding: 5em 1.5em;
    }
}

@media only screen and (max-width: 576px) {
    h1.page_title {
        font-size: 2.8em;
    }
    h2.page_subtitle {
        font-size: 2.5em;
    }
    .common_links-divider {
        width: 0;
    }
    .common_links {
        flex-direction: column;
    }
    #page_bottom {
        padding: 8em 1em 6em;
    }
    #page_bottom div {
        font-size: 1.2em;
    }
}

/**
 * Header 
 */

header {
    width: 100%;
    top: 0px;
    background: linear-gradient(to right, #f3f3f3, #2e7da1);
    position: sticky;
    z-index: 11;
}

/**
 * Navgation - Mobile
 */

#mob_header {
    display: none;
    align-items: center;
    justify-content: space-between;
    position: relative;
    margin: 0;
    text-align: center;
    border-bottom: 2px solid #ccc;
}

#mob_header .header_trademark {
    height: 80px;
    width: auto;
    /* margin: 0 auto; */
    margin-left: 1.5em;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 1;
}

#mob_header .header_trademark img {
    display: block;
    height: 60px;
}

#mob_menu_top {
    position: relative;
    display: flex;
    align-items: center;
    z-index: 13;
    height: 66px;
    background: #eeeeee;
    text-align: left;
    width: 100%;
}

#btn_hamburger {
    width: 30px;
    height: 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin-right: 1.5em;
    background-color: transparent;
    cursor: pointer;
}

#btn_hamburger.active i:nth-child(1) {
    transform: rotate(-45deg) translate(-9px, 9px);
}

#btn_hamburger.active i:nth-child(2) {
    opacity: 0;
}

#btn_hamburger.active i:nth-child(3) {
    transform: rotate(45deg) translate(-8px, -8px);
}

.btn_mob_header-line {
    height: 5px;
    border-radius: 10px;
    background-color: white;
    transition: all 0.5s ease-in-out;
}

#mob_header nav {
    width: 100%;
    display: none;
    position: absolute;
    top: 82px;
    z-index: 12;
    overflow-y: auto;
    text-align: left;
    background-color: white;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
    box-shadow: 0 2px 5px 1px gray;
    -webkit-overflow-scrolling: touch;
}

#mob_nav a {
    display: block;
}

#mob_nav .main_menu {
    display: flex;
    flex-direction: column;
    margin-top: 5px;
}

#mob_nav .main_menu li {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

#mob_nav .main_menu li a {
    flex-grow: 1;
    font-weight: 700;
    line-height: 1.4;
    padding: 0.8em 0;
    padding-left: 2em;
    border-radius: 0px;
}

#mob_nav .main_menu li a:hover {
    cursor: pointer;
}

#mob_nav .main_menu > li > a {
    border-bottom: 1px solid #d4d4d4;
}

#mob_nav .icon_arrow_down {
    border-top: 2px solid var(--title_color);
    border-left: 2px solid var(--title_color);
}

#mob_nav ul li a:hover .icon_arrow_down {
    border-top: 2px solid #daa520;
    border-left: 2px solid #daa520;
}

.main_menu-dropdown.unfolded .icon_arrow_down {
    margin-top: 4px;
    margin-bottom: 0;
    transform: rotate(-315deg);
}

#mob_nav .sub_menu {
    background-color: #5699bd;
    max-height: 0;
    overflow: hidden;
    transition: all 0.5s ease-in-out;
}

#mob_nav .sub_menu.unfolded {
    max-height: 20em;
}

#mob_nav .sub_menu > li {
    border-bottom: 1px solid white;
}

#mob_nav .sub_menu > li:last-child {
    border-bottom: 1px solid #5699bd;
}

#mob_nav .sub_menu > li > a {
    color: white;
}

/**
 * Navgation - Desktop
 */

#des_header {
    display: flex;
    justify-content: space-between;
    background: linear-gradient(to right, #f3f3f3, #2e7da1 60%);
    border-bottom: 2px solid #ccc;
}

header::after {
    content: '';
    width: 100%;
    height: 3px;
    position: absolute;
    top: 100px;
    left: 0;
}

#container_icon {
    max-height: 100px;
    display: inline-flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-start;
}

#container_icon img {
    width: auto;
    height: 100%;
}

#des_header .header_trademark {
    max-height: 65px;
    float: left;
    margin: 10px 0.5em 10px 1.5em;
}

#des_header .header_trademark img {
    float: left;
    height: auto;
    max-height: 55px;
    max-width: 100%;
}

.header_company {
    margin-left: 0.2em;
}

.header_company-tw {
    text-align: start;
    padding-top: 0.3em;
    font-weight: 700;
    font-size: 1.2em;
    letter-spacing: 1.7px;
    color: var(--font_color);
}

.header_company-en {
    padding-left: 2px;
    height: 1.5em;
    line-height: 150%;
    text-align: start;
    font-size: 0.7em;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--font_color);
}

#des_nav {
    display: flex;
    align-items: center;
    margin-right: 1em;
}

#des_nav > ul {
    display: inline-flex;
    flex-wrap: nowrap;
}

#des_nav > ul > li {
    position: relative;
    display: flex;
    justify-content: center;
    height: 90px;
    margin-left: 5px;
}

#des_nav ul li a {
    display: flex;
    position: relative;
    align-items: center;
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-size: 1em;
    padding: 5px 0.5em;
}

#des_nav ul li a:hover {
    cursor: pointer;
    color: #daa520;
}

#des_nav ul li a:hover .icon_arrow_down {
    border-top: 2px solid #daa520;
    border-left: 2px solid #daa520;
}

#des_nav ul li a.unfolded {
    color: #daa520;
}

#des_nav ul li a.unfolded .icon_arrow_down {
    border-top: 2px solid #daa520;
    border-left: 2px solid #daa520;
}

.main_menu-dropdown.unfolded .icon_arrow_down {
    margin-top: 4px;
    margin-bottom: 0;
    transform: rotate(-315deg);
}

#des_nav .sub_menu {
    width: 100%;
    height: auto;
    display: flex;
    position: fixed;
    z-index: 11;
    flex-wrap: wrap;
    justify-content: space-evenly;
    top: 90px;
    left: 0;
    max-height: 0;
    overflow: hidden;
    padding: 0 2em;
    border-bottom-right-radius: 10px;
    border-bottom-left-radius: 10px;
    background-color: rgb(77, 77, 77);
    transition: all 0.5s ease-in-out;
}

#des_nav .sub_menu.unfolded {
    max-height: 15em;
}

.sub_menu li {
    flex: 0 1 140px;
    margin: 0 0.8em;
}

#des_nav .sub_menu li a {
    display: block;
    padding: 1.25em 0.5em 0.5em;
    margin: 1em 0 2em 0;
    border-bottom: 2px solid rgb(112, 199, 214);
    font-size: 1.2em;
}

#des_nav .sub_menu li a:hover {
    color: #daa520;
    border-color: #daa520;
}

/**
 * Card
 */

.card {
    max-width: 600px;
    margin-bottom: 2em;
    border-radius: 1em;
    box-shadow: 2px 2px 10px 1px grey;
}

.card-upper {
    padding: 5em 5em 3em 5em;
    /* border-radius: 1em; */
    border-radius: 1em 1em 0 0;
    border-bottom: 1px solid gray;
    background-color: #73a9c2;
}

.card-title {
    padding-bottom: 2em;
    text-align: center;
    font-size: 2em;
}

.card-sub_title {
    text-align: right;
    font-size: 1.2em;
}

.card-content {
    padding: 1em 1em 1em 4em;
    background-color: rgb(245, 245, 245);
    border-radius: 0 0 1em 1em;
}

/**
 * Footer
 */

footer {
    display: flex;
    flex-direction: column;
    bottom: 0;
    width: 100%;
    padding-top: 2.5em;
    background: linear-gradient(to top, lightgray, white);
    color: var(--font_color);
    line-height: 1.2em;
    text-align: left;
}

footer::before {
    content: '';
    width: 100%;
    height: 3px;
    position: relative;
    bottom: 2.5em;
    left: 0;
    background: linear-gradient(to right, #73a9c2, #b3dbe2);
}

#footer {
    width: 100%;
    padding: 0 2em;
    display: flex;
    flex-wrap: nowrap;
    flex-shrink: 1;
    flex-direction: row;
    justify-content: space-around;
}

.footer_section {
    display: flex;
    flex: 0 1 25%;
    flex-wrap: wrap;
    flex-direction: column;
}

footer p {
    max-width: 100%;
    word-break: break-word;
    text-align: left;
    margin-top: 0;
    margin-bottom: 0.35em;
}

.footer_section p b {
    display: block;
    margin-bottom: 0.8em;
    font-size: 1.2em;
}

#footer_left {
    flex-basis: 40%;
    margin-right: 2em;
}

#footer_title {
    display: flex;
    justify-content: space-between;
}

#footer_title-name {
    display: flex;
}

#footer_title-logo_container {
    display: inline-block;
    margin-top: -0.5em;
    margin-right: 0.8em;
    width: 2.5em;
}

#footer_title-iso_container {
    display: inline-block;
    width: 3.5em;
    margin-top: -2px;
}

#footer_title img {
    width: 100%;
    height: auto;
}

#footer_title-tw {
    letter-spacing: 2.5px;
    font-size: 1.3em;
    margin-bottom: 0.2em;
    line-height: 1em;
    font-weight: 700;
}

#footer_title-en {
    letter-spacing: 1px;
    padding-left: 2px;
    padding-right: 4px;
    font-size: 0.7em;
    font-weight: bold;
    text-align: justify;
}

/* #footer_title-en:after {
    content: '';
    width: 100%;
    line-height: 0;
    height: 0;
    display: inline-block;
    overflow: hidden;
    height: 0;
} */

#footer_info {
    margin-top: 1em;
    line-height: 180%;
    font-size: 0.85em;
}

#footer_mid {
    flex-basis: 20%;
}

#footer_mid a {
    display: block;
    margin-bottom: 0.8em;
    padding: 2px 0 2px 0.7em;
    border-left: 2px solid gray;
    color: #363636;
    font-size: 0.9em;
}

#footer_right p:not(:first-child) {
    display: flex;
    align-items: center;
    margin-top: 0.5em;
    font-size: 0.9em;
}

#footer_right p img {
    margin-right: 0.3em;
}

#footer_right a {
    width: fit-content;
    margin-bottom: 0.2em;
}

#footer_copyright {
    width: 100%;
    margin-top: 2em;
    padding: 1em 0;
    background-color: rgb(168, 168, 168);
    text-align: center;
    font-size: 0.9em;
}

footer .icon {
    filter: invert(47%) sepia(19%) saturate(0%) hue-rotate(245deg) brightness(102%) contrast(90%);
}

/**
 * Flash
 */

.flash-container {
    width: 80%;
    max-width: 1600px;
    margin: 2em auto -5em;
}

.flash {
    width: 100%;
    margin: 2em auto 0;
    padding: 0.5em 1em;
    font-size: 1rem;
    font-weight: bold;
    color: #363636;
    border-radius: 4px;
    border: 1px solid grey;
    background-color: gray;
}

.flash.flash-success {
    color: #289644;
    border: 1px solid #289644;
    background-color: rgba(40, 150, 68, 0.2);
}

.flash.flash-error {
    color: #bd2408;
    border: 1px solid #bd2408;
    background-color: rgba(189, 36, 8, 0.2);
}
