@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

.logo-dark-theme {
  display: none;
}

:root {
  --primary-theme-color: #005698;
  --secondary-theme-color: #DB5A42;
  --dark-gray: #404040;

  --link-color: var(--primary-theme-color);
  --light-grey: #f3f1f2;
  --white: #ffffff;
  --hover-grey: #c1c1c1;
  --nav-bg: var(--light-grey);
  --bs-secondary-bg: var(--light-grey);
  --nav-color: var(--dark-gray);
  --main-text-color: var(--dark-gray);
  --main-bg-color: var(--white);
  --member-bg-color: var(--main-bg-color);
  --member-sep-color: var(--light-grey);
  --footer-bg: var(--light-grey);
  --footer-color: var(--dark-gray);
  --white-text: var(--white);
  --black-text: #333333;

  .logo-dark-theme {
    display: none;
  }
  .logo-light-theme {
    display: block;
  }
  .img-light {
    display: block;
  }
  .img-dark {
    display: none;
  }
}

[data-bs-theme=dark] {
  --primary-theme-color: #005698;
  --secondary-theme-color: #DB5A42;
  --dark-gray: #404040;

  --link-color: #376AC3;
  --light-grey: #f3f1f2;
  --white: #ffffff;
  --hover-grey: #c1c1c1;
  --nav-bg: #333;
  --bs-secondary-bg: #333;
  --nav-color: var(--white);
  --main-text-color: var(--white);
  --main-bg-color: #333;
  --member-bg-color: var(--dark-gray);
  --member-sep-color: var(--hover-grey);
  --footer-bg: #333;
  --footer-color: var(--white);
  --white-text: var(--white);
  --black-text: #333333;

  .logo-dark-theme {
    display: block;
  }
  .logo-light-theme {
    display: none;
  }
  .img-dark {
    display: block;
  }
  .img-light {
    display: none;
  }
}


html, body {
  height: 100%;
}

body {
  display: flex;
  flex-direction: column;
  font-family: 'Open Sans', sans-serif;
}

#content {
  flex: 1 0 auto;
}

#footer {
  flex-shrink: 0;
}

main > h1 {
  margin-bottom: 1em;
}

.bg-primary {
  background-color: var(--secondary-theme-color) !important;
}

.hide {
  display: none;
}

h2 {
  margin-top: 1em;
  margin-bottom: 1em;
}

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

blockquote {
  background-color: var(--bs-secondary-bg);
  border-left: 5px solid var(--primary-theme-color);
  padding: 1em;
}
blockquote p:last-of-type {
  margin-bottom: 0;
}

figure.figure {
  margin: 1em auto;
  max-width: 500px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
figure.figure img {
  max-width: 500px;
  margin: 0.5em;
}
figure.figure figcaption {
  font-size: 0.8em;
  font-style: italic;
}
figure.figure.figure-dark-bg img {
  background-color: var(--dark-gray);
}
figure.figure.figure-light-bg img {
  background-color: var(--light-grey);
}
figure.figure.figure-border-secondary img {
  border: 3px solid var(--secondary-theme-color);
}

.card-body {
  background-color: var(--main-bg-color);
  border-radius: 10px;
}

/* Top navbar */
.navbar {
  background-color: var(--nav-bg);
  padding: 0;
  box-shadow: var(--bs-box-shadow);
}

.navbar-toggler {
  color: var(--primary-theme-color);
}

.navbar-brand img {
  height: 40px;
  margin: 5px 0;
}


.navbar .vr {
  margin: 0 10px;
  display: none;
}
@media (min-width: 992px)
.navbar .vr {
  display: block;
}

.navbar-nav .nav-item a {
  color: var(--nav-color);
  padding-left: 0.8rem;
  padding-right: 0.8rem;
}

.navbar-nav .nav-item a:hover {
  color: var(--secondary-theme-color);
}

.navbar-nav .nav-item a.active {
  color: var(--white-text);
  background-color: var(--primary-theme-color);
  border-radius: 4px;
}

.navbar-nav .nav-item-icon {
  margin: 0 5px;
}

.navbar-nav .nav-item-title {
  margin-right: 5px;
}

#navbarCollapse {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

/* Footer */
footer {
  background-color: var(--footer-bg);
  color: var(--footer-color);
  font-size: 0.9em;
  line-height: 24px;
}

footer h2 {
  font-size: 1em;
}

footer a {
  color: var(--footer-color);
  transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out;
  font-weight: bold;
  text-decoration: none;
}

footer a:hover {
  color: var(--secondary-theme-color);
  text-decoration: none;
}

footer h5 {
  padding-bottom: 0.5em;
  margin-bottom: 0.5em;
  border-bottom: 2px solid var(--primary-theme-color);
}

footer hr {
  border: 1px solid var(--primary-theme-color);
  opacity: 1;
}

footer .contact-logo {
  max-width: 15em;
}

footer .social-icons {
  font-size: 200%;
}

footer .copyright {
  align-items: flex-end;
  display: flex;
  justify-content: right;
}

/* Sidebar */
@media (min-width: 992px) {
  #side-nav {
    display: block !important;
  }
}

