/* {font-size:13pt;font-weight:normal;} */

nav[data-sblg-nav] ul {
    list-style-type: none;
    padding: 0;
}

@font-face {
    font-family: monument;
    src: url(/fonts/MonumentExtended-Regular.otf);
}

@font-face {
    font-family: ibm;
    src: url(/fonts/ibm.ttf);
}

@media (min-width: 64em) {
    .row {
        display: flex;
        flex-wrap: nowrap;
        flex-direction: row-reverse;
    }
    .col {
        flex-grow: 1;
    }
}

#indexlist {
	font-family: courier, monospace;
	text-align: left;
}

.grid {
    border-collapse: collapse;
}

.col {
    #border: 6px double #fb5;
    padding: 1em;
    overflow: auto;
}

.user-list {
    display: flex;
    flex-flow: row wrap;
    justify-content: space-evenly;
    list-style-type: none;
    padding: 0;
}

.user-list li {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 10em;
}

.user-list::after {
    content: "";
}

body {
    margin: auto;
    padding: 1em;
    max-width: 64em;
    /*font-family: "Helvetica", monospace;*/
    font-size: 1.2em;
    color: #fff;
    background: #58F; /* #111 */
    font-family: monospace;
    word-wrap: break-word;
}

p {
    text-align: justify;
    text-justify: inter-word;
}

img {
    max-width: 100%;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

a {
    text-decoration: underline;
    color: white;
    #font-weight: bold;
    padding-right: 0.25em;
}

a:hover {
    color: #f20;
}

hr {
    border-color: #fb5;
}

.text-center {
    text-align: center
}

.advisory {
    background: #fc4;
    color: #222;
    font-weight: bold;
    padding: 1em;
    border-radius: 0.25em;
}

h1,h2 {
    text-transform: uppercase;
    color: #fff;
    font-family: monument;
    font-size: 1.2em;
}

.sourceCode {
    color: #008000;
}

code>span.fl {
    color: #008000;
}

/* Style the navbar */

#navbar {
    overflow: hidden;
    #background-color: #fb5;
    color: white;
    z-index: 99;
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    #border-radius: 0.5em;
    border-color: white;
    border-bottom-style: solid;
    border-width: 0.05em;
    font-family: monument;
    text-transform: uppercase;
    font-size: 0.75em;
}

#navbar a:hover {
    background-color: white;
    color: black;
}

/* Navbar links */

#navbar a {
    float: left;
    display: block;
    color: white;
    text-align: center;
    padding: 14px;
    text-decoration: none;
}

/* Page content */

.content {
    padding-top: 5px;
}

input[type="text"],
textarea {
    #background-color: #333;
    #color: darkorange;
}

/* Mobile */

/* Blockquote styles */
blockquote {
    margin: 1em 0;
    padding: 0.5em 1em;
    border-left: 4px solid white;
    background: rgba(255, 255, 255, 0.1);
    font-style: italic;
}

/* Code styles */
code {
    white-space: pre-wrap;
}

pre {
    margin: 1em 2em;
    padding: 1em;
    border: 2px solid white;
    background: rgba(0, 0, 0, 0.3);
    overflow-x: auto;
    border-radius: 4px;
}

pre code {
    background: transparent;
    padding: 0;
    border: none;
}

span.smallcaps {
    font-variant: small-caps;
}

span.underline {
    text-decoration: underline;
}

div.column {
    display: inline-block;
    vertical-align: top;
    width: 50%;
}

/* Article excerpt styles */
.article-excerpt {
    width: 100%;
    margin-bottom: 20px;
    overflow: hidden;
    border-bottom: 1px solid #ddd;
    padding-bottom: 20px;
}

.article-excerpt .thumbnail-container {
    width: 128px;
    height: 128px;
    display: flex;
    align-items: center;
    justify-content: center;
    float: left;
    margin-right: 20px;
}

.article-excerpt img.thumbnail {
    max-width: 100%;
    max-height: 100%;
    border-radius: 8px;
}

.article-excerpt h3 {
    margin: 0;
}

.article-excerpt h3 a {
    text-decoration: none;
    color: inherit;
}

.article-excerpt .date {
    margin: 5px 0;
    font-size: 0.9em;
}

.article-excerpt .aside {
    margin: 10px 0;
    font-size: 1em;
}

.article-excerpt .read-more {
    display: inline-block;
    margin-top: 10px;
    font-size: 0.9em;
    text-decoration: none;
}

/* Hero image styles */
.hero-image {
    width: 100%;
    max-width: 600px;
    height: auto;
    margin-bottom: 20px;
    border-radius: 8px;
}

/* Banner image styles - matches body text width */
.banner-image {
    width: 100%;
    height: auto;
    margin-bottom: 20px;
    display: block;
}

/* Floating image styles */
.float-left {
    float: left;
    margin: 0 20px 15px 0;
    max-width: 300px;
    height: auto;
}

