
@font-face {
    font-family: 'Myriad Web Pro';
    src: url('../fonts/MyriadWebPro.eot');
    src: url('../fonts/MyriadWebPro.eot?#iefix') format('embedded-opentype'),
    url('../fonts/MyriadWebPro.woff2') format('woff2'),
    url('../fonts/MyriadWebPro.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Myriad Web Pro';
    src: url('../fonts/MyriadWebPro-Bold.eot');
    src: url('../fonts/MyriadWebPro-Bold.eot?#iefix') format('embedded-opentype'),
    url('../fonts/MyriadWebPro-Bold.woff2') format('woff2'),
    url('../fonts/MyriadWebPro-Bold.woff') format('woff');
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: 'Myriad Web Pro';
    src: url('../fonts/MyriadWebPro-Italic.eot');
    src: url('../fonts/MyriadWebPro-Italic.eot?#iefix') format('embedded-opentype'),
    url('../fonts/MyriadWebPro-Italic.woff2') format('woff2'),
    url('../fonts/MyriadWebPro-Italic.woff') format('woff');
    font-weight: normal;
    font-style: italic;
}

:root {
    --mlsec-primary: #c10d1f;
    --mlsec-primary-light: #d11d2f;
    --mlsec-secondary: #058;    
    --mlsec-tag-box: #eee;
    --mlsec-tag-box-text: #555;
    --mlsec-tag-box-primary: #fee;
    --mlsec-tag-box-secondary: #e5f0f5;
    --mlsec-framed: #eee;

    --bs-font-sans-serif: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    --bs-font-monospace: Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    --bs-body-font-family: "Myriad Web Pro", Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol, Noto Color Emoji;
    --bs-heading-font-family: "Myriad Web Pro", Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol, Noto Color Emoji;
    --bs-body-font-size: 1.05rem;
    --bs-body-line-height: 1.65em;
}

#mainNav.navbar-shrink {
    padding-top: 0.7rem;
    padding-bottom: 0.7rem;
    background-color: white;
    box-shadow: 2px 2px 2px 1px rgba(0, 0, 0, 0.2);
}

#mainNav .navbar-nav .nav-item .nav-link {
    color: black;
}

#mainNav .nav-logo {
    height: 2rem;
    /* Setup for BIFOLD logo */
    max-width: 9rem;
    margin-bottom: 6px;
    
    /* Setup for TUB logo */
    /* max-width: 8rem; */
}


#mainNav .navbar-sep {
    padding-left: 0.2em;
    padding-right: 0.2em;
}
#mainNav .navbar-brand {
    padding-bottom: 3.5px;
    color: #2EBAD5;
    font-family: var(--bs-body-font-family);
    text-decoration: none;
}

#mainNav .navbar-nav .nav-item .nav-link, #mainNav .navbar-toggler {
    font-family: var(--bs-body-font-family);
}

#mainNav .navbar-nav .nav-item .nav-link:hover {
    color: var(--mlsec-primary-light);
    text-decoration: none;
}

header.masthead {
    text-align: center;
}

/* Background filter hack */
.masthead {
    position: relative;
}

.masthead::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    margin: auto;
    width: 100%;
    height: 100%;

    background-image: url("../img/backgrounds/tu-berlin2-cmp.jpg");
    filter: brightness(60%) hue-rotate(-30deg);

    background-position: top center;
    background-repeat: no-repeat;
    background-attachment: scroll;
    background-size: cover;
}

@media (min-width: 768px) {
    .masthead::after {
        background: var(--bs-light);
        bottom: -4.6875rem;
        content: "";
        display: block;
        height: 8.125rem;
        position: absolute;
        right: 0;
        -ms-transform: skewY(-3deg);
        transform: skewY(-3deg);
        width: 100%;
        z-index: 1;
    }
}

.masthead-inside {
    /* This will make it stack on top of the ::before */
    position: relative;
    padding-top: 7.5rem;
    padding-bottom: 3rem;
}

@media (min-width: 768px) {
    .masthead-inside {
        padding-top: 7.5rem;
        padding-bottom: 7.5rem;
    }
}

header.masthead .masthead-heading {
    font-size: 45px;
    font-family: var(--bs-heading-font-family);
    line-height: 1.1;
    margin-bottom: 0.7rem;
}

header.masthead .masthead-subheading {
    font-size: 25px;
    font-style: normal;
    font-family: var(--bs-heading-font-family);
    line-height: 1.2;
    margin-bottom: 0.7rem;
}

header.masthead .masthead-logo .logo {
    max-height: 80px;
    max-width: 160px;
    padding: 0px 10px 10px 0px;
}

.masthead-inside .footnote {
    position: absolute;
    bottom: 0;
    right: 0;
    padding: 15px;
    font-size: 12px;
    color: rgba(255,255,255, 0.7);
}

footer {
    color: #aaa;
}

footer a, footer a:hover {
    color: #fff;
}

footer .logo {
    max-width: 100px;
    max-height: 25px;
    margin-right: 10px;
}

section.page-section {
    position: relative;
    z-index: 20;
    padding: 2rem 0 2rem 0;
}

section.first {
    padding-top: 4rem;
}

section.first-shrink {
    padding-top: 8rem;
}

a {
    color: var(--mlsec-primary);
    text-decoration: none;
}

a:hover {
    color: var(--mlsec-primary-light);
    text-decoration: underline;
}

p {
    line-height: var(--bs-body-line-height);
}

h6, h5, .h5, h4, .h4, h3, .h3, h2, .h2, h1, .h1 {
    font-family: var(--bs-heading-font-family);
}

