/* Markdown */
:root{
--maincolor: red;
--bordercl: red;
--callouctcolor: red;
--hovercolor: navy;
--darkMaincolor: #50fa7b;
}
html {
  color: #232333;
  font-family: 'Fira Sans', sans-serif;
  font-size: 18px;
  line-height: 1.6em;
}
@media screen and (min-width: 700px) {
  html {
    font-size: 24px;
  }
}

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 solid var(--bordercl);
  margin: 1em 0;
}

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

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

/* Images */
img {
  max-width: 100%;
}

figure {
  max-width: 100%;
}

figure img {
  display: block;
  margin: 0 auto;
}

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

/* Hugo uses "figure h4" as its figcaption text holder */
figure h4 {
  font-size: 0.9rem;
  font-family: 'Fira Sans', sans-serif;
  font-weight: normal;
  margin-bottom: .1em;
  margin-top: 0em;
  line-height: normal;
  text-align: justify;
}

figure h4::before {
  content: none;
}

/* Code blocks */
code {
  padding: .1em .2em;
}

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

.highlight {
  border-left: 3px solid red;
  border-right: 3px solid red;
  margin-bottom: 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;
}

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

header {
  display: flex;
  justify-content: center;
  align-items: center;
}

.banner {
  display: flex;
  justify-content: center;
  align-items: center;
  padding-top: 1em;
}

.banner-content {
  display: flex;
  align-items: center;
  position: relative;
}

.banner-image {
  display: flex;
  align-items: center;
}

.banner-title a {
  white-space: nowrap; /* Ensures the text stays in one line */
  font-size: 8vw;
  margin-left: 10px; /* Space between title and image */
  margin-right: 10px; /* Space between title and image */
}

.banner-image img {
  height: auto; /* Adjust as necessary */
  width: 10vw;
}

.banner-content::before {
  content: '';
  display: block;
  width: 10vw; /* Same width as the image */
  visibility: hidden; /* Invisible but takes space */
}

@media screen and (min-width: 700px) {
  .banner-title a {
    font-size: 3.5vw;
  }

  .banner-image img {
    width: 6.4vw;
  }

  .banner-content::before {
    width: 4.4vw; /* Same width as the image */
  }
}

h1, h2, h3, h4, h5, h6 {
  font-size: 1.2rem;
}

.meta {
  font-size: 0.6rem;
  color: #666;
  letter-spacing: -0.5px;
}

/* Footer */
footer {
  display: flex;
  align-items: center;
  border-top: 0.2rem solid var(--bordercl);
  padding: 1rem 0rem;
  margin-top: 2rem;
}
.soc {
  display: flex;
  align-items: center;
}
.border {
  margin-left: 0.5rem;
  margin-right: 0.5rem;
}
.footer-info {
  padding: var(--footer-padding);
}

/* Common */
.title h1 {
  margin-bottom: 0;
  font-size: 1.4rem;
}

time {
  color: grey;
}

/* Posts */
article .title {
  margin-top: 0.75em;
  margin-bottom: 0.5em;
}


/* Callout */
.callout {
  border-left: 3px solid var(--callouctcolor);
  border-right: 3px solid var(--callouctcolor);
  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;
}
nav .tags{
  display: flex;
}
nav .tags::before{
  content: "🏷  ";
  font-size: 24px;
  margin-right: 1.5em;
}
.tags ul li{
  margin-left: 0.5em;
}
.tags ul li::before {
  content: none; /* Removes the asterisk */
  font-weight: normal; /* Removes the bold styling */
}
nav .tags li {
  margin-right: 1.5em;
}
.tags a{
  border-bottom: 3px solid var(--maincolor); 
}
.tags a:hover{
  color:white;
  background-color: var(--hovercolor); 
}
svg{
  max-height: 15px;
}
.soc:hover{
  color: black;
}
.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 {
  font-size: 90%;
}
.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;
}

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

table td{
  padding: 6px 13px;
  border: 1px solid #dfe2e5;
}

.footer-nav {
  font-size: 10px;
}

.cover-image {
  max-height: 100px;
  display: flex;
  justify-content: center;
  align-items: center;
}

#cover-image img {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.post {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
}

.posts {
  display: flex;
  flex-direction: column;
  align-items: center;
  list-style: none;
  padding: 0;
  margin-top: 1.75rem;
}

.post h2 {
  padding: 0;
  text-align: center;
  margin: 0.5em 0 0;
}

article ul {
  list-style: disc;
  padding-left: 2ch;
  margin-top: -1em;
}

.tags ul {
  list-style: none;
  text-indent: -2ch;
}
