@charset "UTF-8";
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Lato:wght@300;400;700&display=swap');
html {
  padding: 0;
  margin: 0;
  background-color: #ddd;
  color: #333;
  font-family: 'Lato', sans-serif;
}

body {
  padding: 0;
  margin: 0;
  background-color: #ddd;
  color: #333;
  font-family: 'Lato', sans-serif;
}

div.top {
  height: 100px;
  line-height: 100px;
  text-align: center;
  box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.1);
  border-bottom: solid 2px #aaa;
  background: #f5f5f5;
  transition-duration: 300ms;
  transition-property: height, line-height;
  z-index: 1000;
}

div.top > .hamburger {
  display: none;
}

div.top img {
  vertical-align: middle;
  margin-top: 20px;
  height: 163px;
  transition-duration: 300ms;
}

div.top > div.language-selector {
  display: inline-block;
  vertical-align: top;
  line-height: 30px;
}

div.top > div.language-selector a {
  color: #333;
}

div.top > div.language-selector a:hover {
  color: #3677b4;
}

div.top.scrolled {
  height: 50px;
  line-height: 50px;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
}

div.top.scrolled img {
  vertical-align: middle;
  margin-top: 20px;
  transform: scale(0.5) translateY(-90px);
}

div.top.scrolled > nav > div > a {
  height: 50px;
}

div.top.scrolled > nav > div > a:after {
  top: 10px;
}

div.top.scrolled > nav > div > div {
  top: 40px;
}

nav {
  display: inline-block;
  vertical-align: top;
  font-size: 18px;
  font-weight: 600;
  margin-left: 60px;
}

nav a {
  color: #333;
}

nav a:hover {
  color: #3677b4;
}

nav .navbtn {
  position: relative;
  display: inline-block;
  padding: 0 5px 0 5px;
}

nav .navbtn:hover > div {
  visibility: unset;
  opacity: 1;
  transition-delay: 0ms;
}

nav .navbtn:not(.last) > div {
  transition-delay: 0ms;
}

nav > .navbtn > a {
  height: 100px;
  display: block;
}

nav .submenu {
  position: absolute;
  background: #f8f8f8;
  line-height: 36px;
  top: 70px;
  right: 0;
  box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.1);
  visibility: hidden;
  opacity: 0;
  transition-delay: 500ms;
  transition-property: visibility, opacity;
}

nav .submenu ~ a {
  margin-right: 20px;
}

nav .submenu ~ a::after {
  content: " ";
  width: 28px;
  height: 28px;
  background-size: 100% 200%;
  background-position: 0 -0%;
  background-image: url("/assets/expand.png");
  position: absolute;
  top: 36px;
  font-size: 28px;
  right: 0px;
  transition-duration: 300ms;
  transition-property: top;
}

nav .submenu ~ a:hover::after {
  background-position: 0 -100%;
}

nav .submenu:hover ~ a {
  color: #3677b4;
}

nav .submenu:hover ~ a::after {
  background-position: 0 -100%;
}

nav .submenu a {
  display: block;
  white-space: nowrap;
  margin: 0 15px 0 15px;
  position: relative;
}

nav .layer-1, nav .layer-2 {
  top: 0px;
  right: 100%;
}

nav .layer-1 > .navbtn, nav .layer-2 > .navbtn {
  width: calc(100% - 10px);
}

nav .layer-1 ~ a, nav .layer-2 ~ a {
  padding-left: 10px;
}

nav .layer-1 ~ a::after, nav .layer-2 ~ a::after {
  width: 24px;
  height: 24px;
  background-image: url("/assets/expand-left.png");
  content: " ";
  position: absolute;
  top: 5px;
  font-size: 20px;
  left: -19px;
  right: unset;
}

nav > div.active > a {
  color: #3677b4 !important;
}

div.active > div {
  display: block !important;
}

a {
  color: #3677b4;
  text-decoration: none;
}

a:active {
  color: #3677b4;
}

a:hover {
  color: #3651b4;
}

main {
  min-height: calc(100vh - 133px);
}

main.scrolled {
  min-height: calc(100vh - 52px);
  margin-top: 52px;
}

article {
  margin-bottom: 120px;
}

article > section {
  margin: 20px auto;
  width: 60%;
  background-color: #F5F5F5;
  box-shadow: 0px 0px 8px rgba(0, 0, 0, 0.4);
  padding: 30px 40px 30px 40px;
}

article > section.nobg {
  background-color: unset;
  box-shadow: unset;
  padding: unset;
}

.links {
    padding-top: 5px;
    padding-bottom: 5px;
    font-family: 'Abril Fatface', serif;
    font-family: 'Bebas Neue', sans-serif;
}

.links a {
    transform: scale(1.5);
}

article > section:nth-child(2) {
  margin: -60px auto 0px auto;
}

article > img {
  width: 40%;
  margin: 20px auto 0 auto;
  display: block;
  background-color: #fff;
  padding: 15px;
  box-shadow: 0px 0px 8px rgba(0, 0, 0, 0.4);
}

