body, h1, h2, h3, h4, h5, h6, p, blockquote, pre, hr, dl, dd, ol, ul, figure {
    margin: 0;
    padding:0
}

/**
 * Set `margin-bottom` to maintain vertical rhythm
 */
h1, h2, h3, h4, h5, h6,
p, blockquote, pre,
ul, ol, dl, figure,
.highlight {
    margin-bottom: 15px;
}

/**
 * Lists
 */
ul, ol {
    margin-left: 30px;
}

li > ul,
li > ol {
    margin-bottom: 0;
}

/**
 * Headings
 */
h1, h2, h3, h4, h5, h6 {
    font-weight: 400;
}

body {
    font: 400 16px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    font-family: 'Times New Roman', serif;
    color: #111;
    background-color: #fdfdfd;
    margin:0;
    padding:0;
    /*-webkit-font-feature-settings: "kern" 1;*/
    /*-moz-font-feature-settings: "kern" 1;*/
    /*-o-font-feature-settings: "kern" 1;*/
    font-feature-settings: "kern" 1;
    font-kerning: normal;
    display: flex;
    min-height: 100vh;
    flex-direction:column
}

header {
    /*font-family: 'Courier New', monospace;*/
    font-family: 'Times New Roman', serif;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 40px 20px 10px;
    background-color: #fefefe;
    margin-top: 0;
    margin-left: 40px;
    margin-right: 40px;
    border-bottom: 1px solid #e0e0e0;
}
.logo {
    font-weight: bold;
    font-size: 24px;
}
.nav-links {
    display: flex;
    gap: 20px;
}
.nav-links a {
    text-decoration: none;
    color: black;
    font-size: 18px;
}
.nav-links a:hover {
    text-decoration: underline;
}

/* footer */
footer {
    font-family: 'Times New Roman', serif;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 40px 40px;
    margin-left: 20px;
    margin-right: 20px;
    background-color: #fefefe;
    margin-top: auto; /* Push footer to the bottom if content is less */
}
.left, .right {
    flex: 1;
}
.right {
    text-align: right; /* Ensures the email is aligned to the right */
}

/*home.html layout*/
.page-content {
    padding: 0;
    margin: 0;
    display: flex;
}

.page-content .wrapper-home {
    padding: 20px 20px 20px 10px;
    margin-top: 20px;
    margin-left: 0;
    margin-right: 40px;
    flex: 2;
}
.page-content .image-home {
    padding: 20px 20px;
    margin-top: 20px;
    margin-left: 40px;
    flex: 1;
    float: right;
}
.page-content .image-home img {
    width: 100%;
    height: auto;
    max-width: 100%;   /* Prevent the image from overflowing its container */
}

/* base layout */
.page-content .wrapper {
    padding: 20px 20px;
    margin-top: 20px;
    margin-left: 40px;
    margin-right: 40px;
    max-width: fit-content;
}

/* for page.html*/
.post-header{
    padding: 0 0 20px;
    margin: 0;
    display: block;
    border-bottom: none;
}
.post-title{
    margin-bottom: 15px;
    padding: 0;
    font-weight: 400;
    font-size: 36px;
    line-height: 1;
}
.post-content{
    max-width: fit-content;
    font-size: 18px;
}

@media screen and (max-width: 600px) {
    .page-content {
        display: flex;            /* Retain flex layout for flexibility */
        flex-direction: column;   /* Stack children vertically */
    }

    .page-content .wrapper-home{
        padding: 0;            /* Keep padding as-is */
        margin: 10px 20px 20px 30px;
        flex: none;               /* Prevent flex-grow/shrink behaviors */
        float: none;
    }
    .page-content .image-home {
        padding: 0;            /* Keep padding as-is */
        margin-left: 30px;           /* Adjust margins for vertical spacing */
        margin-bottom: 0;
        flex: none;               /* Prevent flex-grow/shrink behaviors */
        float: none;              /* Remove float to ensure stacking */
    }
    .page-content .image-home img {
        width: 90%;
        height: auto;
        max-width: 100%;   /* Prevent the image from overflowing its container */
    }

    header {
        /*font-family: 'Courier New', monospace;*/
        font-family: 'Times New Roman', serif;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 20px 10px 10px;
        background-color: #fefefe;
        margin-top: 0;
        margin-left: 10px;
        margin-right: 20px;
        border-bottom: 1px solid #e0e0e0;
    }
    .logo {
        font-weight: bold;
        font-size: 24px;
        margin-right: 10px;
    }

    footer {
        font-family: 'Times New Roman', serif;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 20px 20px;
        margin-left: 0;
        margin-right: 10px;
        background-color: #fefefe;
        margin-top: auto; /* Push footer to the bottom if content is less */
        font-size: 14px;
    }

    .post-title{
        margin-bottom: 15px;
        padding: 0;
        font-weight: 400;
        font-size: 24px;
        line-height: 1;
    }
}