/* General styles */

:root {
    --main-bg-color: rgb(11, 81, 177);
    --gray-gradient: linear-gradient(rgb(187, 186, 186), rgb(236, 236, 236));
    --dark-gray: rgb(56, 56, 56);
    --contrast-color-1: rgb(0, 74, 173);
    --contrast-color-2: #6D70AE;
    --contrast-color-3: #292677;
    --contrast-color-4: #EC3828;
    --hover-color: rgb(25, 0, 106);
    --hover-color-red: rgb(100, 0, 0);
    --light-background: rgb(237, 237, 237);
    --light-background-2: rgb(230, 226, 226);
    --light-background-3: rgb(218, 216, 216);
}

#news-page #news-tab,
#research-page #research-tab,
#publications-page #publications-tab,
#people-page #people-tab,
#courses-page #courses-tab,
#aflow-page #aflow-tab,
#center-page #center-tab,
#jobs-page #jobs-tab {
    background-color: var(--light-background);
}


#news-page #news-tab a,
#research-page #research-tab a,
#publications-page #publications-tab a,
#people-page #people-tab a,
#courses-page #courses-tab a,
#aflow-page #aflow-tab a,
#center-page #center-tab a,
#jobs-page #jobs-tab a {
    color: var(--contrast-color-1);
}

#jobs-page #jobs-tab a {
  color: var(--contrast-color-4);
}

body {
    background-color: var(--main-bg-color);
    margin: 0;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

h1,
h2,
h3,
h4,
.nav-btn,
p,
a,
li {
    color: white;
    font-family: Helvetica, sans-serif;
    text-decoration: none;
}

p,
li {
    font-size: large;
}

.light-content-block h1,
.light-content-block h2,
.light-content-block h3,
.light-content-block h4,
.light-content-block p,
.light-content-block li,
.nav-arrow {
    color: black;
}

.content-text a {
    color: var(--contrast-color-1);
}

/* NAVIGATION */

#top-menu {
    background: var(--main-bg-color);
    display: flex;
    flex-wrap: wrap;
    position: sticky;
    right: 0;
    top: 0;
    transition: all 300ms ease-in-out;
    width: 100%;
    z-index: 1000;
}

.menu-item {
    display: flex;
    flex-grow: 1;
    transition: all 0.5s;
}

#jobs-tab.menu-item {
    background: var(--contrast-color-4);
}

.menu-item a {
    align-self: center;
    float: left;
    flex-grow: 1;
    font-size: 1rem;
    justify-self: center;
    padding: 1.5rem;
    position: relative;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
    transition: all 0.5s;
}

.menu-item a:hover {
    color: var(--hover-color);
}

#jobs-tab.menu-item a:hover{
    color: var(--hover-color-red);
}


.site-branding img {
    width: 150px;
}

.scroll-down {
    transform: translate3d(0, -100%, 0);
}


/* SITEWIDE STYLES */

.full-page-content-container {
    background: var(--light-background);
    display: flex;
    justify-content: center;
    min-height: 95vh;
    position: relative;
}

.page-title {
    font-size: larger;
    position: relative;
    top: 0;
    padding-top: 100px;
    padding-bottom: 25px;
    padding-left: 5rem;
    height: fit-content;
}

.page-title h1 {
    color: var(--dark-gray);
}

.text-block {
    width: 75%;
    line-height: 2rem;
    min-width: 250px;
}

.content-block {
    background: rgb(26, 26, 26);
    padding: 100px 2rem;
    position: relative;
    top: 0;
    height: auto;
    min-height: 100vh;
    overflow: hidden;
}

.light-content-block {
    background: var(--light-background);
    padding: 3rem 5rem;
    position: relative;
    top: 0;
    overflow: hidden;
}

.subtitle {
    color: black;
    max-width: 1500px;
    margin: auto;
    text-align: center;
}

.subtitle img {
    max-width: 100%;
}

footer {
    align-items: center;
    background: var(--main-bg-color);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
    min-height: 5rem;
    padding: 2rem;
    text-align: center;
}

footer a {
    display: inline-block;
    width: fit-content;
}

footer img {
    height: 75px;
}

footer p {
    margin: 0;
    display: inline-block;
    text-align: left;
}


/* HOME PAGE STYLES */

.entry-container {
    animation: fade-in 3s;
    background-attachment: fixed;
    background-color: var(--main-bg-color);
    background-image: url("../media/home/main_background.png");
    background-repeat: no-repeat;
    background-size: cover;
    display: flex;
    flex-direction: column;
    margin: 0;
    overflow: hidden;
    position: relative;
}

#entry-title-wrapper {
    margin: 5rem;
    padding-right: 35vw;
}

