@font-face {
    font-family: NotoSansTC-Light;
    src: url(../fonts/NotoSansTC-Light.otf);
    src: url(../fonts/TaipeiSansTCBeta-Bold.otf);
    src: url(../fonts/TaipeiSansTCBeta-Regular.otf);
    src: url(../fonts/TaipeiSansTCBeta-Light.otf);
}

body {
    font-family: '微軟正黑體', 'NotoSansTC-Light', 'Noto Sans TC', sans-serif, Arial, Helvetica, Microsoft JhengHei, Apple LiGothic, 'Roboto Condensed';
    font-size: 16px;
    color: #333;
    margin: 0;
}

html,
body {
    height: 100%;
    padding: 0;
}

html,
body {
    height: calc(var(--vh, 1vh) * 100);
}

.bg_cover {
    width: 100%;
    max-width: 100vw;
    height: 100vh;

    background: linear-gradient(180deg,
            #3a3a40 0%,
            #1c1c20 45%,
            #0a0a0c 100%);

    position: relative;
}

.bg_logo_fa {
    position: absolute;
    width: 150px;
    height: 150px;

    top: 18vh;
    left: 50%;
    transform: translateX(-50%);

    background: url("../img/loader_logo.svg");
    background-repeat: no-repeat;
    background-size: contain;

    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.6));
}

@media (max-width:765px) {
    .bg_logo_fa {
        top: 27vh;
    }
}

#loading {
    width: 90%;
    max-width: 400px;
    margin: 0 auto;

    text-align: center;
    padding-top: 42vh;
}

#loading h1 {
    color: #b8a99a;
    font-size: 0.95rem;
    letter-spacing: 3px;
    margin-top: 25px;

    animation: fade 2s infinite;
}

/* 文字滑入的動畫 */
.loading-text {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeSlideUp 1s ease forwards;
}

.loading-text:nth-child(1) {
    animation-delay: 0.3s;
}

.loading-text:nth-child(2) {
    animation-delay: 0.8s;
}

@keyframes fadeSlideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.loading-animated span {
    display: inline-block;

    animation: bounce 1.2s infinite;

    color: #d6c2ad;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
        color: #b8a99a;
    }

    50% {
        transform: translateY(-4px);
        color: #f0e2d2;
    }
}

@keyframes fadeSlideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.loading-text {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeSlideUp 1s ease forwards;
    color: #e6d5c3;
}