/*! HTML5 Boilerplate v8.0.0 | MIT License | https://html5boilerplate.com/ */

/* main.css 2.1.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
   ========================================================================== */
:root {
  --color-lightGrey: #eaf5fb;
  --color-red: #EE0200;
  --color-darkRed: #be0100;
  --color-titles: #21346b;
  --main-bg-color: #004b99;
  --main-footer-color: #eaf5fb;
}

html {
  color: #041016;
  background-color: var(--main-bg-color);
  font-size: 1em;
  line-height: 1.4;
  font-family: 'DM Sans', sans-serif;
  box-sizing: border-box;
}

/* width */
::-webkit-scrollbar {
  width: 10px;
}

/* Track */
::-webkit-scrollbar-track {
  background: var(--main-footer-color);
}

/* Handle */
::-webkit-scrollbar-thumb {
  background: var(--main-bg-color);
  border: 2px solid var(--main-footer-color);
  border-radius: 10px;
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
  background: var(--main-bg-color);
}

/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * Vendor-prefixed and regular ::selection selectors cannot be combined:
 * https://stackoverflow.com/a/16982510/7133471
 *
 * 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
 */

.sr-only {
  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 .sr-only class to allow the element
 * to be focusable when navigated to via the keyboard:
 * https://www.drupal.org/node/897638
 */

.sr-only.focusable:active,
.sr-only.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
 *
 * For modern browsers
 * 1. The space content is one way to avoid an Opera bug when the
 *    `contenteditable` attribute is included anywhere else in the document.
 *    Otherwise it causes space to appear at the top and bottom of elements
 *    that receive the `clearfix` class.
 * 2. 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;
  }

  /*
   * Printing Tables:
   * https://web.archive.org/web/20180815150934/http://css-discuss.incutio.com/wiki/Printing_Tables
   */
  thead {
    display: table-header-group;
  }

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

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

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

.container {
  padding-right: 15px;
  padding-left: 15px;
  margin-right: auto;
  margin-left: auto;
}
@media (min-width: 768px) {
  .container {
    width: 750px;
  }
}
@media (min-width: 992px) {
  .container {
    width: 970px;
  }
}
@media (min-width: 1200px) {
  .container {
    width: 1170px;
  }
}

body.locked {
  position: relative;
  overflow: hidden;
}

.main-container {
  margin: 0 auto;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  background-color: #fff;
}

.main-header {
  text-align: center;
  background-color: var(--color-lightGrey);
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
  padding: 10px 0 15px;
}

.main-logo {
  max-width: 100%;
  width: 100px;
}


.page-content {
  padding: 20px 20px;
  min-height: 75vh;
}

h1 {
  text-align: center;
  font-size: 26px;
  color: var(--color-titles);
}

h3 {
  text-align: center;
  font-size: 22px;
  color: var(--color-titles);
}

.subtitle {
  text-align: center;
  font-size: 18px;
  font-weight: 400;
}

ol {
  padding-left: 10px;
}

.logo-nd {
  max-width: 100%;
  width: 250px;
  display: block;
  margin: 0 auto;
  height: auto;
  margin-bottom: -50px;
}

.main-footer {
  text-align: center;
  padding: 15px 15px 20px;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  color: var(--color-titles);
  background: var(--main-footer-color);
}

.main-footer a {
  color: var(--color-titles);
  text-decoration: none;
  font-weight: 700;
  font-size: 16px;
}

.main-footer hr {
  opacity: 0.5;
}

.main-footer a.lang-selector {
  font-size: 12px;
}


.main-footer a.lang-selector:hover {
  text-decoration: underline;
}

.flex-title {
  margin: 25px 20px 25px;
  padding: 5px;
  text-align: center;
  font-size: 18px;
  background-color: var(--color-lightGrey);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.4s ease;
}

