/* Page */

.article_content .head .date span {
    margin-left: 0.4rem;
}

.article_content .body {
    line-height: 1.5;
    text-align: justify;
    overflow-wrap: anywhere;
}

.article_content a {
    color: #005cc9;
}
.article_content p {
    margin-top: 0.5rem;
}
.article_content h1, h2, h3, h4, h5, h6 {
    margin-top: 1rem;
}
.article_content figure {
    padding: 1.5rem;
}
.article_content img {
    height: auto;
}
.article_content ul {
    margin-left: 1rem;
    list-style-type: disc;
}
.article_content ol {
    margin-left: 1rem;
    list-style-type: decimal;
}
.article_content li {
    line-height: 1.5;
}

.article_content table {
    width: 100%;
    margin-top: 1rem;
}
.article_content table, th, td {
    border: 1px solid black;
    line-height: 1.5;
    vertical-align: middle;
    padding: 0.2rem;
}

/* Specifically designed for "大學生活" page */
.article_content .wp-block-column > * {
    margin-bottom: 1.5em;
}
.article_content .wp-block-file {
    font-size: 1rem;
}
.article_content .wp-block-file__button {
    padding: 0.2rem 0.8rem;
    color: white;
}

/* Scroll Top Button */
.scroll_top {
    display: none;
    position: fixed;
    z-index: 1;
    width: 2.5rem;
    height: 2.5rem;
    bottom: 1.25rem;
    right: 1.25rem;
    cursor: pointer;
}

/* Mobile Style */
@media only screen and (max-width: 768px) {

    .page_container {
        width: 95%;
        margin: 1rem auto 3rem auto;
        background-color: rgba(235, 235, 235, 0.97);
        border-radius: 2px;
    }

    .page_content_top,
    .article_content .head {
        padding: 0.3rem 0.4rem 0 0.4rem;
        box-sizing: border-box;
    }
    .page_content_top .page_title,
    .article_content .head .title {
        margin: 0 auto 0.8rem auto;
        padding: 0.3rem 0.8rem;
        box-sizing: border-box;
        background-color: #484848;
        border-radius: 0.8rem;
        box-shadow: 1.5px 1.5px 3px 0 rgba(0, 0, 0, 0.16);
        color: white; 
        font-size: 1.1rem;
    }

    .page_content {
        display: flex;
        flex-direction: column;
    }

    .article_content {
        position: relative;
        color: #484848;
    }

    .article_content .head .date {
        position: absolute;
        bottom: 0.5rem;
        right: 0.5rem;
    }

    .article_content .body {
        width: 90%;
        margin: 0 auto;
        padding-bottom: 3rem;
        line-height: 1.5;
        text-align: justify;
    }

    /* PDF Viewer */
    .pdf_viewer {
        width: 100%;
        height: 40vh;
        margin-top: 1rem;
    }

}

/* Desktop Style */
@media screen and (min-width: 769px) {

    .page_content {
        display: flex;
        flex-direction: row;
        position: relative;
        width: 78%;
        min-height: 31.25rem;
        margin: 5rem auto 0 auto;
        background: inherit;
    }

    .page_content_top {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
    }
    .page_content_top .page_title {
        color: white; 
        font-size: 1.5rem;
        font-weight: bold;
    }

    .page_container {
        position: relative;
        width: 83%;
        min-height: 31.25rem;
        box-sizing: border-box;
        margin-left: 1.5625rem;
        padding-left: 3.66rem;
        border-left: 1px solid white;
        background: inherit;
    }

    /* Content */
    .article_content {
        margin-top: 2.5rem;
        padding: 1.25rem 1.5625rem 3.125rem 1.5625rem;
        box-shadow: 0 0.192rem 2.5rem 0 rgba(0, 0, 0, 0.16);
        color: #393939;
        background-color: rgba(235, 235, 235, 0.97);
    }

    .article_content .head {
        padding-bottom: 0.625rem;
        border-bottom: 1px solid black;
        margin-top: 0.625rem;
    }
    .article_content .head .title {
        font-size: 1.1rem;
        font-weight: bold;
        line-height: 1.2;
    }
    .article_content .head .date {
        margin-top: 0.4rem;
        color: #707070;
        white-space: nowrap;
        text-align: right;
    }

    /* PDF Viewer */
    .pdf_viewer {
        width: 100%;
        height: 100vh;
        margin-top: 1.25rem;
    }

}
