@import url("./catppuccin-mocha.css");

@font-face {
    font-family: 'Hack Nerd Font Mono';
    src: url('/fonts/HackNerdFontMono-Regular.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Hack Nerd Font Mono';
    src: url('/fonts/HackNerdFontMono-Bold.woff2') format('woff2');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Hack Nerd Font Mono';
    src: url('/fonts/HackNerdFontMono-Italic.woff2') format('woff2');
    font-weight: normal;
    font-style: italic;
    font-display: swap;
}

:root {
    --width: 50em;
    --font-main: 'Hack Nerd Font Mono', monospace;
    --font-secondary: 'Hack Nerd Font Mono', monospace;
    --font-scale: 1em;
    --background-color: var(--base);
    --main-heading-color: color-mix(in srgb, var(--blue) 45%, var(--text));
    --sub-heading-color: var(--lavender);
    --sub-sub-heading-color: var(--lavender);
    --text-color: var(--text);
    --link-color: var(--blue);
    --visited-color: var(--mauve);
}

body {
    font-family: var(--font-secondary);
    font-size: var(--font-scale);
    margin: auto;
    padding: 20px;
    max-width: var(--width);
    text-align: left;
    background-color: var(--background-color);
    word-wrap: break-word;
    overflow-wrap: break-word;
    line-height: 1.5;
    color: var(--text-color);
}

h1 {
  font-family: var(--font-main);
  color: var(--main-heading-color);
}
h2 {
  font-family: var(--font-main);
  color: var(--sub-heading-color);
}
h3,
h4,
h5,
h6 {
  font-family: var(--font-main);
  color: var(--sub-sub-heading-color);
}

a {
  color: var(--link-color);
  cursor: pointer;
  text-decoration: underline;
}

a.no-underline {
    text-decoration: none;
}

.nav-div nav a {
  color: var(--blue);
}

.nav-div nav a.active {
    font-weight: bold;
    font-style: italic;
    color: var(--blue);
}

.nav-div {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-bottom: 2em;
}

.nav-div nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

button {
  margin: 0;
  cursor: pointer;
}

main {
  line-height: 1.6;
}

table {
  width: 100%;
}

hr {
  border: 0;
  border-top: 1px dashed;
}

img {
  max-width: 100%;
}

code {
  background-color: color-mix(in srgb, var(--overlay1) 25%, transparent);
  font-family: monospace;
  padding: 2px;
  border-radius: 3px;
}

blockquote {
  border-left: 1px solid var(--pink);
  color: var(--pink);
  padding-left: 20px;
  font-style: italic;
}

footer {
  padding: 25px 0;
  text-align: center;
}

.title:hover {
  text-decoration: none;
}

.title h1 {
  font-size: 1.5em;
}

strong {
  color: var(--peach);
}

em { /*italic*/
  color: var(--maroon);
}

/* bold & italic (***text***) */
strong em, em strong, b i, i b {
    color: var(--mauve);
    font-weight: bold;
    font-style: italic;
}

/* (~~text~~) */
del, s, strike {
    color: var(--overlay1);
    text-decoration: line-through;
}

/* (==text==) */
mark {
    background-color: color-mix(in srgb, var(--yellow) 30%, transparent);
    color: var(--text);
    padding: 0.1em 0.3em;
    border-radius: 4px;
}

.highlight pre,
.code pre {
  min-width: 100%;
  width: max-content;
}
/* bullet Point color */
ul li::marker{ 
  color: var(--teal);
}

ol li::marker{ 
  color: var(--teal);
}

code, pre {
    font-family: var(--font-secondary);
}

:not(pre) > code {
    color: var(--rosewater); /* Ersetzen Sie dies durch Ihre gewünschte Catppuccin-Variable */
}

/* codeblock */
pre {
  white-space: pre;
    overflow-x: auto;
    max-width: 100%;
}
/* 2. Rahmen und Innenabstand des Codeblocks */
.highlight pre {
    background-color: color-mix(in srgb, var(--overlay1) 25%, transparent) !important;
    border: 1px solid var(--surface2);
    border-radius: 8px;
    padding: 1em 0em 1em 0em;
    margin: 0;
    margin-bottom: 1em;
    overflow-x: auto;
}

.highlight pre code {
    background-color: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    display: block;
}

.code-block-wrapper .highlight {
    margin: 0;
}

metadata{
  color: var(--overlay2)
}

mjx-container {
    color: var(--teal);
    overflow-x: auto;
}

.warning {
  border: 2px solid var(--yellow);
  background-color: color-mix(in srgb, var(--yellow) 30%, transparent);
  padding: 5px;
  border-radius: 5px;
  margin-bottom: 15px;
}                                                                    
                                                                 
.warning-title {                                                     
  font-size: 20px;
  margin-bottom: 10px;
  color: var(--yellow);
  font-weight: bold;
}

details {
  border: 2px solid var(--mauve);
  border-radius: 8px;
  margin: 20px 0;
  padding: 15px;
  background-color: color-mix(in srgb, var(--overlay1) 25%, transparent);
  overflow: hidden;
  transition: max-height 0.5s ease-out;
  max-height: 70px;
}
                                                                                         
summary {
  font-weight: bold;
  cursor: pointer;
  color: var(--mauve);
}
                                                                                         
.collapsible-content {
  margin-top: 10px;
}
                                                                                         
details[open] {
  max-height: 500px;
}

figure.img-float-left {
    float: left;
    margin: 0.5rem 1.5rem 1rem 0;
    max-width: 50%;
}

figure.img-float-right {
    float: right;
    margin: 0.5rem 0 1rem 1.5rem;
    max-width: 50%;
}

/* Clearfix: does txt next to, then under img */
figure.img-float-left::after,
figure.img-float-right::after {
    content: "";
    display: table;
    clear: both;
}

license {
  color: var(--overlay1);
  font-size: 0.7em;
}
