:root {
    --body-color: #3a3a3a;
    --body-color-secondary: #282828;
    --primary-color: #674abc;
    --secondary-color: #623eaa;
    --title-text-color: #dddddd;
    --weak-color: #bbbbbb;
    --text-color: #dddddd;
    --img-background-color: #aaaaaa;
    --footer-color: #bdbdbd;
    --footer-copyright-color: #9e9e9e;
}

img {
    background-color: var(--img-background-color);
    display: block;
}

@media only screen and (max-width: 520px) {
    h1 {font-size: 2.6rem;}
    h2 {font-size: 2.3rem;}
    h3 {font-size: 2.1rem;}
    h4 {font-size: 2.0rem;}
    h5 {font-size: 1.9rem;}
    h6 {font-size: 1.8rem;}
}

html, body {
    background-color: var(--body-color);
    scroll-behavior: smooth;
    word-wrap: break-word;
    background-image: linear-gradient(to bottom right, var(--body-color), var(--body-color-secondary));
    /* background-image: url(https://upload.wikimedia.org/wikipedia/commons/d/d6/The_nightsky_%2821213820062%29.jpg); */
    color: var(--text-color);
}

body {
    display: flex;
    min-height: 100vh;
    flex-direction: column;
}

main {
    flex: 1 0 auto;
}

nav {
    background: var(--primary-color);
    border-bottom: 3px solid var(--secondary-color);
}

nav .sidenav-trigger{
    margin: 0;
}

nav ul a {
    color: var(--title-text-color);
}

nav a.brand-logo {
    color: var(--title-text-color);
}

.sidenav ul li>a {
    padding: 0 48px;
}

td {
    vertical-align: top;
}

span.quote {
    color: var(--weak-color);
    font-size: larger;
    display: block;
    margin: 20px auto;
    width: 60%;
    text-align: center;
}


:is(img, table)+span.source::before {
    content: '[Quelle]';
}


.cite-note, #source-wrapper * {
    color: inherit;
}

.tooltipped {
    cursor: help;
    text-decoration: underline;
    text-decoration-style: dotted;
}

#topbutton {
    display: none;
    position: fixed;
    right: 5px;
    bottom: 5px;
    width: 50px;
    height: 50px;
}

#topbutton>i.material-icons {
    transform: translateY(0.5ex);
}


a[target="_blank"]>i.material-icons {
    font-size: inherit;
    padding-left: 0.5ch;
}

.page-footer {
    background-color: var(--primary-color);
    color: var(--title-text-color);
}
.page-footer.footer-copyright {
    background-color: var(--secondary-color);
    color: var(--title-text-color);
}
.page-footer a {
    color: inherit;
}

.modal {
    color: initial;
}



.reveal-timeline {
    position: relative;
    margin-top: 20px;
}

.reveal-timeline::after {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;

    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;

    background: var(--img-background-color);
    content: "SPOILER-WARNUNG!";
    color: var(--primary-color);
    font-size: 5rem;
    line-height: 1.2;
    font-weight: bold;

    --scale: 0;

    transform: scaleY(var(--scale));
    transform-origin: bottom;

    transition: transform 300ms ease-in-out;
}
.reveal-timeline.reveal-hide::after {
    --scale: 1;
}

.reveal-timeline>a.btn {
    --translate-x: -50%;
    --scale: 1;
    position: absolute;
    left: 50%;
    top: 70%;
    z-index: 10;

    transform: translateX(-50%) scale(var(--scale));
    transform-origin: bottom;

    transition: transform 300ms ease-in-out;
}

.reveal-timeline:not(.reveal-hide)>a.btn {
    --scale: 0;
}
@media only screen and (max-width: 900px) {
    .reveal-timeline>a.btn {
        top: 80%;
    }   
}
@media only screen and (max-width: 700px) {
    .reveal-timeline.reveal-hide::after {
        font-size: 3rem;
    }
    .reveal-timeline>a.btn {
        top: 75%;
    }
}
@media only screen and (max-width: 480px) {
    .reveal-timeline.reveal-hide::after {
        font-size: 2rem;
    }
    .reveal-timeline>a.btn {
        top: 70%;
    }
}