:root {
  /* This color is meant to use with hsl with optional transparency:
  e.g. hsl(var(--header-bg-color) / .3) */
  --header-bg-color: 218 43% 53%;
  --header-bottomline-color: 222 33% 35%;
  --footer-bg-color: 120 27% 37%;
  --geo-color: rgb(255, 0, 255);
  --hanford-1-color: rgb(255, 0, 0);
  --hanford-2-color: rgb(119, 0, 0);
  --kagra-color: rgb(119, 119, 119);
  --livingston-color: rgb(0, 136, 0);
  --virgo-color: rgb(0, 0, 255);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Montserrat", sans-serif;
}

#main-container {
  min-height: calc(100vh - 380px);
}

#header-bg {
  background-color: hsl(var(--header-bg-color));
  box-shadow: 0 0px 8px #555;
  margin: 0 0 1px 0;
  border-bottom: 0.3em solid hsl(var(--header-bottomline-color));
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-around;
  min-height: 3em;
  padding: 1em 0;
}

.brand-logo {
  padding-left: clamp(10px, 3vw, 10em);
  flex-grow: 0;
}

.brand-logo img {
  width: 140px;
}

.brand-title {
  width: 60%;
  flex-grow: 1;
  font-size: clamp(1rem, 1rem + 3vw, 4rem);
  color: white;
  line-height: 1.2em;
  font-weight: normal;
  padding-inline: clamp(10px, 10px + 2vw, 2em);
  margin-block: 0;
  text-align: left;
}

.navbar {
  font-size: 1.5rem;
}

blockquote {
  font-size: 1.3rem;
  line-height: 2.2rem;
}

.dropdown-menu > li {
  margin-block: 0.3em;
}

.doc-page {
  margin: 0 auto;
  max-width: 100ch;
}

.doc-page h1,
.h1-docs {
  font-size: clamp(1.5em, 1em + 2vw, 2.5em);
  text-align: center;
  font-weight: bold;
  padding: 1em 0;
  color: #535353;
  margin-bottom: clamp(1rem, 1rem + 4vw, 5rem);
  border-bottom: 1px solid rgb(195, 195, 195);
}

.doc-page h2,
.h2-docs {
  font-size: 2.2rem;
}

/* Select all h2 except the first one */
.doc-page h2:not(:first-of-type)
.h2-docs:not(:first-of-type) {
  padding-top: 0.8em;
}

.doc-page h3,
.h3-docs {
  font-size: 1.9rem;
}

.doc-page h2 + p,
.h2-docs + p {
  /* Select all paragraphs under an h2 element */
  margin-bottom: 1em;
}

.doc-page h2 ~ *:not(h2, h3),
.doc-page h3 ~ *:not(h2, h3),
.h2-docs ~ *:not(h2, h3),
.h3-docs ~ *:not(h2, h3) {
  /* Select everything under an h2 and h3 element (that is not h2, h3) */
  margin-left: 1.5em;
}

.doc-page ul > li,
.li-docs {
  margin-bottom: 0.75em;
  padding-left: 1em;
}

.doc-page ul > li:first-child,
.li-docs:first-child {
  margin-top: 1.5em;
}

#page-footer {
  margin-top: 50px;
  background: hsl(var(--footer-bg-color));
  padding: 15px;
}

#page-footer .footer-logo {
  height: 55px;
  padding: 10px;
}

#page-footer .footer-logo-nsf {
  height: 60px;
}

#page-footer #cc-logo {
  border-width: 0;
  height: 40px;
}

#page-footer p {
  color: #bbb;
  line-height: 1rem;
}

#page-footer p a {
  color: white;
}

img {
  max-width: 100%;
  padding: 5px;
}

#contentSection {
  width: 95%;
  background-color: transparent;
  margin: 0px 0px 0px 0px;
  padding: 0px 5px 0px 15px;
}

/*
			Other formatting.
*/

.supsub {
  display: inline-block;
}

.supsub sup,
.supsub sub {
  position: relative;
  display: block;
  font-size: 0.7em;
  line-height: 1.2;
}

.supsub sub {
  top: 0.3em;
}

@keyframes orbit {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(359deg);
  }
}

.spin-wave {
  height: 60px;
  width: 60px;
  border: 5px solid;
  border-color: hsl(var(--header-bg-color)) transparent
    hsl(var(--header-bg-color)) transparent;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: orbit 3s linear infinite;
  background: radial-gradient(
      8px 8px at 33% 50%,
      hsl(var(--header-bg-color)) 99%,
      transparent 99%
    ),
    radial-gradient(
      6px 6px at 68% 50%,
      hsl(var(--header-bg-color)) 70%,
      hsl(var(--header-bg-color)) 98%,
      transparent 99%
    );
}

.spin-wave::before {
  content: "";
  height: 80%;
  width: 80%;
  border: inherit;
  border-color: inherit;
  border-radius: inherit;
}