article > section.three-photos {
  background-color: transparent;
  box-shadow: none;
  padding: unset;
  margin-top: 60px;
}

article > section.three-photos > img {
  max-width: 30%;
  background-color: #fff;
  padding: 10px;
  box-shadow: 0px 0px 8px rgba(0, 0, 0, 0.4);
  position: relative;
}

article > section.three-photos > img:nth-child(1) {
  transform: rotate(-5deg);
}

article > section.three-photos > img:nth-child(2) {
  transform: scale(1.2) rotate(1deg) translateY(-10px);
  z-index: 1;
}

article > section.three-photos > img:nth-child(3) {
  transform: rotate(5deg);
}

article > header {
  height: 500px;
  background-position: center;
  background-size: cover;
  text-align: center;
  background-blend-mode: multiply;
  background-color: #aaa;
  color: #eee;
  text-shadow: 0px 1px 4px rgba(0, 0, 0, 0.8);
  border-bottom: solid 2px #aaa;
}

article > header > h1 {
  border: solid 3px #eee;
  display: inline-block;
  margin-top: 150px;
  padding: 20px;
  font-size: 48px;
}

footer {
  background-color: #f5f5f5;
  border-top: solid 2px #aaa;
  padding: 5px;
  text-align: right;
  height: 100%;
}

.columns {
  display: flex;
}

.columns > * {
  flex: 1;
  margin: 0 20px 0 20px;
  width: 100%;
}

.columns > * > img {
  max-width: 100%;
  flex: 0;
  object-fit: contain;
}

.columns > * > img.circle {
  width: 80%;
  height: 0;
  padding-bottom: 80%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  margin: 0 auto;
}

.columns > img {
  object-fit: contain;
}

.centered {
  text-align: center;
}

.vertically-centered > * {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.align-top {
  vertical-align: top;
  align-items: flex-start;
}

.contain > img {
  object-fit: contain;
  width: 100%;
}

.adaptive {
  display: flex;
  flex-wrap: wrap;
  margin: 0;
  list-style: none;
  padding: 0;
}

.adaptive > li {
  height: 300px;
  flex-grow: 1;
  margin: 0 2px 0 2px;
  padding: 0;
}

.adaptive > li:last-child {
  flex-grow: 10;
}

.adaptive > li > img {
  max-height: 100%;
  min-width: 100%;
  object-fit: cover;
  vertical-align: bottom;
}

img.circle {
  border-radius: 50%;
}

.max-5 {
  flex-flow: wrap;
}

.max-5 > * {
  flex-basis: 15%;
  flex-grow: 0;
}

.squared > img {
  width: 100%;
  padding-bottom: 100%;
  height: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

h3 {
  color: var(--main-color);
}

h5 {
  color: var(--main-color);
}

.side-small {
  flex: 0.5;
}

.side-small * {
  width: 100%;
}

.msg-box {
  padding: 10px;
  border: solid 2px #333;
  margin: 5px;
}

.msg-box.success {
  border-color: #289d28;
  background-color: #8fd88f;
}

.msg-box.failure {
  border-color: #9d2828;
  background-color: #d88f8f;
}

form div {
  position: relative;
  margin: 15px 0 15px 0;
}

form input[type="text"] {
  background-color: inherit;
  border: solid 1px #333;
  border-radius: 5px;
  padding: 10px;
  outline: none;
}

form input[type="text"] ~ label {
  background-color: #F5F5F5;
  position: absolute;
  left: 10px;
  top: 10px;
  font-size: 14px;
  transition-duration: 200ms;
}

form input[type="text"]:focus ~ label, form input[type="text"]:valid ~ label {
  top: -7px;
  font-size: 12px;
}

form hr {
  border: none;
  border-bottom: solid 1px #333;
}

form textarea {
  width: calc(100% - 30px);
  border: solid 1px #333;
  border-radius: 5px;
  padding: 10px;
  resize: none;
}

form input[type="submit"] {
  border: solid 1px #333;
  border-radius: 5px;
  padding: 10px;
  margin: 10px 0;
}

/* Gallery */

.gallery-row {
  width: 100%;
}

.gallery-row > img {
  height: 0;
  background-size: cover;
  background-position: center;
  margin: 5px;
  cursor: pointer;
}

#picture-preview {
  opacity: 0;
  pointer-events: none;
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  background-color: rgba(36, 41, 51, 0.8);
  transition-duration: 600ms;
  z-index: 10000;
  cursor: pointer;
}

#picture-preview.active {
  opacity: 1;
  pointer-events: unset;
}

#picture-preview img {
  max-width: 80%;
  max-height: 80%;
  background-color: #f8f8f8;
  padding: 10px;
  box-shadow: 0px 4px 10px 2px rgba(0, 0, 0, 0.6);
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

