:root {
  --color-primary-50: hsl(214, 81%, 95%);
  --color-primary-100: hsl(214, 81%, 90%);
  --color-primary-200: hsl(214, 81%, 75%);
  --color-primary-300: hsl(214, 81%, 60%);
  --color-primary-400: hsl(214, 81%, 45%);
  --color-primary-500: hsl(214, 81%, 33%);
  --color-primary-600: hsl(214, 81%, 25%);
  --color-primary-700: hsl(214, 81%, 20%);
  --color-primary-800: hsl(214, 81%, 15%);
  --color-primary-900: hsl(214, 81%, 10%);

  --color-accent-50: hsl(350, 73%, 95%);
  --color-accent-100: hsl(350, 73%, 90%);
  --color-accent-210: hsl(350, 73%, 80%);
  --color-accent-300: hsl(350, 73%, 70%);
  --color-accent-400: hsl(350, 73%, 60%);
  --color-accent-500: hsl(350, 73%, 45%);
  --color-accent-600: hsl(350, 73%, 40%);
  --color-accent-700: hsl(350, 73%, 30%);
  --color-accent-800: hsl(350, 73%, 20%);
  --color-accent-900: hsl(350, 73%, 10%);

  --color-shade-50: hsl(214, 20%, 95%);
  --color-shade-100: hsl(214, 16%, 90%);
  --color-shade-200: hsl(214, 14%, 80%);
  --color-shade-300: hsl(214, 12%, 70%);
  --color-shade-400: hsl(214, 10%, 60%);
  --color-shade-500: hsl(214, 10%, 50%);
  --color-shade-600: hsl(214, 15%, 40%);
  --color-shade-700: hsl(214, 15%, 30%);
  --color-shade-800: hsl(214, 20%, 20%);
  --color-shade-900: hsl(214, 25%, 10%);

  --color-scancon-red-500: #c41f3a;
  --color-scancon-gray-500: #2b2a29;

  --color-fg: var(--color-shade-900);
  --color-bg: #fff;

  --color-a: var(--color-primary-600);
  --color-a-active: var(--color-primary-500);

  --color-h: var(--color-shade-800);
}

* {
  box-sizing: inherit;
}

html,
body {
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}

html {
  box-sizing: border-box;
  font-size: 100%;
}

body {
  font-size: 18px;
  line-height: 1.6;
  font-family: sans-serif;
  color: var(--color-fg);
  background-color: var(--color-bg);
}

img {
  max-width: 100%;
}

a {
  color: var(--color-a);
}

a:hover,
a:focus {
  color: var(--color-a-active);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  line-height: 1;
  color: var(--color-h);
  margin-top: 1rem;
  margin-bottom: 0.5rem;
}

h1 + h2 {
  margin-top: 0;
}

html.isApple .hideOnAppleDevice {
  display: none;
}

.showOnAppleDevice {
  display: none;
}

html.isApple .showOnAppleDevice {
  display: block;
}

/* Nav --- start */
#nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1em;
  padding-bottom: 1em;
  background-color: var(--color-bg);
  position: relative;
}

#nav::after {
  content: " ";
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  box-shadow: 0 0 0.5em 0 var(--color-primary-600);
  opacity: 0.1;
  pointer-events: none;
}

#nav a {
  text-decoration: none;
  color: #000;
}

#nav a:hover,
#nav a:focus {
  color: var(--color-primary-500);
  text-decoration: underline;
}

#nav .left,
#nav .right {
  flex-grow: 1;
}

#nav ul {
  display: flex;
  justify-content: space-between;
  flex-direction: column;
  align-items: flex-end;
  list-style: none;
  padding: 0;
  margin: 0;
}

@media (min-width: 32em) {
  #nav ul {
    flex-direction: row;
    align-items: center;
  }

  #nav ul > li:first-child {
    margin-left: auto;
  }

  #nav ul > li {
    margin-right: 1em;
  }

  #nav ul > li:last-child {
    margin-right: 0;
  }
}
/* Nav --- end */

