/*! HTML5 Boilerplate v9.0.1 | MIT License | https://html5boilerplate.com/ */

/* main.css 3.0.0 | MIT License | https://github.com/h5bp/main.css#readme */
/*
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

html {
  color: #585B62;
  font-size: 1em;
  line-height: 1.4;
  font-family: 'Roboto', sans-serif;
  font-weight: 400;
}

body {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100vh;
  min-height: 100vh;
  margin: 0;
}

/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * Customize the background color to match your design.
 */

::-moz-selection {
  background: #b3d4fc;
  text-shadow: none;
}

::selection {
  background: #b3d4fc;
  text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

hr {
  display: block;
  height: 1px;
  border: 0;
  border-top: 1px solid #ccc;
  margin: 1em 0;
  padding: 0;
}

/*
 * Remove the gap between audio, canvas, iframes,
 * images, videos and the bottom of their containers:
 * https://github.com/h5bp/html5-boilerplate/issues/440
 */

audio,
canvas,
iframe,
img,
svg,
video {
  vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
  resize: vertical;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */

/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Hide visually and from screen readers
 */

.hidden,
[hidden] {
  display: none !important;
}

/*
 * Hide only visually, but have it available for screen readers:
 * https://snook.ca/archives/html_and_css/hiding-content-for-accessibility
 *
 * 1. For long content, line feeds are not interpreted as spaces and small width
 *    causes content to wrap 1 word per line:
 *    https://medium.com/@jessebeach/beware-smushed-off-screen-accessible-text-5952a4c2cbfe
 */

.visually-hidden {
  border: 0;
  clip: rect(0, 0, 0, 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
  /* 1 */
}

/*
 * Extends the .visually-hidden class to allow the element
 * to be focusable when navigated to via the keyboard:
 * https://www.drupal.org/node/897638
 */

.visually-hidden.focusable:active,
.visually-hidden.focusable:focus {
  clip: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  position: static;
  white-space: inherit;
  width: auto;
}

/*
 * Hide visually and from screen readers, but maintain layout
 */

.invisible {
  visibility: hidden;
}

/*
 * Clearfix: contain floats
 *
 * The use of `table` rather than `block` is only necessary if using
 * `::before` to contain the top-margins of child elements.
 */

.clearfix::before,
.clearfix::after {
  content: "";
  display: table;
}

.clearfix::after {
  clear: both;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */

@media only screen and (min-width: 35em) {
  /* Style adjustments for viewports that meet the condition */
}

@media print,
  (-webkit-min-device-pixel-ratio: 1.25),
  (min-resolution: 1.25dppx),
  (min-resolution: 120dpi) {
  /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid the additional HTTP request:
   https://www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */

@media print {
  *,
  *::before,
  *::after {
    background: #fff !important;
    color: #000 !important;
    /* Black prints faster */
    box-shadow: none !important;
    text-shadow: none !important;
  }

  a,
  a:visited {
    text-decoration: underline;
  }

  a[href]::after {
    content: " (" attr(href) ")";
  }

  abbr[title]::after {
    content: " (" attr(title) ")";
  }

  /*
   * Don't show links that are fragment identifiers,
   * or use the `javascript:` pseudo protocol
   */
  a[href^="#"]::after,
  a[href^="javascript:"]::after {
    content: "";
  }

  pre {
    white-space: pre-wrap !important;
  }

  pre,
  blockquote {
    border: 1px solid #999;
    page-break-inside: avoid;
  }

  tr,
  img {
    page-break-inside: avoid;
  }

  p,
  h2,
  h3 {
    orphans: 3;
    widows: 3;
  }

  h2,
  h3 {
    page-break-after: avoid;
  }
}

/* Fonts */
/* oswald-700 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Oswald';
  font-style: normal;
  font-weight: 700;
  src: url('../fonts/oswald-v57-latin-700.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* oswald-regular - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Oswald';
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/oswald-v57-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* roboto-regular - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/roboto-v50-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

h1 {
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  color: #2A3D7A;
  margin-top: 0;
}

/* Specific styling */
.language-switcher {
  position: absolute;
  right: 1rem;
  top: 1rem;
}

.language-switcher a {
  display: inline-block;
  background: #fff;
  padding: 0.5rem;
  border: 1px solid #fff;
  border-radius: 0.25em;
  text-decoration: none;
  color: #2A3D7A;
}

.language-switcher a.active {
  background: #5176B3;
  color: #fff;
}

@media(max-width: 600px) {
  .language-switcher {
    position: relative;
    padding-right: 1rem;
    padding-top: 1rem;
    text-align: right;
    right: 0;
    top: 0;
  }
}

.head {
  width: 100%;
}

.head #logo {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: center;
}

.head #logo img {
  padding: 2em;
  max-width: 400px;
}

@media(max-width: 700px) {
  .head #logo img {
    max-width: 66vw;
  }
}

.main {
  display: flex;
  flex-grow: 1;
  flex-shrink: 0;
  width: 100%;
  justify-content: center;
  align-items: center;
  background: url(../img/background.webp) center;
  background-size: cover;
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.main #content {
  text-align: center;
  padding: 5rem 2rem;
  margin-left: 2rem;
  margin-right: 2rem;
  background: #fff;
  border: 8px solid #2E3F79;
}

.main #content p {
  font-size: 1.1em;
  margin-bottom: 0;
}

.footer {
  width: 100vw;
  display: flex;
  gap: 1rem;
  background: #fff;
}

@media(max-width: 990px) {
  .footer {
    flex-direction: column;
  }
}

.footer .left {
  background: #595B60;
  flex-basis: 66.6%;
  color: #fff;
  font-family: 'Oswald', sans-serif;
  font-weight: 400;
  display: flex;
  flex-wrap: wrap;
  padding: 2rem 4rem 2rem 15vw;
  gap: 2rem;
}

@media(max-width: 990px) {
  .footer .left {
    padding: 2rem;
  }
}

.footer .left #logo-wrap {
  flex-basis: 100%;
}

.footer .left #logo-wrap img {
  max-width: 200px;
}

.footer .left #address {
  flex-basis: calc(33.3% - 1rem);
}

.footer .left #legal {
  flex-basis: calc(66.6% - 1rem);
}

.footer .right {
  background: #5175B2;
  flex-basis: 33.3%;
  padding: 2rem 15vw 2rem 2rem;
}

.footer .right #links {
  font-family: 'Oswald', sans-serif;
  font-weight: 400;
  font-size: 1.1rem;
}

.footer .right #links a {
  text-decoration: none;
  color: #fff;
}

.footer .right #links a:hover {
  text-decoration: underline;
}

