/* Retro Myspace/Tumblr inspired styles */
body {
    background-color: #000000;
    color: #ffffff;
    font-family: "Comic Sans MS", "Chalkboard SE", Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-image: url('/images/stars-bg.gif');
    background-size: cover;
    /* scale the background on small screens */
    background-attachment: fixed;
    line-height: 1.5;
}

/* Make images responsive throughout the blog */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Fluid container with a max-width */
.container {
    width: 90%;
    /* use most of the viewport width */
    max-width: 750px;
    /* but never exceed your designed width */
    margin: 16px auto;
    background-color: #000033;
    border: 3px solid #9999ff;
    padding: 16px;
    box-sizing: border-box;
    /* include padding in width */
}



.header {
    display: flex;
    align-items: flex-end;
    /* vertically center items */
    justify-content: space-between;
    /* put logo on left, nav+divider on right */
    padding: 8px 16px;
    background-color: #000033;
    /* or whatever suits your theme */
    box-sizing: border-box;
}

.nav {
    display: flex;
    gap: 16px;
    /* spacing between links */
}


.profile-section {
    display: flex;
    margin-bottom: 16px;
}

.profile-pic {
    border: 2px solid #ff8888;
    margin-right: 16px;
    width: 64px;
    height: 64px;
}

.bio {
    font-size: 14px;
    padding: 8px;
    background-color: #110022;
    border: 1px solid #9999ff;
}

h1,
h2,
h3 {
    color: #fff;
    text-shadow: 2px 2px 4px #000000;
}

a {
    color: #44eeff;
    text-decoration: none;
}

a:hover {
    color: #ffcc00;
    text-decoration: underline;
}

.post {
    margin-bottom: 32px;
    padding: 8px;
    border: 1px dashed #9999ff;
    background-color: #110022;
}

.divider {
    text-align: center;
    margin: 16px 0;
    color: #9999ff;
}

footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    /* if you want vertical centering inside a fixed-height footer */
    text-align: center;
    /* ensures inline content like <p> is centered too */
}

.blink {
    animation: blinker 1s steps(1, start) infinite;
}

@keyframes blinker {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

.nav a {
    margin: 0 8px;
    font-weight: bold;
}

.visitor-counter {
    text-align: center;
    margin-top: 8px;
    font-family: "Courier New", monospace;
    color: #ffcc00;
}

/* Smaller tweaks on very small screens */
@media (max-width: 480px) {
    body {
        font-size: 14px;
        /* a bit smaller for narrow devices */
    }

    .container {
        margin: 8px auto;
        padding: 8px;
        border-width: 2px;
    }

    .header {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        /* make everything start at the left */
    }

    .nav {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        align-self: flex-start;
        /* override any bottom‐only or right alignment */
        margin-top: 8px;
    }

    .divider {
        align-self: flex-start;
        /* keep the divider on the left too */
        margin: 8px 0 0 0;
    }
}

/* Adjust the line length and spacing on tablets / small desktops */
@media (min-width: 481px) and (max-width: 800px) {
    body {
        font-size: 16px;
    }

    .container {
        width: 95%;
        padding: 12px;
    }
}

.home {
    margin: 0;
    font-size: 1.5em;
}

/* Base styles for <pre> elements */
pre {
    background-color: #000000 !important;
    /* Light gray background */
    padding: 1em !important;
    /* Adequate padding */
    overflow-x: auto !important;
    /* Horizontal scroll for overflow */
    font-family: Consolas, Monaco, 'Courier New', monospace !important;
    /* Monospace font */
    font-size: 0.95em !important;
    /* Slightly smaller font size */
    line-height: 1.5 !important;
    /* Improved line spacing */
    margin: 1em 0 !important;
    /* Vertical spacing */
    border: 1px solid #9999ff !important;
    border-radius: 0% !important;
}

/* Styles for <code> elements within <pre> */
pre code {
    display: block !important;
    /* Ensure block display */
    white-space: pre !important;
    /* Preserve whitespace */
    background: none !important;
    /* Remove background to inherit from <pre> */
    padding: 0 !important;
    /* Remove padding */
}

.blog-img {
    border: 1px solid #9999ff;
}

main img {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

main figure figcaption {
    display: block;
    text-align: center;
    margin-top: 8px;
    font-size: 10px;
    color: #9999ff;
}