* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Roboto', 'Arial', sans-serif;
  word-wrap: break-word; /* On narrow screens, prefer a broken title over a horizontal scrollbar. */
  scroll-padding-top: 80px;
}

a {
  color: #3b1ecc;
  font-weight: 500;
  text-decoration: none;
}

abbr {
  text-decoration: dotted underline;
  text-decoration-color: #00000066;
}

a[title]:not(:hover) {
  text-decoration: dotted underline;
  text-decoration-color: #3b1ecc66;
}

h1, h2, h3, h4, h5 {
  font-weight: 500;
}

/* Keep list items dense. */
li > blockquote,
li > ul,
li > ol {
  margin-top: 0;
  margin-bottom: 0;
}

li p {
  margin-top: 0;
  margin-bottom: 0;
}

blockquote, q {
  font-style: italic;
}

figcaption {
  text-align: right;
  font-size: smaller;
}

footer.site-footer {
  padding: 40px;
  font-size: 0.8rem;
  text-align: center;
}

.container {
  box-sizing: content-box;
  padding: 2rem;
}

.container.single-column {
  max-width: 44rem;
}

.btn {
  border-radius: 10px;
}

.btn-small {
  padding: 2px 10px;
}

.btn.caps {
  font-size: 0.8rem;
}

header {
  padding: 2rem;
  max-width: 48rem;
  margin: auto;
}

header h1 {
  margin: 0;
  font-size: 4.0rem;
}

header p {
  max-width: 48rem;
  font-size: 1.2rem;
  text-align: center;
}

.front-page-header {
  max-width: none;
  min-height: 100vh; /* fill the window; it would be nice to substract the height of <nav> here, but that is unknowable */
  padding-top: 100px;
  padding-bottom: 100px;
  background-image: linear-gradient(to bottom, rgba(255,255,255,0.0) 80%, #fbfaf999), url('/assets/images/nasa-unsplash.jpg');
  background-repeat: no-repeat;
  background-size: cover;
  color: white;
  display: flex;
  flex-flow: column;
  justify-content: center;
  align-items: center;
}

.front-page-header h1 {
  font-weight: 700;
}

.front-page-header .intro-text {
  font-weight: 600;
  background: rgba(0,0,0,0.4);
  box-shadow: 0px 0px 20px 20px rgba(0,0,0,0.4);
  border-radius: 100px;
}

.front-page-header > :not(.intro-text) {
  /* Keep other things above the box-shadow of the intro-text */
  z-index: 10;
}

.front-page-header .intro-text p:last-child {
  margin-bottom: 0;
}

hr {
  width: 50%;
  margin: 1.5rem auto;
}

hr.pill {
  height: 15px;
  width: 100px;
  border-radius: 15px;
  margin: 1.5rem 0;
}

hr.pill.centered {
  margin-left: auto;
  margin-right: auto;
}

.flashy,
.bg-medium .flashy,
.bg-grey .flashy {
  background: #f00699;
  color: white;
}

.bg-medium a,
.bg-grey a {
  color: #c00466;
}

.bg-medium a[title],
.bg-grey a[title] {
  color: #f0069966;
}

.bg-black .flashy {
  background: #11aa55;
  color: white;
}

.bg-black a {
  color: #11aa55;
}

.bg-black a[title] {
  text-decoration-color: #11aa5566;
}

.bg-dark .flashy,
.bg-green .flashy {
  background: #fff90d;
  color: black;
}

.bg-dark a,
.bg-green a {
  color: #fff90d;
}

.bg-dark a[title],
.bg-green a[title] {
  text-decoration-color: #fff90d66;
}

.bg-black {
  background-color: black;
  color: white;
}

.bg-grey {
  background-color: #f1f1f1;
}

.bg-medium {
  background-color: #fbfaf9;
  color: #2f1847;
}

.bg-green {
  background-color: #11aa55;
  background-image: linear-gradient(to top,rgb(13,171,118, 0.95),rgb(13,171,118, 0.95)), url("/assets/images/water_pattern.jpg");
  background-size: 1400px;
  color: white;
}

.bg-dark {
  background-color: #332266;
  background-image: linear-gradient(to bottom, rgba(59, 30, 104, 0.95), rgba(59, 30, 104, 0.95)), url("/assets/images/water_pattern.jpg");
  background-size: 1400px;
  color: white;
}

nav {
  position: sticky;
  top: 0;
  box-sizing: border-box;
  width: 100%;
  padding: 0px 5%;
  text-align: right;
  z-index: 200;
  background-color: black;
  font-size: 1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

nav, nav a {
  color: white;
  font-weight: 600;
}

nav > .left {
  flex-shrink: 0;

  display: flex;
  align-items: center;
}

nav > .right {
  flex-grow: 1;

  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
}

nav .top-level-nav {
  cursor: pointer;
  color: white;
  padding: 0.2rem 1rem;
  font-weight: 600;
}

nav .dropdown {
  min-width: 124px;
  z-index: 210;
  position: absolute;
  right: 0;
  background-color: black;
  border-right: 1px solid #11aa55;
  border-bottom: 1px solid #11aa55;
  box-shadow: 1px 1px 1px #33333366;
  white-space: nowrap;
}

nav .dropdown ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
}

nav .dropdown li a {
  display: block;
  padding: .5em;
}

nav a:hover, nav summary:hover, nav a:focus, nav summary:focus {
  background-color: #11aa55;
  text-decoration: none;
  outline: none;
}

@media screen and (max-width: 920px) {
  header h1 {
    font-size: 2rem;
  }

  nav {
    padding: 0;
  }

  nav .top-level-nav {
    padding: 0.2rem 0.5rem;
  }
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(15em, 1fr));
  grid-gap: 2em;
  gap: 2em;
}

.radar-label {
  display: inline-block;
  padding: .5rem;
  border-radius: 3px;
}

.radar-label-try {
  background-color: violet;
  color: white;
}

.radar-label-use {
  background-color: pink;
  color: white;
}

.radar-label-share {
  background-color: gold;
  color: white;
}

/* for more whitespace between sections, list items, … */
.spacious {
  font-family: 'Lato', 'Verdana', 'Roboto', 'Arial', 'sans-serif';
  font-size: large;
  line-height: 1.6;
}

.spacious li {
  margin-bottom: 0.2em;
}

.spacious li li {
  margin-bottom: unset;
}

.spacious h2,
.spacious h3 {
  margin-top: 2em;
}

.spacious img {
  max-width: 100%;
  display: block;
  margin: auto;
}
