body {
    margin: 0;
    padding: 0;
    background-color: #181E24;
    scroll-behavior: smooth;
    font-family: 'Noto Sans TC', sans-serif;
    font-weight: 300;
    overflow-x: hidden;
    color: aliceblue;
}

#footer {
    font-size: 0.8em;
    text-align: center;
    color: gray;

}




/*大標題*/
h1 {
    font-family: 'Noto Serif TC', serif;
    color: white;
    text-shadow: black 0.1em 0.1em 0.2em;
    font-weight: 600;
    text-align: center;
    margin: 0;
}

h2 {
    font-family: 'Noto Serif TC', serif;
    color: white;
    text-shadow: black 0.1em 0.1em 0.2em;
    font-size: 1.5em;
    font-weight: 600;
    text-align: center;
}



/*索引標籤*/
#nav {
    display: inline-block;
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    box-sizing: border-box;
    width: 100vw;
    background-color: rgba(245, 245, 245);
    padding: 1em;
    text-align: left;
    z-index: 9;
    margin: 0;
}

#nav li {
    font-size: 1em;
    font-weight: 500;
    margin: 0.8em;
    text-shadow: black 1.5px 1.5px 2px;
    transition: all .1s ease-in-out;
    display: inline;

}




a,
a:link,
a:visited {
    color: aliceblue;
    text-decoration: none;
}

a:hover {
    color: #E767A2;
    text-decoration: none;

}


/* 章節標題 */
h3 {
    font-family: 'Noto Serif TC', serif;
    color: white;
    text-shadow: black 0.1em 0.1em 0.2em;
    font-weight: 500;
}


/*文章*/

.bgimage {
    width: 100vw;
    position: relative;
    background-image: url('https://shihchenhung.github.io/pink_economy/assets/0-0.webp');
    background-size: cover;
}

#summary,
#ch1_history,
#ch2_old,
#ch3_now,
#ch4_future {
    padding-top: 4.2em;
}

h4 {
    font-family: 'Noto Serif TC', serif;
    color: #E767A2;
    text-shadow: black 0.1em 0.1em 0.2em;
    font-weight: 600;

}

p {
    margin-top: 2em;
    line-height: 1.8em;
    padding: 0.5em;
    margin: auto;
}

.intro {
    color: #74A5D8;
    font-style: italic;
    padding: 3em;
    display: block;
    margin-left: auto;
    margin-right: auto;
}


.insert {
    display: block;
}

figcaption {
    height: auto;
    display: block;
    margin: 0 auto 2em auto;
    text-align: center;
    color: #999999;
}

video {
    width: 100vw;
}

#credit {
    display: block;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    
}

@media only screen and (min-width: 0px) and (max-width: 768px) {
    h1 {
        font-size: 3em;
        padding: 15vh 0 2vh 0;
    }

    h3 {
        font-size: 2.5em;
        text-align: center;
        padding: 0;
        margin: 15vh 2vw 0 0;
        background-image: url('https://shihchenhung.github.io/pink_economy/assets/0-0.webp');
        background-size: cover;
        background-position: left bottom;
    }

    .bgimage {
        height: 50vh;
    }

    h4 {
        width: 90vw;
        font-size: 1.1em;
        line-height: 2em;
        word-break: keep-all;
        display: block;
        margin-left: auto;
        margin-right: auto;
        text-align: center;

    }

    p {
        font-size: 1em;
        width: 75vw;
    }

    .intro {
        font-size: 0.9em;
width: 70vw;
    }

    .insert {
        width: 100vw;
        margin: 1em auto 0 auto;
    }

    figcaption {
        width: 70vw;
        font-size: 0.7em;
        text-align: left;
    }

    video {
        display: none;
    }
}

@media only screen and (min-width: 769px) {
    h1 {
        font-size: 4em;
        padding: 34vh 0 2vh 0;
    }

    h3 {
        font-size: 2.5em;
        text-align: right;
        padding: 0;
        margin: 15vh 2vw 0 0;
        position: sticky;
        top: 20vh;
        float: right;
        z-index: 1;
    }

    .bgimage {
        height: 90vh;
    }

    h4 {
        width: 40vw;
        font-size: 1.5em;
        margin: 2em auto 0 auto;
    }


    p {
        font-size: 1.2em;
        width: 40vw;
    }

    .intro {
        font-size: 1em;
    }

    .insert {
        width: 60vw;
        margin: 2em auto 0 auto;
    }

    figcaption {
        width: 60vw;
        font-size: 1em;
    }

    .phone {
        display: none;
    }

    #ch1_history,#ch2_old,#ch3_now,#ch4_future{
margin-top: 25vh;
    }
}