.sidebar-collapse i {
  font-size: 1.25rem;
  float: right;
  line-height: 1.25em;
}

.sidebar-collapse:not(.collapsed) {
  color: var(--nav-color);
  background-color: var(--nav-bg);
}

.sidebar-title {
  margin: 11px 0;
  font-weight: 800;
  font-size: 1.3em;
}

.menu ul {
  display: none;
  padding-left: 0;
}

.menu li a {
  margin-bottom: 4px;
  color: var(--main-text-color);
  background-color: var(--nav-bg);
  display: block;
  padding: 7px 11px;
  text-decoration: none;
  border-radius: 10px;
  transition: color 0.3s ease-in-out;
}

.menu li a:hover {
  color: var(--secondary-theme-color);
}

.menu ul li a {
  padding-left: 30px;
  background-color: transparent;
}

.menu ul li ul li a {
  padding-left: 60px;
}

.menu li.active:not(.parent)>a {
  background-color: var(--primary-theme-color);
  color: var(--white-text);
}
/*
.menu li.head {
  border-bottom: 4px solid var(--secondary-theme-color);
  background: var(--secondary-theme-color);
  border-radius: 6px;
}
*/
/* Page intro */
.page-intro {
  background-color: var(--nav-bg);
  border-radius: 10px;
  padding: 1em;
  margin: 0;
}

.page-intro h1 {
  margin-top: 0;
}

.page-intro .page-intro-text p:last-of-type {
  margin: 0;
}

.page-intro .page-intro-text hr {
  margin-top: 1em;
  margin-bottom: 1em;
  border: 2px solid var(--secondary-theme-color);
  border-radius: 2px;
  opacity: 1;
}

.page-intro .page-intro-figure {
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-intro .page-intro-figure svg {
  max-height: 200px;
}

.stay-tuned {
  background-color: var(--nav-bg);
  border-radius: 10px;
  padding: 1em;
  margin-bottom: 2em;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding-top: 2em;
}

.stay-tuned .image svg {
  max-height: 200px;
}

.stay-tuned h2 {
  text-align: center;
}

/* Page: Landing */
.landing-bg {
  background: var(--secondary-theme-color);
  background: linear-gradient(45deg, var(--secondary-theme-color) 0%, var(--primary-theme-color) 100%);
  color: var(--white-text);
  padding-top: 1em;
  padding-bottom: 7em;
}

.landing-bg hr {
  margin-top: 1em;
  margin-bottom: 4em;
  border: 5px solid var(--white-text);
  border-radius: 5px;
  opacity: 1;
}
.landing-bg .tagline {
  font-size: 170%;
  font-family: 'Montserrat', sans-serif;
}

.landing-cards {
  margin-top: -5em;
  margin-bottom: 3em;
}

.landing-cards .card {
  background-color: var(--main-bg-color);
  border: 0;
  box-shadow: var(--bs-box-shadow);
  border-radius: 10px;
  padding: 1em;
  text-decoration: none;
  transition: box-shadow 0.3s ease-in-out;
}

.landing-cards .card:hover {;
  box-shadow: 0 0 15px var(--secondary-theme-color);
}

.landing-cards .card-body {
  display: flex;
  gap: 2em;
  align-items: flex-start;
}

.landing-cards .card-icon {
  font-size: 3em;
  width: 1em;
  color: var(--primary-theme-color);
  transition: color 0.3s ease-in-out;
  text-align: center;
}

.landing-cards .card:hover .card-icon {
  color: var(--secondary-theme-color);
}

.landing-cards .card-content {
  flex-grow: 1;
  padding-top: 0.5em;
}

.landing-cards .card-title {
  font-size: 120%;
  font-weight: 600;
}

/* Page: 404 Error */
#error404 img {
  max-width: 20em;
  max-height: 20em;
}

