//
//  File.swift
//  
//
//  Created by Gary Simpson on 5/12/20.
//

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


/* Style for links */
/*a:link { color: #2F81F7; }*/
/*a:visited { color: #2F815C; }*/

/* Style for inline code blocks */
code:not(pre > code) {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, monospace;
    background-color: #484C53; /*isDarkMode ? "#484C53" : "#DDDDEE"*/
/*    border: 1px solid #ddd; */
    border-radius: 4px;
    color: #E6EDF3;/*isDarkMode ? "#E6EDF3" : "#333344"*/
    font-size: 0.84em;
    padding: 0.24em 0.4em;
    margin-top: 1px;
    margin-bottom: 1px;
    display: inline-block;
    word-wrap: break-word;
    max-width: 620px;
}

/* Style for blockquotes*/
blockquote {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, monospace;
    background-color: #000000; /*isDarkMode ? "black" : "white"*/
    border-radius: 8px;
    color: #E6EDF3;/*isDarkMode ? "#E6EDF3" : "#333344"*/
    border-left: 4px solid #834C49; /*isDarkMode ? "#834C49" : "#834C49"*/
    padding: 0.2em 0.2em 0.2em;
    line-height: 1.2;
    display: inline-block;
    max-width: 480px;
}

/* Style for strikethrough text */
/*s {*/
/*    text-decoration: line-through;*/
/*    color: darkRed;*/
/*}*/

s {
  position: relative;
  color: inherit; /* Keeps the original text color */
  text-decoration-color: rgba(200, 0, 0, 0.8); /* Sets the strikethrough color to red */
  text-decoration-thickness: 2px; /* Adjusts the thickness of the strikethrough */
}


