.standard-height {
    min-height: 30vh;
}

.apd-header-image {
    height: 45vh;
    width: auto;
    position: relative;
    background-repeat: no-repeat;
    background-position: center;
    margin-left: 320px;
}

.apd-header-text {
    margin-top: 5px;
    margin-left: 320px;
}

.apd-article-body {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-gap: 25px;
}

.apd-table-contents {
    --apd-bg-opacity: 1;
    width: 300px !important;
    background-color: rgb(31 41 55/var(--apd-bg-opacity));
    height: min-content;
    color: white;
    padding: 10px;
    position: fixed;
}

.apd-table-contents > ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

.apd-table-contents > ul > li > a {
    text-decoration: none;
    color: white;
}

.apd-blog-content-share {
    display: -webkit-box;
    margin-top: 10px;
}

.apd-blog-content-share > a {
    text-decoration: none;
    color: inherit;
    margin-left: 5px;
}

.apd-blog-content-share > hr {
    border: none;
    border-top: 3px double #333;
    color: white;
    overflow: visible;
    text-align: center;
    height: 5px;
}


.apd-article-body-content {
    margin-left: 320px;
}

html {
    scroll-behavior: smooth;
}

.command_line::before {
    content: "$ ";
}

.command {
    display: inline-block;
    width: 100%;
    margin: 10px 0 10px 0;
}


.command {
    font-family: SFMono-Regular, Consolas, Liberation Mono, Menlo, monospace;
    clear: both;
    color: #fff;
    background: #1b1b1b;
    padding: 10px;
    -o-tab-size: 2;
    tab-size: 2;
    -ms-word-break: normal;
    word-break: normal;
    -webkit-hyphens: none;
    -ms-hyphens: none;
    hyphens: none;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
}

/* pagination */
.pagination {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

.pagination a {
    border: 1px solid #ddd;
    color: #333;
    padding: 10px;
    margin: 0 5px;
    text-decoration: none;
}

.pagination a:hover {
    background-color: #ddd;
}

.pagination .current {
    border: 1px solid #ddd;
    padding: 10px;
    margin: 0 5px;
}

.pagination .of {
    padding: 10px;
}

.pagination .num_pages {
    border: 1px solid #ddd;
    padding: 10px;
    margin: 0 5px;
}

.pagination span.active {
    background-color: #007BFF;
    color: white;
    border: 1px solid #007BFF;
}

/* view mode */
#list-view {
    display: none;
}

#list-view.activate {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

#list-body.activate {
    display: flex;
}

.view-selector .active {
    /* you can add styles for the active button here, e.g., change the background color */
    background-color: #007bff;
    color: white;
}

#list-view .article-container {
    display: flex;
    flex-direction: column;
    padding: 20px;
    border-radius: 5px;
    margin-bottom: 20px;
    border: 1px solid rgba(221, 221, 221, 0.5);
    background-color: #f8f8f8;
    transition: background-color 0.3s ease;
}

#list-view .article-container:hover {
    background-color: #ffffff;
}

#list-view h4 {
    color: #333;
    font-size: 24px;
    margin-bottom: 10px;
}

#list-view p {
    color: #666;
    font-size: 16px;
    margin-bottom: 20px;
}

/* article */
.title {
    font-size: 1.2em !important;
}

.article-draft {
    display: inline-block;
    font-size: 10px;
    font-weight: 600;
    color: #ff6347;  /* Tomato color */
    letter-spacing: .5px;
    border: 1px solid currentColor;
    padding: 2px 8px;
    border-radius: 12px;
    margin-left: 5px;
    background-color: #f8f8f8;
}

.uppercase {
    text-transform: uppercase;
}

.headline {
    font-size: 1em;
    margin-bottom: 1em;
    color: #999;
}

.authors {
    font-size: 0.8em !important;
    margin-bottom: 1em;
    font-style: italic;
    color: #666;
}

.more {
    background: #007bff;
    color: #fff;
    padding: 5px 10px;
    border-radius: 5px;
    display: inline-block;
    margin-bottom: 10px;
}

.more a {
    color: #fff;
    text-decoration: none;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.tags span {
    padding: 5px 10px;
    border-radius: 5px;
    color: #fff;
}

.tags a {
    color: #fff;
    text-decoration: none;
}

.article-container {
    margin-bottom: 10px;
}

/* select button pagination */
.select-wrapper {
    position: relative;
    display: inline-block;
}

.select-wrapper:after {
    content: "\25BC";
    position: absolute;
    top: 0;
    right: 0;
    padding: 12px;
    background: #ddd;
    cursor: pointer;
    pointer-events: none;
    transition: 0.25s all ease;
}

.select-wrapper:hover:after {
    color: white;
    background: #f39c12;
}

#num-posts {
    /*appearance: none;*/
    outline: 0;
    box-shadow: none;
    border: 0 !important;
    border-radius: 5px;
    background: #e6e6e6;
    width: 80px;
    height: 45px;
    color: #666;
    cursor: pointer;
    padding: 0 10px;
    margin-left: 5px;
}


/* view mode button */
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.view-selector {
    display: flex;
    gap: 5px;
}

.view-selector button {
    cursor: pointer;
    padding: 10px;
    border: none;
    border-radius: 5px;
    background: #f5f5f5;
    color: #333;
    font-size: 14px;
    transition: background 0.3s ease;
}

.view-selector button.active {
    background: #007bff;
    color: #fff;
}

.view-selector button i {
    margin-right: 5px;
}

@media (max-width: 1199px) {
    .apd-table-contents {
        display: none;
    }

    .apd-article-body-content {
        margin-left: 5px;
    }

    .apd-header-image {
        margin-left: 5px;
    }

    .apd-header-text {
        margin-left: 5px;
    }

    .header-container {
        display: block;
        margin-bottom: 20px;
    }
}

@media (max-width: 900px) {
    .apd-article-body-content {
        margin-left: 0;
    }

    .apd-article-body-content > p > img {
        height: 300px !important;
        width: auto !important;
    }
}

@media (max-width: 820px) {
    .apd-article-body-content {
        margin: 0;
        max-width: 90%;
    }

    .apd-article-body {
        display: flex;
    }

    .apd-article-body-content > p > img {
        height: 257px !important;
        width: auto !important;
    }
}

@media (max-width: 767px) {
    /* re-arrange the elements */
    .apd-blog-content {
        display: flex;
        flex-direction: column;
    }

    /* filter-list appears first then list-body */
    .apd-blog-content > #list-body {
        order: 2;
    }

    .apd-blog-content > #filter-list {
        order: 1;
    }
}

@media (max-width: 470px) {
    .apd-article-body-content > p > img {
        height: 200px !important;
        width: auto !important;
    }
}

@media (max-width: 365px) {
    .apd-article-body-content > p > img {
        height: 150px !important;
        width: auto !important;
    }
}