.title {
    color: white;
    font-size: 1rem;
    letter-spacing: 0.25em;
    position: relative;
    text-transform: uppercase;
}

#entry-research {
    background-color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 40vh;
    overflow: visible;
    padding: 1rem;
}

.cards-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
    margin: auto;
    max-width: 1920px;
    z-index: 100;
}

.buttons-container {
    display: flex;
    flex-wrap: wrap;
    row-gap: 1rem;
    justify-content: space-evenly;
}

.nav-btn {
    align-self: center;
    background: var(--contrast-color-1);
    border-radius: 50px;
    border: solid 0px;
    cursor: pointer;
    font-size: larger;
    padding: 1rem 4rem;
    text-decoration: none;
    transition: transform 0.25s, background-color 0.25s;
}

.nav-btn:hover {
    background-color: var(--hover-color);
    transform: scale(1.05);
    transition-timing-function: linear;
}

.second-btn {
    background: var(--contrast-color-2);
}

.third-btn {
    background: var(--contrast-color-3);
}

#publications-btn {
    justify-content: center;
}

.content-container {
    background-image: var(--gray-gradient);
    display: flex;
    flex-direction: column;
    height: fit-content;
    overflow: hidden;
    padding: 5rem;
    position: relative;
}

.content-text {
    line-height: 1.5em;
    margin: 2em auto;
    max-width: 1500px;
    text-align: left;
}

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

.slideshow-container {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.slideshow {
    align-self: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    max-width: 1000px;
    height: auto;
    position: relative;
    text-align: center;
    z-index: 10;
}

.slide-btn {
    position: relative;
    bottom: 20px;
}

@keyframes fade-in {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

@keyframes fade-out {
    0% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

.slide {
    display: flex;
    align-self: center;
    flex-direction: column;
    height: 100%;
    justify-content: space-between;
    justify-self: center;
    position: absolute;
    text-align: left;
    visibility: hidden;
    width: 80%;
}

.active {
    animation: fade-in 1s ease;
    position: relative;
    visibility: visible;
}

.slide h2 {
    margin: 0;
}

.slide-content {
    display: flex;
    flex-direction: column;
}

.slide-content p {
    text-align: left;
    width: auto;
}

.nav-arrow {
    color: rgb(141, 139, 139);
    cursor: pointer;
    font-size: 2rem;
    position: absolute;
    top: 50%;
    transition: 0.5s ease;
}

.next-arrow {
    right: 0;
    margin-right: 10px;
}

.previous-arrow {
    left: 0;
    margin-left: 10px;
}

.nav-arrow:hover {
    color: rgba(0, 0, 0, 0.8);
}

.dot-navigation {
    align-self: center;
    max-width: 1000px;
    text-align: center;
}

.dot {
    background-color: rgb(156, 156, 156);
    border-radius: 50%;
    cursor: pointer;
    display: inline-block;
    height: 15px;
    margin: 0 2px;
    transition: background-color 0.6s ease;
    width: 15px;
}

.dot:hover {
    background-color: #717171;
}

.dot.active {
    background-color: #525151;
}

.particle-container {
    height: 100%;
    overflow: hidden;
    position: absolute;
    right: -5rem;
    top: 0;
    width: 40%;
    z-index: 1;
}

.particle-container img {
    opacity: 0.5;
    width: 700px;
}

.research-card {
    align-items: center;
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: space-evenly;
    margin: 0;
    min-width: 200px;
    transition: all 0.5s ease;
    width: 15%;
}

.research-card img {
    height: 100px;
    max-width: 100%;
    transform: rotate(0);
    transition: all 1s ease;
}

.research-card:hover {
    transform: scale(1.05);
}

.research-title {
    margin: 0;
    text-align: center;
}


/* Loading animation for publications */

@keyframes spinner {
    to {
        transform: rotate(360deg);
    }
}

.loading-spinner {
    animation: spinner 900ms linear infinite;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 50%;
    border-top: 5px solid white;
    display: block;
    height: 100px;
    margin: auto;
    width: 100px;
}

/* News */

.news-wrapper {
  display: grid;
  grid-template-columns: auto auto;
  grid-column-gap: 10px;
  grid-row-gap: 10px
}

.news-date {
    font-weight: bold;
}

.news-content {
    display: inline-block;
    width: 100%;
}

.news-content img {
    width: 320px;
}

/* Publications */

#publications {
    background-color: var(--light-background-3);
    background-image: url("../media/home/particle_design_white.png");
    background-size: cover;
    background-repeat: no-repeat;
}

#entry-page-publications {
    flex-direction: column;
}

.horizontal-card {
    background: white;
    display: flex;
    height: auto;
    margin: 3rem auto;
    max-width: 1500px;
    padding-bottom: 0rem;
    position: relative;
    top: 0;
    word-wrap: break-word;
}

.horizontal-card h3 {
    font-size: x-large;
    margin: 1rem;
    letter-spacing: normal;
}

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

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

.card-text-section {
    display: flex;
    flex-direction: column;
    width: 100%;
}

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

.publication-footer a,
.publication-footer p,
.horizontal-card p {
    font-size: large;
}

.publication-footer a,
.publication-footer p {
    color: white;
    font-size: larger;
    margin: 1rem;
    top: 0;
}

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

.publication p {
    color: black;
    margin: 0 1rem;
}

.publication-links {
    display: flex;
    flex-wrap: wrap;
    margin: 0.5rem 1rem;
    justify-content: flex-start;
    word-break: break-all;
}

.publication-links a {
    align-items: center;
    color: var(--contrast-color-1);
    display: flex;
    font-size: larger;
    margin-right: 1rem;
    text-decoration: none;
}

img.link-icon {
    margin-right: 5px;
    width: 20px;
}

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

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


.mobile-header-logo {
    display: none;
}

#menu-toggle {
    display: none;
}

