@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@400;500;600;700;800&display=swap");

.image-container {
    width: 100%;
    max-width: 100%;
    height: auto;
}

.image-container img {
    width: 100%;
    height: auto;
    display: block;
}

body,
html {
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
    overscroll-behavior-x: none;
}

body {
    background-color: #1e151f;
    font-family: 'Noto Sans TC', sans-serif;
    margin: 0;
}

#main {
    display: flex;
    width: 100%;
    max-width: 2560px;
    height: auto;

    margin: 0 auto;

    flex-direction: column;
    align-items: center;

}

#section-kv {
    position: relative;
    display: flex;
    width: 100%;
    height: auto;

    align-items: flex-end;
    flex-direction: column;

    user-select: none;
    pointer-events: none;
    -webkit-user-drag: none;

}

.kv_m {
    display: none;
}

.kv-container {
    display: block;
    position: relative;
    width: 100%;
    height: 50.625vw;

    overflow: hidden;
}

.kv-container > div {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: left top;

}

.kv_fore {
    z-index: 30;
    background-image: url("../img/kv_fore.png");
}

.kv_line {
    z-index: 20;
    background-image: url("../img/kv_line.png");
    opacity: 0;
    animation: lineFlashIn 0.1s ease-out forwards;
    animation-delay: 0.7s;
}

.kv_line.looping {
    opacity: 1;
    animation: lineLoopHue 3s ease-in-out infinite;
}

@keyframes lineFlashIn {
    0% {
        opacity: 0;
        transform: scale(1.2);
        filter: hue-rotate(0deg) brightness(2);
    }
    30% {
        filter: hue-rotate(20deg) brightness(1.2);
    }
    60% {
        filter: hue-rotate(-25deg) brightness(1.2);
    }
    100% {
        opacity: 1;
        transform: scale(1);
        filter: hue-rotate(0deg) brightness(1);
    }
}

@keyframes lineLoopHue {
    0% {
        filter: hue-rotate(0deg) brightness(1);
    }
    30% {
        filter: hue-rotate(20deg) brightness(1.2);
    }
    60% {
        filter: hue-rotate(-25deg) brightness(1.2);
    }
    100% {
        filter: hue-rotate(0deg) brightness(1);
    }
}

.kv_npc {
    z-index: 10;
    background-image: url("../img/kv_npc.webp");
    transform: translateX(100%);

}

.kv_npc.animate {
    animation: npcSlideIn 0.3s ease-in forwards;
    animation-delay: 0.1s;
}

.kv_bg {
    z-index: 0;
    background-image: url("../img/kv_bg.jpg");
    mix-blend-mode: screen;
    animation: subtleHueShift 4s infinite ease-in-out;
    animation-delay: calc(1s * var(--rand));
    --rand: 1;
}

@keyframes subtleHueShift {
    0% {
        filter: hue-rotate(0deg) brightness(1);
    }
    30% {
        filter: hue-rotate(15deg) brightness(1.4);
    }
    60% {
        filter: hue-rotate(-20deg) brightness(1.2);
    }
    100% {
        filter: hue-rotate(0deg) brightness(1);
    }
}

@keyframes npcSlideIn {
    0% {
        transform: translateX(100%);
        opacity: 0;
        filter: blur(18px);
    }

    100% {
        transform: translateX(0);
        opacity: 1;
        filter: blur(0);
    }
}

#ros_logo {
    position: absolute;
    width: 40.417vw;

    right: 4vw;

    bottom: 9vw;

    z-index: 40;
}

.title {
    position: relative;
    width: 100%;
    height: auto;
    z-index: 2;
}

#login,
#logout {
    font-size: 0.9vw;
    letter-spacing: 0.1vw;
    display: flex;
    position: relative;
    width: 100%;
    color: #fff;

    right: 0;
    height: 3vw;

    background: #6e1c73;

    justify-content: flex-end;
    align-items: center;
    user-select: none;

    pointer-events: auto;

}

