:root {
  --opacity-highlight: 0.8;
  --bs-primary: hsl(298.7, 33.5%, 38.4%);
  --bs-secondary: hsl(0, 73.1%, 98%);
  --bs-primary-highlight: hsl(298.7, 60.5%, 38.4%);
}

html {
    scroll-padding-top: 70px; /* height of sticky header */
}

body {
    margin-top: 4rem;
}

.navbar-light .navbar-brand:focus, .navbar-light .navbar-brand:hover, .navbar-light .navbar-nav .nav-link:focus, .navbar-light .navbar-nav .nav-link:hover {
    color: var(--bs-primary-highlight);
    border-bottom: none;
}

.navbar-collapse:not(.show):not(.collapsing) {
    width: auto;
}

.navbar > .container {
    justify-content: center;
    width: auto;
}

.nav-item {
    padding: 0 0.3em;
}

h1 {
    font-size: 5em;
    text-align: center;
    padding-top: 1rem;
}

h2 {
    font-size: 3em;
    text-align: center;
    width: 100%;
    padding-bottom: 0.5em;
}

h2 button {
    float: right;
}

h3 {
    font-size: 2em;
}

h1, h2, h3, h4, h5 {
    font-weight: bold;
}

h3.service-heading, h3.reviewing-heading, h3.teaching-heading, h3.award-heading {
    font-size: 1.5em;
}

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

a:hover, a:focus {
    color: var(--bs-primary-highlight);
}

header {
    align-items: center;
    padding-top: 6rem;
    padding-bottom: 7rem;
}

header p {
    font-size: 1.2em;
}

header a {
    color: darkgrey;
}

p a:hover, li a:hover, p a:focus, li a:focus {
    border-bottom: 0.1em dotted;
}

.profile-pic {
    max-height: 350px;
    max-width: 90%;
}

.profile-pic, .navbar-pic {
    border-radius: 50%;
}

.section {
    padding-top: 7rem;
    padding-bottom: 7rem;
}

.colored-section {
    color: var(--bs-primary);
    background: var(--bs-secondary);
}

.news-item:hover, .award-item:hover, .news-item:focus, .award-item:focus {
    color: white;
    background: var(--bs-primary);
}

.news-item:hover svg, .award-item:hover svg, .news-item:focus svg, .award-item:focus svg  {
    color: var(--bs-primary-highlight);
}

.non-colored-section:not(.teaching-items):not(.community-items) article:hover, .non-colored-section:not(.teaching-items):not(.community-items) a:hover {
    background: var(--bs-secondary);
}

.bio {
    font-size: 1.5em;
}

.bio a {
    color: var(--bs-primary);
}

.bio a:hover {
    color: var(--bs-primary-highlight);
}

.news-item, .publication-item, .service-item, .teaching-item, .reviewing-item, .award-item {
    border-radius: 0.5rem;
}

.service-item {
    color: black;
}

.news-item:hover {
    color: white;
}

.publication-year-separator {
    display: block;
    text-align: center;
    opacity: .5;
    padding: 3rem 0 1rem 0;
    font-size: 1.5em;
    font-weight: normal;
}

.news-heading, .service-heading, .reviewing-heading, .teaching-heading, .award-heading {
    text-align: center;
}

.news-image-container, .service-image-container {
    width: 100%;
    min-width: 0;
    position: relative;
    display: inline-block;
}

.news-image, .service-image, .paper-screenshot, .award-image {
    border-radius: 0.5rem;
}

.video-play-button {
    position: absolute;
    height: 40%;
    width: auto;
    left: 35%;
    top: 35%;
    opacity: 0.7;
}

.news-image:hover .video-play-button {
    opacity: 1;
}

.news-text, .service-text, .reviewing-text, .teaching-text, .award-text {
    font-size: 1.2em;
    margin: 0;
}

.service-text {
    text-align: center;
}

.news-date {
    opacity: var(--opacity-highlight);
}

#publications-button {
    margin-top: -2em;
}

.paper-title {
    font-size: 1.5em;
    padding-bottom: 0.3em;
}

.paper-authors {
    font-size: 1.2em;
    margin-bottom: 0em;
    padding-bottom: 0.3em;
}

.paper-venue {
    font-size: 1.2em;
    opacity: var(--opacity-highlight);
}

.paper-buttons {
    margin-top: -1em;
    /* Same padding as paper-info inherited from class row */
    padding-right: calc(var(--bs-gutter-x)/ 2);
    padding-left: calc(var(--bs-gutter-x)/ 2);
}

.paper-button {
    margin-top: 1em;
    font-weight: bold;
}

.img-thumbnail {
    padding: 0;
}

.btn-primary {
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
}

.btn-primary:hover, .btn-primary:focus, .btn-outline-dark:hover, .btn-outline-dark:hover, .btn-outline-secondary:hover, .btn-outline-secondary:focus {
    color: var(--bs-primary);
    background-color: transparent;
    border-color: var(--bs-primary);
}

.hidden-pub {
    /* Need to override !important from d-flex class */
    display: none !important;
}

/* Modifications for paper screenshot on small devices */
@media only screen and (max-width: 767.98px) {
    .paper-screenshot-link {
        width: 100%;
        text-align: center;
        height: 200px;
        overflow: hidden;
        border-bottom: 1px solid lightgray;
        margin-bottom: 1rem;
    }

    .paper-screenshot {
        max-width: 80%;
    }
}

a.btn {
    display: inline-flex;
    margin-right: 1em;
}

.twocol-list {
    columns: 2;
}

.acks {
    text-align: center;
    font-size: .8em;
    margin-top: 3em;
    color: hsl(0, 5.5%, 46.1%);
}
