body {
    background-color: #FEF2E9;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6,
p {
    margin: 0;
}

a {
    text-decoration: none;
    touch-action: manipulation;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

:focus-visible {
    outline: unset;
}

#loader {
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #FEF2E9;
    z-index: 9999;
    transition: opacity 0.5s ease-in-out;
    opacity: 1;
}

.loader {
    position: fixed;
    width: 24px;
    padding: 2px;
    aspect-ratio: 1;
    border-radius: 50%;
    background: #D2A06E;
    --_m:
        conic-gradient(#0000 10%, #000),
        linear-gradient(#000 0 0) content-box;
    -webkit-mask: var(--_m);
    mask: var(--_m);
    -webkit-mask-composite: source-out;
    mask-composite: subtract;
    animation: l3 1s infinite linear;
}

@keyframes l3 {
    to {
        transform: rotate(1turn)
    }
}

#loading {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: #FEF2E9;
    transition: all .4s;
}

#password-protect {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

#password-input {
    margin-right: 10px;
    padding: 5px 10px;
}

.input-wrap {
    display: grid;
    grid-template-columns: 1fr 55px;
}

@font-face {
    font-family: "Lexend";
    src:
        local("Lexend"),
        url("../font/Lexend-SemiBold.woff") format("woff"),
        url("../font/Lexend-SemiBold.woff2") format("woff2");
}

@font-face {
    font-family: "SF-Pro";
    src: local("SF-Pro"),
        url("../font/SF-Pro-Text-Regular.woff") format("woff"),
        url("../font/SF-Pro-Text-Regular.woff2") format("woff2");
}

@font-face {
    font-family: "SF-Pro-Med";
    src:
        local("SF-Pro-Med"),
        url("../font/SF-Pro-Text-Medium.woff") format("woff"),
        url("../font/SF-Pro-Text-Medium.woff2") format("woff2");
}

@font-face {
    font-family: "SF-Pro-Bold";
    src:
        local("SF-Pro-Bold"),
        url("../font/SF-Pro-Text-Bold.woff") format("woff"),
        url("../font/SF-Pro-Text-Bold.woff2") format("woff2");
}

@font-face {
    font-family: "Noto-Sans-TC";
    src:
        local("Noto-Sans-TC") url("../font/NotoSansTC-Bold.ttf") format("ttf");
}

.main-wrap {
    position: relative;
    max-width: 425px;
    width: 100%;
}

.top-nav {
    position: relative;
    z-index: 99;
    height: 44px;
    display: grid;
    grid-template-columns: 1fr;
    align-items: center;
}

.top-nav #returnBtn {
    opacity: 0;
    visibility: hidden;
}

.top-nav h3 {
    text-align: center;
    font-size: 17px;
    font-family: "Lexend";
    color: #333;
}

.top-nav .button a {
    text-decoration: none;
    padding: 13px 24px;
    background-color: #D2A06E;
    color: white;
    font-family: "Lexend";
    font-weight: 600;
    line-height: 22px;
    font-size: 17px;
    border-radius: 60px;
}

.top-nav img {
    width: 24px;
    height: 24px;
}

.center-content {
    padding: 0 24px;
    margin-top: 44px;
    margin-bottom: 20px;
}

.main-menu-content.center-content {
    margin-bottom: 24px;
}

.center-content h2 {
    font-family: "Lexend";
    font-weight: 600;
    line-height: 28px;
    font-size: 22px;
    color: #333;
    margin-top: 6px;
}

.center-content p {
    padding-top: 8px;
    font-family: "SF-Pro";
    font-weight: 400;
    font-size: 15px;
    line-height: 20px;
    color: #333;
}

.tac-wrap .center-content p {
    height: 68px;
}

.center-content span {
    font-family: "Lexend";
    font-size: 17px;
    line-height: 22px;
}

.main-menu-content p {
    width: 310px;
    margin: auto;
}

.hidden {
    display: none;
}

.fixed-cta {
    width: 80px;
    height: 80px;
    border-radius: 80px;
    position: fixed;
    right: 16px;
    bottom: 32px;
    z-index: 50;
}

#BookDemo,
#forLeads {
    opacity: 0;
    transition: all .2s;
}

.bookDemo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 76px;
    height: 76px;
    border-radius: 76px;
    background-color: #D2A06E;
}

.bookDemo h3 {
    color: #fff;
    font-size: 17px;
    font-family: "Lexend";
    text-align: center;
}

.tab-bar {
    position: relative;
    z-index: 10;
    display: flex;
    width: 100%;
    height: 85px;
    justify-content: space-evenly;
    align-items: center;
    overflow-x: scroll;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.tab-bar::-webkit-scrollbar {
    display: none;
}

.tab-bar a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 106px;
    height: 40px;
    color: #333;
    font-family: "Lexend";
    font-size: 15px;
}

.tab-bar img {
    margin-right: 4px;
}

.tab-bar div.active {
    background-color: #FBCDA6;
    border-radius: 24px;
}

.for-bg::before {
    content: '';
    display: block;
    position: absolute;
    background-image: url("../img/tab-bar-bg.svg");
    width: 390px;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: bottom;
    top: -30px;
    z-index: 1;
}

.for-bg.hide-pseudo::before {
    display: none;
}

#loading {
    display: flex;
    justify-content: center;
    align-items: center;

    text-align: center;
}

@media screen and (max-width:1024px) {
    .for-bg::before {
        width: 100%;
        height: 185px;
    }

    .main-event img {
        max-width: unset;
        width: 100%;
    }

    .tab-bar {
        height: 145px;
        justify-content: center;
    }
}

@media screen and (max-width:431px) {
    .for-bg::before {
        width: 430px;
        height: 169px;
    }

    .tab-bar {
        height: 85px;
        justify-content: space-between;
    }

    .tab-bar div.active:nth-child(1) {
        margin-left: 15px;
    }

    .tab-bar div.active:nth-child(1) a {
        width: 90px;
    }
}

@media screen and (max-width:415px) {
    .for-bg::before {
        width: 430px;
    }
}

@media screen and (max-width:391px) {
    .for-bg::before {
        width: 390px;
    }
}