#talltext {
    width: auto;
    height: 100%;
    /* font-family: 'pc-98'; */
    background-color: #ffaaba;
    color: black;
    padding: 10px;
    margin: 10px;
    overflow-y: scroll;
    overflow-x: auto;
    padding-left: 40px;
    padding-right: 40px;
}

div {
    font-family: 'pc-98-bold';
}

a {
    color: #664477;
    text-decoration: none;
}

a:hover {
    color: #8799ff;
}

p {
    font-size: 22px;
    color: black;
    line-height: 1.2em;
}

b {
    font-family: 'pc-98-bold';
    color: #664477;
}

li {
    font-family: 'pc-98-bold';
    color: #664477;
}

h1 {
    color: #664477;
    text-align: center;
    font-family: 'pc-98-bold';
}

h2 {
    color: #664477;
    font-family: 'pc-98-bold';
}

.text-lg {
    color: #664477;
    font-family: 'pc-98-bold';
}

h3 {
    color: #664477;
    font-family: 'pc-98-bold';
}

h4 {
    color: #664477;
    font-family: 'pc-98-bold';
}

h5 {
    color: #664477;
    font-family: 'pc-98-bold';
    margin-bottom: -6px;
    margin-top: -10px;
}

hr {
    background-color: #8799ff;
    height: 1px;
    border: none;
    width: 80%;
}

#talltext img {
    width: 100%;
    margin: auto;
    text-align: center;
    /* margin-left: auto; */
    /* margin-right: auto; */
    display: flex;
    border: 0.5rem #8899ff;
    border-style: ridge;
}

figcaption {
    text-align: center;
    font-style: italic;
    font-family: 'pc-98';
}

time {
    font-family: 'pc-98-bold';
    color: #664477;
    text-align: center;
    margin: auto;
    display: flex;
    /* align-content: flex-end; */
    justify-content: space-around;
}

/* width */
#talltext::-webkit-scrollbar {
    width: 10px;
}

/* Track */
#talltext::-webkit-scrollbar-track {
    background: #8799ff;
}

/* Handle */
#talltext::-webkit-scrollbar-thumb {
    background: #664477;
}

.recipe-imagebox {
    width: 48%;
    display: inline;
    height: fit-content;
    margin-top: 21px;
    /* margin-bottom: auto; */
}

.recipe-ingredientbox {
    width: 48%;
    padding-left: 27px;
}

.recipe-header {
    display: flex;
    flex-direction: row;
}

.blogpost-body {
    width: 88%;
    margin: auto;
    padding-bottom: 30px;
    margin-bottom: 30px;
}

.blogpost-body img {
    max-width: 80%;
}

/* Media query for mobile devices */
@media (max-width: 768px) {
    p {
        font-size: 16px;
    }

    #talltext {
        width: 100%;
        max-width: 100%;
        padding: 10px;
        margin: 0;
        box-sizing: border-box;
        position: relative;
        overflow-x: clip;
        height: auto;
        overflow-y: visible;
    }

    .blogpost-body {
        width: 100%;
        max-width: 100%;
        padding: 10px;
        margin: 0;
        box-sizing: border-box;
    }

    /* Ensure embedded content doesn't overflow */
    #substack-feed-embed {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
        position: relative !important;
        left: 0 !important;
        right: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    /* Ensure all content stays within bounds */
    #talltext * {
        max-width: 100%;
        box-sizing: border-box;
    }

    /* Ensure the main container doesn't cause horizontal scroll */
    .main-container {
        width: 100%;
        max-width: 100vw;
        padding: 0;
        margin: 0;
    }

    /* Adjust the main window for mobile */
    .main-window {
        width: 100%;
        height: auto;
        background-image: none;
        /* Remove the frame background */
    }

    /* Make the main content area full width */
    #main-image-tall {
        width: 100%;
        height: auto;
        position: static;
        left: 0;
        top: 0;
        min-height: 100vh;
    }

    /* Hide the navigation row and the right sidebar */
    #left-sidebar,
    #right-sidebar {
        display: none;
    }
}