* {
  box-sizing: border-box;

  --site-font: "Ubuntu", "Helvetica Neue", sans-serif;

  --theme-link-color: hsl(208, 100%, 43%);
  --theme-page-background-color: white;

  /* Success and error messages */
  --theme-color-success: hsl(153, 43%, 42%);
  --theme-text-color-success: white;
  --theme-color-error: hsl(3, 100%, 61%);
  --theme-text-color-error: white;

  /* The borders and background colors used throughout the site */
  --theme-border-color: #004E95;
  --theme-background-color: #013A6B;
  --theme-background-color-lighter: #004E95;

  --theme-border: 1px solid var(--theme-border-color);

  --theme-new-banner-color: hsl(3, 100%, 61%);
  --theme-new-banner-text-color: white;

  --theme-tooltip-background-color: white;
  --theme-tooltip-border-color: hsl(147, 12%, 85.3%);

  /*--theme-stats-color: hsl(240, 100%, 27%);*/
  --theme-stats-color: var(--theme-background-color);
  --theme-faint-number-color: hsl(0, 0%, 50%);

  /* Error messages display by the frontend */
  --theme-color-error2: hsl(1, 100%, 78%);
  --theme-text-color-error2: black;
  --theme-border-color-error2: hsl(356, 77%, 41%);
  --theme-color-warning: ivory;
  --theme-text-color-warning: black;
  --theme-border-color-warning: hsl(50, 100%, 55%);

  --theme-map-border-color: hsl(0, 0%, 96%);
  --theme-map-fill-color: #A8C4DA99;

  /* TODO: change hover color */
  --theme-delete-button-color: hsl(0, 0%, 83%);
  --theme-delete-button-hover-color: black;

  --theme-spinner-color: black;
  --theme-spinner-border-color: hsl(0, 0%, 20%);
}

html, body {
  height: 100%;
  margin: 0px;
  padding: 0px;
  /* Override Picnic's default of 1.1rem. */
  font-size: 1rem;
}

body {
  font-family: var(--site-font);
  overflow: auto;
  line-height: 1.5;
}

h1, h2, strong {
  color: #333;
}

h1, h2, h3 {
  padding-bottom: 0;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0;
}

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

li {
  margin: 0 0 0.3rem;
}

.page, .page-wide {
  padding: 1rem;
  /* Center the content horizontally. */
  margin: auto;

  background-color: var(--theme-page-background-color);
}

.page {
  max-width: 50rem;
}

.page-wide {
  max-width: 80rem;
}

.align-center {
  margin: 0 auto;
}

.text-center {
  text-align: center;
}

.block {
  display: block;
}

.inline {
  display: inline;
}

.font-sm {
  font-size: 0.8rem;
}

.django-message {
  width: 80%;
  max-width: 50rem;
  margin: 10px auto;
  text-align: center;
  font-size: 1.2rem;
}

.django-message.info {
  border: var(--theme-border);
}

.django-message.success {
  background-color: var(--theme-color-success);
  color: var(--theme-text-color-success);
}

.django-message.error {
  background-color: var(--theme-color-error);
  color: var(--theme-text-color-error);
  border: none;
}

.page-header {
  width: 100%;
  border-bottom: var(--theme-border);
  background-image: linear-gradient(60deg, #013A6B 50%, #004E95 50%);
}

.page-header .title {
  font-size: 24px;
}

.page-header .menu {
  padding: 1rem;
  display: flex;
  flex-direction: row;
}

.page-header a.icon-link {
  /* Prevent the <a> from making the <img> it wraps taller. */
  line-height: 0;
}

.page-header .menu-right {
  margin-left: auto;
  align-self: center;
  font-size: 18px;
}

.page-header .menu-right a {
  margin-left: 0.6rem;
  margin-right: 0.6rem;
  /* keep in sync with icon-title.svg */
  color: #f3f3f3;
}

.page-footer {
  margin-top: 20px;
  padding-top: 10px;
  padding-bottom: 20px;
  text-align: center;
  border-top: var(--theme-border);
  background-color: var(--theme-background-color);
  color: white;
}

.page-footer a {
  color: white;
  text-decoration: underline;
}

.page-footer p {
  font-size: 0.8rem;
  margin-top: 0.5rem;
  margin-bottom: 0;
}

.wrapper {
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

.page-header, .page-footer {
  flex-grow: 0;
  flex-shrink: 0;
}

.page-body {
  flex-grow: 1;
}

@media screen and (max-width: 599px) {
  .page-footer p {
    font-size: 0.7rem;
  }
}

.logout-form {
  display: inline;
  padding: 0;
  margin: 0;
  border: none;
}

.logout-form input[type='submit'] {
  color: initial;
  background-color: initial;
  padding: 0;
  margin: 0 0.6rem;
  color: var(--theme-link-color);
  font-size: 18px;
  border: none;
  cursor: pointer;
  font-family: var(--site-font);
}
