html, body {
    margin: 0px;
    height: 100%;

    background-color: antiquewhite;
    display: flex;
    flex-flow: column;
    justify-content: space-between;
}

:root {
	--Pink-color: #d354e1;
    --Purple-color: #9400c7;
    --contrast-color: rgba(255, 255, 255, 0.3);
}

/* Navigation Menu */
#navigation {
    background-color: var(--Pink-color);
    padding: 5px 10px;
    z-index: 2;
    min-height: 60px;
    box-sizing: border-box;
}

#navigation ul {
    list-style-type: none;
    margin: 0px;
    padding: 0px;
    width: 100%;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
}

#navigation li {
    padding: 5px;
    flex-grow: 1; /* expands all items to equally fill the row */
    height: 35px;
    display: flex; /* to center the text of this item */
    justify-content: center;
    flex-flow: row;
    margin-right: 5px;
    border-bottom: 2px solid white;
    transition: background-color 0.5s;
    color: white;
    font-size: 30px;
    font-variant: small-caps;
}

#navigation a {
    flex-grow: 1;
    text-decoration: none;
    color: white;
    font-size: 30px;
    font-variant: small-caps;
}

#navigation li:hover {
    background-color: var(--contrast-color);
    /*cursor: pointer;*/
}

.navigation-active {
    background-color: var(--contrast-color);
}

/* Content*/
#content {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;

    margin: 60px 0px 0px; /* top, right/left, bottom */
    z-index: 3;
    padding: 10px;
    overflow-y: scroll;
    
    flex-grow: 1;
}

/* Galery Page */
#galery-display {
    width: 100%;
    height: auto;
    min-height: 100%;
    padding: 10px;
    box-sizing: border-box;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
    align-items: center;
}

.galery-display-img {
    max-height: 250px;
    max-width: 300px;
    margin: 5px;
    border: 2px solid transparent;
}

.galery-display-img:hover {
    cursor: pointer;
    position: relative;
    top: -10px;
    left: -10px;
    box-shadow: rgba(0,0,0,0.4) 10px 10px;
    background-color: var(--contrast-color); /* kind of sneaking here, just doing this so shadow and border look right on transparent images */
    border: 2px solid var(--contrast-color);
}

#galery-display video {
    max-height: 250px;
    max-width: 300px;
    margin: 5px;
    border: 5px solid red;
}

#galery-display video:hover {
    cursor: pointer;
    position: relative;
    top: -10px;
    left: -10px;
    box-shadow: rgba(0,0,0,0.4) 10px 10px;
    background-color: var(--contrast-color); /* kind of sneaking here, just doing this so shadow and border look right on transparent images */
    border: 5px solid red;
}

/* Popup */
.overlay {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.85); /* grey background */
    transition: opacity 500ms; /* smooth transition */
    z-index: 10;
    display: none;
}

.overlay:target {
    visibility: visible;
    opacity: 1;
} /* visible inside the transparent background */

.overlay:hover { /* so the user knows he can click */
    cursor: pointer;
}

.popup {
    margin: 5% auto;
    width: 90%;
    height: 90%;
    position: relative;
    transition: all 5s ease-in-out;
    display: flex;
    flex-flow: column;
    align-items: center;
    justify-items: center;
    color: white;
    font-size: 20px;
}

.popup img {
    max-height: 90%;
    max-width: 90%;
    object-fit: contain;
    flex-shrink: 1;
    flex-grow: 1;
}

.popup video {
    max-height: 90%;
    max-width: 90%;
    object-fit: contain;
    flex-shrink: 1;
    flex-grow: 1;
}

#popCaption {
    display: flex;
    flex-flow: column;
    align-items: center;
    justify-items: center;
}

/* Candle */
#candle {
    z-index: 5;
    box-sizing: border-box;

    margin-left: auto;
    margin-right: auto;

    padding: 10px;

    height: 200px;

    background-image: url("/Kerzen/Kerze.png");
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center right;

    cursor: pointer;

    display: flex;
    flex-flow: column;
    justify-content: flex-end;
    align-items: center;
    color: white;
}

/* Zeitstrahl */
.timelinePage {
    display: flex;
    align-items: start;
    margin: 70px 0px 0px 110px;
    overflow-y: scroll;

    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
}
.timelinePage h1{
    font-size: 50px;
    color: rgba(100, 40, 0, 0.80);
}

.timeline {
    background-color: var(--Purple-color);
    width: 100px;
    margin: 70px 10px 10px;
    padding: 5px;

    box-sizing: border-box;
    font-size: large;
    display: flex;
    flex-flow: column;
    justify-content: start;
    align-items: center;
    list-style-type: none;
    list-style-image: none;

    overflow-y: scroll;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

.timeline a {
    text-decoration: none;
}

.timeline li:hover {
    font-size: xx-large;
    height: 25px;
}

.timeline-active {
    font-size: x-large;
    height: 25px;
}

.timeline li {
    color: white;
    height: 25px;
}


/* Admin Form */
.admin-form {
    width: 80%;
    min-height: 95%;
    margin: auto auto;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-evenly;
}

.admin-form h1 {
    margin:  0px;
    padding: 0px;
}

.admin-form input[type=button],input[type=submit], input[type=reset] {
    height: 30px;
    width: 200px;

    color: white;
    background-color: var(--Pink-color);
}

.admin-form div {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.admin-buttons {
    width: 80%;
    margin: auto auto;
    display: flex;
    justify-content: space-evenly;
}

.admin-buttons input[type=button], input[type=submit], input[type=reset] {
    height: 30px;
    width: 200px;
    color: white;
    background-color: var(--Pink-color);
}

.list-root {
    width: 90%;
    margin: 10px auto;
}

.list-head {
    font-size: larger;
    font-weight: bolder;
    text-align: center;
    color: white;
    background-color: var(--Purple-color);
}

.list-head th {
    padding: 5px;
}

.list-row {
    margin: 0px;
    background-color: rgba(209, 166, 238, 0.45);

    text-align: left;
}

.list-row td {
    padding: 5px;
}

.list-row:hover {
    background-color: rgba(209, 166, 238, 1);
    cursor: pointer;
}

/* PDF Renderer */
#page-view {
    width: 1000px;
    min-height: 2000px;
    max-width: 95%;
    margin: 5% auto;
    box-sizing: border-box;

    padding: 50px 80px;
    background-color: white;

    font-size: large;
}

#page-view h1{
    text-align: center;
}
#page-view h2{
    margin-top: 1.5em;
}
#page-view h3{
    text-align: center; 
    font-style: italic; 
    margin-top: 2em;
    font-size: inherit;
}
#page-view p {
    text-indent: 1em;
}

/* Trauer Seite */
.trauer-page {
    width: 90%;
    min-height: 95%;
    margin: auto auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: start;
}

.trauer-page h1 {
    margin: 0px;
    padding: 0px;
    font-size: 30pt;
    color: var(--Purple-color); /* var(--Purple-color);*/
    margin-bottom: 20px;
}

.trauer-page video {
    max-height: 80%;
    width: 80%;
    
}