@media (prefers-color-scheme: dark) {
    body {
        background-image: url('/images/purple-cloud.jpg');
        color: #dfcae9;
    }

    a {
        color: #ca74ff;
    }


    h1,
    h2,
    h3 {
        color: gold;
    }

    nav ul {
        border-right: 2px solid gold;
    }

    code {
        background-color: #282C34;
        color: #e7eefb;
    }

    img.updated {
        background: gold;
    }

    img.photo {
        box-shadow: 10px 10px 15px rgba(128, 0, 128, 0.9);
    }

}

@media (prefers-color-scheme: light) {
    body {
        background-image: url('/images/light.png');
        color: #000000;
    }

    a {
        color: #0000ee;
    }

    h1,
    h2,
    h3 {

        color: black;
    }

    nav ul {
        border-right: 2px solid black;
    }

    code,
    pre {
        color: #282C34;
        /* Setting this as an override - MDEx adds style tags that set the background
         * and assumes dark by default */
        background-color: #e7eefb !important;
    }

    img.photo {
        box-shadow: 10px 10px 15px rgba(0, 0, 0, 0.5);
    }
}

img.updated {
    width: 50px
}

nav ul li.active {
    text-decoration: underline;
}

body {
    background-repeat: repeat;
    margin: 0;
    padding: 20px;
}

div#inner-content {
    margin-left: 2em;
}

h1,
h2,
h3 {
    font-style: italic;
    text-shadow: 4px 4px rgba(128, 128, 128, 0.5);
}

h1 {
    font-size: 3em;
}

#content {
    display: flex;
    max-width: 800px;
}

nav {
    flex: 0 0 200px;
    font-size: 1.5em;
    /* Adjust the width as needed */
}


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

nav li {
    margin-top: 10px;
    padding-left: 30px;
    background: url('/images/star.gif') no-repeat left center;
    display: flex;
    align-items: center;
}

nav a {
    margin-left: 20px;
    text-decoration: none;
    padding: 5px;
}

.counter-digit {
    background-color: white;
    color: black;
    text-shadow: 2px 2px rgba(128, 128, 128, 0.5);
    padding: 5px 10px;
    font-size: 20px;
    border: 1px solid grey;
}

#counter {
    margin: 0;
}



#hits-label {
    font-size: 20px;
    color: inherit;
}

#footer {
    position: inline;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

#hits-icon {
    height: 32px;
    /* Adjust size as needed */
    width: auto;
    vertical-align: middle;
}

#blog-posts article {
    margin-bottom: 3em;
}

#blog-posts img.post-thumbnail {
    max-width: 200px;
}

img.photo {
    image-rendering: pixelated;
}

#audio-button {
    display: inline-block;
    cursor: pointer;
    margin: 10px 0;
    width: 32px;
    height: 32px;
}

pre {
    padding: 1em;
}

#web-posts .post {
    padding: 2em;
    margin-bottom: 2em;
}

#web-posts .post .timestamp {
    font-family: monospace;
    font-style: italic;
}

@media (prefers-color-scheme: light) {
    #web-posts .post {
        box-shadow: 10px 10px 0px rgba(128, 128, 128, 0.5);
        background: rgb(255, 242, 170);
    }

    #web-posts .post .timestamp {
        color: #555;
    }
}

@media (prefers-color-scheme: dark) {
    #web-posts .post {
        box-shadow: 10px 10px 0px rgba(128, 128, 128, 0.5);
        background: rgb(21, 0, 95);
    }

    #web-posts .post .timestamp {
        color: #aaa;
    }
}

#blog-post {
    max-width: 800px;
}

#blog-post blockquote {
    font-style: italic;
    padding-left: 1em;
    border-left: 2px solid #ccc;
}

div.rss-well {
    padding: 4px;
    background-color: #ddd;
    border: 4px groove #ccc;
    color: blue;
}
