@font-face {
    font-display: swap;
    font-family: 'JetBrains Mono', monospace;
    font-style: normal;
    font-weight: 500;
    src: url(fonts/JetBrainsMono.ttf) format("truetype");
}

body {
    display: flex;
    max-width: 800px; /* Legt die maximale Breite auf 50% der Bildschirmbreite fest */
    margin-left: auto;
    margin-right: auto;
    padding: 0 2ch;

    font-family: 'JetBrains Mono', monospace;
    font-size: 15px;
    line-height: 1.5;
}

header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-header {
    text-decoration: none;
    line-height: 2.5em;
}

.title-container {
    display: inline-block; /* Container wird nur so breit wie der Text */
    cursor: pointer;
    font-size: 1.5rem;
}

a {
    text-decoration: underline 2px;
    color: #000;
}

a:hover {
    color: #fff;
    background-color: #000;
}

.content {
    margin: 3rem 0;
    text-align: justify;  
}

footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2rem 0rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

::selection {
    background: #000;
    color: #fff;
}


button {
    font-family: 'JetBrains Mono', monospace;
    line-height: 1.5;
    text-decoration: underline 2px;
    background: #fff;
    color: #000;
    border: none;
}

button:hover {
    color: #fff;
    background-color: #000;
    cursor: pointer;
}

.dark-theme {
    background-color: #000;
    color: #fff;
}

.dark-theme a {
    color: #fff;
}

.dark-theme a:hover {
    color: #000;
    background-color: #fff;
}

.dark-theme ::selection {
    background: #fff;
    color: #000;
}

.dark-theme button {
    background: #000;
    color: #fff;
}

.dark-theme button:hover {
    color: #000;
    background-color: #fff;
}

.dark-theme #cursor {
    animation: blink-darkmode 0.7s step-start infinite;
}

#text-container {
    display: inline;
}
#cursor {
    display: inline-block;
    width: 4px;
    height: 12px;
    margin-left: 3px;
    animation: blink 0.7s step-start infinite;
}
@keyframes blink {
    from, to {background-color: transparent;}
    50% {background-color: #000;}
}
@keyframes blink-darkmode {
    from, to { background-color: transparent;}
    50% { background-color: #fff;}
}