html {
    scroll-behavior: smooth;
}

body {
    background: var(--light-background);
}

.page-title {
    background-attachment: fixed;
    background-image: url("../media/main/mainBg.svg");
    background-repeat: no-repeat;
    background-size: cover;
}

.loading-spinner {
    margin-top: 30vh;
}

#all-publications {
    background: var(--light-background);
    display: none;
    flex-direction: row;
    justify-content: space-evenly;
    margin: auto;
    max-width: 1920px;
    padding: 1rem;
}

#publications-navigation h1,
.year-divider-sticky h1 {
    color: var(--contrast-color-1);
}

.new-banner,
.publication-number,
.header-publication-title {
    display: block;
}

.horizontal-card h2 {
    color: var(--dark-gray);
    font-size: medium;
    letter-spacing: normal;
    margin: 0;
}

.list-item-wrapper {
    display: grid;
    grid-template-columns: 3rem auto;
}

.horizontal-card {
    background: none;
    display: flex;
    flex-direction: column;
    height: auto;
    margin: 1rem auto;
    padding: 0;
    position: relative;
    top: 0;
    width: 98%;
    word-wrap: break-word;
}

#publications-navigation {
    height: 100%;
    position: sticky;
    right: 2rem;
    top: 0;
    transition: all 0.5s;
    width: auto;
    z-index: 10;
}

.cards-only {
    width: 90%;
}

.years-navigation {
    overflow-y: scroll;
    height: 90vh;
    display: flex;
    padding: 3rem 2rem 0 0;
    flex-direction: column;
    justify-content: space-between;
    /* Remove scrollbar */
    -ms-overflow-style: none;
    /* Internet Explorer 10+ */
    scrollbar-width: none;
    /* Firefox */
}

.years-navigation::-webkit-scrollbar {
    display: none;
    /* Safari and Chrome */
}

#publications-navigation a {
    color: var(--contrast-color-1);
    display: block;
    font-size: larger;
    font-weight: 600;
    padding: 1rem;
    text-align: center;
    text-decoration: none;
    transition: all 0.25s ease;
}

#publications-navigation a:hover {
    color: var(--hover-color);
    transform: scale(1.2);
}

#publications-navigation h2 {
    color: white;
    letter-spacing: normal;
}

.publication-links {
    display: flex;
    column-gap: 3rem;
    margin: 0;
}

.pub-doi {
    display: flex;
    width: 17rem;
}

.publication-links a {
    align-items: center;
    color: var(--contrast-color-1);
    column-gap: 5px;
    display: flex;
    font-size: smaller;
    margin-right: 1rem;
    min-width: 100px;
    text-decoration: none;
}

.horizontal-card p {
    color: black;
    font-size: smaller;
    margin: 0;
}

.publication-title {
    display: none;
}

.publication-header {
    background: none;
    display: block;
    width: 100%;
}

.publication-footer {
    display: none;
}

.publication-header a,
.publication-header p {
    color: white;
    font-size: medium;
    display: inline;
    top: 0;
}

.card-top-section {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
}

.card-text-section {
    display: block;
    width: 100%;
}

.new-banner {
    color: var(--contrast-color-1);
    margin: 0;
}

.new-banner h2 {
    color: var(--contrast-color-1);
}

.new-banner,
.publication-authors,
.publication-journal {
    display: inline-block;
}

.publication-image {
    display: none;
}

.odd {
    flex-direction: row-reverse;
}

.publication p {
    color: black;
    margin: 0 1rem;
    display: inline-block;
}

#entry-page-publications {
    display: flex;
    flex-direction: column;
    margin: auto;
    max-width: 1000px;
}

.link-icon {
    height: 20px;
    transition: all 0.5s ease;
}

.link-icon:hover {
    transform: scale(1.2);
}

.year-divider-container {
    position: relative;
    width: 100%;
}

.year-divider {
    height: 0;
    text-align: center;
    width: 100%;
}

.year-divider-sticky {
    background: var(--light-background);
    padding: 1px;
    position: sticky;
    text-align: center;
    top: 0;
    width: 100%;
    z-index: 1;
}

.year-divider-content {
    display: inline-block;
    margin: 1rem;
}

.dropdown-navigation {
    display: none;
}

.dropdown-navigation-content {
    display: none;
}

#back-to-top {
    background-color: var(--contrast-color-1);
    border-radius: 4px;
    bottom: 1rem;
    display: inline-block;
    height: 3rem;
    opacity: 0;
    position: fixed;
    right: 1rem;
    text-align: center;
    transition: all .5s;
    visibility: hidden;
    width: 3rem;
    z-index: 1000;
}

#back-to-top::after {
    border: 10px solid transparent;
    border-left: 15px solid white;
    content: "";
    cursor: pointer;
    display: inline-block;
    margin-top: 0.5rem;
    transform: rotate(-90deg);
    transition: all 0.3s ease;
}

#back-to-top.show {
    opacity: 1;
    visibility: visible;
}

#back-to-top:hover {
    cursor: pointer;
    background-color: var(--hover-color);
}

footer {
  width: 100%;
}

.stick-to-bottom {
  bottom: 0;
  position: absolute;
}

@media only screen and (max-width:800px) {
    .page-title {
        padding-left: 2rem;
    }

    .card-text-section {
        width: 100%;
    }

    #publications-navigation,
    .year-divider-sticky {
        padding-top: 2rem;
        top: 0;
    }

    .dropdown-navigation {
        display: inline-block;
    }

    #publications-navigation {
        display: none;
    }

    input {
        -webkit-appearance: none;
        border: 10px solid transparent;
        border-left: 15px solid var(--contrast-color-3);
        content: "";
        cursor: pointer;
        display: inline-block;
        margin: 0;
        transform: rotate(90deg);
        transition: all 0.3s ease;
    }

    input:hover {
        border: 11px solid transparent;
        border-left: 16px solid var(--contrast-color-1);
    }

    .dropdown-navigation-content {
        background: var(--light-background);
        display: block;
        margin-bottom: 1rem;
        max-height: 0px;
        overflow: scroll;
        transition: all 0.3s ease;
        z-index: 1000;
    }

    .dropdown-navigation-content a {
        color: var(--con);
        font-size: 1.5rem;
        font-style: italic;
        letter-spacing: 0.5rem;
        line-height: 2rem;
        text-decoration: none;
        transition: all 0.5s ease;
    }

    .dropdown-navigation:checked~.dropdown-navigation-content {
        max-height: 500px;
    }

    .dropdown-navigation-content a:hover {
        color: var(--hover-color);
        font-size: 1.75rem;
    }

    .cards-only {
        width: 100%;
        padding-top: 5rem;
    }

    .year-divider-content {
        margin: 0;
    }
}

@media only screen and (max-width:600px) {
    #all-publications {
        width: 100%;
    }

    .year-divider-sticky {
        top: 3rem;
    }

    .publication-links {
        flex-direction: row;
        flex-wrap: wrap;
        row-gap: 0.5rem;
        margin-top: 0.5rem;
    }

    .publication-image {
        display: none;
    }
}