/*-- Table layout style --*/
table {
    border-collapse: collapse;
    border-radius: 3px;
    border-color: #0D1117; /*isDarkMode ? "#0D1117" : "#D4D2D1"*/
    width: 100%;
}
th, td {
    border: 1px solid #0D1117; /*isDarkMode ? "#0D1117" : "#D4D2D1"*/
    background-color: #0D1117; /*isDarkMode ? "#0D1117" : "#D4D2D1"*/
    padding: 8px;
}
th {
    background-color: #0D1117; /*isDarkMode ? "#0D1117" : "#D4D2D1"*/
    color: #E6EDF3; /*isDarkMode ? "#E6EDF3" : "#333344"*/
    text-align: left;
}
tr:nth-child(even){background-color: #2A3338} /* Zebra striping for rows */
/*tr:hover {background-color: #555;}*/ /* Hover effect for rows */
td {
    color: #E6EDF3; /*isDarkMode ? "#E6EDF3" : "#333344"*/
}

/* =================== */
/* =================== */

article-date {
    color: #8a8a8a;
}

body {
    background: #fff;
    color: #000;
    font-family: -apple-system, BlinkMacSystemFont, Helvetica, Arial;
    text-align: center;
}

.wrapper {
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
    padding: 40px;
    text-align: left;
}

header {
//    background-color: #eee;
padding-left: 0px;
padding-right: 0px;
/*    padding-top: 300px;*/
    background-color: #000000; /*#4863AO;*/
}

header .wrapper {
    padding-top: 30px;
    padding-bottom: 30px;
    text-align: center;
}

header a {
    text-decoration: none;
}

header .site-name {
    font-size: 1.5em;
    color: #000;
    font-weight: bold;
}

nav {
    margin-top: 20px;
}

nav li {
    display: inline-block;
    margin: 0 7px;
    line-height: 1.5em;
}

nav li a.selected {
    text-decoration: underline;
}

title {
/*    color: red;*/
    margin-top: 8px;
    margin-bottom: 4px;
/*    font-size: 2em;*/
}

hr {
    margin-top: 40px;
    margin-bottom: 40px;
}

h1 {
/*    color: red;*/
    margin-top: 20px;
    margin-bottom: 16px;
    font-size: 2em;
}

h2 {
    margin-top: 16px;
    margin-bottom: 8px;
}

h3 {
    margin-top: 12px;
    margin-bottom: 8px;
}

h4 {
    margin-top: 8px;
    margin-bottom: 4px;
/*    margin-bottom: 0px;*/
/*    padding-bottom: 0px;*/
}

ol {
   margin-top: 4px;
   margin-bottom: 8px;
   padding-left: 8px
}
ol li {
   margin-left: 20px
}


/*PLAIN LIST*/
ul {
   margin-top: 4px;
   margin-bottom: 4px;
   padding-left: 0px /*8px*/
}

ul li {
   margin-left: 24px
}

ul .tag-list {
   margin-top: 4px;
   margin-bottom: 0px;
   margin-left: 0px
}

p {
    margin-top: 8px;
    margin-bottom: 8px;
}

a {
    color: inherit;
}

.description {
    margin-bottom: 8px;
}

.item-list li {
    display: block;
    padding: 16px;
    border-radius: 24px;
    background-color: #eee;
    margin-bottom: 16px;
    margin-left: 0px
}

.item-list > li:last-child {
    margin-bottom: 0;
}

.item-list h1 {
    margin-top: 0px;
    margin-bottom: 8px;
    font-size: 1.3em;
}

.item-list p {
    margin-bottom: 0;
}

.item-list .tag-list {
    display: inline-block;
}

/*TAG LIST */
.tag-list {
    margin-bottom: 0px;
}

.tag-list li {
    text-decoration: none;
    
    display: inline-block;
    background-color: #000;
    color: #ddd;
    padding: 4px 8px;
    border-radius: 4px;
    margin-right: 4px;
    margin-left: 0px;
    margin-bottom: 4px;
}

/*.tag {*/
/*    display: inline-block;*/
/*    background-color: #000;*/
/*    color: #ddd;*/
/*    padding: 4px 8px;*/
/*    border-radius: 4px;*/
/*    margin-right: 4px;*/
/*}*/

.tag-list a,
.tag a {
    text-decoration: none;
}

.item-page .tag-list {
    display: inline-block;
}

.content {
    margin-top: 8px;
    margin-bottom: 40px;
}

.browse-all {
    display: block;
    margin-bottom: 32px;
}

.all-tags li {
    font-size: 1.4em;
    margin-right: 8px;
    padding: 4px 8px;
}

footer {
    color: #8a8a8a;
}

@media (prefers-color-scheme: dark) {
    body {
        background-color: #222;
    }
    
    body,
    header .site-name {
        color: #ddd;
    }
    
    .item-list > li {
        background-color: #333;
    }
    
    header {
        background-color: #000000; //#4863AO;//was #000
    }
}

@media(max-width: 512px) {
    .wrapper {
        padding: 16px 16px;
    }
}


/*========================*/
/*   Syntax Highlighting  */
/*========================*/

/**
 *  Example CSS file that can be used to style Splash HTML output
 *  Copyright (c) John Sundell 2018
 *  MIT license - see LICENSE.md
 */

pre {
    margin-bottom: 1.5em;
    background-color: #1a1a1a;
    padding: 16px 0;
    border-radius: 16px;
}

pre code {
    font-family: monospace;
    display: block;
    padding: 0 20px;
    color: #a9bcbc;
    line-height: 1.4em;
    font-size: 0.95em;
    overflow-x: auto;
    white-space: pre;
    -webkit-overflow-scrolling: touch;
}

pre code .keyword {
    color: #e73289;
}

pre code .type {
    color: #8281ca;
}

pre code .call {
    color: #348fe5;
}

pre code .property {
    color: #21ab9d;
}

pre code .number {
    color: #db6f57;
}

pre code .string {
    color: #fa641e;
}

pre code .comment {
    color: #6b8a94;
}

pre code .dotAccess {
    color: #92b300;
}

pre code .preprocessing {
    color: #b68a00;
}
