/*
Theme Name: Smart J!
Theme URI: https://www.jonathanseo.com/
Author: Jonathan Pochini
Author URI: https://www.jonathanseo.com/
Description: A minimalist WordPress theme
Version: 1.0
*/

/* Palette */
:root {
    --dark-blue: #1f2433;
    --deeper-blue: #13161f;
    --grayish-blue: #232632;
    --lighter-blue: #2e3145;
    --ai-blue: #162f4f;
    --link-color: #7DF9FF;
    --font-subtle-color: #bbbbbb;
    --graysh-border: #838385
}

body {
    background-color: var(--ai-blue);
}

main {
    background-color: var(--dark-blue);
}

header,
.site-footer {
    background-color: var(--deeper-blue);
}

.entry .art-content,
.entry .art-content:after {
    background-color: var(--lighter-blue);
}

.response .art-content,
.response .art-content:after {
    background-color: var(--ai-blue);
}

a {
    color: var(--link-color);
    text-decoration: none;
}

a:hover,
a:focus {
    color: #ffffff;
    /* change color on hover or focus */
}

a:active {
    color: #6495ED;
    /* change color when link is actively being clicked */
}

/* End Palette */

body {
    margin: 0;
    color: #ffffff;
    font-family: "Martel Sans", sans-serif;
}

header {
    width: 100%;
    padding: 20px;
    text-align: center;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: "IM Fell English SC", serif;
    text-shadow: 1px 1px 1px #000;
}

header a {
    margin: 0;
    color: #ffffff;
}

aside,
main,
header,
footer {
    box-sizing: border-box;
}

aside {
    width: 20%;
    float: left;
    overflow: auto;
    padding: 20px;
}

main {
    width: 80%;
    float: right;
    padding: 2em 0;
}

main,
article,
li {
    position: relative;
}

footer {
    clear: both;
    width: 100%;
    padding: 20px;
    text-align: center;
    color: #ffffff;
}

nav {
    margin-top: 20px;
}

nav ul {
    list-style: none;
    padding: 0;
}

nav ul li {
    display: inline;
    margin-right: 20px;
}

nav ul li a {
    color: #ffffff;
    text-decoration: none;
}

article {
    max-width: 800px;
    margin: 0 auto;
    z-index: 1;
}

article h1 {
    padding: 1em;
    font-size: 2em;
    text-align: center;
}

.single-post article h1:before {
    content: "✧";
    font-size: 1em;
    display: block;
    text-align: center;
    font-size: 1.5em;
    color: #ffffff;
    margin-top: 10px;
    margin-bottom: 20px;
}