#login_btn,
#logout_btn {
    display: flex;
    height: 100%;
    align-items: center;
    gap: 0.5vw;
    padding: 0 2.5vw;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-family: "Noto Sans TC", sans-serif;
    font-weight: 500;

    cursor: pointer;
    margin-left: 1vw;
    transform: skew(-20deg);
    margin-right: 4vw;
    transition: 0.5s;

}

#login_btn:hover,
#logout_btn:hover {
    background-color: #9c49a0;
}

#login_btn span,
#logout_btn span {
    transform: skew(20deg);
}

#section-1 {

    position: relative;
    display: flex;
    padding: 0 27%;
    width: 46%;
    height: auto;
    background-color: #ff000050;
    flex-direction: column;
    align-items: center;

    background-image: url("../img/bg.jpg");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center top;
    font-size: 0.8vw;
    letter-spacing: 0.07vw;

}

.text {
    color: #fff;
    margin-top: 5vw;
    line-height: 2vw;
    position: relative;
    width: 100%;
    height: auto;
}

.text_ps {
    color: #d569d8;
    line-height: 1.3vw;
    position: relative;
    width: 100%;
    height: auto;
    margin-top: 1vw;
}

.subtitle-box {
    position: relative;
    width: 100%;
    height: auto;
    margin-top: 2vw;
    margin-bottom: 1.2vw;
    border-bottom: 1px solid #ffffff;

}

.subtitle {
    position: relative;
    width: fit-content;
    height: auto;
    padding: 0.15vw 1vw;
    font-size: 0.8vw;
    font-weight: 500;
    background-color: #fff;
    color: #000;
    letter-spacing: 0.08vw;

}

.s2_list {
    width: 100%;
    list-style: none;
    line-height: 1.4vw;
    padding: 0;
    margin: 0;
    counter-reset: s2-counter;
    color: #ffffff;
}

.s2_list.note {
    color: #ffffff;
}

.s2_list li {
    font-size: 0.8vw;
    position: relative;
    padding-left: 1.6vw;
    margin-bottom: 1vw;
}

.s2_list.note li {
    position: relative;
    padding-left: 3%;
    margin-bottom: 1%;
}

.s2_list li::before {
    counter-increment: s2-counter;
    content: counter(s2-counter);
    position: absolute;
    left: 0;
    top: 0.2vw;
    font-weight: 500;
    width: 1vw;
    height: 1vw;
    text-align: center;
    line-height: 1vw;
    background-color: #414141;
    color: #000000;

    font-size: 0.8vw;
}

.main-btn-large {
    position: relative;
    display: flex;
    width: 46%;
    padding: 0.8vw 0;
    font-size: 0.9vw;
    font-weight: 500;
    letter-spacing: 0.08vw;
    line-height: 200%;
    color: white;
    background-color: #6e1c73;
    border: none;
    cursor: pointer;
    overflow: hidden;
    transition: 0.6s;
    z-index: 2;
    text-align: center;
    justify-content: center;
    align-items: center;
    margin: 4vw 0 7vw;
    user-select: none;
}

.main-btn-large.beta {
    background-color: #1f41a0;
}

.main-btn-large {
    background-color: #6e1c73;
}

.main-btn-large:hover {
    background-color: #822e86;
}

.main-btn-large::after,
.main-btn-large::before {
    content: "";
    position: absolute;
    width: 20%;
    height: 100%;
    top: 0;
    background-color: #8a318f;
    clip-path: polygon(0 0, 100% 0, 0% 100%, 0% 100%);
    transition: transform 0.3s ease-in-out;
    z-index: -1;
}

.main-btn-large::before {
    left: 0;
    transition: 0.3s;
}

.main-btn-large::after {
    right: 0;
    background-color: #8a318f;
    clip-path: polygon(100% 0, 100% 0, 100% 100%, 0% 100%);
    transition: 0.3s;
}

.main-btn-large:hover::before {
    transform: translateX(-1vw);
    background-color: #923697;
}

.main-btn-large:hover::after {
    transform: translateX(1vw);
    background-color: #923697;
}

.main-btn-large:hover {
    color: #fff;
}

#footbox {
    position: relative;

    width: 100%;

    background-color: #6e1c73;
}