@media only screen and (max-width: 1024px) {
  iframe {
      width: 100%;
  }
  .columns {
    flex-direction: column;
  }
  .columns.forced {
    flex-direction: row;
  }
  .columns.forced > div {
      margin: 0;
  }
  .columns.forced > .circle {
    width: 90%;
    padding-bottom: 90%;
  }
  .columns > * {
    flex: 1;
    /*margin: 20px;*/
    width: calc(100% - 40px);
  }
  a:hover {
    color: initial;
  }
  div.top {
    line-height: initial;
  }
  div.top > .hamburger {
    display: block;
    position: absolute;
    top: 20px;
    left: 20px;
    cursor: pointer;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: transparent;
    transition-property: background-color, top, left;
    transition-duration: 100ms;
  }
  div.top > .hamburger:active {
    background-color: rgba(0, 0, 0, 0.1);
  }
  div.top > .hamburger > div {
    content: "";
    display: block;
    transition-property: transform;
    transition-duration: 600ms;
    position: absolute;
    width: 50px;
    height: 4px;
    background-color: #575757;
    border-radius: 6px;
    top: 23px;
  }
  div.top > .hamburger::after {
    content: "";
    display: block;
    transition-property: transform;
    transition-duration: 600ms;
    position: absolute;
    width: 50px;
    height: 4px;
    background-color: #575757;
    border-radius: 6px;
    top: 10px;
  }
  div.top > .hamburger::before {
    content: "";
    display: block;
    transition-property: transform;
    transition-duration: 600ms;
    position: absolute;
    width: 50px;
    height: 4px;
    background-color: #575757;
    border-radius: 6px;
    bottom: 10px;
    transform: scale(1);
  }
  div.top > a > img {
    position: relative;
    height: 120px;
    z-index: 999;
  }
  div.top.active > a > img {
    height: 80px;
  }
  div.top > div.language-selector {
    display: none;
    position: absolute;
    left: -200px;
  }
  div.top nav {
    position: fixed;
    top: 0;
    left: -100%;
    bottom: 0;
    width: 80%;
    max-width: 400px;
    min-width: 300px;
    background-color: #f8f8f8;
    margin-left: 0;
    line-height: initial;
    height: 100%;
    margin: 100px 0 0 0;
    height: calc(100% - 100px);
    overflow-y: scroll;
    transition-property: left, margin-top;
    transition-duration: 300ms;
  }
  div.top nav.active {
    left: 0;
  }
  div.top nav.active ~ .hamburger > div {
    transform: rotate(45deg);
  }
  div.top nav.active ~ .hamburger::after {
    transform: rotate(-45deg) translate(-8px, 8px);
  }
  div.top nav.active ~ .hamburger::before {
    transform: scale(0);
  }
  div.top nav .navbtn {
    text-align: left;
    display: flex;
    flex-direction: column-reverse;
    padding: unset;
    width: unset;
  }
  div.top nav .navbtn > a {
    height: unset;
    margin-right: 0;
    padding: 20px;
  }
  div.top nav .navbtn > .submenu ~ a::after {
    content: "⌄";
    position: absolute;
    top: 0px;
    font-size: 28px;
    right: 0;
    padding-left: 15px;
    border-left: solid 2px #e6e6e6;
    height: 61px;
    width: 28px;
    left: unset;
    pointer-events: none;
  }
  div.top nav .navbtn.active > a {
    color: #3677b4;
  }
  div.top nav .submenu {
    position: relative;
    top: initial;
    right: initial;
    background-color: #f5f5f5;
    box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.1) inset;
    visibility: unset;
    opacity: 1;
    display: none;
  }
  div.top nav .submenu > .navbtn > a {
    line-height: 36px;
    height: 36px;
    padding: 0;
  }
  div.top nav .submenu > .navbtn > .submenu ~ a::after {
    height: 36px;
    line-height: 12px;
  }
  div.top nav .layer-1 {
    background-color: #eaeaea;
  }
  div.top nav .layer-2 {
    background-color: #d0cdcd;
  }
  div.top.scrolled .hamburger {
    top: 0;
    left: 5px;
  }
  div.top.scrolled > nav {
    margin-top: 50px;
    height: calc(100% - 50px);
  }
  div.top.scrolled > nav div a {
    height: unset;
  }
  div.top.scrolled > nav > div > div {
    top: unset;
  }
  div.top.scrolled > a > img {
    vertical-align: middle;
    transform: scale(0.5) translateY(-70px);
  }
  div.active > div {
    height: 100%;
  }
  div.top.active > img {
    vertical-align: middle;
    transform: scale(0.6) translateY(-60px);
  }
  article {
    margin-bottom: 20px;
  }
  article > header > h1 {
    width: 70%;
    font-size: 9vw;
  }
  article > section {
    width: calc(100% - 40px);
    padding: 20px;
    margin: 20px auto;
  }
  article > section:nth-child(2) {
    margin: 0px auto 20px auto;
  }


}
