/*load fonts local*/
@font-face {
  font-family: "Fira Code";
  src: url("/fonts/FiraCode-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Fira Code";
  src: url("/fonts/FiraCode-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Fira Code";
  src: url("/fonts/FiraCode-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Fira Code";
  src: url("/fonts/FiraCode-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Fira Code";
  src: url("/fonts/FiraCode-Light.ttf") format("truetype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}


/*-------------------------------general-style-start----------------------------------*/

/*base colors*/
:root {
  --background: #111111;
  --text: #3f5ae3;
  --text-muted: #8b9ae8;
  --border: #3f5ae3;
  --code-background: #1d1b1b;
}

html {
  font-size: 18px;
  scrollbar-gutter: stable;
}

body {
  background: var(--background);
  color: var(--text);
  font-family: "Fira Code", ui-monospace, SFMono-Regular, Consolas,
  "Liberation Mono", monospace;
  font-size: 1rem;
  line-height: 1.65;
}

/*-------------------------------general-style-end----------------------------------*/



/*-------------------------------header-start----------------------------------*/

/*Abstand nach header*/
nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  flex-wrap: wrap;
}

header .title {
  margin-right: auto;
}

.nav-icon {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--text);
  fill: currentColor;
}

nav a {
  display: inline-flex;
  align-items: center;
}


@media (max-width: 520px) {
  header {
    align-items: flex-start;
  }

  header .title {
    width: 100%;
    margin-right: 0;
  }

  header nav {
    width: 100%;
    justify-content: flex-start;
  }
}


/*-------------------------------header-end----------------------------------*/

/*-------------------------------thumbnails-start----------------------------------*/

/*drop shadow for thumbnail-images*/
.post-thumbnail {
  display: block;
  box-shadow: 8px 8px 0 var(--text);
  width: calc(100% - 8px);
}

.post-thumbnail-wrapper {
  position: relative;
  margin-bottom: 1.5rem;
}

.post-thumbnail-wrapper a {
  display: block;
  position: relative;
}

/*category text on thumbnail*/
.post-category {
  position: absolute;
  right: 0;
  top: 10%;

  background: var(--text);
  color: var(--background);
  padding: 0.35rem 1rem 0.35rem 0.5rem;

  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}

@media (max-width: 520px) {
  .post-category{
    font-size: 0.7rem;
  }
}

/*-------------------------------thumbnails-end----------------------------------*/

/* blogtitel */
header a,
header strong {
  color: var(--text);
  font-family: inherit;
  font-weight: 700;
  letter-spacing: -0.04em;
  text-decoration: none;
}

/* headings */
h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--text);
  font-family: inherit;
  font-weight: 700;
}

/* links */
a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  opacity: 0.8;
}

/* lists */
p,
ul,
ol {
  margin-top: 0;
  margin-bottom: 1.35rem;
}

/* lines */
hr {
  height: 2px;
  border: 0;
  background: var(--border);
}

/* quotes */
blockquote {
  margin-left: 0;
  padding-left: 1rem;
  border-left: 2px solid var(--border);
  color: var(--text-muted);
}


/* images */
img {
  max-width: 100%;
  height: auto;
}

/* Select Color */
::selection {
  color: var(--text);
  background: var(--code-background);
}



/* Code */
code,
pre {
  font-family: inherit;
}

code {
  background: var(--code-background);
  padding: 0.1rem 0.3rem;
  border-radius: 3px;
}

pre {
  overflow-x: auto;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--code-background);
}

pre code {
  padding: 0;
  background: transparent;
}

