@import url("https://cdn.fachschaft.cl.uni-heidelberg.de/fonts/lib/Nunito/nunito.css");
@import url("https://cdn.fachschaft.cl.uni-heidelberg.de/fonts/lib/Fira_Code/fira_code.css");

body {
    /* Variables */
    --accent-color: #990000;
    --menu-shadow-color: #8a8a8a;
    --light-gray: #cacaca;
    --text-color: #242424;
    --background-color: #ffffff;
    --shadow-color: #424242;
    --sans-serif: "Nunito", sans-serif;
    --monospace: "Fira Code", monospace;
    --monospace-font-size: 84%;

    /* Font and appearance */
    font-family: var(--sans-serif);
    font-size: 12px;
    color: var(--text-color);
    background: var(--background-color);
}

/* ==== Text markup elements ==== */
a {
    color: var(--accent-color);
    border-color: var(--accent-color);
    text-decoration: none;
    border-style: solid;
    border-width: 0 0 1px 0;
    transition: text-shadow 0.2s;
}

a.box,
.box-links a {
    display: inline-block;
    margin: 0.25em;
    padding: 0.3em;
    border: 1px solid var(--accent-color);
    box-shadow: 0 0 5px var(--light-gray);
    font-size: 1.25em;
}

a:hover {
    text-shadow: 0 0 1px var(--light-gray);
}

a img {
    border-style: none;
}

h1 {
    font-size: 140%;
    font-weight: normal;
    font-family: var(--monospace);
}

h2 {
    font-family: var(--monospace);
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 5px;
}

h3 {
    font-size: 95%;
    margin-bottom: 10px;
}

hr, hr.wp-block-separator {
    border: none;
    height: 1px;
    margin: 1em 0 1em 0;
    background: linear-gradient(
        to left,
        transparent,
        rgba(153, 0, 0, 0.75),
        transparent
    );
}

figure.aligncenter {
    display: grid !important;
    justify-content: center;
}

img.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

img.alignleft {
    float: left;
}

img.alignright {
    float: right;
}

figcaption {
    text-align: center;
    width: 100%;
    margin-bottom: 0 !important;
}

details {
    margin-bottom: 1em;
}

details summary {
    cursor: pointer;
}

/* -- Tables -- */
table,
th,
tr,
td {
    border: solid;
    border-color: rgba(153, 0, 0, 0.2);
    border-collapse: collapse;
}

tr:nth-child(odd) {
    background-color: rgba(255, 255, 255, 0.2);
}

tr:nth-child(even) {
    background-color: rgba(153, 0, 0, 0.1);
}

td,
th {
    padding: 3px;
}

th {
    font-weight: normal;
    border-style: solid;
    border-width: 0px 0px 2px 0px;
    border-color: var(--accent-color);
    background-color: rgba(153, 0, 0, 0.5);
    color: #fff;
}

/* -- Lists -- */
ul li {
    list-style: square;
}

ul.seamless {
    display: inline-block;
    text-align: left;
}

ul.seamless li {
    list-style: none;
    color: inherit;
}

/* -- Quotes -- */

/* Blockquotes share some styles with post list entries, see section marked ### in style.css */

blockquote {
    padding: 1em;
}

blockquote :first-child {
    margin-top: 0 !important;
}

blockquote p:first-of-type::before {
    content: "„";
}

blockquote p:last-of-type {
    margin-bottom: 0;
}

blockquote p:last-of-type::after {
    content: "“";
}

blockquote + p {
    padding-right: 2em;
}

blockquote cite {
    font-size: small;
}

@page {
    @bottom-center {
        content: "Seite " counter(page) " von " counter(pages);
        font-family: "Nunito", sans-serif;
        font-size: 12px;
    }
}
