/*共用設定*/
body {
    margin: 0;
    color: #ffffff;
    background-color: rgb(2, 2, 2);
    font-family: "Noto Serif TC", serif;
    font-optical-sizing: auto;
    font-style: normal;
    z-index: -2;
}

.title {
    margin-bottom: 50px;
    font-size: 30px;
    font-weight: 900;
}

.conact {
    font-size: 20px;
    line-height: 2;
    color: rgb(239, 230, 228);
    font-weight: 400;
}

.on_computer {
    display: block;
}

.on_phone {
    display: none;
}

/*HEADER*/
.header {
    height: 500px;
    overflow: visible;
}

.header_img {
    z-index: 1;
    position: sticky;
    top: 80px;
    margin-left: 10%;
    width: 600px;
    height: 200px;
}

.stage {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: -1;
}

/*NAV*/
.nav {
    position: sticky;
    top: 10px;
    height: 60px;
    padding: 0 10% 0 10%;
    align-items: center;
    display: flex;
    justify-content: space-between;
    backdrop-filter: blur(5px);
    z-index: 3;
}

.nav-container {
    cursor: pointer;
    justify-content: right;
    display: flex;
    gap: 20px;
}

/*ABOUT*/
#about {
    padding: 10%;
    height: auto;
}

/*CHARACTER*/
#character {
    padding-left: 10%;
    width: 80%;
    height: auto;
    display: flex;
    flex-direction: row;
}

.character_title {
    font-size: 35px;
}

.character_show {
    position: relative;
    width: 600px; /* 根據你的圖片調整 */
    height: 700px;
    z-index: 4;
    mask-image: linear-gradient(
            to right,
            rgba(0, 0, 0, 0) 0%,
            rgba(0, 0, 0, 1) 15%,
            rgba(0, 0, 0, 1) 85%,
            rgba(0, 0, 0, 0) 100%
    );
}

.role_slider {
    display: flex;
    overflow-x: hidden; /* 如果想看到滾動條可改成 scroll */
    height: 100%;
}

.role_img {
    width: 600px;
    height: 700px;
    object-fit: cover;
}

.character_menu {
    display: flex;
    flex-direction: column;
    justify-content: center;
    font-size: 30pt;
    line-height: 1.6;
    padding: 5%;
    gap: 10px;
    z-index: 5;
}

.character_info {
    display: none;
}

.door {
    position: absolute;
    top: 0;
    width: 300px;
    height: 700px;
    transition: all 1s ease;
    z-index: 2;
}

.left-door {
    left: -300px;
}

.right-door {
    right: -300px;
}

.left-door.closed {
    left: 0;
}

.right-door.closed {
    right: 0;
}

/*WORLD*/
#world {
    padding: 10%;
}

/*FOOTER*/
footer {
    height: 300px;
    display: flex;
    background: aliceblue;
    color: #0b0b0b;
    gap: 100px;
    padding-left: 100px;
}

.footer_div {
    margin-top: 50px;
}

.footer_conact {
    margin-top: 20px;
    line-height: 1.6;
}

a:link {
    color: #0b0b0b;
    text-decoration: none
}

a:active {
    color: #0b0b0b
}

a:visited {
    color: #0b0b0b
}

/*平板設定*/
@media (max-width: 1250px) {
    /*區塊*/
    .conact {
        font-size: 18px;
    }
}

/*手機設定*/
@media (max-width: 500px) {
    .on_computer {
        display: none;
    }

    .on_phone {
        display: block;
    }

    /*HEADER*/
    .header {
        height: 300px;
    }

    .nav {
        font-size: 12pt;
    }

    #about {
        height: 500px;
    }

    /*CHARACTER*/
    #character {
        width: 100%;
    }

    .character_show {
        height: 500px;
    }

    .character_title {
        font-size: 20pt;
    }

    .role_img {
        height: 500px;
    }

    .door {
        height: 500px;
    }

    footer {
        gap: 50px;
        padding-left: 50px;
    }

    /*文字*/
    .title {
        font-size: 25px;
    }

    .conact {
        font-size: 15px;
    }

    /*圖片*/
    .header_img {
        margin-left: 10%;
        width: 400px;
        height: auto;
    }

    .actor_img {
        position: static;
        margin-top: 20px;
    }
}