article h1:after,
.article-footer:before {
    content: "";
    display: block;
    height: 1px;
    width: 60%;
    margin: 0 20%;
    background: linear-gradient(to right, var(--grayish-blue), #ffffff, var(--grayish-blue));
    margin-top: 2em;
}

.entry,
.response {
    display: flex;
    align-items: start;
    padding: 1em 0;
    position: relative;
}

div.avatar {
    position: absolute;
    top: 22px;
    left: -68px;
}

.avatar img {
    width: 64px;
    height: 64px;
    border-radius: 50%;
}

.art-content {
    position: relative;
    border: 1px solid var(--graysh-border);
    border-radius: 1em;
    padding: 1em 2em;
    flex-grow: 1;
}

.art-content:after {
    content: "";
    position: absolute;
    top: 2em;
    left: -9px;
    width: 16px;
    height: 16px;
    border-bottom: 1px solid var(--graysh-border);
    border-left: 1px solid var(--graysh-border);
    transform: rotate(45deg);
}

.reminders-list {
    display: inline-block;
    text-align: left;
    list-style: none;
    padding-left: 0;
}

.reminders-list li {
    padding-left: 1.5em;
}

.reminders-list li::before {
    content: "✅";
    position: absolute;
    left: 0;
}

.article-footer {
    padding: 2em 0;
    font-size: 0.8em;
}

.post-tags {
    color: #ffffff;
    margin-top: 2em;
}

.post-navigation {
    display: flex;
    justify-content: space-between;
    width: 60%;
    margin: 1em auto;
    list-style: none;
    padding: 0;
}

.post-navigation a {
    text-decoration: none;
}

.align_center {
    text-align: center
}


aside {
    font-size: 0.8em;
    line-height: 1.5;
}

aside h2,
aside h3,
aside h3 a {
    color: #ffffff;
}

aside ul {
    padding: 0;
    list-style-type: none;
}

aside li {
    margin-bottom: 0.8em;
}

.recent-posts li {
    padding-left: 2em;
    min-height: 38px;
}

.recent-posts li:before {
    position: absolute;
    left: -5px;
    top: 0;
    font-size: 1.5em;
}

.recent-posts li.personal-diary-post:before {
    content: "📝";
    transform: rotate(7deg);
}

.recent-posts li.gratitude-post:before {
    content: "🙏";
}

.recent-posts li.dream-post:before {
    content: "💤";
}

.recent-posts li.food-post:before {
    content: "🍎";
}

.recent-posts li.decision-post:before {
    content: "⚖️";
}

.recent-posts li.idea-post:before {
    content: "💡";
    transform: rotate(21deg);
}

.recent-posts li.manifesting-post:before {
    content: "🌟";
    transform: rotate(7deg);
}

.recent-posts li.daily-progress-post:before {
    content: "🌱";
}

.recent-posts li.acim-post:before {
    content: "🕊️";
}

.tag-cloud a {
    display: inline-block;
    box-shadow: 0px 0px 1px var(--link-color);
    border-radius: 0.5em;
    background: var(--grayish-blue);
    margin: 0 0.2em 0.4em 0;
    padding: 0.2em 0.5em;
}

.post-date {
    position: absolute;
    right: 16px;
    top: -32px;
    width: 48px;
    height: 48px;
    background-color: var(--grayish-blue);
    color: var(--font-subtle-color);
    text-align: center;
    border: 2px solid var(--graysh-border);
    line-height: 1;
    transform: rotate(7deg);
}

.post-date .month {
    display: block;
    font-size: 12px;
    line-height: 12px;
    padding: 2px 0 1px;
    text-transform: uppercase;
    font-weight: bold;
    background-color: var(--graysh-border);
    color: var(--deeper-blue);
}

.post-date .day {
    display: block;
    font-size: 24px;
    padding: 4px;
    margin-top: 3px;
}
.past-year .day {
    left: 3px;
    position: absolute;
}

.post-date .year {
    display: block;
    font-size: 9px;
    line-height: 9px;
    text-transform: uppercase;
    font-weight: bold;
    color: var(--graysh-border);
    border-radius: 4px;
    position: absolute;
    bottom: 12px;
    right: -3px;
    rotate: 90deg;
}

.keep-reading {
    font-size: 0.75em;
    word-wrap: nowrap;
}

.align-center {
    text-align: center;
}

.category-section {
    max-width: 800px;
    margin: 40px auto 80px;
}

.category-section:after {
    content: "";
    display: block;
    height: 1px;
    width: 60%;
    margin: 0 20%;
    background: linear-gradient(to right, var(--grayish-blue), #ffffff, var(--grayish-blue));
    margin-top: 80px;
}

.post-thumbnail-cont {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    overflow: hidden;
}

.post-thumbnail {
    position: relative;
    height: auto;
}

.post-thumbnail img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
    /* Ensure the image covers the entire space */
}

.post-thumbnail::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: -1px;
    background: linear-gradient(180deg, transparent, var(--dark-blue));
    background: linear-gradient(180deg, transparent 75%, var(--dark-blue) 90%, var(--dark-blue) 100%);
}

.fader {
    width: 100%;
    height: 50px;
    background: red
}

/* Responsive Navigation */

nav.menu-toggle {
    display: none;
}

.menu-toggle button {
    background: none;
    border: none;
    font-size: 24px;
    color: #ffffff;
    cursor: pointer;
}

@media (max-width: 768px) {
    header {
        padding: 10px;
        position: fixed;
        top: 0;
        z-index: 999999;
    }

    nav {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        margin: 0;
    }

    nav.menu-toggle {
        display: flex;
    }

    body {
        margin-top: 55px;
    }

    main,
    aside {
        width: 100%;
        float: none;
        padding: 2em;
    }

    #menu-main-menu-container,
    #sidebar-content {
        display: none;
    }

    nav ul,
    #sidebar-content {
        flex-direction: column;
        background-color: #333;
        width: 100%;
    }

    nav ul li {
        display: block;
        margin: 0;
        text-align: center;
    }

    #menu-main-menu-container.open,
    #sidebar-content.open {
        display: flex;
    }

    #main-content.close {
        display: none;
    }

    div.avatar {
        position: absolute;
        z-index: 9;
        top: -24px;
        left: -16px;
    }

    .art-content:after {
        display: none;
    }

    .response {
        margin-top: 1em;
    }

    .response .avatar {
        top: -16px;
        left: auto;
        right: -16px;
    }

    section article {
        margin-top: 20px;
    }

}