/* Nav logo --- start */
.logo-wrapper {
  display: block;
  height: 4em;
}

.logo-wrapper img {
  height: 100%;
  width: auto;
}
/* Nav logo --- end */

/* Footer --- start */
#footer {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  background-color: var(--color-bg);
}

#footer .footer-questions-contact,
#footer .footer-buttons {
  flex-grow: 1;
}

#footer .footer-buttons {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

#footer .footer-copyright {
  text-align: center;
  width: 100%;
}
/* Footer --- end */

/* Slideshow --- start */
#slideshow {
  position: relative;
  width: 100%;
  height: 32em;
  background-color: var(--color-shade-500);
}

#slideshow img {
  width: 100%;
  height: 100%;
}

#slideshow img {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#slideshow img + img {
  z-index: 1;
}
/* Slideshow --- end */

/* Card --- start */
.card {
  position: relative;
  padding: 1em 2em;
  background-color: #fff;
  border-radius: 8px;
}

.card::after {
  content: " ";
  border-radius: 8px;
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  box-shadow: 0 1.5em 3em -0.5em var(--color-shade-500);
  opacity: 0.2;
  pointer-events: none;
}
/* Card --- end */

/* Button --- start */
button,
.button {
  --color-button-fg: var(--color-primary-500);
  --color-button-bg: var(--color-primary-100);
  cursor: pointer;
  font-size: inherit;
  padding: 0.5em 1em;
  border-radius: 4px;
  line-height: 1;
  position: relative;
  font-weight: 700;
  color: var(--color-button-fg);
  background-color: var(--color-button-bg);
  border: none;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 0.5em;
}

a.button {
  text-decoration: none;
  color: var(--color-button-fg);
}

.button-square {
  padding: 1em;
}

.button .icon {
  width: 1em;
  height: 1em;
  display: flex;
  justify-content: center;
  align-items: center;
}

button::after,
.button::after {
  content: " ";
  border-radius: 4px;
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  box-shadow: 0 0.5em 1em -0.25em var(--color-button-bg);
  opacity: 0.33;
  pointer-events: none;
}

button:hover,
button:focus,
.button:hover,
.button:focus {
  --color-button-fg: var(--color-primary-50);
  --color-button-bg: var(--color-primary-500);
}

.button.button-accent {
  --color-button-bg: var(--color-accent-50);
  --color-button-fg: var(--color-accent-500);
}

button.button-accent:hover,
button.button-accent:focus,
.button.button-accent:hover,
.button.button-accent:focus {
  --color-button-fg: var(--color-accent-50);
  --color-button-bg: var(--color-accent-600);
}

/* Button --- end */

/* Padded --- start */
.padded {
  padding: 2em;
}

@media (min-width: 48em) {
  .padded {
    padding: 2em 8em;
  }
}
/* Padded --- end */

/* responsive-split --- start */
.responsive-split {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 1em;
}

.responsive-split > :first-child,
.responsive-split > :last-child {
  flex-grow: 1;
  width: 100%;
}

@media (min-width: 80em) {
  .responsive-split {
    /* padding: 2em 8em; */
    flex-direction: row;
    justify-content: space-between;
  }
}
/* responsive-split --- end */

main {
  padding: 2rem;
  text-align: center;
}

main header {
  position: relative;
}

main > header {
  background-color: var(--color-shade-50);
}

@media (min-width: 48em) {
  main > header {
    text-align: left;
  }
}

/* Menu logo and intro text --- start */
#menu-logo {
  display: block;
  margin-top: -8em;
  margin-bottom: 2em;
  padding: 4em;
  width: 100%;
  z-index: 2;
}

/* #menu-logo:hover,
#menu-logo:focus {
  opacity: 0.9;
} */

#menu-logo::after {
  box-shadow: 0 1.5em 3em -0.5em var(--color-primary-700);
}

#menu-logo img {
  display: block;
  margin: auto;
  width: 100%;
  height: auto;
  max-width: 24em;
}

#intro-text {
  position: relative;
  width: 100%;
  text-align: center;
  z-index: 2;
}

