html,
body {
    height: 100%;
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    line-height: 1.5;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* Updated from height: auto; to ensure it covers the full height */
    margin: 0;
    color: #1A1A1A;
}

body p, h1, h2, h3, h4, h5{
    color: #1A1A1A;
}

main {
    flex: 1;
    padding: 2rem;
    max-width: 800px;
    margin: auto;
    width: 100%;
    box-sizing: border-box;
    flex-grow: 1; /* Allows main to take up remaining space */
}

footer {
    text-align: center;
    padding: 1.5rem 0;
    background-color: #fafafa;
    width: 100%;
    font-size: 0.9rem;
}

footer p{
    color: #919191;

}

/* HEADER */

header {
    position: sticky;
    top: 0;
    background-color: #fff;
    border-bottom: 1px solid rgb(229, 229, 229);
    padding: 1.5rem 2rem;
    display: flex;
    flex-flow: row nowrap;
    justify-content: center;
}

.header_inner{
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 800px;
    width: 100%;
}

.header_inner a{
    margin: 0;
}

.header_left {
    display: flex;
    align-items: center;
}

.logo {
    width: 3rem;
    margin-right: 1rem;
    border-radius: 0.35rem;
}

.header_title {
    margin: 0;
    font-size: 1.25rem;
}

.header-center {
    margin-left: 2rem;
    flex-shrink: 0;
}

header a {
    text-decoration: none;
    margin: 0 1rem;
    color: #000;
}

.btn_visit_glite {
    border: 1px solid #6f7584;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    text-align: center;
    transition: background-color 0.15s ease-in-out;
    text-wrap: nowrap;
    margin: 0;
    color: #1A1A1A;
    font-size: 0.9rem;
}

.btn_visit_glite:hover {
    background-color: #dedede;
}

/* POST LIST */

.post_list{
    display: flex;
    flex-flow: column nowrap;
    gap: 1rem;
}

.post_list a {
    color: #000;
    text-decoration: none;
    display: block;
    transition: background-color 0.3s ease;
}

.post_list h2{
    margin: 0;
}

.post_list .post_date{
    font-style: italic;
    margin-top: 0.5rem;
    margin-bottom: 1.5rem;
}

.post_header_img{
    max-width: min(100%, 160px);
    object-fit: cover;
}

.post_link{
    border-radius: 0.25rem;
}

.post {
    padding: 1rem;
    display: flex;
    flex-flow: row nowrap;
    gap: 1rem;
    transition: .15s ease-in-out;
}

.divider {
    width: 100%;
    border-bottom: 1px solid rgb(230, 230, 230);
}

/* POST PAGE */
.btn_back{
    color: #1A1A1A;
    font-weight: bold;
    text-decoration: none;
}

.btn_back:hover{
    text-decoration: underline;
}

hr{
    margin-bottom: 2rem;
    border-style: solid;
    /* border-top: 1px solid lightgray; */
    color: lightgray;
}

main > p > img {
    max-width: 100%;
}

@media (max-width: 500px) {
    .post{
        flex-flow: column nowrap;
        /* align-items: center;
        justify-content: center; */
        padding: 0.5rem;

    }

    main{
        padding: 2rem 0.75rem;
    }

    header {
        padding: 0.5rem 0.75rem;
    }

    .header_title {
        font-size: 1rem;
    }

    .btn_visit_glite{
        font-size: 0.75rem;
    }

}