@media screen and (min-width: 1024px) and (max-width: 1279px) {
    }

@media screen and (min-width: 769px) and (max-width: 1023px) {
    }

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

    #section-kv {
        position: relative;
        display: flex;
        width: 100%;
        height: auto;

        background-image: url("../img/kv.jpg");
        background-size: cover;
        background-repeat: no-repeat;
        background-position: center top;
        align-items: flex-end;
        flex-direction: column;
        user-select: none;
        pointer-events: none;
        -webkit-user-drag: none;
    }

    .kv_m {
        display: block;
    }

    .kv-container {
        display: none;
    }

    #ros_logo {
        display: none;
    }

    #login,
    #logout {
        font-size: 3.5vw;
        display: flex;
        position: relative;
        width: 100%;
        color: #fff;

        right: 0;
        height: 12vw;

        background: #6e1c73;

        justify-content: flex-end;
        align-items: center;
        user-select: none;

        pointer-events: auto;

    }

    #login_btn,
    #logout_btn {
        display: flex;
        height: 100%;
        align-items: center;
        gap: 0.5vw;
        padding: 0 6.5vw;
        background: rgba(255, 255, 255, 0.1);
        color: white;
        font-family: "Noto Sans TC", sans-serif;
        font-weight: 500;

        cursor: pointer;
        margin-left: 1vw;
        transform: skew(-20deg);
        margin-right: 4vw;
        margin-left: 6vw;
        transition: 0.5s;

    }

    #section-1 {
        position: relative;
        display: flex;
        font-size: 3.5vw;
        padding: 0 5%;
        width: 90%;
        height: auto;
        background-color: #ff000050;
        flex-direction: column;
        align-items: center;
        background-image: url("../img/bg.jpg");
        background-size: cover;
        background-repeat: no-repeat;
        background-position: center top;
    }

    .text {
        color: #fff;
        margin-top: 5vw;
        line-height: 8vw;
        position: relative;
        width: 100%;
        height: auto;
    }

    .text_ps {
        line-height: 6vw;
        color: #d569d8;
        position: relative;
        width: 100%;
        height: auto;
    }

    .subtitle-box {
        position: relative;
        width: 100%;
        height: auto;
        margin-top: 11vw;
        margin-bottom: 6vw;
        border-bottom: 1px solid #ffffff;

    }

    .subtitle {
        position: relative;
        width: fit-content;
        height: auto;
        padding: 1vw 3vw;
        font-size: 3.5vw;
        font-weight: 500;
        background-color: #fff;
        color: #000;
        letter-spacing: 0.5vw;

    }

    .s2_list {
        width: 100%;
        list-style: none;
        font-size: 3.5vw;
        line-height: 1.4;
        padding: 0;
        margin: 0;
        counter-reset: s2-counter;
        color: #ffffff;
    }

    .s2_list.note {
        color: #ffffff;
    }

    .s2_list li {
        position: relative;
        padding-left: 6vw;
        margin-bottom: 4vw;
        letter-spacing: 0;
        font-size: 3.5vw;
    }

    .s2_list.note li {
        position: relative;
        padding-left: 6vw;
        margin-bottom: 4vw;
    }

    .s2_list li::before {
        counter-increment: s2-counter;
        content: counter(s2-counter);
        position: absolute;
        left: 0;
        top: 0.43vw;
        font-weight: 500;
        width: 4.3vw;
        height: 4.3vw;
        text-align: center;
        line-height: 1.2;
        background-color: #414141;
        color: #000000;

        font-size: 3.5vw;
    }

    .main-btn-large {
        position: relative;
        display: flex;
        width: 100%;
        padding: 2.4vw 0;
        font-size: 4vw;
        font-weight: 500;
        letter-spacing: 0.5vw;
        line-height: 200%;
        color: white;
        background-color: #6e1c73;
        border: none;
        cursor: pointer;
        overflow: hidden;
        transition: 0.6s;
        z-index: 2;
        text-align: center;
        justify-content: center;
        align-items: center;
        margin: 10vw 0 20vw;
        user-select: none;
    }

}