.flex-title:hover {
  opacity: 0.75;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* .flex {
  margin-top: 50px;
} */

.flex-item {
  width: 100%;
  display: block;
  text-align: center;
}

.flex-item .inner-wrap {
  padding: 15px 20px;
}

.flex-item label {
  display: inline-block;
  margin: 0 0 5px;
}

.btn {
  padding: 10px 20px;
  border-radius: 15px;
  color: #fff;
  display: block;
  font-weight: bold;
  text-decoration: none;
  background-color: var(--color-red);
}

.btn:hover {
  background-color: var(--color-darkRed);
}

.btn small {
  display: block;
}

.btn[disabled] {
  cursor: not-allowed;
  pointer-events: none;
  background-color: var(--color-lightGrey);
}

.overlay {
  padding: 30px 0;
  display: none;
  position: fixed;
  top: 10px;
  right: 10px;
  bottom: 10px;
  left: 10px;
  z-index: 10;
  border-radius: 10px;
  background-color: rgba(0,0,0,0.95);
  /* box-shadow: 0 2px 8px rgba(0,0,0,0.5); */
  border: 2px solid #fff;
  color: #fff;
}

.container {
  overflow: auto;
  height: 100%;
}

.overlay .close {
  position: absolute;
  top: 10px;
  right: 15px;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
}

.overlay .close:hover {
  opacity: 0.75;
}

.overlay figure.main {
  text-align: center;
}

.overlay figure.main img {
  max-height: 400px;
  object-fit: cover;
  -o-object-fit: cover;
}

.overlay figure.main,
.overlay-content {
  display: inline-block;
  width: 100%;
}

.overlay-content h4 {
  margin-top: 15px;
}

.overlay-content ul li {
  margin-bottom: 20px;
  padding-left: 10px;
  position: relative;
  list-style: none;
}

.overlay .overlay-content ul li .icon {
  background-color: #fff;
  border-radius: 100%;
  display: inline-block;
  width: 40px;
  height: 40px;
  line-height: 38px;
  text-align: center;
  position: absolute;
  right: 100%;
  top: 0;
}

.overlay .overlay-content ul li .icon img {
  max-width: 60%;
}

.overlay figure.main figcaption {
  font-weight: bold;
  font-size: 24px;
  margin-bottom: 10px;
  text-align: left;
}

.overlay figure.main img {
  max-width: 80%;
  display: inline-block;
}

.page-content.instruction .pans {
  display: flex;
  align-items: start;
  flex-wrap: wrap;
}

.page-content.instruction .pans figure {
  padding: 0 5px 20px;
  text-align: center;
  width: 30%;
}

.page-content.instruction .pans figure a {
  text-decoration: none;
  color: #000;
  font-size: 14px;
}

.page-content.instruction .pans figure a figcaption {
  font-weight: bold;
  margin-top: 0.5rem;
}

.page-content .side-logo {
  width: 150px;
  margin: 0 auto;
  display: block;
}

.page-content .click-here {
  padding: 5px 0;
  font-size: 18px;
  text-align: center;
}

.page-content .click-here a {
  font-weight: bold;
}

.page-content.instruction .pans figure img {
  max-width: 100%;
}

.pans a {
  max-width: 80%;
  display: inline-block;
  transition: all 0.4s ease;
}

.pans a:hover {
  opacity: 0.5;
}

@media screen and (min-width: 628px) {
  .instruction-paragraph {
    padding-left: 40px;
  }

  ol {
    padding-left: 40px;
  }

  .page-content.instruction {
    padding-left: 20px;
    padding-right: 20px;
  }

  .flex {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
  }

  .flex-item {
    width: 50%;
  }

  .overlay {
    top: 20px;
    right: 20px;
    bottom: 20px;
    left: 20px;
  }

  .overlay figure.main,
  .overlay .overlay-content {
    width: 50%;
    /* float: left; */
  }

  .overlay .overlay-content ul {
    padding-right: 50px;
  }

  .overlay figure.main figcaption {
    font-size: 30px;
  }

}

@media screen and (min-width: 1024px) {
  .flex-item {
    width: 33.333%;
  }
  .page-content.instruction .pans {
    /* flex-wrap: nowrap; */
  }
  .page-content.instruction .pans figure {
    width: 15%;
  }
}