/* Pages: Center & limit image sizes on all pages */
#content img {
    position: relative;
    transition: box-shadow 500ms, transform 500ms;
    max-width: 100%;
    max-height: 20em;
    z-index: 10;
    box-shadow: 0em 0em 0em transparent;
}
#content img:hover {
    transform: scale(1.1);
    box-shadow: 0em 0em 1em grey;
}

/* Pages: Table & Posts */
table td {
    padding: 0.5em;
}

#blog-post {
    text-align: justify;
}

/* Footer: Sponsor */
div.col-md-12 div.footer-sponsor {
    transition: 1s transform;
    width: max-content;
    padding: 0.5em;
    transform: scale(1);
}

div.col-md-12 div.footer-sponsor:hover {
    transform: scale(1.2);
}

div.col-md-12 div.footer-sponsor::after {
    transition: opacity 1s;
    font-size: 2em;
    content: "👍";
    opacity: 0;
}

div.col-md-12 div.footer-sponsor:hover::after {
    opacity: 1;
}

div.col-md-12 div.footer-sponsor > img {
    margin: unset;
    transform: unset;
}

/* Footer: Copyright */
div.col-md-12 p.pull-right {
    transition: opacity 2s;
    opacity: .1
}

div.col-md-12 p.pull-right:hover {
    opacity: 1
}

/* Pages: Video header */
#heading-breadcrumbs-video-wrapper {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    overflow: hidden;
}

#heading-breadcrumbs-video-wrapper > video {
    object-fit: cover;
    height: 100%;
    width: 100%;
}

#heading-breadcrumbs {
    background: url('/video/bgvideo_static.png') center center repeat;
    position: relative;
}

#heading-breadcrumbs h1 {
    color: white;
}

/* Front: Header carousel */
.home-carousel > .dark-mask {
    background: rgba(0, 0, 0, 0.6);
}

.background-image-fixed-2 .dark-mask {
    opacity: 0.75;
}

.background-image-fixed-2 .btn {
    border: 0;
}

.background-image-fixed-2 .btn:hover {
    background: none;
    transform: scale(1.5);
}

/* JS/Pages: Clickable images */
img.makebig {
    transition: opacity 500ms;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    height: 100%;
    width: 100%;
    object-fit: contain;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.8);
    animation-name: opacityFadeIn;
    animation-duration: 500ms;
}
img.makebig.fadeOut {
    animation-name: opacityFadeOut;
}
@keyframes opacityFadeIn {
    from {opacity: 0;}
    to {opacity: 1;}
}
@keyframes opacityFadeOut {
    from {opacity: 1;}
    to {opacity: 0;}
}

/* Sidebar: Table of contents */
#content-toc #TableOfContents ul, #content-toc #TableOfContents li {
    list-style-type: none;
    list-style-position: inside;
    padding-left: 0;
}

#content-toc #TableOfContents ul > li {
    font-weight: normal;
    padding-left: 2em;
}

#content-toc #TableOfContents ul:first-child > li {
    font-weight: bold;
    padding-left: 0;
}
