body {
    background-color: rgba(235, 217, 217, 0.925);
    display: flex;
    justify-content: center;
    text-align: center;
}

.KlickAuau {
    display: none;
}

.KlickChemie {
    display: none;
}


/*Header*/

main {
    margin-top: 6em;
    text-align: center;
    display: block;
    justify-content: center;
    background-color: white;
    border-radius: 2em;
    padding: 2em;
    padding-top: 1em;
    padding-top: 1em;
}

h2 {
    color: black;
    opacity: 1;
    display: block;
    text-align: center;
    height: fit-content;
    margin-bottom: 1em;
}

.pictures {
    display: flex;
}


/* "main" */

figcaption span {
    font-size: smaller;
}

img {
    border: 0.2em solid rgb(241, 232, 232);
    display: inline;
    height: 13em;
    -moz-transform: translate3d(0, 0, 0);
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
    -moz-transition: all 0.5s;
    -webkit-transition: all 0.5s;
    transition: all 0.5s;
}

.borderleft {
    border-left: none;
}

.borderright {
    border-right: none;
}


/* figure&figcaption */

figure {
    height: 14em;
    margin: 0 0.5em;
    padding: 0;
    display: block;
    position: relative;
    overflow: hidden;
    /* hide overflowing elements by default */
}

figcaption {
    position: absolute;
    display: block;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    text-align: center;
    background: rgb(241, 232, 232);
    padding: 15px;
    z-index: 100;
    /* width: auto; */
    max-height: 14em;
    overflow: hidden;
    top: 50%;
    left: 0;
    -moz-transform: translate3d(-100%, -50%, 0);
    /* position caption outside layout horizontally and centered vertically */
    -webkit-transform: translate3d(-100%, -50%, 0);
    transform: translate3d(-100%, -50%, 0);
    opacity: 0;
    -moz-transition: all 0.5s;
    -webkit-transition: all 0.5s;
    transition: all 0.5s;
}

figure {
    display: table
}

figcaption {
    display: table-caption;
    caption-side: bottom;
    width: 100%;
    top: 100%;
    opacity: 1;
    -moz-transform: translate3d(0, 0, 0);
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
}

figure:hover img {
    -moz-transform: translate3d(0, -20px, 0);
    /* move image up vertically a bit for parallax effect */
    -webkit-transform: translate3d(0, -20px, 0);
    transform: translate3d(0, -20px, 0);
    opacity: .5;
}

figure:hover figcaption {
    -moz-transform: translate3d(0, -100%, 0);
    /* move caption up vertically to fully reveal caption */
    -webkit-transform: translate3d(0, -100%, 0);
    transform: translate3d(0, -100%, 0);
    -moz-transition: all 0.5s;
    -webkit-transition: all 0.5s;
    transition: all 0.5s;
    box-shadow: 0px -2px 28px rgba(0, 0, 0, 0.3);
}

figcaption.spitznamen {
    padding: 0.3em;
}


/* footer */

.footer {
    margin-top: 1em;
    display: block;
}

a {
    color: black;
    font-size: smaller;
    display: inline;
}

.left {
    text-align: left;
}

.right {
    text-align: right;
}