/* Page: Team */
.team-group {
  background-color: var(--bs-secondary-bg);
  border-radius: 10px;
  margin: 0;
  padding: 1.5em;
}
.team-group-title {
  margin: 0 0 0.4em 0;
}
.team-group-members {
  justify-content: center;
}
.team-member {
  background-color: var(--member-bg-color);
  padding: 0.8em;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  height: 100%;
}
.team-member-base {
  display: flex;
}
.team-member-photo {
  text-align: center;
  max-width: 110px;
  max-height: 110px;
  margin-right: 1em;
}
.team-member-photo img {
  width: 100%;
  border-radius: 10px 10px 0 0;
}
.team-member-info {
  display: flex;
  flex-direction: column;
}
.team-member-name {
  font-size: 120%;
  font-weight: bold;
  margin: 0;
}
.team-member-role {
  font-size: 100%;
  font-style: italic;
  margin: 0.2em 0;
}
.team-member-links {
  text-align: right;
  padding-top: 0.3rem;
  border-top: 1px solid var(--member-sep-color);
}
.team-member-links a {
  color: var(--footer-color);
  transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out;
  font-weight: bold;
  text-decoration: none;
  font-size: 140%;
  margin-top: 0.5em;
}
.team-member-links a:hover {
  color: var(--secondary-theme-color);
  text-decoration: none;
}

/* Page: Posts */
.posts > div {
  padding-bottom: 1em;
}
.posts .post {
  border: 0;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  border-radius: 10px;
  transition: box-shadow 0.3s ease-in-out;
  height: 100%;
  margin-bottom: 0;
}
.posts .post .card-body {
  display: flex;
  flex-direction: column;
}
.posts .post .card-text {
  flex-grow: 1;
}
.posts .post .post-details {
  display: flex;
}
.posts .post:hover {
  box-shadow: 0 0 10px var(--secondary-theme-color);
}

svg .undraw-dark-01 {
}

/* Acknowledgements */
.acknowledgements {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1em;
}
.ack {
  background-color: var(--bs-secondary-bg);
  border-radius: 10px;
  padding: 1em;
  display: flex;
  align-items: center;
  color: var(--main-text-color);
}
.ack .ack-icon {
  font-size: 4em;
  padding: 0 2rem;
  color: var(--primary-theme-color);
  transition: color 0.3s ease-in-out;
}
.ack:hover .ack-icon {
  color: var(--secondary-theme-color);
}
.ack .ack-content .ack-title {
  display: flex;
  align-items: center;
}
.ack .ack-content .ack-title .ack-who {
  flex-grow: 1;
  font-size: 150%;
  font-weight: bold;
}
.ack .ack-content .ack-title .ack-when  {
  flex-grow: 1;
  font-size: 120%;
  font-style: italic;
  color: var(--dark-gray);
  text-align: right;
}
.ack .ack-content .ack-description {
  padding: 0;
  margin: 0.5rem 0 0 0;
}

