/* @import url('https://fonts.googleapis.com/css2?family=Ubuntu:ital,wght@0,300;0,400;0,500;0,700;1,300;1,400;1,500;1,700&display=swap'); Markdown */
@import url('https://fonts.googleapis.com/css2?family=Nunito:ital,wght@0,200..1000;1,200..1000&display=swap');

:root{
--maincolor: red;
--bordercl:rebeccapurple;
--callouctcolor:dodgerblue;
--textColor: #232333;
--darkTextColor: #cbcbcb;
--hovercolor:navy;
--darkMaincolor: #c66300;
--maxWidth: 800px;
--thumbLarge: 8rem;
--thumbSmall: 5rem;
--featureLarge: 10rem;
--featureSmall: 5rem;
--tableBorderColor: #dfe2e5;
--tableBorderDarkColor: #333333;
}

html {
  color: #232333;
  /*font-family: 'Roboto Mono', monospace;*/
  font: 18px/1.4 Nunito,"Book Antiqua",Helvetica,Georgia,Arial,sans-serif;
  font-size: 15px;
  line-height: 1.6rem;
}
body{
  display: block;
  margin: 8px;
  background-color: #f7f7f1;
}
nav a{
  /* margin: 0 5px; */
  text-decoration: none;
}
nav a.active {
  color: var(--maincolor);
}
.content.fullwidth {
  max-width: 95%;
}
.content.fullwidth .toc {
  opacity: 0;
}
.content.fullwidth #toc-toggle {
  display: none;
}
article img {
  /*border: 2px solid #151515;*/
  width: 100%;
  box-sizing: border-box;
  box-shadow: rgba(0, 0, 0, 0.45) 0px 5px 15px;
}
article .featured-image {
  text-align: center;
  margin: 2rem;
}
article .featured-image img {
  height: var(--featureLarge);
  width: var(--featureLarge);
  object-fit: cover;
}
.action:hover {
  color: var(--maincolor);
}
* {
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

svg {
  cursor: pointer;
}

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

p {
  line-height: 1.5;
  text-align: justify;
}

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

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

#view-mode-toggle {
  position: fixed;
  right: 1%;
  top: 1rem;
}

#toc-toggle {
  position: fixed;
  right: 1%;
  top: 3rem;
}


.logo {
  border: 0;
  background: linear-gradient(to right, #6666ff, #0099ff, #00ff00, #ff3399, #6666ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: rainbow_animation 6s ease-in-out infinite;
  background-size: 400% 100%;
}

@keyframes rainbow_animation {
    0%,100% {
        background-position: 0 0;
    }

    50% {
        background-position: 100% 0;
    }
}

.posts a {
  text-decoration: none;
}

.posts h2.title {
  margin: 0;
}

a:not(:has(img)) {
  /*border-bottom: 1px solid var(--maincolor);*/
  color: inherit;
  /*text-decoration: none;*/
}
a.logo:hover {
  color: var(--maincolor);
}
a:hover {
    /*background-color: var(--hovercolor);*/
    color: var(--maincolor);
}
ul {
  padding-left: 1rem;
}
/*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%;
}

.pagination {
  display: flex;
  justify-content: space-between;
}

section.list-item {
  margin: 2rem 0;
  display: flex;
}

section.list-item img {
  min-width: var(--thumbLarge);
  max-width: var(--thumbLarge);
  height: var(--thumbLarge);
  object-fit: cover;
  border-radius: 4px;
  margin-top: 2px;
  margin-right: 2rem;
}

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

figure img {
  max-height: 500px;
}

@media screen and (max-width: 1400px) {
  #toc-toggle {
    display: none;
  }
  aside.toc {
    display: none;
  }
  aside.toc.show {
    display: none;
  }
}

@media screen and (min-width: 800px) {
  figure {
    padding: 0 40px;
  }
}

@media screen and (max-width: 870px) {
  #view-mode-toggle {
    display: none;
  }
  .description {
    display: none;
  }
  section.list-item img {
    min-width: var(--thumbSmall);
    max-width: var(--thumbSmall);
    height: var(--thumbSmall);
    object-fit: cover;
    border-radius: 2px;
    margin-right: 1rem;
  }
}

figure h4 {
  font-size: 1rem;
  margin: 0;
  margin-bottom: 1em;
}
figure h4::before {
  content: '↳ ';
}

/* Code blocks */
code {
  background-color: #dedede;
  padding: .1em .4em;
  border-radius: 2px;
}

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

.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: var(--maxWidth);
  padding: 0 1ch;
  word-wrap: break-word;
  transition: max-width .1s ease-in-out;
}

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

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

article :is(h1,h2,h3,h4,h5,h6) {
  padding-top: 1rem;
}

h1 {
  font-size: 1.5rem;
  margin-block-start: 3rem;
}
h2 {
  font-size: 1.2rem;
  margin-block-start: 1rem;
}
h3 {
  font-size: 1rem;
}
h4 {
  font-size: 1rem;
}
h5 {
  font-size: 1rem;
}
h6 {
  font-size: 1rem;
}


/*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-wrapper {
  text-align: center;
}

.meta {
  color: #999;
  letter-spacing: -0.5px;
  font-weight: 100;
  font-size: .8rem;
}
.meta-wrapper .post-tags ul {
  margin: 0;
  list-style: none;
  display: flex;
  justify-content: center;
}

/* Footer */
footer {
  display: flex;
  align-items: center;
  border-top: 0.4rem dotted var(--bordercl);
  padding: 2rem 0rem;
  margin-top: 2rem;
  flex-wrap: wrap;
  justify-content: space-evenly;
}
.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);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

.list {
  text-align: justify;
}

.list .title {
  font-weight: 500;
  margin: 0;
  text-align: initial;
}
.list a {
  text-decoration: none;
}

/* Common */
.title h1 {
  margin-bottom: 0;
}

.meta .tags {
  color: var(--maincolor);
}

time {
  color: grey;
  font-size: .8rem;
}

/* Posts */
article .title {
  font-size: 1.8rem;
  font-weight: 300;
  text-align: center;
  line-height: 2rem;
}

article .title h1 {
  font-size: 1.8rem;
}

article ul li {
  margin: .5rem 0;
  text-align: justify;
}

article .meta-wrapper ul li {
  margin: 0 .2rem;
  color: var(--maincolor);
}


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

.tag-cloud .tags {
  display: flex;
  flex-wrap: wrap;
}
.tag-cloud .tag {
  padding: 0 1rem;
}
svg{
  max-height: 15px;
}
.soc:hover{
  /* color: white; */
}
.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 ;
}

/* table */
table {
  border-spacing: 0;
  border-collapse: collapse;
  width: 100%;
  table-layout: fixed;
}

table th{
  padding: 6px 13px;
  border: 1px solid var(--tableBorderColor);
  font-size: large;
}

table td{
  padding: 6px 13px;
  border: 1px solid var(--tableBorderColor);
}

input#search-input {
  border-radius: 5px;
  padding: 10px;
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--tableBorderColor);
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

aside.toc {
  position: fixed;
  right: 10px;
  top: 100px;
  width: 20%;
  opacity: 0;
  transition: .1s opacity ease-in;
  height: calc(100vh - 10rem);
  overflow: auto;
  scrollbar-width: none;
  background: linear-gradient(to bottom, #f7f7f2, #ececec, #f7f7f2);
  padding: 10px;
  border-radius: 5px;
}

aside.toc li {
    text-align: left;
}

.toc.show {
  opacity: 1;
}

/*aside.toc:hover {*/
/*  opacity:1;*/
/*}*/

.toc.hide {
  display: none;
}