@charset "utf-8";

@import url("themes.css");
@import url("icons.css");
@import url("donate.css");

:root {
    --half-spacing-unit: 1em;
}

body {
    background-color: #eee;
    font-family: Verdana, Tahoma, sans-serif;
    font-size: 10px;
    margin: 0;
}

img {
    box-sizing: border-box;
    max-width: 100%;
    vertical-align: middle;
    height: auto;
}

x-image {
    display: block;
}

video {
    box-sizing: border-box;
    max-width: 100%;
    height: auto;
}

a {
    color: #000;
}

.caption {
    text-align: center;
}

/* Well this is hideous and needs killing */
.post-list {
    padding: 0;
}

.site-header {
    border: 1px solid #aaa;
    padding: 10px;
    background: #fff;
    margin: 30px auto;
    margin-bottom: -12px;
    border-bottom: 0;
    padding-bottom: 12px;
    width: 670px;
}

.site-header::before {
    display: block;
    content: "";
    background: url("/images/themes/2.0/skunk_small.gif");
    width: 100%;
    height: 121px;
    display: inline-block;
    margin: 10px auto;
    background-repeat: no-repeat;
    background-position: center
}

.site-title {
    display: block;
    width: 100%;
    text-align: center;
    border-top: 1px solid;
    border-bottom: 2px solid;
    padding: 1px;
    letter-spacing: 2px;
}

.site-title a {
    text-decoration: none;
}

.page-content {
    border: 1px solid #aaa;
    padding: 10px;
    background: #fff;
    margin: 30px auto;
    margin-bottom: 10px;
    margin-top: 0;
    border-top: 0;
    padding-top: 0;
    width: 670px;
}

.page-content .wrapper {
    text-align: left;
    line-height: 1.7em;
    padding: 20px;
    padding-top: 0;
    background-color: #fff;
    display: flow-root;
}

.site-footer {
    text-align: center;
}

.site-footer::before {
    display: block;
    content: "";
    background: url("/images/themes/2.0/stars.gif");
    background-repeat: no-repeat;
    background-position: center;
    width: 100%;
    height: 59px
}

.post-content {
    padding-top: 10px;
    padding-bottom: 10px;
    border-top: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
    margin-top: 5px;
    margin-bottom: 5px;
    font-size: 11px;
}

.post-content img,
.post-content video,
.post-content model-viewer {
    border: 1px solid #000;
}

.post-content table {
    border-collapse: collapse;
    margin-bottom: 1em;
    /* See https://stackoverflow.com/questions/5533636/add-a-horizontal-scrollbar-to-an-html-table#30423904 */
    display: block;
    overflow-x: auto;
    white-space: nowrap;
}

.post-content table.plain {
    width: auto;
    position: relative;
}

.post-content table.plain td {
    border: 0;
}

.post-content td,
.post-content th {
    border: 1px solid #ddd;
    padding: 0.4em;
    text-align: left;
}

h1 {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 4px;
}

h1 a {
    text-decoration: none;
}

h2 {
    font-size: 14px;
}

hr {
    border: 0;
    border-bottom: 1px solid #ddd;
}

.post-date::before {
    display: inline;
    content: "Posted "
}

:root {
    --spacing-unit: 20px;
    --placeholder-background-color: #eee;
    --media-border-radius: 0;
}

.photo-container {
    margin-bottom: calc(var(--spacing-unit) / 2);
    background-color: var(--placeholder-background-color);
    border-radius: var(--media-border-radius);
    text-align: center;
    line-height: 0;
    overflow: hidden;
}

img.transition {
    opacity: 1;
    transition: opacity 0.7s;
}

img.transition.loading {
    opacity: 0;
    transition: opacity 0.7s;
}

ul.photos {
    display: flex;
    list-style: none;
    flex-wrap: wrap;
    margin-top: calc(-1 * var(--spacing-unit) / 4);
    margin-right: calc(-1 * var(--spacing-unit) / 4);
    margin-left: calc(-1 * var(--spacing-unit) / 4);
    margin-bottom: 0;
}

