body>.wrapper {
    display: flex;
    width: 100vw;
    flex-flow: row;
    position: relative;
    background-color: #fafafa;
}

body {
    font-family: Roboto, sans-serif;
    font-size: 1.0em;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 300
}

img {
    margin: 15px 0;
}

img.photo {
    width: 2%;
    padding-bottom: 2em;
    margin: 0
}

img.banner-image {
    width: 100%;
    padding-bottom: 0.5em;
    margin: 0
}

#content {
    padding: 25px 44px;
    position: relative;
    flex-grow: 1;
    flex-shrink: 0;
    width: 100px;
    max-width: 1200px;
    margin: 0 auto;
}

#sidebar {
    flex-grow: 0;
    flex-shrink: 0;
    flex-basis: 250px;
    min-height: 100vh;
    background: #A6D296;
    background-image: url("../img/siderbar_bg_new3.jpg");
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: #fff;
    transition: all 0.3s;
}

#sidebar-wrapper {
    width: 250px;
    min-height: 100vh;
    position: fixed;
    background-color: rgba(0.0, 0.0, 0.0, 0.4);
}

#sidebar .sidebar-header {
    padding: 20px;
}

#sidebar .sidebar-header .first-name {
    color: #8DC579;
}

#sidebar .sidebar-header p {
    margin-bottom: 0.5em;
    text-transform: uppercase;
    color: #ccc;
}

#sidebar.active {
    margin-left: -250px;
}

#sidebar ul.components {
    padding: 0
}

#sidebar ul p {
    color: #fff;
    padding: 10px;
}

#sidebar ul li a {
    padding: 5px 20px;
    font-size: 1.0em;
    display: block;
    color: inherit
}

#sidebar ul li a:hover {
    background: #557E90;
}

#sidebar ul li.active>a,
a[aria-expanded="true"] {
    background: #8DC579;
}

a,
a:hover,
a:focus {
    text-decoration: none;
    transition: all 0.3s;
}

.about a {
    color: #555 !important;
    font-weight: 500;
}

.about a:hover {
    text-decoration: underline !important;
}

.timeline {
    display: flex;
    width: 100%;
    overflow-x: auto;
}

.timeline>.timeline-entry {
    display: block;
    flex-basis: 200px;
    flex-shrink: 0;
    flex-grow: 0;
    text-align: center;
    padding: 1em 0.8em
}


.timeline .timeline-image-holder {
    width: 200px;
    height: 120px;
    position: relative;
    margin-bottom: 1em
}

.timeline .timeline-image-holder img {
    max-width: 160px;
    max-height: 120px;
    padding: 1em;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    margin: auto;
}

.timeline .timeline-time {
    font-weight: 700
}

.timeline .timeline-position {
    font-size: 1.0em;
}

.timeline .timeline-description {
    font-size: 0.9em;
    padding-top: 0.5em;
}

ul.publications {
    padding-top: 10px;
}

#links {
    position: absolute;
    bottom: 0;
    width: 100%;
}

#links li {
    color: #ccc;
    font-size: 0.9em;
}

.pub-links a {
    padding-right: 0.5em
}

.pub-award {
    color: #e83e8c
}

.link-self {
    font-weight: 500
}

.pub-authors a {
    color: #333
}

.pub-preview {
    width: 10%;
}

.pub-preview img {
    width: 100%;
    margin: 0;
}

.pub-abstract {
    font-size: 0.9em;
}

/* Publication list - cvlibs style */
.publication_container {
    display: flex;
    align-items: flex-start;
    padding: 10px 0;
    margin-top: 15px;
    cursor: pointer;
    border-bottom: 1px solid #eee;
}

.publication_container:hover {
    background-color: #f5f5f5;
}

.publication_image {
    flex-shrink: 0;
    width: 200px;
    margin-right: 15px;
}

.publication_image img {
    width: 100%;
    margin: 0;
}

.publication_info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.publication_title {
    font-weight: bold;
    font-size: 0.95em;
    line-height: 1.4;
}

.publication_title b {
    font-weight: bold;
    color: #000;
}

.publication_venue {
    font-size: 0.9em;
    color: #333;
    margin-top: 2px;
}

.publication_authors {
    font-size: 0.9em;
    color: #777;
    margin-top: 2px;
}

.publication_authors a {
    color: #777;
    font-weight: 500;
}

.publication_authors a:hover {
    text-decoration: underline;
}

.publication_authors .link-self {
    color: #000;
    font-weight: 600;
}

.publication_links {
    margin-top: 4px;
    font-size: 0.9em;
}

.publication_links a {
    margin-right: 4px;
    color: #4F6371;
}

.publication_links a:hover {
    text-decoration: underline;
}

.publication_detail {
    display: none;
    padding: 10px 0 20px 0;
    margin-bottom: 10px;
    border-bottom: 1px solid #ddd;
}

.publication_abstract {
    font-size: 0.85em;
    line-height: 1.6;
    color: #444;
}

.year-divider {
    background-color: #eee;
    padding: 4px 10px;
    margin-top: 15px;
    margin-bottom: 5px;
}

.year-divider h2 {
    margin: 0;
    font-size: 1.2em;
    font-weight: 400;
}

a.btn {
    border-radius: 0
}

#coursework-collapse {
    max-height: 200px;
    overflow-y: scroll;
    font-size: 0.9em;
}

#coursework-collapse>h4 {
    font-size: 1.4em;
}

@media only screen and (max-width: 800px) {
    body>.wrapper {
        display: block;
    }

    #content {
        padding: 25px 44px;
        position: relative;
        flex-grow: 0;
        flex-shrink: 0;
        width: 100%;
    }

    #sidebar {
        max-width: inherit;
        min-height: 100px;
        width: 100%;
        flex-basis: 100%;
        position: default;
    }

    #sidebar-wrapper {
        max-width: inherit;
        min-height: 100px;
        position: static;
        width: 100%;
    }

    #sidebar ul.components {
        padding-bottom: 5px;
        margin-bottom: 0;
    }

    #links {
        position: inherit;
        padding-bottom: 15px;
        display: flex;
    }
}

.secret-door {
    position: fixed;
    bottom: 18px;
    right: 18px;
    width: 34px;
    height: 34px;
    padding: 0;
    border: none;
    background: transparent;
    color: #8DC579;
    opacity: 0.18;
    cursor: pointer;
    transition: opacity 0.4s ease, transform 0.4s ease;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
}

.secret-door:hover,
.secret-door:focus {
    opacity: 0.75;
    transform: translateY(-2px);
    outline: none;
}

.secret-door svg {
    width: 100%;
    height: 100%;
    display: block;
}

/* Collapsible research summary in About */
.research-fold {
    margin-bottom: 1rem;
}

.research-fold > summary {
    cursor: pointer;
    list-style: none;
    outline: none;
    margin-bottom: 0;
}

.research-fold > summary::-webkit-details-marker {
    display: none;
}

.research-fold > summary::after {
    content: " \25BE";
    color: #8DC579;
    font-weight: 500;
    margin-left: 4px;
}

.research-fold[open] > summary::after {
    content: " \25B4";
}

.research-fold > summary:hover {
    color: #557E90;
}

.research-fold > p {
    margin-top: 0.6rem;
    margin-bottom: 0;
}

.research-fold[open] > p {
    animation: research-fade 0.3s ease;
}

@keyframes research-fade {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
