/* Markdown */
:root{
--maincolor: red;
--bordercl:rebeccapurple;
--callouctcolor:dodgerblue;
--hovercolor:navy;
--darkMaincolor: #50fa7b;
}
html {
  color: #232333;
  font-family: 'Roboto Mono', monospace;
  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;
}

/* 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: '↳ ';
}

/* 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: 1080px;
  padding: 0 1ch;
  word-wrap: break-word;
}

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

header .main {
  font-size: 1.5rem;
}
h1, h2, h3, h4, h5, h6 {
  font-size: 1.2rem;
  margin-top: 2em;
}

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: '###### '; }

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

.toc {
  background-color: #ececec;
  color: #232333;
  padding: 10px;
  padding-bottom: 0;
  border-radius: 5px;
  display: inline-block;
}

/* Footer */
footer {
  display: flex;
  align-items: center;
  border-top: 0.4rem dotted var(--bordercl);
  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 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: "🏷 ";
}
.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;
}
#dark-mode-toggle {
  cursor: pointer;
}
.draft-label{ 
    color: var(--bordercl);
    text-decoration: none;
    padding: 2px 4px;
    border-radius: 4px;
    margin-left: 6px;
    background-color: #f9f2f4;
}
.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 ;
}

.search-box {
  margin: 1.25rem 0 1.5rem 0;
}

.side-search-box {
  margin: 0;
}

.search-label {
  display: block;
  font-size: 0.8rem;
  color: #666;
  margin-bottom: 0.35rem;
}

.search-input-wrap {
  align-items: center;
  background: #f2f2f2;
  border: 2px solid #c8c8c8;
  border-radius: 8px;
  display: flex;
  gap: 0.35rem;
  max-width: 360px;
  padding: 0.3rem 0.45rem;
}

.taxonomy-sidebar .search-input-wrap {
  max-width: 100%;
}

.search-icon {
  font-size: 0.9rem;
  opacity: 0.75;
}

input[data-search-input] {
  background: transparent;
  border: none;
  color: #232333;
  font-family: 'Roboto Mono', monospace;
  font-size: 0.95rem;
  outline: none;
  padding: 0.1rem;
  width: 100%;
}

input[data-search-input]::placeholder {
  color: #898989;
}

.search-empty {
  color: #777;
  font-style: italic;
  margin-top: 0.6rem;
}

.content-layout {
  display: grid;
  gap: 2rem;
  grid-template-columns: minmax(0, 1fr) 300px;
}

.taxonomy-sidebar {
  align-self: start;
  position: sticky;
  top: 1rem;
}

.taxonomy-group h2 {
  color: #5b768a;
  margin: 0.4rem 0 0.8rem 0;
}

.taxonomy-group + .taxonomy-group {
  margin-top: 2rem;
}

.taxonomy-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  padding-left: 0;
}

.taxonomy-cloud li {
  text-indent: 0;
}

.taxonomy-cloud > li::before {
  content: none;
}

.taxonomy-cloud a {
  align-items: center;
  background: #dddddd;
  border: none;
  border-radius: 4px;
  color: #303030;
  display: inline-flex;
  font-size: 0.95rem;
  gap: 0.25rem;
  line-height: 1.1;
  padding: 0.25rem 0.4rem;
}

.taxonomy-cloud a span {
  background: #bcbcbc;
  border-radius: 4px;
  font-size: 0.82rem;
  padding: 0.05rem 0.28rem;
}

.taxonomy-cloud a:hover {
  background: #cfcfcf;
  color: #1f1f1f;
}

.toc-panel #TableOfContents ul {
  margin: 0.3rem 0 0;
  padding-left: 0;
}

.toc-panel #TableOfContents ul > li::before {
  content: none;
}

.toc-panel #TableOfContents li {
  margin: 0.35rem 0;
  text-indent: 0;
}

.toc-panel #TableOfContents li ul {
  margin-top: 0.15rem;
  padding-left: 0.9rem;
}

.toc-panel #TableOfContents a {
  border-bottom: 1px solid transparent;
  color: inherit;
  text-decoration: none;
}

.toc-panel #TableOfContents a:hover {
  border-bottom-color: var(--maincolor);
  color: inherit;
}

@media screen and (max-width: 900px) {
  .content-layout {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }

  .taxonomy-sidebar {
    position: static;
  }
}

@media screen and (max-width: 640px) {
  .content {
    padding: 0 0.85rem;
  }

  header {
    gap: 0.35rem 0.8rem;
    line-height: 1.8;
  }

  header .main {
    font-size: 1.25rem;
  }

  nav a {
    margin-right: 0.35rem;
    white-space: nowrap;
  }

  .list-item .title a {
    font-size: 1.85rem;
    line-height: 1.25;
  }

  .taxonomy-cloud a {
    font-size: 0.9rem;
    padding: 0.24rem 0.34rem;
  }

  .taxonomy-cloud a span {
    font-size: 0.78rem;
  }
}

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