/* these are the main colors and header image
   replace them with anything you want! */
:root {
    --header-bg: url("images/banner.png");
    --border-image: url("images/borderimg0.png");
    --accent-color: #ba682f;
    --link-color: #784d98;
    --bg-color: #c3b289;
    --bg-color2: #5e5250;
    --text-color: #2e1d17;
    --border-color: #2e1d17;
    /* you can change the stripe colors easily from here */
    --stripe-color: #b4783b;
    --stripe-color2: #be934c;
}

/* you can get hex codes from sites like this:
   https://palettes.shecodes.io/
   i just looked up "css color templates" to find that link! */

/* this applies to all the content */
* {
    color: var(--text-color);
    /* change the font here, it's set up to all use the same one */

    /* custom scrollbars don't appear for all browsers, but i like setting them anyway */
    scrollbar-color: var(--text-color) var(--stripe-color2);
    scrollbar-width: thin;
}
/* this is for when you select text on the page */

@font-face {
    font-family: "providence-bold";
    src: url("fonts/JOURNAL.TTF");
}

.poem {
    padding-left: 2em;
    font-family: "providence-bold";
    font-size: x-large;
    width: auto;
    height: fit-content;
    
}

.poem-title {
    text-align: center;
}

::selection {
    background: var(--accent-color);
    color: var(--bg-color);
}

header > h1 {
    margin: 20px auto;
    max-width: 1080px;
    width: fit-content;
    padding: 12px;
}

body {
    /* made the stripe bg with a generator:
    https://stripesgenerator.com/
     */
    background-image: url(images/004.jpg);

    background-attachment: fixed;
    background-repeat: round;
    margin: 0;
    transform: rotate(0deg);
    padding-top: 1em;
}

/* i think having better line spacing helps text to be more readable, but you can remove it if you want */
p {
    line-height: 1.5em;
}

nav {
    font-weight: bold;
}

nav > ul {
    max-width: 1080px;
    margin: auto;
    line-height: 3rem;
    /* this stuff makes it wrap around on mobile */
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    /* this line takes away the dot in front of the list items */
    list-style-type: none;
    /* list items have default padding but we don't need it for these */
    padding-left: 0;
    /* and this spaces out the buttons so they're not touching */
    justify-content: space-evenly;
}
nav li {
    text-align: center;
}
nav li > a {
    background-color: var(--accent-color);
    color: var(--bg-color);
    padding: 0.2em 3em;
    /* this takes away the link underline */
    text-decoration: none;
}
nav li > a:hover {
    background-color: var(--bg-color);
}

a {
    color: var(--link-color);
    font-weight: bold;
}
a:visited {
    color: var(--text-color);
}
a:hover {
    color: var(--accent-color);
}

/* you can change this to anything you want :) */
ul {
    list-style-type: circle;
}

marquee {
    display: block;
    margin: 0;
    background-color: var(--stripe-color2);
}

#sidebar {
    background-color: var(--bg-color);
    max-width: 500px;
    margin: 1em;
    padding: 1em;
    border: 2px solid var(--text-color);
    box-shadow: var(--accent-color) 4px 4px;
}

#sidebar ul {
    padding-left: 0;
    margin: 1em;
}

article {
    background-color: #ba682f;
    padding: 1em;
    border: 2px solid #000000;
    border-radius: 0.3em;
    margin-bottom: 1em;
    box-shadow: var(--post-shadow-color) 5px 5px;
}

.post-header {
    color: black;
    font-weight: bold;
    padding: 0.5rem 0;
    border-bottom: 4px double var(--outline-color);
}

.timestamp {
    font-weight: normal;
    font-size: smaller;
    margin: 0.2em;
    /*this keeps it to the right edge*/
    float: right;
}

details > summary {
    cursor: pointer;
}

.readmore summary {
    font-weight: bold;
    color: var(--border-color);
    list-style: none;
}
.readmore summary::-webkit-details-marker {
    display: none;
}
.readmore[open] > summary {
    border-bottom: 2px dashed var(--bg-color);
    padding-bottom: 0.6em;
    margin-bottom: 0.6em;
}

#avatar {
    margin: 0.5em auto;
    text-align: center;
}
#avatar img {
    background: var(--stripe-color);
    width: 100%;
    border: 2px solid var(--text-color);
}

#bio {
    background: var(--stripe-color2);
    border: 2px solid var(--text-color);
}
#bio p {
    margin: 0.8em;
}

#content {
    width: 600px;
    margin: auto;
}

main {
    background-color: var(--bg-color);
    box-shadow: var(--accent-color) 4px 4px;
    margin: 0 auto;
    padding-bottom: 1em;
    border: 32px solid var(--text-color);
    border-image: var(--border-image) 32 round;
    /*this line makes pixel art look better*/
    image-rendering: pixelated;
    /*remove these lines if you dont want the scrollbar*/
    /*max-height: 420px;
    overflow: auto;
    text-align: center right;*/
}

main h1 {
    text-align: center;
    font-family: "providence-bold";
}

main > h1,
main > h2,
main > h3 {
    text-align: center;
    background-color: var(--accent-color);
    padding: 0.2em 0.5em;
    margin: 0;
}

/* a class for centering text and images */
.center {
    text-align: center;
}

footer {
    text-align: center;
    font-size: small;
    margin: 1em auto;
    max-width: 960px;
}

/* these are the mobile styles! */
@media only screen and (max-width: 800px) {
    #content {
        flex-wrap: wrap;
    }
    #sidebar {
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        border: none;
        margin: 0;
    }
    header {
        min-height: 300px;
        background-position: bottom;
    }
    header > h1 {
        margin: 0.4em;
    }
    .white-bg {
        margin: 1em;
        position: fixed;
        left: 280px;
        padding: 0 20px;
    }
    nav > ul {
        /* this stuff makes it wrap around on mobile */
        display: flex;
        flex-wrap: wrap;
        flex-direction: row;
    }
    #avatar {
        margin: 0 1em;
        max-width: 120px;
    }
    #bio {
        width: 50%;
    }
    main {
        margin: 0;
        /* remove scrollbar for mobile */
        max-height: fit-content;
    }
    #sidebar {
        max-width: 100%;
    }
    #sidebar ul {
        margin: 0 1em;
        display: flex;
        flex-wrap: wrap;
        flex-direction: row;
        line-height: 2em;
    }
    #sidebar li {
        padding-left: 0;
        margin: 0.3em 1em;
    }
    footer {
        margin: 1em;
    }
}
