/* test */
body {
    --text-on-background: #3b3233;
    --link-color: #596de0;
    --header-font: "Comic Sans MS", "Comic Sans", "Comic Relief", "Handlee";
    --background-color: #d5e0ff;
    --secondary-background-color: #fff;
    --normal-font: "Fira Sans", sans-serif;
    --accent-color: #dd7f7f;

    background-color: var(--background-color);
    color: var(--text-on-background); /* basically just the tagline */
    font-family: var(--normal-font);
    margin: auto;
    line-height: 1.5;
}

/* blog title, tagline, top links */
.blog-header {
    text-align: center;
    margin-bottom: .5rem;
}

.blog-title, .blog-title a {
    font-family: "Handlee";
    font-size: xxx-large;
    margin-bottom: 0;
    color: var(--accent-color);
    text-decoration: none;
}

/* used on the v whatever next to the title */
.v-whatever  { color: #fe6700 }
.small       { font-size: 50% }

.flailing-in-my-kitchen-image {
    margin-bottom: .5rem;
}

.blog-tagline {
    font-family: var(--header-font);
    margin-bottom: .5rem;
    text-align: center;
}

.blog-tagline > a {
    text-decoration: none;
    font-weight: bold;
    color: var(--link-color);
}

.top-links, body > .tag-description {
    text-align: center;
    margin-bottom: .5rem;
}

/* links outside the box */
a {
    color: var(--link-color);
    text-decoration: underline;
}

/* the white box that surrounds the blog posts */
.white-box-container {
    color: #555;
    background-color: var(--secondary-background-color);
    margin-bottom: .5rem;
    border-radius: 5px;
}

.white-box-container a {
    color: var(--link-color);
    text-decoration: underline;
}

.prev-next-links {
    display: flex;
    column-gap: 10px;
}

a.prev-link, a.next-link, a.button {
    background-color: var(--accent-color);
    color: #FFF;
    padding: 2px 6px;
    border-radius: 5px; /* XXX do I need browser specific rules? */
    text-decoration: none;
    white-space: nowrap;
}

input.button {
    background-color: #eff3ff;
    color: var(--link-color);
    padding: 2px 6px;
    border-radius: 5px; /* XXX do I need browser specific rules? */
    text-decoration: none;
    white-space: nowrap;
    border-style: solid;
    border-color: var(--link-color);
    font-family: var(--normal-font);
    font-weight: 600;
    border-width: 1px;
}

@media (max-width: 1150px) {
    input.button {
        background-color: var(--accent-color);
        color: #FFF;
        border-width: 0;
    }
}

.next-link {
    margin-left: auto;
}

.nav-links {
    display: flex;
    gap: 10px;
    justify-content: space-between;
}

.search-bar {
    margin-top: 10px;
    text-align: center;
}

.search-bar-form {
    display: flex;
    gap: 10px;
}

.search-input {
    flex-grow: 1;
    height: 1.5em;
}

/* small pic of me with a short description */
.mini-about {
    margin-bottom: 10px;
    margin-top: 2rem;
    color: var(--text-on-background);
    display: flex;
    grid-gap: 1rem;
}
.mini-about img {
    clip-path:circle();
    max-height: 150px; /* XXX: is there a better unit to use here?? */
    margin-bottom: 1rem;
}

.sidebar-box .link-header {
    font-family: var(--header-font);
    font-size: 1.25em;
}

#white-box-sidebar > .tag-description {
    font-family: var(--header-font);
}

#on-this-page-list {
    margin-top: -5px;
    margin-bottom: 10px;
}

/* the main divider that gets used */
hr {
    border: 0;
    border-top: 3px dashed var(--accent-color);
}

/* for styling content inside of a blog post */

/* full width images and embedded videos */
img {
    max-width: 100%;
    margin: auto;
    display: block;
}
iframe { width: 100% }
video  { width: 100% }

li {
    margin: .25em 0; /* just a little extra margin between list items */
}

/* h1: blog post title
   h2: headers for those times when I basically have multiple blog posts in one
   it's just "h2" rather than a class because it's what the markdown produces
*/
.blog-post-title, .entry-container h2 {
    font-family: var(--header-font);
    font-weight: 500;
    text-align: center;
    margin-bottom: 0;
}

/* h5: blog post timestamp */
.blog-post-timestamp {
    color: #999;
    text-align: center;
    margin-top: 0;
}

blockquote {
    border-left: 3px dashed var(--accent-color);
    padding-left: 1em;
    font-style: italic;
    font-weight: bold;
}

table, tr, td, th {
    border: 1px solid var(--accent-color);
    padding: .25em;
    border-collapse: collapse;
}

table {
    margin-bottom: 1em;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.table-wrapper { overflow-x: scroll; }

.tags {
    font-size: .85rem;
}

/* divider inside of a blog post */
.entry-container hr {
    border: 0;
    border-top: 2px dashed var(--accent-color);
    width: 75%;
    margin: auto;
    padding-bottom: 1em;
}

.continue-reading-link {
    text-align: right;
}

/* image caption stuff */
figure {
    display: block;
    margin-block-start: 0;
    margin-block-end: 0;
    margin-inline-start: 0;
    margin-inline-end: 0;
}

figcaption {
   font-size: 90%;
   text-align: center;
   margin-top: .5em;
}

/* just so I can display two photos next to each other */
.two-columns {
    display: grid;
    grid-template-columns: auto auto;
    grid-gap: 10px;
}

.tooltip-hover {
    position: relative;
    cursor: pointer;
    color: var(--link-color);
    white-space: nowrap;
}

.tooltip {
    display: none;
    position: absolute;
    bottom: 125%; /* Position above the text */
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: #EEE;
    white-space: nowrap;
    padding: 4px 6px;
    border-radius: 5px;
    border: solid;
    border-width: 2px;
    border-color: var(--link-color);
    font-weight: normal;
    font-style: normal;
}

.tooltip-hover:hover .tooltip {
    display: block;
}

.fanart, .flailing-in-my-kitchen-image {
    border-radius: 5px;
}
