/* Markdown */
:root{
--maincolor: red;
--bordercl:rebeccapurple;
--callouctcolor:dodgerblue;
--hovercolor:navy;
--darkMaincolor: #50fa7b;
}

/*HEADER och statiska sidor*/
html {
  color: white;
  font-family: Merriweather, verdana;
  font-optical-sizing: auto;
  font-style: Semibold;
  font-size: 14px;
  line-height: 22px;
  background-color: #323232;
	}
body{
  display: block;
  margin: 8px;
}
* {
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

::selection {
  background: #fff;
  color: #fff;
}


@media screen and (min-width: 769px) {
    /* .post-content is a class which will be present only on single pages 
        and not lists and section pages in Hugo */
    .post-content input[type="checkbox"]:checked ~ label > img {
        transform: scale(1.6);
        cursor: zoom-out;
        position: relative;
        z-index: 999;
    }

    .post-content img.zoomCheck {
        transition: transform 0.15s ease;
        z-index: 999;
        cursor: zoom-in;
    }
}


/*BRODTEXT*/

p {
  font-family: Merriweather, verdana;
  font-style: light;
  font-size: 14px;
  font-weight: 10;
  line-height: 24px;
  color: #fffeff;
}

hr {
  border: 0;
  color: #565656;
  border-top: 1px dotted;
  margin: 1em 0;
}

blockquote {
  border-left: 1px solid white;
  color: white;
  margin: 0;
  padding-left: 1em;
}

.title h1 {
  margin-bottom: 0em;
  color: white;
}

a {
  color: #65bf7d;
  text-decoration: underline;
  
}
a:hover {
   text-decoration: underline;
}

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

/* Images */
img {
  border: 1px  transparent;
  border-radius: 10px;
  max-width: 75%;
  display: block;
  margin: auto;
}  


  text-decoration: none !important;
}

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

figure img {
  max-height: 500px;
  max-width: auto;
}

@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: #c9c8cd;
  color: black;
  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 {
  text-align: center;
  justify-content: space-between;
  line-height: 2.5em;
}

header .main {
  font-size: 3.5rem;
  margin-bottom: 0.1em;
}
h1, h2, h3, h4, h5, h6 {
  color: #62B9D8;
  font-size: 1.2rem;
  margin-top: 2em;
  text-transform: uppercase;
a:link {
	text-decoration: none;
}
}


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

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

/* Common */

time {
  color: grey;
}

/* Posts */
article .title {
  margin-bottom: 0em;
  color: white;
}


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

.callout p {
  font-family: -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, Ubuntu;
  margin: 0;
}

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

.callout a:hover {
  background-color: white;
  color: white;
}

.site-description {
/* display: flex; */
  text-align: center;
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;
}
.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;
}

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

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

.mastodon-container {
  margin-left: 1rem;
}

.mastodon-comment {
  border: 1px solid #999;
  border-radius: 6px;
  margin: 0.5rem 0;
  display: flex;
  padding: 0.5rem 1rem;
}

.mastodon-comment .avatar img {
  margin-right: 1rem;
  min-width: 60px;
}

.mastodon-comment .content {
  width: 100%;
}

.mastodon-comment .date {
  float: right;
}

.mastodon-comment .ellipsis::after {
  content: "\2026";
}

.mastodon-comment .invisible {
  font-size: 0;
  line-height: 0;
  display: inline-block;
  width: 0;
  height: 0;
}

/* lightbox css */

.lightbox {
    display: none;

    position: fixed;

    z-index: 999;
    width: 100%;
    height: 100%;
    text-align: center;
    top: 0;
    left: 0;
    
    background-color: white
}

.lightbox:target {
    display: block;
}
  
.lightbox span {
    display: block;
    width: 100%;
    height: 100%;

    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
}

/* end:lightbox css */
