/* Markdown */
:root{
--maincolor: #fa7e23;
--bordercl: #737373;
--calloutBkColor: #497568;
/* --maincolor: #FF83FF;
--bordercl: #60F0A1;
--calloutBkColor: #65DDFF; */


--calloutColor: white;
--backgroundColor: whitesmoke;
--textColor: #202124;
--metaColor: #999999;
--codeBkColor: #ececec;
}

::selection {
  background: var(--maincolor);
  color: white;
  text-shadow: none;
}

html {
  color: var(--textColor);
  background-color: var(--backgroundColor);
  font-family: 'Ysabeau', 'LXGW WenKai Mono Lite';
  font-size: 16px;
  line-height: 1.5em;
}

body{
  display: block;
  margin: 8px;
}

* {
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

p {
  line-height: 1.6em;
}

h1, h2, h3, h4, h5, h6 {
  font-size: 1.2rem;
  margin-top: 1.8rem;
}
/* h1::before { color: var(--maincolor); content: '# '; }
h2::before { color: var(--maincolor); content: '## '; }
h3::before { color: var(--maincolor); content: '### '; }
h4::before { color: var(--maincolor); content: '#### '; }
h5::before { color: var(--maincolor); content: '##### '; }
h6::before { color: var(--maincolor); content: '###### '; } */
h1.categories::before{
  content: "📑 ";
}
h1.tags::before{
  content: "📚 ";
}

hr {
  border: 0;
  border-top: 1px inset var(--bordercl);
  margin: 1em 0;
}

blockquote {
  border-left: 3px solid var(--bordercl);
  color: #737373;
  margin: 0;
  padding-left: 1em;
  font-style: italic;
}

a {
  border-bottom: 3px solid var(--maincolor);
  color: inherit;
  text-decoration: none;
}
a:hover {
    background-color: var(--maincolor);
    color: white;
}

ul.term {
  list-style: none;
  padding-left: 2ch;
}
ul.term li {
  text-indent: -2ch;
}
ul.term li::before {
  content: '• ';
  font-weight: bold;
}
ul.term li.post::before{
  content: "> ";
  /* content: "→ ";   */
}
ul.term li.category::before{
  content: "📑 ";
}
ul.term li.tag::before{
  content: "📚 ";
}

#TableOfContents ul {
  list-style: none;
  padding-left: 2ch;
}
#TableOfContents ul li {
  text-indent: -2ch;
}
#TableOfContents li::before {
  content: '- ';
  font-weight: bold;
}

/* Images */
img {
  border: 1px solid var(--codeBkColor);
  max-width: 100%;
}
figure {
  box-sizing: border-box;
  display: inline-block;
  margin: 0;
  max-width: 100%;
}
figure img {
  border: 1px solid var(--codeBkColor);
  max-height: 500px;
}
/* @media screen and (min-width: 600px) {
  figure {
    padding: 0 40px;
  }
} */
figure h4 {
  font-size: 1rem;
  margin: 0;
  margin-bottom: 1em;
}
figure h4::before {
  content: '↳ ';
}
svg.feather {
  max-height: 15px;
}

/* Code blocks */
code {
  font-family: 'LXGW WenKai Mono Lite';  
  font-size: 90%;
  background-color: var(--codeBkColor);
  padding: .1em .2em;
  text-decoration: bold;  
}
pre {
  background-color: var(--codeBkColor);
  line-height: 1.4;
  overflow-x: auto;
  padding: 1em;
}
pre code {
  background-color: transparent;
  color: inherit;
  font-size: 90%;
  padding: 0;
}
.highlight pre ::selection {
  background: rgba(255, 255, 255, 0.2);
  color: inherit;
}
.highlight {
  position: relative;
  -webkit-overflow-scrolling: touch;
}
.highlight pre code[class*="language-"] {
  -webkit-overflow-scrolling: touch;
  overflow-x: auto;
}
.highlight pre code[class*="language-"]::before {
  background: var(--maincolor);
  border-radius: 0 0 0.25rem 0.25rem;
  color: white;
  font-size: 12px;
  letter-spacing: 0.025rem;
  padding: 0.1rem 0.5rem;
  position: absolute;
  right: 1rem;
  text-align: right;
  text-transform: uppercase;
  top: 0;
  content: attr(data-lang);
}

table {
  border-spacing: 0;
  border-collapse: collapse;
}
table th{
  padding: 6px 13px;
  border: 1px solid #dfe2e5;
  font-size: large;
}
table td{
  padding: 6px 13px;
  border: 1px solid #dfe2e5;
}

header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  line-height: 2.2em;
  margin: 1em 0 0 0;
}
header .main {
  font-size: 1.8rem;
}

footer {
  display: flex;
  align-items: center;
  border-top: 0.1rem dotted var(--bordercl);
  padding: 0.5rem 0rem;
  margin-top: 3rem;
}
footer .soc {
  display: flex;
  align-items: center;
  padding-right: 1rem;
  margin-right: 1rem;
  border-right: 1px solid;
  border-bottom: none;
}
footer .footer-info {
  padding: var(--footer-padding);
}

/* Posts */
article .title {
  margin-bottom: 1em;
}

.meta {
  color: var(--metaColor);
  letter-spacing: -0.5px;
}

.content {
  margin-bottom: 4em;
  margin-left: auto;
  margin-right: auto;
  max-width: 800px;
  padding: 0 1ch;
  word-wrap: break-word;
}

/* Callout */
.callout {
  background-color: var(--calloutBkColor);
  color:  var(--calloutColor);
  padding: 1em;
}

.site-description {
  display: flex;
  justify-content: space-between;
  color: gray;
}

.draft-label { 
    color: var(--maincolor);
    text-decoration: none;
    padding: 2px 4px;
    border-radius: 4px;
    margin-left: 6px;
    background-color: #f9f2f4;
}

.pagination .page-prev {
  float:left;
}

.pagination .page-next {
  float:right;
}

#search-input {
  outline-color: invert;
  outline-style: none;
	outline-width: 0px;
  border: 1px solid #ccc; 
  border-radius: 3px;
  padding: 5px 0px;
  width: 50%;
  font-size: 18px;
  text-indent:5px
}

#search-button {
  width: 40px;
  height: 30px;
  background-color: var(--backgroundColor);
  color: var(--textColor);
  border: 0px;
  text-align: center;
  border-radius: 3px;  
  box-sizing: border-box;
  display: inline-block;
  cursor: pointer;  
}

#search-button:hover {
  background-color: var(--maincolor);
  color: var(--backgroundColor);
}