ul.photos > li:before {
    display: none;
}

ul.photos > li {
    padding: 0;
    text-indent: 0;
    text-align: center;
    box-sizing: border-box;
    border: calc(var(--spacing-unit) / 4) solid transparent;
    display: block;
    min-width: 280px;
}

.software-image img {
    border: 0;
}

.grid,
.site-header ul {
    list-style: none;
    display: grid;
    grid-gap: 1em;
    margin: 0 0 0 0;
    margin-bottom: var(--spacing-unit);
    padding: 0;
}

.grid.prefer-2-columns {
    grid-template-columns: 1fr 1fr;
}

.grid.prefer-3-columns {
    grid-template-columns: 1fr 1fr 1fr;
}

.grid.prefer-4-columns {
    grid-template-columns: 1fr 1fr 1fr 1fr;
}

.aspect {
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
    width: 100%;
    padding-bottom: 75%;
}

.aspect.square {
    padding-bottom: 100%;
}

.aspect.ratio-4-3 {
    padding-bottom: 75%;
}

.aspect.ratio-16-9 {
    padding-bottom: 56.25%;
}

.aspect.ratio-3-2 {
    padding-bottom: 66.66%;
}

.aspect img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    top: 0;
    left: 0;
}

/* Make this a nav element. */
.site-header ul {
    grid-template-columns: 1fr 1fr 1fr 1fr;
    width: 80%;
    margin: 12px auto;
}

.site-header li {
    display: inline-block;
    width: 140px;
}

.site-header ul a {
    text-decoration: none;
    color: #666;
}

.site-header a:hover {
    color: #000;
}

/* Software */

.software {
    text-align: center;
}

/* Icons */

.icon {
    width: 96px;
    height: 96px;
}

.icon img {
    border: 0;
}

/* Grid */

/* Symbols */

.symbol,
.site-header ul a {
    margin-left: calc(24px + 0.5em);
}

