html {
  /* Variables */
  --theme-red: #ff0024;
  --theme-black: #000000;
  --theme-white: #ffffff;
  --font-body: "Noto Sans", sans-serif;
  --font-head: "Ruda", sans-serif;

  /* Rules */
  scroll-behavior: smooth;
  font-family: var(--font-body);
  color: var(--theme-white);
  background-color: var(--theme-black);
  margin: 0;
  padding: 0;
  text-align: left;
  font-size: large;
  box-sizing: border-box;
  font-weight: 400;
  font-feature-settings: "pnum" 1, "tnum" 1;
}

@media only screen and (max-width: 1000px) {
  html {
    font-size: medium;
    line-height: 1.3;
  }
}

body {
  margin: 0;
  padding: 0;
}

/* UTILITY CLASSES */

@media only screen and (min-width: 1000px) {
  .mobile-only {
    display: none;
  }
}

@media only screen and (max-width: 1000px) {
  .desktop-only {
    display: none;
  }
}

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

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

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

.bold {
  font-weight: bold;
}

.italic {
  font-style: italic;
}

/* BASE STYLES */
/* Sections */
section {
  padding: 5vw;
}

section.light {
  background-color: var(--theme-white);
  color: var(--theme-black);
}

section.dark {
  background-color: var(--theme-black);
  color: var(--theme-white);
}

/* Headings */
h1,
h2,
h3,
h4 {
  font-weight: bold;
  color: var(--theme-red);
  text-align: left;
}

h1,
h2 {
  font-family: var(--font-head);
}

h3,
h4 {
  font-family: var(--font-body);
}

h1 {
  font-size: 5rem;
  margin: 8px 0px 5px 0px;
  font-weight: 900;
}

h2 {
  font-size: 3rem;
  margin: 5px 0px 2px 0px;
}

h3 {
  font-size: 2rem;
  margin: 2px 0px 1px 0px;
}

h4 {
  font-size: 1.5rem;
  margin: 1px 0px 1px 0px;
}

@media only screen and (max-width: 1000px) {
  h1 {
    font-size: 3rem;
    margin: 8px 0px 5px 0px;
  }

  h2 {
    font-size: 2rem;
    margin: 5px 0px 2px 0px;
  }

  h3 {
    font-size: 1.6rem;
    margin: 2px 0px 1px 0px;
  }

  h4 {
    font-size: 1.4rem;
    margin: 1px 0px 1px 0px;
  }
}

/* Links */
a {
  text-decoration: underline;
  color: var(--theme-red);
}

/* Buttons, and button-like links */
button,
a.button {
  text-decoration: none;
  padding: 8px 12px;
  margin: 10px 0px;
  border-radius: 5px;
  border: 1px solid white;
  font-family: var(--font-norm);
  font-size: 1rem;
  display: inline-block;
  background-size: 300% 1000%;
  background-position: left center;
  background-repeat: no-repeat;
  transition: 0.3s all;
  cursor: pointer;
}

button.big,
a.button.big {
  min-height: 150px;
  display: flex;
  padding: 15px;
  align-items: flex-start;
  flex-direction: column;
  justify-content: space-between;
  font-family: var(--font-head);
  font-size: 2em;
}

button.highlight,
a.button.highlight {
  color: var(--theme-red) !important;
  border-color: var(--theme-red) !important;
  animation: outline-pulse 3s infinite linear;
  font-weight: bold;
}

section.light button.highlight,
section.light a.button.highlight {
  background-image: linear-gradient(to bottom right, var(--theme-white) 0%, var(--theme-white) 45%, var(--theme-red) 55%, var(--theme-red) 100%) !important;
}

section.dark button.highlight,
section.dark a.button.highlight {
  background-image: linear-gradient(to bottom right, var(--theme-black) 0%, var(--theme-black) 45%, var(--theme-red) 55%, var(--theme-red) 100%) !important;
}

@keyframes outline-pulse {
  0% {
    outline: 0px #ff0024aa solid;
  }

  25% {
    outline: 6px #ff0024aa solid;
  }

  50% {
    outline: 12px transparent solid;
  }

  100% {
    outline: 0px transparent solid;
  }
}