/* COURSES PAGE */

#course-content {
    margin: auto;
    max-width: 2000px;
}

#table-contents {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    width: 100%;
    max-width: 1500px;
}

#table-contents a {
    color: var(--contrast-color-1);
    display: block;
    font-weight: 600;
    padding: 0.5rem 1rem 1rem 0;
    text-decoration: none;
    transition: all 0.5s ease;
}

#table-contents a:hover {
    color: var(--hover-color);
    transform: scale(1.1);
}

/* MOBILE */

#mobile-sticky-header {
    display: none;
}

.menu-icon {
    display: none;
}

@media only screen and (max-width: 600px) {
    .full-page-content-container {
        padding-top: 5rem;
    }
    h1,
    h2 {
        letter-spacing: 0.2rem;
    }
    .menu-bar {
        background-color: white;
        display: block;
        height: 3px;
        margin: 5px 0;
        width: 20px;
    }
    #menu-bars {
        display: inline-block;
        margin-right: 1rem;
    }
    #mobile-sticky-header {
        background: var(--main-bg-color);
        display: unset;
        height: 70px;
        position: fixed;
        top: 0;
        visibility: visible;
        width: 100%;
        z-index: 1000;
    }
    .menu-icon {
        display: unset;
    }
    .menu-icon,
    .mobile-header-logo {
        left: 1rem;
        position: fixed;
        top: 1rem;
        transition: all 800ms ease-in-out;
        z-index: 1000;
    }
    .mobile-header-logo {
        display: inline-block;
        left: 3rem;
        width: 100px;
    }
    #top-menu {
        display: block;
        height: 100%;
        left: -100vw;
        position: fixed;
        transition: all 800ms ease-in-out;
        width: 70%;
    }
    .menu-bar {
        transition: all 800ms 
    }
    #menu-toggle:checked~#top-menu {
        left: 0;
    }
    #menu-toggle:checked+.menu-icon {
        left: 75%;
    }
    #menu-toggle:checked~.mobile-header-logo {
        animation: fade-out 1s ease;
    }
    #menu-toggle:checked~.menu-icon .menu-bar:nth-child(3){
        display: none;
    }
    #menu-toggle:checked~.menu-icon .menu-bar:nth-child(1){
        transform: rotate(45deg);
        transition: none;
    }
    #menu-toggle:checked~.menu-icon .menu-bar:nth-child(2){
        transform: rotate(-45deg);
        position: relative;
        bottom: 8px;
    }
  
    .entry-container {
        justify-content: start;
        margin-top: 2rem;
        row-gap: 2rem;
    }
    #entry-title-wrapper {
        margin: 2rem;
        padding: 0;
    }
    #entry-buttons {
        justify-content: start;
    }
    #entry-buttons a {
        padding: 1rem 4rem 1rem 1rem;
        width: 200px;
    }
    .research-card {
        width: 100%;
        margin-bottom: 5rem;
    }
    .research-title {
        height: 2rem;
    }
    .content-container {
        padding: 3rem;
    }
    .light-content-block {
        padding: 1rem;
    }
    .slideshow-container {
        margin: 0;
    }
    .nav-arrow {
        display: none;
    }
    .particle-container {
        display: none;
    }
    .slide {
        height: auto;
        width: auto;
    }
    .publication-image {
        display: none;
    }
    .card-text-section {
        width: 100%;
        word-break: break-all;
    }
    #footer a {
        padding: 1rem 3rem;
    }
    .publication-image img {
        display: none;
    }
    footer {
        row-gap: 2rem;
    }
    footer p {
        text-align: center;
    }
}

@media only screen and (min-width: 2000px) {
    .page-title {
        padding-left: 0;
        text-align: center;
    }
}