.float-right {
    float: right;
    margin: 0 0 15px 20px;
    max-width: 300px;
    height: auto;
}

/* Small floating images */
.float-left-small {
    float: left;
    margin: 0 15px 10px 0;
    max-width: 150px;
    height: auto;
}

.float-right-small {
    float: right;
    margin: 0 0 10px 15px;
    max-width: 150px;
    height: auto;
}

/* Clear floats */
.clear {
    clear: both;
}

/* Library styles */
.library-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    padding: 20px 0;
}

.library-item {
    text-align: center;
    word-wrap: break-word;
}

.library-item img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    transition: opacity 0.2s;
}

.library-item img:hover {
    opacity: 0.8;
}

.library-item .filename {
    margin-top: 8px;
    font-size: 0.9em;
    color: #fff;
    word-break: break-all;
}

.library-item .filedate {
    margin-top: 4px;
    font-size: 0.8em;
    color: #ccc;
}

.library-stats {
    margin-bottom: 20px;
    font-size: 0.9em;
    color: #ccc;
}

.pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 30px 0;
    padding: 20px 0;
    border-top: 1px solid #666;
}

.pagination a {
    padding: 10px 20px;
    text-decoration: underline;
    color: #fff;
}

.pagination a:hover {
    background: rgba(255, 255, 255, 0.1);
}

.pagination .disabled {
    color: #666;
    text-decoration: none;
    cursor: default;
}

.page-info {
    color: #ccc;
}

.page-numbers {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}

.page-numbers a {
    padding: 8px 12px;
    text-decoration: underline;
    color: #fff;
    min-width: 20px;
    text-align: center;
}

.page-numbers a:hover {
    background: rgba(255, 255, 255, 0.1);
}

.page-numbers .current {
    padding: 8px 12px;
    color: #58F;
    font-weight: bold;
    background: rgba(255, 255, 255, 0.1);
    min-width: 20px;
    text-align: center;
}

.directory-readme {
    grid-column: 1 / -1;
    margin: 20px 0;
    text-align: left;
    color: #fff;
    line-height: 1.5;
}

.directory-readme h1, .directory-readme h2, .directory-readme h3 {
    color: #fff;
    margin-top: 20px;
    margin-bottom: 10px;
}

.directory-readme p {
    margin: 10px 0;
}

/* Subject index styles */
.subject-index {
    list-style-type: none;
    padding: 0;
    margin: 30px 0;
}

.subject-index li {
    margin: 8px 0;
    padding: 8px 12px;
    break-inside: avoid;
    border-left: 3px solid #666;
    transition: border-color 0.2s;
}

.subject-index li:hover {
    border-left-color: #58F;
    background: rgba(255, 255, 255, 0.05);
}

.subject-index a {
    color: #fff;
    text-decoration: none;
    font-family: monospace;
    font-size: 0.95em;
    display: block;
}

.subject-index a:hover {
    color: #58F;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .subject-index {
        column-count: 1;
    }
}

/* Shared hover effects */
.hover-raise {
    transition: transform 0.2s, box-shadow 0.2s;
}

.hover-raise:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* Album styles */
.albums-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin: 30px 0;
}

.album-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    overflow: hidden;
}

.album-item a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.album-thumbnail {
    width: 100%;
    height: 200px;
    object-fit: cover;
    object-position: center;
}

.album-info {
    padding: 15px;
}

.album-title {
    margin: 0 0 8px 0;
    font-size: 1.1em;
    font-weight: bold;
    color: #fff;
}

.album-date {
    font-size: 0.9em;
    color: #ccc;
    margin-bottom: 5px;
}

.album-count {
    font-size: 0.8em;
    color: #999;
}

/* Individual album page styles */
.album-meta {
    margin: 20px 0;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    border-left: 3px solid #58F;
}

.photos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    margin: 30px 0;
}

.photo-item {
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 4px;
    transition: transform 0.2s;
}

.photo-item:hover {
    transform: scale(1.05);
}

.photo-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.album-actions {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #666;
    text-align: center;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .albums-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }

    .photos-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 10px;
    }
}


/* Tweet styles */
.tweets-timeline {
    margin: 20px 0;
}

.tweet {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    border-left: 3px solid #58F;
}

.tweet-content {
    font-size: 1.1em;
    line-height: 1.5;
    margin-bottom: 10px;
    color: #fff;
}

.tweet-date {
    font-size: 0.85em;
    color: #ccc;
    text-align: right;
}

.tweet-date time {
    font-family: monospace;
}

.no-tweets {
    text-align: center;
    color: #ccc;
    font-style: italic;
    padding: 40px;
}

.tweet-actions {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #666;
    text-align: center;
}

/* Mobile */
@media (max-width: 768px) {
    td {
        display: block;
    }

    .tweet {
        padding: 15px;
        margin-bottom: 15px;
    }
}
