

.main {
    flex-direction: column;
    display: flex;
    width: 100%;
    max-width: 700px;
    gap: 10px;
    height: 100%;
    margin-top: 20px;
    margin-bottom: 50px;
    position: relative;
}

/* blog homepage layout */

.side-by-side {
    display: flex;
    flex-direction: row;
    gap: 10px;
}

.left {
    width: 320px;
    height: fit-content;
    display: flex;
    flex-direction: column;
    gap: 5px;

    background: linear-gradient(to bottom, var(--box-background-color) 0%, #00000000 70%);
    padding: 10px;
}

.intro {
    display: flex;
    align-items: center;
    flex-direction: column;

}

.intro img {
    max-width: 100%;
    width: 130px;
    background-color: var(--box-background-color-2);
    mask: url("/_img/assets/kiki.png");
    mask-repeat: no-repeat;
    mask-size: contain;
}

.intro h1 {
    font-family: sans-serif;
    font-size: 1.6em;
    margin: 5px 0px;
    letter-spacing: -1px;
    text-align: center;
    color: var(--highlight-color);
}


.intro #int {
    padding: 5px;
    border: 1px solid var(--box-background-color-2);
}

/* buttons to filter blog posts */
.post-nav {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-top: 10px;
    width: 100%;
}

.filter-button {
    transition: none;
    background: #00000000;
    border: none;
    color: var(--text-color);
    font-family: var(--main-font-family);
    text-align: left;
}

.filter-button::before {
    content: "> ";
}

.filter-button:hover {
    background-color: var(--box-background-color-2);
    cursor: pointer;
}

.filter-button.button-active {
    background-color: var(--highlight-color);
    color: var(--background-color);
}



.back {
    width: 100%;
    padding: 2px 6px;
    text-align: end;
    text-decoration: none;
    transition: background-color 100ms;
    text-transform: lowercase;
}

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


/* blog entry link on homepage */

.entry-container {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
}

.entry {
    display: flex;
    gap: 10px;
    padding: 5px;

    border: 1px solid var(--box-background-color);
    transition: transform 100ms ease-out, box-shadow 100ms ease-out, background-color 100ms ease-out;
}

.entry img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 3px;
}

.entry div {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
}

.entry:hover {
    background-color: var(--box-background-color);
    transform: translate(-3px, -3px);
    box-shadow: 5px 5px 0px var(--shadow-color);
}

.entry a {
    text-decoration: none;
}

.entry a:hover {
    text-decoration: underline;
}


/* blog entry page itself */

.entry-nav a {
    text-decoration: none;
}

.entry-nav a:hover {
    text-decoration: underline;
}

.entry-header {
    display: flex;
    gap: 10px;
    width: 100%;
    align-items: end;
    position: relative;
}

.entry-header:has(.spread-container)
{
    padding-top: 50px;
}

.entry-info {
    display: flex;
    flex-direction: column;
    width: 100%;
    justify-content: flex-end;
}

.cover-container img {
    height: 120px;
    width: 120px;
    object-fit: cover;
    border-radius: 3px;
}

.spread-container+.entry-info {
    padding-top: 130px;
}

.spread-container {
    width: 100%;
    position: absolute;
    top: 0px;
    z-index: -1;
}

.spread-container img {
    /* display: none; */
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 3px;

    -webkit-mask-image:-webkit-gradient(linear, top, bottom, from(rgba(0,0,0,1)), to(rgba(0,0,0,0)));
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 0%, transparent 90%);

    image-rendering: auto;
}


.header-title {
    font-family: sans-serif;
    font-size: 2.6em;

    /* color: var(--highlight-color); */
    line-height: 0.9em;
    letter-spacing: -1px;

    margin: 10px 0px;
}

.header-date {
    background-color: var(--box-background-color);
    padding: 2px 6px;
}

h2 {
    font-family: sans-serif;
    line-height: 0.9em;
    letter-spacing: -1px;
    font-size: 1.6em;
    text-align: left;
    margin-bottom: 0px;
}


.entry-content {
    text-align: justify;
    image-rendering: auto;
}


.entry-content img {
    max-width: 100%;
    border-radius: 3px;
}


.entry-back {
    text-decoration: none;
    text-align: right;
}

.entry-back:hover {
    text-decoration: underline;
}


.solo-image {
    width: 60%;
    min-width: 300px;
}

.column-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px 5px;
    align-items: center;
}

.column-2 img {
    width: 100%;
}


.img-center-container {
    display: flex;
    justify-content: center;
}


/* text styles */

.highlighted-0 {
    background-color: var(--box-background-color);
    padding: 0px 3px;
}





@media only screen and (max-width: 700px) {

    .container {
        padding: 10px;
    }

    .main {
        margin-top: 10px;
        margin-bottom: 30px;
    }

    .cover-container img {
        height: 80px;
        width: 80px;
    }



    .side-by-side {
        flex-direction: column;
    }

    .left {
        width: 100%;
        background: none;
        padding: 3px;
    }

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

    .intro img {
        width: 140px;
        height: 140px;
        margin: 0 auto;
    }

    .intro h1 {
        font-size: 2.4em;
    }

    .entry-header {
        flex-wrap: wrap;
    }


    .entry-content img {
        width: 100%;
        max-width: 400px;
    }

    .column-2 img {
        /* width: 90%; */
        /* min-width: 300px; */
    }

    .solo-image {
        width: 100%;
    }

    .container:has(.left) {
        background: linear-gradient(to bottom, var(--box-background-color) 0%, #00000000 40%);
    }

     .flex-column-mobile {
        gap: 5px !important;
     }

}