section.light button,
section.light a.button {
  color: var(--theme-black);
  border-color: var(--theme-black);
  background-image: linear-gradient(to bottom right, var(--theme-white) 0%, var(--theme-white) 45%, var(--theme-black) 55%, var(--theme-black) 100%);
}

section.dark button,
section.dark a.button {
  color: var(--theme-white);
  border-color: var(--theme-white);
  background-image: linear-gradient(to bottom right, var(--theme-black) 0%, var(--theme-black) 45%, var(--theme-white) 55%, var(--theme-white) 100%);
}

@media only screen and (min-width: 1000px) {

  section.light button:hover,
  section.light a.button:hover {
    color: var(--theme-white);
    background-position: right center;
  }

  section.dark button:hover,
  section.dark a.button:hover {
    color: var(--theme-black);
    background-position: right center;
  }

  button.highlight:hover,
  a.button.highlight:hover {
    background-position: right center !important;
  }

  section.light button.highlight:hover,
  section.light a.button.highlight:hover {
    color: var(--theme-white) !important;
  }

  section.dark button.highlight:hover,
  section.dark a.button.highlight:hover {
    color: var(--theme-black) !important;
  }
}

/* SPECIAL CASES */
/* Splash */
section#splash {
  background-image: url("/images/cover_image.png");
  background-size: cover;
  background-position: center;
  background-blend-mode: multiply;
  background-color: rgba(0, 0, 0, 0.7);
  background-repeat: no-repeat;
  padding-top: 200px;
  padding-bottom: 100px;
  text-align: center;
  color: var(--theme-white);
}

section#splash h1,
section#splash h2 {
  color: var(--theme-white);
  text-align: center;
}

/* Quick Info Bar */
section.quick {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  align-content: flex-start;
  align-items: baseline;
  padding-top: 10px;
  padding-bottom: 10px;
  text-align: center;
}

section.quick p,
section.quick a,
section.quick button {
  margin: 5px 10px;
}

@media only screen and (max-width: 1000px) {

  section.quick p,
  section.quick a,
  section.quick button {
    margin: 5px;
  }

  section.quick.stick {
    justify-content: space-between;
  }
}

section.quick.stick {
  position: sticky;
  top: 0;
  z-index: 100;
}

/* Actions */
.grid-3 {
  display: grid;
  justify-content: stretch;
  align-content: start;
  grid-row-gap: 20px;
  grid-column-gap: 20px;
  grid-auto-flow: row;
  grid-template-columns: 1fr 1fr 1fr;
}

.grid-2 {
  display: grid;
  justify-content: stretch;
  align-content: start;
  grid-row-gap: 20px;
  grid-column-gap: 20px;
  grid-auto-flow: row;
  grid-template-columns: 1fr 1fr;
}

@media only screen and (max-width: 1000px) {

  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }
}

section#actions button.big,
section#actions a.button.big {
  margin: 0;
}

/* Images */

img {
  border-radius: 5px;
  width: 500px;
  display: block;
  max-width: 90vw;
}

/* Tables */
table {
  min-width: 650px;
  border-collapse: collapse;
}

div.table-scroll-container {
  overflow-x: scroll;
  padding: 25px;
}

table td {
  border: 1px var(--theme-black) solid;
  padding: 5px 7px;
  margin: 0;
}

table#fees-table td {
  text-align: right;
}

table#fees-table td:first-child {
  text-align: left;
}

/* Header and logo */

header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 70px;
  background-color: var(--theme-white);
  text-align: center;
  transition: 0.3s all;
}

header.zeroscroll {
  background-color: transparent;
}

header img {
  width: 80px;
  padding: 10px;
  transition: 0.3s all;
  display: inline;
}

header.zeroscroll img {
  transform: scale(2.5) translateY(30px);
  filter: contrast(0) brightness(10);
}

/* Footer */
footer {
  background-color: #333333;
  color: #888888;
  font-size: 0.8rem;
  text-align: center;
  padding: 5px;
}

/* People table */
section#people div.grid-3 div p:first-of-type {
  color: var(--theme-red);
  font-weight: bold;
  margin-top: 10px;
  margin-bottom: 0;
}

section#people div.grid-3 div img {
  max-width: 250px;
  filter: grayscale(1);
}

section#people div.grid-3 div p {
  margin-top: 0;
}