/* History */
.history {
}
.history .history-row {
  display: flex;
  gap: 1em;
}
.history .history-year {
  align-items: center;
}
.history .history-row:first-of-type .history-timeline {
  border-radius: 10px 10px 0 0;
}
.history .history-row:last-of-type .history-timeline {
  border-radius: 0 0 10px 10px;
}
.history .history-row .history-timeline {
  background-color: var(--bs-secondary-bg);
  text-align: center;
  min-width: 7em;
  width: 7em;
}
.history .history-item .timeline-point {
  background-color: var(--secondary-theme-color);
  border-radius: 50%;
  width: 1.5em;
  height: 1.5em;
  margin: 1.5em auto;
}
.history .history-row .history-content {
  flex-grow: 1;
}
.history .history-item .history-content {
  background-color: var(--bs-secondary-bg);
  border-radius: 10px;
  padding: 1em;
  margin: 0.5em 0;
  border-right: 10px solid var(--bs-secondary-bg);
}
.history .history-item:last-of-type .history-content {
  margin-bottom: 0;
}
.history .history-item.major .history-content {
  border-right: 10px solid var(--primary-theme-color);
}
.history .history-item .history-head {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5em;
}
.history .history-item .history-head .history-title {
  font-size: 130%;
  font-weight: bold;
}
.history .history-item .history-head .history-date {
  font-style: italic;
}
.history .history-item p {
  margin: 0;
}
.history .history-year .year {
  font-size: 2em;
  font-weight: bold;
  color: var(--secondary-theme-color);
}
.history .history-year hr {
  border: 6px dashed var(--bs-secondary-bg);
  border-radius: 6px;
  opacity: 1;
}

/* Collaborations */
.collaborations .collaboration-row {
  background-color: var(--bs-secondary-bg);
  border-radius: 10px;
  padding: 1em;
  margin: 1em 0;
}
.collaborations .collaboration-logo img {
  max-width: 100%;
}
.collaborations .collaboration-body p:last-of-type {
  margin: 0;
}

/* Bibliography */
.bibliography {
  list-style-type: none;
  margin: 0;
  padding: 0;
}
.bibliography .reference {
  background-color: var(--bs-secondary-bg);
  border-radius: 10px;
  padding: 1em;
  margin: 1em 0;
}
.bibliography .reference .reference-ref {
  display: flex;
}
.bibliography .reference .reference-ref a {
  word-break: break-all;
}
.bibliography .reference .reference-actions {
  border-left: 2px solid var(--main-text-color);
  padding-left: 0.5em;
  margin-left: 0.5em;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  gap: 0.5em;
}
.bibliography .reference .reference-bibtex {
  background-color: var(--main-bg-color);
  border-radius: 10px;
  padding: 0.5em;
  margin: 1em 0;
  border: 1px solid var(--primary-theme-color);
}
.bibliography .reference .reference-bibtex pre {
  margin: 0;
  overflow-x: scroll;
}

/* Research Topics */
.research-topics .topic {
  background-color: var(--bs-secondary-bg);
  border-radius: 10px;
  padding: 1em;
  margin: 1em 0;
  display: flex;
  align-items: center;
  gap: 2em;
}
.research-topics .topic .topic-icon {
  font-size: 5em;
  color: var(--primary-theme-color);
  text-align: center;
  min-width: 1.5em;
  width: 1.5em;
}
.research-topics .topic .topic-title {
  margin: 0 0 0.5em 0;
}
.research-topics .topic .topic-body p:last-of-type {
  margin: 0;
}

/* Theses */
.thesis-topics .topic {
  background-color: var(--bs-secondary-bg);
  border-radius: 10px;
  padding: 1em;
  margin: 1em 0;
}

/* Resources */
.resources .resource {
  background-color: var(--bs-secondary-bg);
  border-radius: 10px;
  padding: 1em;
  margin: 1em 0;
  display: flex;
  color: var(--main-text-color);
  gap: 1em;
}
.resources .resource .resource-icon {
  font-size: 4em;
  color: var(--primary-theme-color);
  transition: color 0.3s ease-in-out;
  text-align: center;
  min-width: 1.5em;
  width: 1.5em;
}
.resources .resource:hover .resource-icon {
  color: var(--secondary-theme-color);
}
.resources .resource h2 {
  margin: 0 0 0.5em 0;
}
.resources .resource p:last-of-type {
  margin: 0;
}