@media (min-width: 48em) {
  #menu-logo {
    /* margin-top: 0; */
    margin-bottom: 0;
    width: 50%;
    margin-left: auto;
  }

  #intro-text {
    position: absolute;
    top: 2em;
    left: 0;
    text-align: left;
    width: 50%;
  }

  #intro-text > h1 {
    color: var(--color-bg);
    text-shadow: 0 0em 0.5em #000;
  }

  #intro-text > h2 {
    margin-top: 2rem;
  }
}
/* Menu logo and intro text --- end */

#terms-language-picker {
  display: flex;
  flex-direction: column;
}

#terms-language-picker p,
#terms-language-picker a {
  display: block;
  margin-top: 0;
  margin-bottom: 0;
}

.bg {
  background-color: var(--color-shade-50);
}

/* Form group --- start */
.form-group {
  display: grid;
  grid-template-columns: 1fr;
  padding: 1em 0;
}
@media (min-width: 32em) {
  .form-group {
    grid-template-columns: 1fr 3fr;
  }
}

.form-group input,
.form-group textarea {
  font-size: inherit;
  padding: 0.25em 0.5em;
  border-radius: 4px;
  border-width: 1px;
  border-style: solid;
  border-color: var(--color-shade-500);
  color: inherit;
  font-family: monospace;
  outline-width: 0px;
  outline-style: solid;
  outline-color: var(--color-shade-500);
  outline-offset: 0px;
  transition-property: border, outline;
  transition-duration: 50ms;
  transition-timing-function: ease-in-out;
  width: 100%;
  max-width: 100%;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  box-shadow: none;
}

.form-group textarea {
  resize: vertical;
  min-height: 2em;
  height: 4em;
  max-height: 20em;
}

.form-group input:hover,
.form-group input:focus,
.form-group textarea:hover,
.form-group textarea:focus {
  border-color: var(--color-primary-500);
  outline-width: 2px;
  outline-color: var(--color-primary-500);
}

.form-group.form-group-submit {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  width: 100%;
}
/* Form group --- end */

/* Contact section --- start */
#contact-section.padded {
  padding-top: 4em;
  padding-bottom: 4em;
}

#contact-section dl,
#contact-section dt,
#contact-section dd {
  margin: 0;
  padding: 0;
}

#contact-section dl {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 1em;
}

#contact-section dt {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  flex-direction: row;
  font-weight: 700;
}

#contact-section dt .icon {
  border-radius: 100%;
  width: 3em;
  height: 3em;
  line-height: 1;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: var(--color-primary-500);
  background-color: var(--color-primary-100);
}

#contact-section dt .text {
  flex-grow: 1;
  margin-left: 0.5em;
  display: none;
}

@media (min-width: 48em) {
  #contact-section dt .text {
    display: block;
  }
}

#contact-section dl > div {
  flex-grow: 1;
  width: 100%;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  flex-wrap: no-wrap;
  line-height: 1;
  gap: 0.5em;
}
/* Contact section --- end */

/* Table --- start */
table {
  border-collapse: collapse;
  margin-bottom: 10px;
  width: 100%;
  table-layout: fixed;
}

table caption {
  text-align: left;
}

td,
th {
  padding: 6px;
  text-align: left;
  vertical-align: top;
  word-wrap: break-word;
}

thead {
  border-bottom: 1px solid #dbdbdb;
  border-bottom: 1px solid var(--color-shade-500);
}

tfoot {
  border-top: 1px solid #dbdbdb;
  border-top: 1px solid var(--color-shade-500);
}

tbody tr:nth-child(even) {
  background-color: #efefef;
}
/* Table --- end */

.styled-text ul {
  list-style: none;
}

.styled-text ul li::before {
  content: " ";
  background-color: var(--color-primary-500);
  font-weight: bold;
  display: inline-block;
  width: 0.5em;
  height: 0.5em;
  border-radius: 100%;
  margin-right: 0.5em;
  margin-left: -1em;
}

.styled-text.accent ul li::before {
  background-color: var(--color-accent-500);
}
