@charset "UTF-8";
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Lato:wght@300;400;700&display=swap');
@font-face {
    font-family: 'MyFont';
    src: url('/assets/fonts/MyFont.otf') format('otf'),
         url('/assets/fonts/MyFont.otf') format('otf');
    font-weight: normal;
    font-style: normal;
}

html {
  padding: 0;
  margin: 0;
  background-color: #ddd;
  color: #000;
  font-family: 'Lato', sans-serif;
}

body {
  padding: 0;
  margin: 0;
  background-color: #bfb8b8;
    background-repeat: no-repeat;
    background-size: cover;        /* or contain */
    background-position: center;
  color: #000;
  font-family: 'Lato', sans-serif;
}

div.top {
  padding: 2% 0 0 2%;
  height: 700px;
  line-height: 50px;
  text-align: left;
  transition-duration: 300ms;
  transition-property: height, line-height;
  position: relative;
  z-index: 1000;

  display: flex;               /* FIX */
  flex-direction: row;         /* FIX */

  align-items: flex-start;

  background-image: url('/assets/site.jpg');
  background-repeat: no-repeat;
  background-position: center top;
  background-size: cover;
  gap: 10px;
}


div.top > *:last-child {
    margin-top: 50px;
    margin-left: 40px;
}


main {
    min-height: 100vh;
    transition: margin-top 300ms ease, min-height 300ms ease;
}



.left-side {
    display: flex;
    align-items: center;
}

.site-logo {
    height: 80px;   /* adjust as needed */
    width: auto;
}

.top-title-row img {
    width: auto;
    height: auto !important;
    max-width: 600px;
    object-fit: contain !important;
}

.top-title-row {
    width: 100%;
    padding: 10px 0 0 0;
    text-align: center;
}




.top-row {
  width: 100%;
  justify-content: space-between; /* nav left, logo right */
}

.site-title {
    font-family: "MyFont", sans-serif;
    font-size: 48px;
    text-align: left;
    margin: 25px 0 0 0;
    color: #ffffff;
}

.top-header {
    height: 100px; /* adjust as needed */
    background-size: cover;
    background-position: center;
    position: relative;
    z-index: 2; /* sits behind the subtitle */
}

.top-menu-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}


div.top img {
  position: relative;
  z-index: 1001;
  height: 180px;
  transition-duration: 300ms;
  
}


div.top > div.language-selector a {
  color: #ffffff !important;
  font-weight: 200;
}

div.top > div.language-selector a:hover {
  color: #ededed !important;
}

div.top > div.language-selector a:active {
  color: #ededed !important;
}

/*Scrolluje wybór języka*/
div.top.scrolled .language-selector {
  transform: translateY(-50px) translateX(-70px);
}



/* Dodaje dwie klasy obrazu do nagłówka */

.logo-main {
    height: 180px;
    transition: transform 300ms ease, height 300ms ease;
}
.logo-symbol {
    height: 120px;
    transition: opacity 300ms ease, transform 300ms ease;
}

/*Scrolluje oba obrazki w różny sposób*/

div.top.scrolled .logo-main {
    height: 120px;
    transform: translateY(-20px) translateX(10px);
}

div.top.scrolled .logo-symbol {;
    transform: translateY(-30px) translateX(-60px) scale(0.6);
}


div.top.scrolled {
  height: 70px;
  line-height: 35px;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  background-position: center top;
}


div.top.scrolled nav {
    transform: scale(0.95) translateY(-25px);
    transition: transform 300ms ease;
}

div.top.scrolled .site-title {
    transform: scale(0.7) translateY(0px);
    transition: transform 300ms ease;
}


div.top.scrolled > nav > div > a {
  height: 50px;
  line-height: 50px;
  
}

div.top.scrolled > nav > div > a:after {
  top: 10px;
}

div.top.scrolled > nav > div > div {
  top: 50px;
}

nav {
  display: inline-block;
  vertical-align: top;
  font-size: 22px;
  font-weight: 600;
  margin-left: 0px;
}

nav a {
  color: #ffffff;
}

nav a:hover {
  color: #3a2c26;
}

nav .navbtn {
  position: relative;
  display: inline-block;
  padding: 450 5px 0 25px;
   padding: 0.4rem 0.4rem;
}

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: #bfb8b8;
  line-height: 36px;
  top: 70px;
  right: -15px;
  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: #bfb8b8;
}

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: #ffffff !important;
}

div.active > div {
  display: block !important;
}

a {
  color: #927f77;
  text-decoration: none;
}

a:active {
  color: #927f77;
}

a:hover {
  color: #3a2c26;
}


main.scrolled {
  min-height: calc(100vh - 52px);
  margin-top: 70px;
}

article {
  margin-bottom: 120px;
}

article > section {
  margin: 40px auto 0 auto;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  width: 70%;
  background-color: #ededed;
  padding: 10px 40px 10px 40px;
  border-radius: 12px; 
  z-index: 5000
}


article > section:first-child {
  margin-top: 0;
}

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 > 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);

}

article > section.three-photos > img:nth-child(3) {
  transform: rotate(5deg);
}


article > header {
  position: relative;
  z-index: 1; /* behind subtitle */
  height: 150px;
  background-position: center;
  background-size: cover;
  text-align: center;
  background-blend-mode: normal;
  color: #393939;
  text-shadow: 0px 1px 4px rgba(0, 0, 0, 0.8);

}

article > header > h1 {
  display: inline-block;
  padding: 10px;
  font-size: 48px;
}

footer {
  background-color: #393939;
  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;
  }
  
  .top {
    display: flex;
    align-items: center;      /* vertical alignment */
    justify-content: space-between;
    padding: 0 20px;
}

.center-side {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;               /* gives center the main space */
}

.right-side {
    display: flex;
    align-items: center;
    padding-right: 35px;
    padding-left: 135px;
}
  
  div.top {
    line-height: initial;
    position: sticky;
  }
  
  div.top {
    transition:
        height 300ms ease,
        line-height 300ms ease,
        padding 300ms ease,
        background 300ms ease,
        gap 300ms ease;
}

div.top img {
    transition:
        height 300ms ease,
        margin 300ms ease,
        transform 300ms ease;
}




nav a {
    transition:
        height 300ms ease,
        line-height 300ms ease,
        padding 300ms ease,
        color 200ms ease;
}

nav .submenu {
    transition:
        top 300ms ease,
        opacity 300ms ease;
}
  
  div.top > .hamburger {
    display: block;
    position: absolute;
    top: 20px;
    left: 0px;
    cursor: pointer;
    width: 0px;
    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: 0px;
    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: 150px;
    margin-left: 60px;
  }
  

  
  div.top nav {
    position: fixed;
    top: 0;
    left: -100%;
    bottom: 0;
    width: 80%;
    max-width: 400px;
    min-width: 300px;
    background-color: #ffffff;
    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;
    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: #ffffff;
  }
  div.top nav .submenu {
    position: relative;
    top: initial;
    right: initial;
    background-color: #bfb8b8;
    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;
  }


}
