@font-face {
    font-family: 'Jost';
    src: url('../font/Jost-Regular.ttf') format('truetype');
    font-style: normal;
    font-weight: 400;
    text-rendering: optimizeLegibility;
}

@font-face {
    font-family: 'Jost';
    src: url('../font/Jost-Italic.ttf') format('truetype');
    font-style: italic;
    font-weight: 400;
    text-rendering: optimizeLegibility;
}

@font-face {
    font-family: 'Jost';
    src: url('../font/Jost-Bold.ttf') format('truetype');
    font-style: normal;
    font-weight: 700;
    text-rendering: optimizeLegibility;
}

@font-face {
    font-family: 'Jost';
    src: url('../font/Jost-BoldItalic.ttf') format('truetype');
    font-style: italic;
    font-weight: 700;
    text-rendering: optimizeLegibility;
}

:root {
    --font-stack: Jost;
    --mono-font-stack: Jost Mono;
    --global-font-size: 20px;
    /*--global-font-color: #444;
    --background-color:#fff;
    --primary-color:#3e158b;
    --secondary-color:#727578;*/
    --global-line-height: 1.6em;
    --page-width: 42em;
    --image-width: 85%;
    --post-padding: 0px 30px 10px 30px;
}

@media (prefers-color-scheme: dark) {
	:root {
		--background-color: #2f2f2f;
        --global-font-color: #d8d8d8;
        --primary-color:#9d74ea;
        --secondary-color:#727578;
        --card-color: #373737;
        --code-background: #4d4d4d;
	}
}

@media (prefers-color-scheme: light) {
	:root {
		--background-color: #fcf9fd;
        --global-font-color: #444;
        --primary-color:#3e158b;
        --secondary-color:#727578;
        --card-color: #fbfbfb;
        --code-background: #ebebeb;
    	}
}

@media only screen and (max-width: 768px) {
	:root {
        margin:10px;
		--global-font-size: 18px;
        --image-width: 90%;
        --post-padding: 0px 10px 10px 10px;
	}
}

body {
    font-family: "Jost*", "Jost", sans-serif;
    font-size: var(--global-font-size);
    margin-bottom: 75px;
    color:var(--global-font-color);
    line-height:var(--global-line-height);
    margin:0;
    word-wrap:break-word;
    background-color:var(--background-color);
    padding: 20px 0 0 0;
}

.post_short {
    /*max-width: 960px;*/
    border-radius: 32px;
    box-shadow: 0px 0px 30px rgba(0, 0, 0, 0.1);
    padding: 20px 20px 28px 20px;
    box-sizing: border-box;
    margin: 10px 0 20px 0;
    display: flex;
    flex-direction: column;
    background-color: var(--card-color);
    transition: transform .4s;
}

.post_short:hover {
    transform: scale(1.03);
}

.post_full {
    /*max-width: 960px;*/
    border-radius: 10px;
    box-shadow: 0px 0px 30px rgba(0, 0, 0, 0.06);
    padding: var(--post-padding);/*0px 30px 10px 30px;*/
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    background-color: var(--card-color);
}

blockquote {
    border-left: 2px solid #aeaeae;
    padding: 0 1em;
}

p {
    padding: 0 0 12px 0;
}

h1 {
    font-size: 1.6em;
    margin: 35px 0 30px 0;
    font-weight: bold;
}

h1 a, h2 a, h3 a {
    text-decoration:none;
}

h2 {
    font-size: 1.4em;
    font-weight: bold;
    margin: 20px 0 30px 0;
}

h3 {
    margin: 15px 0 5px 0;
}

hr.inTouch {
    width: 70%;
    margin-top: 40px;
    margin-bottom: 50px;
    border: 1px solid;
    color: #5f5f5f;
}

hr {
    width: 30%;
    margin-top: 40px;
    margin-bottom: 40px;
    border:1px solid;
    color:#cecece;
}

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

.container {
    margin: 0 auto;
    max-width:var(--page-width);
}

nav {
    color:var(--global-font-color);
    text-align: right;
    width:100%;
}

/**** Post List ****/
.post_short .date,
article .date {
    font-size: 0.8em;
    color:var(--secondary-color);
    /*margin: 15px 0 15px 0;*/
}

.footer {
    margin-top: 4em;
    padding-top: 1em;
    color:var(--global-font-color);
    text-align: left;
    /*width:80%;*/
    border-top: 1px solid var(--secondary-color);
    color: var(--global-font-color);
}

.footer_social-icons svg {
    color: var(--secondary-color);
    height: 24px;
    width: 24px;
    padding-right: 5px;
    &:hover {
        color: var(--primary-color);
    }
}

.footer_social-icons a {
    text-decoration:none;
}

.navblock{
    display:flex;
    flex-direction:row;
    align-items:center;
    width:100%;
    margin-bottom: 4em;
}

.home-nav {
    display: flex;
    flex-direction: row;
    box-sizing: border-box;
    width:100%;
}

.logo {
    display: flex;
    flex-direction: row;
    box-sizing: border-box;
    font-size: 40px;
    font-weight: bold;
}

.logo a {
    text-decoration:none;
}

code {
    font-size: 0.7em;
    word-wrap: break-word;
    display: block;
    background: var(--code-background);
    white-space: pre;
    -webkit-overflow-scrolling: touch;
    overflow-x: scroll;
    max-width: 100%;
    min-width: 100px;
    padding: .2rem 1rem .2rem;
    border-radius: .2rem;
}

nav > a {
    flex: 1;
    text-align: center;
    text-decoration: none;
    color:var(--global-font-color);
    margin-right: 25px;
}

.image {
    display: block;
    margin-left: auto;
    margin-right: auto;
    max-width: var(--image-width);
    height:auto;
    -webkit-filter: drop-shadow(0px 0px 5px #222);
    filter: drop-shadow(0px 0px 5px #222);
}

li {
    padding-bottom: .5rem;
}

th,td {
    padding: 5px;
}

table {
    border-collapse: collapse;
}

table,th,td {
    border: 1px solid black;
}

.rainbow-text {
    background-image:
      linear-gradient(to right, red, orange,yellow,green,blue,indigo,violet, red);
    -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
    animation: rainbow-animation 60s linear infinite;
  }

  @keyframes rainbow-animation {
    to {
        background-position: 1000px;
    }
  }

/* Bilder Grid 2 Spalten */
.row {
    display: flex;
    width: var(--image-width);
    margin-left: auto;
    margin-right: auto;
    -webkit-filter: drop-shadow(0px 0px 2px #222);
    filter: drop-shadow(0px 0px 2px #222);
  }
  
  /* Create two equal columns that sit next to each other */
  .column {
    flex: 50%;
    max-width: 50%;
  }
  
  .column img {
    margin-top: 0px;
    vertical-align: middle;
    width: 100%;
  }
/* Ende Bilder Grid */


  /* test*/
  a.post_short {
    display: block;
    height: 100%;
    width: 100%;
    text-decoration: none;
}
