a[href^="http://"],
a[href^="https://"]
{
  /* modify all <a> tag so that the :after is centered */
  display: inline-flex;
  align-items: center;
}

a[href^="http://"]:after,
a[href^="https://"]:after
{
  /* add an external link icon to all external links (not relative after HTML rewriting) */
  content: '';
  display: inline-block;
  width: 10px;
  height: 10px;
  background-image: url('external-link.svg');
  background-size: contain;
  background-repeat: no-repeat;
  margin-left: 5px;
}

.zim-removed-video {
  position: relative;
  display: flex;
  justify-content: center;
}

.zim-removed-video a {
  display: inline-flex;
  position: relative;
}

.zim-removed-video a::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('play-button.svg');
  background-repeat: no-repeat;
  background-position: center;
  background-size: 30%;
}

.zim-removed-video img {
  width: 100%;
  height: auto;
  display: block;
}

/* additional CSS for libretexts.org glossary pages, reproduced here for simplificity
and maintainability (less sensitive to file move upstream)
*/

.glossaryTerm {
  font-weight: bold;
}

p.glossaryElement {
  font-size: 1em;
  margin: 0.5rem 0 1em;
}

@media print {
  .glossaryDefinition {
    font-size: 0.85em;
  }
  p.glossaryElement {
    break-inside: avoid;
    margin: 0.4rem 0;
    font-size: 0.9em;
    line-height: 0.9em;
  }
}

/* additional CSS for libretexts.org index pages, reproduced here for simplificity
and maintainability (less sensitive to file move upstream) */

.indexPages {
  margin-left: 1.2em;
}

#indexLetterList {
  text-align: center;
}

.termDiv p {
  margin-top: 0;
  margin-bottom: 0;
}

h2.indexRowHeadCells {
  font-size: 2.1rem !important;
}

@media print {
  div.pagesTextDiv {
    font-size: 0.75em;
  }

  .termDiv {
    break-inside: avoid !important;
  }

  #indexLetterList {
    display: none;
  }

  .letterDiv:first-child h2.indexRowHeadCells {
    margin-top: 0 !important;
  }
}
