/* ---------------------------
   general page appearance
   --------------------------- */

html {
  background-color: black;
}

body {
  background-color: transparent;
}

/* Quarto adds this class when the navbar is fixed. */
body.nav-fixed {
  padding-top: 170px !important;
}

/* Make Quarto's content wrappers transparent. */
#quarto-content,
.content,
.page-columns,
.page-full,
#title-block-header {
  background-color: transparent;
}


/* ---------------------------
   page text
   --------------------------- */

main {
  position: relative;
  z-index: 1;
  color: #e6e6e6;
  font-size: 14px;
}

#quarto-content main {
  max-width: 700px;
  margin-left: -7rem;
  margin-right: auto;
}

#quarto-content h1.title {
  color: #e6e6e6;
  font-family: "Times New Roman";
  margin-bottom: 2rem !important;
}

#quarto-content a {
  color: #858585;
}

#quarto-content a:hover {
  color: #ffffff;
}

/* bold text on any page (since the font itself has no bold face option apparently) */
#quarto-content strong,
#quarto-content b {
  font-weight: 700 !important;
  color: #ffffff;
  -webkit-text-stroke: 0.9px currentColor;
}

/* adjust opacity of text snipets as needed */
.faded {
  color: rgba(230, 230, 230, 0.5);
}


/* ---------------------------
   navbar stylization
   --------------------------- */

#quarto-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;

  z-index: 2;
}

/* Align all navbar items on the same line */
#quarto-header .navbar-container,
#quarto-header .navbar-nav,
#quarto-header .navbar-brand-container {
  align-items: center;
}

#quarto-header .navbar-brand,
#quarto-header .navbar-title {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  line-height: 1.5;
}

#quarto-header .navbar .nav-link {
  padding-top: 0rem;
  padding-bottom: 0rem;
  line-height: 1;
}
#quarto-header .navbar .menu-text {
  font-size: .6rem;
}

/* highlight current page in navbar (excl. home) */
#quarto-header .navbar .nav-link.active,
#quarto-header .navbar .nav-link[aria-current="page"] {
  color: #ffffff !important;
  font-weight: 700;
  -webkit-text-stroke: 0.9px currentColor;
}

/* Highlight HOME in navbar when current page */
#quarto-header a.navbar-brand.current-page,
#quarto-header a.navbar-brand.current-page .navbar-title {
  color: #ffffff !important;
    font-weight: 700;
  -webkit-text-stroke: 0.9px currentColor;
}


/* ---------------------------
   publications style
   --------------------------- */

/* Transparent backgrounds for the bibliography and Quarto's appendix wrapper */
#quarto-content #refs,
#quarto-content .references,
#quarto-content .csl-bib-body,
#quarto-content .csl-entry,
#quarto-appendix,
#quarto-appendix.default,
#quarto-appendix .quarto-appendix-contents,
#quarto-appendix section {
  background-color: transparent !important;
}

/* Bibliography text inherits the page style */
#quarto-content #refs {
  color: inherit;
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  max-width: inherit;
}

#quarto-content #refs .csl-entry {
  margin-bottom: 1.2rem;
}

/* hide automatic "references" heading */
#quarto-appendix .quarto-appendix-heading {
  display: none;
}

#quarto-content .csl-entry strong {
  font-weight: 700 !important;
  color: #ffffff;
  -webkit-text-stroke: 0.9px currentColor;
}

/* Year headings above groups of publications */
#quarto-content h2.pub-year {
  color: #ffffff;
  font-size: 1rem;
  font-weight: 700;
  -webkit-text-stroke: 0.9px currentColor;
  margin: 4rem 0 1rem;
  padding-left: 1.35rem;
  border-bottom: none;
}

/* remove horizontal line above bibliography */
#quarto-appendix {
  border-top: none !important;
}

/* No extra space above the first year heading */
#refs > h2.pub-year:first-child {
  margin-top: 2rem;
}


/* ---------------------------
   image style
   --------------------------- */
/* Left-align images and their Quarto figure wrappers */
#quarto-content .quarto-figure,
#quarto-content figure {
  text-align: left !important;
  margin-left: 0 !important;
  margin-right: auto !important;
}

#quarto-content figure img,
#quarto-content .quarto-figure img {
  display: block;
  margin-left: 0 !important;
  margin-right: auto !important;
}


/* ---------------------------
   background slideshow
   --------------------------- */

.home-background {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background-color: black; /* display while image is loading */
}

.background-layer {
  position: absolute;
  inset: 0;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  opacity: 0;
  transition: opacity 3s ease-in-out;
}

/* applied by JavaScript only during initial page setup */
.background-layer.no-transition {
  transition: none !important;
}


/* ---------------------------
   Adjust for small screens
   --------------------------- */

/* Below 992px Quarto collapses the navbar into a hamburger menu,
   which is much shorter than the desktop navbar */
@media (max-width: 991.98px) {
  body.nav-fixed {
    padding-top: 90px !important; /* adjust to the collapsed navbar height */
  }
}

/* Phones */
@media (max-width: 600px) {
  /* Remove the desktop offset and fixed width of the text column */
  #quarto-content main {
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
  }

  /* Images never wider than the screen */
  #quarto-content img {
    max-width: 100%;
    height: auto;
  }

  /* Slightly smaller year headings and title */
  #quarto-content h2.pub-year {
    margin-top: 2.5rem;
  }
  
  #quarto-content h1.title {
  font-size: 1.8rem;
}
}