html {
  scroll-behavior: smooth;
  --background-dark: #1f1f1f;
  --background-color: #2d2d2d;
  --background-light: #373737;
  --foreground-dark: #dbdbdb;
  --foreground-color: #e9e9e9;
  --foreground-light: #f4f4f4;
  --highlight-dark: #08418d;
  --highlight-color: #3483ea;
  --highlight-light: #77abef;
  --error-dark: #961f2a;
  --error-color: #d70808;
  --error-light: #ef8489;
}

*,
::before,
::after {
  box-sizing: border-box;
}

body {
  position: relative;
  margin: 0;
  font-family: "Montserrat", sans-serif;
  min-height: 100vh;
  background: var(--background-color);
  color: var(--foreground-color);
}

h1,
h2,
h3 {
  font-family: "Martel Sans", sans-serif;
  font-weight: 900;
  margin: 0;
}

h1 {
  font-size: 3.5em;
  text-align: center;
}

h2 {
  font-size: 2.5em;
}

h3 {
  font-size: 1.5em;
}

p {
  font-family: "Montserrat", sans-serif;
  font-size: 1.2em;
  margin: 0.8em 0;
}

a {
  text-decoration: underline transparent 2px;
  color: var(--highlight-color);
  font-weight: 500;
  transition: 0.1s;
}

a:hover {
  text-decoration-color: var(--highlight-color);
}

.flex {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin: 0 -2em;
}

.flex > * {
  padding: 0 2em;
}

.illustration {
  width: 100%;
  max-width: 300px;
  box-sizing: content-box;
}

.video {
  width: 100%;
  margin-top: 1.5em;
}

.no-margin-y {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

.no-padding-y {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

#header-content {
  text-align: center;
}

#header-content p {
  font-size: 1.5em;
  font-style: italic;
  margin: 0.75em 0 1.5em;
}

#header-content img {
  max-width: 95%;
  max-height: calc(100vh - 20em);
}

nav,
footer {
  left: 0;
  width: 100%;
  height: 50px;
  display: flex;
  align-items: center;
  background: var(--background-dark);
}

nav {
  position: fixed;
  top: 0;
  justify-content: flex-end;
}

nav a {
  display: block;
  margin: 0 5px;
  padding: 10px 15px;
  font-size: 1.25em;
  color: inherit;
  font-weight: 600;
}

nav a:hover {
  text-decoration-color: inherit;
}

footer {
  position: absolute;
  bottom: 0;
  justify-content: space-between;
}

footer p {
  margin: 0 20px;
}

header {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100vh;
}

main {
  padding-bottom: 50px;
}

main p {
  text-align: justify;
  text-indent: 2em;
}

main ul {
  text-align: justify;
  font-family: "Montserrat", sans-serif;
  font-size: 1.2em;
  margin: 0.8em 0;
  padding-left: 2em;
}

main ul li {
  margin: 0.2em 0;
}

main section {
  width: 100%;
  padding: 10em 2em;
}

.section-content {
  max-width: 1024px;
  margin: auto;
}

main section:nth-child(2n) {
  --form-background: var(--background-light);
  --form-border: var(--background-dark);
  --form-color: var(--foreground-dark);
}

main section:nth-child(2n + 1) {
  background: var(--background-light);
  --form-background: var(--background-color);
  --form-border: var(--background-dark);
  --form-color: var(--foreground-light);
}

label {
  display: block;
  font-family: "Montserrat", sans-serif;
  font-size: 1.3em;
  margin: 0.8em 0 0.3em;
}

.text-input {
  display: block;
  font-family: "Montserrat", sans-serif;
  font-size: 1.3em;
  background: var(--form-background);
  border: 3px solid var(--form-border);
  margin: 0;
  padding: 0.2em 0.5em;
  color: var(--form-color);
  width: 100%;
  border-radius: 0;
  box-shadow: none;
  -webkit-appearance: none;
}

.text-input::placeholder {
  font-style: italic;
}

.text-input:focus,
#submit:focus {
  outline-color: var(--highlight-color);
}

textarea.text-input {
  resize: vertical;
  min-height: 128px;
  max-height: 1024px;
}

#submit {
  display: block;
  margin: 0;
  padding: 0.5em 1.5em;
  font-family: "Martel Sans", sans-serif;
  font-weight: 700;
  font-size: 1.5em;
  background: var(--form-background);
  border: 3px solid var(--form-border);
  color: var(--form-color);
  cursor: pointer;
  border-radius: 0;
  box-shadow: none;
  -webkit-appearance: none;
}

#captcha {
  margin: 1.5em 0;
}

.alert {
  margin: 1em 0;
  padding: 0.7em 1em;
  width: 100%;
  border: 3px solid;
  text-indent: 0;
  font-size: 1.1em;
  font-weight: 500;
}

.alert[data-error=false] {
  background: var(--highlight-light);
  color: var(--highlight-dark);
  border-color: var(--highlight-color);
}

.alert[data-error=true] {
  background: var(--error-light);
  color: var(--error-dark);
  border-color: var(--error-color);
}

@media all and (max-width: 1024px) {
  .small-center {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .flex {
    flex-direction: column;
    align-items: center;
    margin: -1em 0;
  }

  .flex.small-invert {
    flex-direction: column-reverse;
  }

  .flex > * {
    padding: 1em 0;
    width: 100%;
  }

  #menu-toggler {
    position: fixed;
    top: 15px;
    right: 15px;
    cursor: pointer;
    background: var(--background-dark);
    z-index: 11;
  }

  .menu-bar {
    width: 35px;
    height: 5px;
    margin: 10px;
    background: var(--foreground-color);
  }

  nav {
    left: 100%;
    height: 100vh;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 2em 0.5em;
    overflow-y: auto;
    transition: left 0.25s;
    z-index: 10;
  }

  nav.shown {
    left: 0;
  }

  nav a {
    width: 100%;
    margin: 0.4em 0;
    padding: 1.1em 0;
    text-align: center;
  }

  main {
    padding-bottom: 100px;
  }

  main section {
    padding: 4em 2em;
  }

  footer {
    padding: 15px 0;
    height: 100px;
    flex-direction: column;
    align-items: center;
    background: var(--background-dark);
  }

  footer p {
    margin: 0 20px;
    text-align: center;
  }
}

@media all and (max-width: 644px) {

}
