@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src:  url('/resources/documents/_fonts/open-sans.woff') format('woff'),
       url('/resources/documents/_fonts/open-sans.ttf') format('truetype');
}
@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src:  url('/resources/documents/_fonts/open-sans-300.woff') format('woff'),
       url('/resources/documents/_fonts/open-sans-300.ttf') format('truetype');
}
@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src:  url('/resources/documents/_fonts/open-sans-700.woff') format('woff'),
       url('/resources/documents/_fonts/open-sans-700.ttf') format('truetype');
}

body, html {
  position: relative;
  height:100%;
  width:100%;
  font-family: 'Open Sans', sans-serif;
  font-size: small;
  color: var(--mdc-theme-on-surface);
  letter-spacing: 1px;
  background-color: var(--mdc-theme-background);
  margin:0;
  padding:0;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  min-width: 650px;
}

body {
 display: flex;
 flex-direction: column;
 gap: 50px;
}

#lang-switch {
  display: block;
  text-align: right;
  font-size: 1.2em;
  padding: 10px 20px;
}

#lang-switch a {
  color: var(--mdc-theme-on-primary);
  display: inline-block;
  padding: 0 calc(var(--md-unit) / 2 );
}

header#site-header, footer#site-footer {
  position: relative;
  z-index:1;
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: space-between;
  margin:0 auto;
}

header#site-header {
  display: flex;
  flex-basis: 100px;
  font-size: .8rem;
  padding-top: 50px;
}

header#site-header img {
  max-height: 200px;
  max-width: 100%;
}

#site-main {
   background-color: var(--mdc-theme-surface);
   color: var(--mdc-theme-on-surface);
   flex-grow: 1;
   margin: 0 20px;
}

footer#site-footer {
  background-color: var(--mdc-theme-primary);
  color: var(--mdc-theme-on-primary);
  flex-direction: column;
  gap: 20px;
  padding: 50px 20px;
  width: 100%;
}

footer#site-footer a {
  color: var(--mdc-theme-on-primary);
}

footer#site-footer p {
  font-weight: bold;
  text-align: center;
  font-size: 1.3em;
}

.footer-contact {
  align-items: center;
  display: flex;
  gap: 20px;
  justify-content: center;
  margin: 0 auto;
  padding: 20px 0;
}

.footer-contact-item {
  text-decoration: none;
}

.footer-contact-item span.material-icons {
  font-size: 55px;
  background-color: var(--mdc-theme-on-primary);
  color: var(--mdc-theme-primary);
  border-radius: 50px;
  padding: 10px;
}

#site-footer-bottom {
    display: flex;
    gap: 8px;
    justify-content: center;
    text-align: center;
}
#site-footer-bottom > * {
    position: relative;
    padding-right: var(--md-unit);
}
#site-footer-bottom > *::after {
    border-left: 1px solid;
    content: '';
    display: block;
    height: 1em;
    position: absolute;
    right: calc(var(--md-unit) / 2);
    top: 50%;
    transform: translateY(-50%);
}

#site-footer-bottom > *:last-child::after {
  display: none;
}

.headerdialog {
  color: var(--mdc-theme-on-surface);
}
div#lowbar-wrapper {
    position: fixed;
}

@media screen and (max-width:850px) {
  #site-footer-bottom {
    flex-direction: column;
  }
  #site-footer-bottom > *::after {
    display: none;
  }
}