html, body {
    position: absolute;
    top: 0;
    left: 0;
    padding: 0;
    margin: 0;
    width: 100%;
}
body {
    background-color: #334455;
}
.card {
    margin: 6ex auto;
    background-color: white;
    max-width: 100ex;
    min-height: 18ex;
    border-radius: 4ex;
    border: 0.2ex solid black;
    box-shadow: 0.5ex 0.5ex 1ex;
    padding: 4ex 4ex 2ex 4ex;
    background-color: #F0F0F0;
    background: linear-gradient(to bottom, #FFFFFF, #B0B0B0 70%);
}
dl.inline dd {
    display: inline;
    margin: 0;
}
dl.inline dd:after{
    display: block;
    content: '';
}
dl.inline dt{
    display: inline-block;
    font-weight: bold;
}
#profile_img {
    height: 15ex;
    margin-right: 2ex;
}
h1, h2 {
    margin: 0;
    text-shadow: 2px 2px 3px #808080;
    font-family: serif;
}
table, div.content {
    margin: 2ex 0;
    text-align: left;
}
div.key {
    margin: 0.5ex 0;
}
.paper_teaser {
    box-shadow: 3px 3px 5px black;
    background-color: white;
} 
.paper_teaser img {
    box-shadow: none;
    width: 100px;
}
.paper_teaser:target img {
    margin-top: -6px;
}

.paper_teaser {
    transition: ease-out 0.2s;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.paper_teaser .close_button {
    display: none;
    line-height: 1.6ex;
    text-align: right;
    padding-right: 0.3ex;
    z-index: 1000;
}
.paper_teaser .close_button a:active {
    border: none !important;
}
.paper_teaser .close_button a img {
    width: 1ex;
    height: 1ex;
}
div.close_button {
    margin-top: -0.9ex;
    margin-right: -0.8ex;
}
.paper_teaser:target .close_button {
    display: block;
}

.paper_teaser .close_button a {
    text-decoration: none;
    color: darkred;
}
.paper_teaser .close_button a:hover {
    text-decoration: none;
}
a:active {
    outline: none;
}

.paper_teaser:target {
    transition: ease-in 0.3s;
    transform: translate(-50%, -50%) scale(6);
    top: 50%;
    left: 50%;
    position: fixed;
}
.paper_details {
    scroll-margin-top: 50px;
}

div.paper {
    margin: 1.5ex 0;
    padding: 1em;
    border: thin solid black;
    background-color: #eee;
    box-shadow: 3px 3px 3px black;
    display: flex;
    align-items: flex-start;
}
div.paper_details {
    margin: 0ex 2ex;
    margin-top: 0.5ex;
}
.paper_details h4 {
    margin-top: 0;
    margin-bottom: 0.5ex;
}
div.paper div.authors {
    font-style: italic;
    margin-bottom: 0.5ex;
}
div.paper div.published {
    color: #505050;
}
div.paper div.published a {
    color: #5050B0;
}
a {
    color: #000060;
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}

/* paper page */
body.paper_page .card {
	max-width: 120ex;
}
div.box {
    margin: 1.5ex 0;
    padding: 1em;
    border: thin solid black;
    background-color: #eee;
    box-shadow: 3px 3px 3px black;
}
div.box h3 {
	margin: 0;
}
div.links h4 {
    margin: 0;
}
.paper_page .imageswrapper img {
    border: thin solid black;
    box-shadow: 3px 3px 3px black;
    width: 170px;
}
.paper_page .imageswrapper img:hover {
    box-shadow: 3px 3px 8px black;
}
div.imageswrapper {
    display: flex;
    flex-wrap: wrap;
}
div.image {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 170px;
    hyphens: auto;
    margin: 0 1.0ex;
}
div.caption {
    margin-top: 0.5ex;
}
pre {
    white-space: wrap;
}
div.bibtex {
    overflow: auto;
}
#fancybox-title {
    color: white;
}
#fancybox-wrap, #fancybox-content {
    box-sizing: content-box;
}
#fancybox-outer {
}
#fancybox-content {
    border: 3px solid black !important;
    padding-right: 10px !important;
    padding-left: 5px !important;
}
.multiple_formulas {
    display: flex;
    align-items: center;
}
.multiple_formulas * {
    margin-left: 1ex;
}
.main_text {
    font-family: sans-serif;
}

/* experimental */
/*.paper_teaser {
    transition: ease-in 0.0s !important;
}
.paper_teaser:target {
    transition: ease-in 0.0s !important;
    transform: none !important;
    position: absolute;
    top: 0;
    left: 0;
    padding: 0;
    margin-top: 50vh;
    margin-left: 50vw;
}
.paper_teaser:target div.test {
    transform: scale(5);
    transition: ease-in 0.2s;
}*/
