/* Markdown */
:root{
--maincolor: rgb(244, 73, 77);
--darkMaincolor: rgb(244, 73, 77);
--secondarycolor: rgb(227, 50, 53);
--bordercl:rebeccapurple;
--callouctcolor:dodgerblue;
--hovercolor:#da4453; /* old: #da4453*/
--footer-splitter-color: #555555;
--footer-padding: 4px;
--font-base: 'Fira Sans';
--font-main: stratum2;
--font-secondary: roboto_condensed;
--heading-default-pre-marker-font-size: 25px;
--heading-pre-marker-font-size: 25px;
--heading2-pre-marker-font-size: 24px;
--heading3-pre-marker-font-size: 23px;
--heading4-pre-marker-font-size: 22px;
--heading5-pre-marker-font-size: 21px;
--heading6-pre-marker-font-size: 20px;
}
html {
  color: black; /* old: #232333*/
  font-family: var(--font-base);
  font-size: 15px;
  line-height: 1.6em;
}
body{
  display: block;
  margin: 8px;
}
* {
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

::selection {
  background: var(--maincolor);
  color: #fff;
}

p {
  font-family: 'Fira Sans', sans-serif;
  line-height: 1.5;
}

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

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

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

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

ul.no-bullet > li::before {
	content: '';
	font-weight: bold;
}

/* Images */
img {
  border: 3px solid #ececec;
  max-width: 100%;
}

figure {
  box-sizing: border-box;
  display: inline-block;
  margin: 0;
  max-width: 100%;
}

figure img {
  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: '❱ '; /* -> Enter Icon */
  font-size: 15px;
}

/* Code blocks */
code {
  background-color: #f1f1f1;
  padding: .1em .2em;
}

pre {
  background-color: #ececec;
  line-height: 1.4;
  overflow-x: auto;
  padding: 1em;
}

.highlight pre ::selection {
  background: rgba(255, 255, 255, 0.2);
  color: inherit;
}

pre code {
  background-color: transparent;
  color: inherit;
  font-size: 100%;
  padding: 0;
}

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

/* Header */
header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin: 1em 0;
}

header .main {
  font-family: var(--font-main);
  word-spacing: -2px;
  font-size: 1.5rem;
}

header .main img {
  padding-bottom: 5px; /* align logo to text */
  display: inline-block;
  width: 64px;
  height: 64px;
  border: none;
  vertical-align: middle;
  margin-left: -14px;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-main);	
  word-spacing: -2px;
  font-size: 1.2rem;
  margin-top: 2em;
}

h1 {
  font-size: 1.2rem; 
  word-spacing: -3px;
}

h2 {
  font-size: 1.17rem;
}

h3 {
  font-size: 1.14rem;  
}

h4 {
  font-size: 1.12rem;  
}

h5 {
  font-size: 1.0rem;  
}

h6 {
  font-size: 0.9rem;   
}


/* archived */
#arc-h1::before { color: rgb(123, 123, 123); content: '■ '; font-size: var(--heading-pre-marker-font-size);}

h1::before { color: var(--maincolor); content: '■ '; font-size: var(--heading-pre-marker-font-size);}
h2::before { color: var(--maincolor); content: '■■ '; font-size: var(--heading2-pre-marker-font-size);}
h3::before { color: var(--maincolor); content: '■■■ '; font-size: var(--heading3-pre-marker-font-size);}
h4::before { color: var(--maincolor); content: '■■■■ '; font-size: var(--heading4-pre-marker-font-size);}
h5::before { color: var(--maincolor); content: '■■■■■ '; font-size: var(--heading5-pre-marker-font-size);}
h6::before { color: var(--maincolor); content: '■■■■■■ '; font-size: var(--heading6-pre-marker-font-size);}

.meta {
  color: #999;
  letter-spacing: -0.5px;
}

/* Footer */
footer {
  display: flex;
  align-items: center;
  border-top: 0.3rem dashed var(--footer-splitter-color);
  padding: 2rem 0rem;
  margin-top: 2rem;
}
.soc {
  display: flex;
  align-items: center;
  border-bottom: none;
}
.border {
  margin-left: 0.5rem;
  margin-right: 0.5rem;
  border: 1px solid;
}
.footer-info {
  padding: var(--footer-padding);
}

/* Common */

.title-main {
  display: inherit;
  margin: 0;
}

.title h1 {
  margin-bottom: 0;
}

time {
  color: grey;
}

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


/* Callout */
.callout {
  background-color: var(--callouctcolor);
  color: #fff;
  padding: 1em;
}

.callout p {
  font-family: 'IBM Plex Mono', monospace;
  margin: 0;
}

.callout a {
  border-bottom: 3px solid #fff;
}

.callout a:hover {
  background-color: #fff;
  color: var(--callouctcolor);
}