h1 {
    margin-bottom: 15px;
    padding-bottom: 10px;
    font-size: 28px;
    text-transform: uppercase;
    margin-top: -30px;
    padding-right: 10px;
    text-align: end;
    border-bottom: 3px solid var(--mlsec-framed);
    /* margin-left: 25%; */
}

h2 {
    padding-top: 20px;
    padding-bottom: 5px;
    font-size: 22px;
}

code {
    color: var(--mlsec-secondary);
    font-size: 80%;
    background: var(--mlsec-tag-box-secondary);
    border-radius: 4px;
    padding: 4px 6px 4px 6px;
}

strong {
    font-weight: normal;
    color: var(--mlsec-secondary);
}

.blink {
    animation: blinker 1.5s linear 4;
}

img.icon {
    width: 40px;
    height: 40px;
    margin-right: 15px;
    margin-bottom: 5px;
}


.title {
    color: var(--mlsec-secondary);
}

@keyframes blinker {
    50% {
        opacity: 0;
    }
}

.link-box {
    padding: 3px 10px 4px 10px;
    background: var(--mlsec-tag-box);
    border-radius: 4px;
    font-size: 95%;
}

.tag-box {
    font-size: 85%;
    padding: 3px 10px 4px 10px;
    background: var(--mlsec-tag-box);
    border-radius: 4px;
}

.tag-primary {
    background: var(--mlsec-tag-box-primary);
    color: var(--mlsec-primary);
}

.tag-secondary {
    background: var(--mlsec-tag-box-secondary);
    color: var(--mlsec-secondary);
}

.tags a {
    color: var(--mlsec-secondary);
}

.tags {
    color: var(--mlsec-tag-box-text);
    margin-top: -5px;
}

span.secondary {
    color: var(--mlsec-secondary);
}

span.primary {
    color: var(--mlsec-primary);
}

span.primary-light {
    color: var(--mlsec-primary-light);
}

.container {
    max-width: 900px;
}

.container table {
    width: 90%;
    margin-top: 1em;
    margin-bottom: 1em;
}

.container th {
    color: var(--mlsec-secondary);
    background: var(--mlsec-tag-box);
}

.container th, td {
    padding: 5px 10px;
    margin: 0;
}

.container ul:not(.navbar-nav) {
    list-style-type: none;
    margin-top: 1em;
    margin-bottom: 1em;
}

.container ul:not(.navbar-nav) li::before {
    content: "\25AA";
    display: inline-block;
    width: 1.2em;
    margin-left: -1.2em;
    color: var(--mlsec-secondary);
}

.framed {
    border-left: 2px solid var(--mlsec-framed);
    padding-left: 20px;
    margin-top: 20px;
    margin-bottom: 25px;
}

.framed-nobar {
    padding-left: 20px;
    margin-top: 20px;
    margin-bottom: 25px;
}

.no-margin {
    margin-top: 0;
    margin-bottom: 0;
}

.paper .title, .course .title {
    color: var(--mlsec-secondary);
}

.paper .organ {
    font-style: italic;
}

.paper .extra {
    color: var(--mlsec-primary);
}

.paper .techreport .details {
    filter: saturate(0%) brightness(150%);
}

.paper-small {
    background-color: rgba(var(--bs-light-rgb));
}

.paper-small p.details {
    padding-top: 8px;
    padding-bottom: 8px;
    line-height: 1.4;
}

.project img.logo {
    width: 85%;
    max-width: 150px;
    filter: saturate(90%) brightness(110%);
}

.project div.logo {
    min-height: 70px;
}

.course img.logo {
    width: 90%;
    max-width: 90px;
}

.course div.logo {
    margin: auto;
    background-color: var(--mlsec-tag-box);
    border-radius: 50%;
    height: 80px;
    width: 80px;
}

.project .title, .job .title, .course .title {
    font-family: var(--bs-heading-font-family);
    color: var(--mlsec-secondary);
}

.news-item {
    margin-bottom: -20px;
}

.news-end {
    /* Compensate negative margin of item */
    margin-bottom: 20px;
}

.news-item .date {
    color: var(--mlsec-secondary);
}

.job .title .grayed {
   color: #666; 
}

.member .title {
    font-family: var(--bs-heading-font-family);
    color: var(--mlsec-secondary);
}

.person .title {
    color: var(--mlsec-secondary);
}

.course .title .right {
    float: right;
}

.person .value {
    display: inline-block;
}

.person img.portrait {
    margin: 30px;
    width: 230px;
    height: 230px;
    border-radius: 50%;
    background-color: #ddd;
    background-image: linear-gradient(45deg, #d0d0d0, #f5f5f5);
}

.person div.portrait {
    max-width: 320px;
    position: relative;
}

.person div.portrait img.portrait-overlay {
    position: absolute;
    top: 0;
    left: 10;
    opacity: 100%;
}

.person h1 {
    text-transform: none;
}

.person img.plot {
    width: 100%;
    max-width: 500px;
}

.topics p.title {
    margin-top: 25px;
}

.topics .paper-examples {
    margin-bottom: 40px;
}

.topics .paper-examples p.details {
    margin-bottom: 10px;
}

.sheared-frame {
    display: inline-block;
    overflow: hidden; /* Keeps the image contained within the frame */
}

.teamphoto {
    margin-top: 25px;
    width: 95%;
    display: block;
    padding-left: 20px;
    filter: brightness(90%) hue-rotate(-15deg);
}