.site-header ul a::before,
.symbol::before {
    content: "";
    display: inline-block;
    width: 24px;
    height: 26px;
    background-image: url("/images/themes/2.0/icons/link.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 24px;
    margin-left: calc(-24px - 0.5em);
    vertical-align: middle;
}

.site-header ul a.nav-posts::before {
    background-image: url("/images/themes/2.0/icons/posts.png");
}

.site-header ul a.nav-photos::before {
    background-image: url("/images/themes/2.0/icons/photos.png");
}

.site-header ul a.nav-hardware::before {
    background-image: url("/images/themes/2.0/icons/hardware.png");
}

.site-header ul a.nav-software::before {
    background-image: url("/images/themes/2.0/icons/software.png");
}

.site-header ul a.nav-more::before {
    background-image: url("/images/themes/2.0/icons/more.png");
}

.site-header ul a.nav-about::before {
    background-image: url("/images/themes/2.0/icons/about.png");
}

.site-header ul a.nav-archive::before {
    background-image: url("/images/themes/2.0/icons/archive.png");
}

.site-header ul a.nav-subscribe::before {
    background-image: url("/images/themes/2.0/icons/subscribe.png");
}

.site-header ul a.nav-support::before {
    background-image: url("/images/themes/2.0/icons/gnome-favorites.png");
}

.symbol.computer::before {
    background-image: url("/images/themes/2.0/icons/computers.png");
}

.symbol.drafts::before {
    background-image: url("/images/themes/2.0/icons/hardware.png");
}

.symbol.ideas::before {
    background-image: url("/images/themes/2.0/icons/ideas.png");
}

.symbol.places::before {
    background-image: url("/images/themes/2.0/icons/places.png");
}

.symbol.document::before {
    background-image: url("/images/themes/2.0/icons/resume.png");
}

.symbol.scans::before {
    background-image: url("/images/themes/2.0/icons/scans.png");
}

.symbol.screenshot::before {
    background-image: url("/images/themes/2.0/icons/screenshots.png");
}

.symbol.style::before {
    background-image: url("/images/themes/2.0/icons/gnome-settings-font.png");
}

.symbol.tag::before {
    background-image: url("/images/themes/2.0/icons/tags.png");
}

.symbol.wallpaper::before {
    background-image: url("/images/themes/2.0/icons/wallpapers.png");
}

.symbol.game::before {
    background-image: url("/images/themes/2.0/icons/games.png");
}

.symbol.book::before {
    background-image: url("/images/themes/2.0/icons/gdict.png");
}

.symbol.zip::before {
    background-image: url("/images/themes/2.0/icons/zip.png");
}

.symbol.tgz::before {
    background-image: url("/images/themes/2.0/icons/tgz.png");
}


.symbol.pdf::before {
    background-image: url("/images/themes/2.0/icons/pdf.png");
}


.symbol.back {
    margin-left: 0;
}

.symbol.back::before {
    display: none;
}

/* Photos */

ul.photos {
    display: flex;
    list-style: none;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
    margin: -4px;
}

ul.photos > li:before {
    display: none;
}

ul.photos > li {
    padding: 0;
    text-indent: 0;
    text-align: center;
    box-sizing: border-box;
    border: 4px solid transparent;
    display: block;
    min-width: 160px;
}

ul.photos > li a {
    display: block;
    border: 0;
    position: relative;
    background-color: #eee;
    box-sizing: border-box;
    width: 100%;
    height: 100%;
}

ul.photos > li img,
ul.photos > li video {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    object-fit: cover;
}


/* Tags */

.header-tags,
.tags > ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.header-tags > li,
.tags > ul li {
    display: inline-block;
}

.header-tags > li::after,
.tags > ul li::after {
    content: ",";
}

.header-tags > li:last-child::after,
.tags > ul li:last-child::after {
    content: "";
}

/* Map */

.map {
    width: 100%;
    height: 450px;
    /* margin-bottom: 20px; */
    border: 1px solid #000;
}

.border {
    border: 1px solid #000;
}

#places-map {
    width: 100%;
    height: 100%;
    width: 100%;
    height: 400px;
    border: 1px solid #000;
}

x-map, .location {
    display: block;
    width: 100%;
    height: 200px;
    border: 1px solid #000;
}

x-map.large {
    height: 400px;
}

x-chart {
    max-height: 400px;
}

.actions {
    list-style: none;
    padding: 0;
}

.actions li {
    display: inline-block;
}

.info {
    font-style: italic;
}

ul.navigation {
    text-align: center;
    padding: 0;
}

ul.navigation li {
    list-style: none;
    display: inline;
    padding: 0 0.1em;
}

.admonition {
    padding: 1em;
    margin: 1em 0;
    background-color: var(--admonition-background);
}

.admonition::before {
    display: block;
    margin: 0 0 0.5em 0;
    font-weight: bold;
    color: var(--admonition-color, #888);
    content: var(--admonition-title, "Note");
}

.admonition p:last-child {
    margin-bottom: 0;
}

.admonition-note {
    --admonition-color: #0969da;
    --admonition-background: #ddf4ff;
    --admonition-title: "Note";
}

.admonition-tip {
    --admonition-color: #1a7f37;
    --admonition-background: #dafbe1;
    --admonition-title: "Tip";
}

.admonition-important {
    --admonition-color: #8250df;
    --admonition-background: #fbefff;
    --admonition-title: "Important";
}

.admonition-warning {
    --admonition-color: #9a6700;
    --admonition-background: #fff8c5;
    --admonition-title: "Warning";
}

.admonition-caution {
    --admonition-color: #cf222e;
    --admonition-background: #ffebe9;
    --admonition-title: "Caution";
}

.donate-buttons {
    scale: 75%;
}