.site-description {
display: flex;
justify-content: space-between;
}
.tags li::before{
  content: "✏ "; /* -> Tag Icon [✎] */
}
.tags a{
  border-bottom: 3px solid var(--maincolor); 
}
.tags a:hover{
  color:white;
  background-color: var(--hovercolor); 
}
svg{
  max-height: 15px;
}
.soc:hover{
  color: white;
}
.draft-label{ 
    color: #0040ff;
    text-decoration: none;
    padding: 1px 2px;
    border-radius: 4px;
    margin-left: 6px;
    background-color: #dddddd;
}
.highlight {
  position: relative;
  -webkit-overflow-scrolling: touch;
}
.highlight pre code[class*="language-"] {
  -webkit-overflow-scrolling: touch;
}
.highlight pre code[class*="language-"]::before {
  background: black;
  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;
}

.highlight pre code[class=language-javaScript]::before,
.highlight pre code[class="language-js"]::before {
content: "js";
background: #f7df1e;
color: black;
}
.highlight pre code[class*='language-yml']::before,
.highlight pre code[class*='language-yaml']::before {
content: 'yaml';
background: #f71e6a;
color: white;
}
.highlight pre code[class*='language-shell']::before,
.highlight pre code[class*='language-bash']::before,
.highlight pre code[class*='language-sh']::before {
content: 'shell';
background: green;
color:white
}
.highlight pre code[class*='language-json']::before{
content: 'json';
background: dodgerblue;
 color: #000000 
}
.highlight pre code[class*='language-python']::before,
.highlight pre code[class*='language-py']::before {
content: 'py';
background: blue;
color: yellow ;
}
.highlight pre code[class*='language-css']::before{
content: 'css';
background: cyan;
color: black ;
}
.highlight pre code[class*='language-go']::before{
content: 'Go';
background: cyan;
color: royalblue ;
}
.highlight pre code[class*='language-md']::before,
.highlight pre code[class*='language-md']::before{
content: 'Markdown';
background: royalblue;
color: whitesmoke;
}

.highlight pre code[class='language-c']::before {
  content: "c";
  background: #003160;
  color: whitesmoke;
}

.highlight pre code[class='language-cpp']::before,
.highlight pre code[class='language-c++']::before {
  content: "c++";
  background: #004d95;
  color: whitesmoke;
}

.highlight pre code[class='language-csharp']::before,
.highlight pre code[class='language-c#']::before {
  content: "c#";
  background: #ad00ab;
  color: whitesmoke;
}

/* table */
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;
}

/* main navigation */
.navbar {
  position: inherit;
  /* margin: auto; do this and it makes it even */
}

.navbar .element {
  display: inline-block;
  position: relative;
  font-family: var(--font-main);
  padding-inline: 5px;
}

.navbar a {
  padding: 5px 15px; 
}

.navbar .lightdarktoggle {
  display: inline-block;
}

@media(max-width:700px) {
  .navbar {
    text-align: center;
    width: 100%;
    padding-top: 10px;
    padding-bottom: 10px;  
  }
  .navbar .element {
    padding: 5px; 
  }
  .navbar .lightdarktoggle {
    display: inline-block;
  }
}


.list-item {
  display: inherit;
  background: #f7f7f7;
  margin-bottom: 16px;
  width: 100%;
  border-radius: 4px;
  -moz-border-radius:4px;
  -webkit-border-radius:4px;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}

.list-item-inner {
  display: inherit;
  padding-top: 10px;
  padding-right: 20px;
  padding-bottom: 20px;
  padding-left: 20px;
}

/* social media and share links */
.post-socials {
  /* margin: 24px 0;OLD: 32px */
  margin-top: 32px;
  margin-right: 0px;
  margin-bottom: 24px;
  margin-left: 0px;  
}

.post-socials .ps_container {
  display: inherit;
}

.post-socials .ps-container .ps-list {
  display: inline;
  line-height: 32px;
}

.post-socials .ps-container .ps-list a {
  display: inline-block; 
  cursor: pointer;   
  font-size: 32px;
  border: 0;
  padding: 0 2px;
  vertical-align: middle;
  opacity: 1;
}

.post-socials .ps-container .ps-list a:hover {
  background-color: transparent; 
  text-decoration: none;
  color: inherit;
  opacity: 0.8;
}

.post-socials .ps-container .ps-list a span {
  border-radius: 4px;
  -moz-border-radius:4px;
  -webkit-border-radius:4px;
  display: inline-block;
  opacity: 1;
}

.post-socials .ps-container .ps-list a span svg {
  max-height: none;
  background-repeat: repeat;
}

.post-socials .ps-container .ps-list a span img {
  max-height: none;
  background-color: var(--maincolor);
  height: 32px;
  line-height: 32px;
  width: 32px;
  border: none;
  border-radius: 4px;
  -moz-border-radius:4px;
  -webkit-border-radius:4px;
}

.ps_icon {
  display: inherit;
  height: 32px;
  line-height: 32px;
  width: 32px;  
}

.no-underline-link {
  display: inherit;
}

.no-underline-link a {
  border: none;
}

.no-underline-link a:hover {
  background-color: transparent; 
  color: inherit;
}