/* font-family: 'Roboto', sans-serif; */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Roboto", sans-serif;
}

:root {
  --dividerHeight: 300px;
  --dividerTriangleHeight: 110px;
  --galleryImageHeight: 200px;
  --headerHeight: 680px;
  --sectionMinWidth: 850px;
  --navWidth: 50%;
  --headerTriangleHeight: 120px;
}

html {
  font-size: 10px;
}

body {
  overflow-x: hidden;
}

h2 {
  text-transform: uppercase;
  text-align: center;
  font-size: 4rem;
  margin: 20px 0;
  font-weight: normal;
}

h2 span {
  color: #dd9600;
}

figure {
  text-align: center;
  font-size: 2rem;
  margin: 20px 0;
  font-weight: normal;
  width: 40%;
  flex-grow: 1;
}

figure img {
  width: calc(var(--sectionMinWidth)/4);
}

figure figcaption {
  text-transform: uppercase;
  text-align: center;
  font-size: 3rem;
  margin: 20px 0;
  font-weight: normal;
  color: #dd9600;
}

figure ul li {
  text-align: center;
  list-style: none;
  font-weight: 100;
  line-height: 160%;
}

figure ul li a {
  color: black;
  text-decoration: none;
}

figure p {
  font-weight: 100;
  width: 85%;
  margin: 0 auto;
}

/* Nawigacja */

nav {
  position: sticky;
  top: 0;
  display: flex;
  justify-content: flex-end;
  background-color: #fff;
  z-index: 10;
}

nav ul {
  width: var(--navWidth);
  display: flex;
}

nav ul li {
  padding: 20px 30px;
  list-style: none;
  border-bottom: 1px solid #fff;
  flex-grow: 1;
  text-align: center;
}

nav ul li {
  text-decoration: none;
  font-size: 2.5rem;
  font-weight: 100;
  color: #111;
  cursor: pointer;
}

nav ul li.active {
  border-bottom: 1px solid black;
}

nav ul li:hover {
  border-bottom: 1px solid #000;
}

/* Banner i Header / Strona główna */

header {
  position: relative;
  height: var(--headerHeight);
  background-image: url("img/BannerImg.jpg");
  background-size: cover;
  background-position: center center;
}

header h1 {
  position: absolute;
  top: 40%;
  left: 0;
  right: 0;
  transform: translate(0, -50%);
  text-align: center;
  text-transform: uppercase;
  color: #fff;
  font-size: 10rem;
  font-weight: 700;
  letter-spacing: 3px;
}

header h1 span {
  display: block;
  text-transform: capitalize;
  font-size: 4rem;
  font-weight: 100;
  letter-spacing: -1px;
}

header div.bannerTriangle {
  position: absolute;
  bottom: 0;
  border-left: 50vw solid transparent;
  border-right: 50vw solid transparent;
  border-bottom: var(--headerTriangleHeight) solid #fff;
}

/* Sekcja - O NAS */

main section.aboutUs {
  width: 60%;
  min-width: var(--sectionMinWidth);
  margin: 0 auto;
}

main section.aboutUs h2 span {
  color: #dd9600;
}

main section.aboutUs p {
  width: 70%;
  margin: 0 auto;
  text-align: center;
  font-size: 1.7rem;
  font-weight: 100;
  line-height: 180%;
}

/* Divider */

div.divider {
  position: relative;
  height: var(--dividerHeight);
  margin: 5% 0 0 0;
}

.triangleLeft {
  border-top: var(--dividerTriangleHeight) solid #fff;
  border-right: 50vw solid transparent;
}

.triangleRight {
  right: 0;
  border-top: var(--dividerTriangleHeight) solid #fff;
  border-left: 50vw solid transparent;
}

.triangleBottom {
  bottom: 0;
  border-left: 50vw solid transparent;
  border-right: 50vw solid transparent;
  border-bottom: var(--dividerTriangleHeight) solid #fff;
}

.triangle {
  position: absolute;
}

div.dividerImg {
  width: 100vw;
  height: var(--dividerHeight);
  background-image: url("img/divider.jpg");
  background-position: center;
  background-size: cover;
}

/* Sekcja - Co oferujemy */

main section.ourOfert h2 {
  font-size: 4rem;
  margin: 20px 0 40px 0;
  text-transform: uppercase;
  text-align: center;
  font-weight: normal;
}

main section.ourOfert h2 span {
  color: #dd9600;
}

main section.ourOfert div.container,
main section.contactAndInfo div.container {
  width: 40%;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  flex-grow: 1;
  margin: 0 auto;
  min-width: var(--sectionMinWidth);
}

/* Sekcja - Galeria */

section.gallery div.galleryContainer {
  display: flex;
  justify-content: space-around;
  width: 50%;
  margin: 0 auto;
}

section.gallery .galleryContainer .container {
  display: flex;
  flex-direction: column;
  width: 30%;
}

section.gallery .container div {
  width: 100%;
  height: var(--galleryImageHeight);
  margin: calc(var(--galleryImageHeight)/15) 0;
  background-position: center;
  background-size: cover;
}

section.gallery .container .bigger {
  height: calc(var(--galleryImageHeight)*2);
}

footer {
  background-color: #222;
  padding: 10px 50px;
}

footer p {
  color: #ccc;
  text-align: center;
}

.allPhoto {
  display: none;
}


section.modalWrap.active {
  position: fixed;
  z-index: 100;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, .5);
}

.closePopUp,
.arrows {
  display: none;
}

section.modalWrap.active .viewPhoto {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60%;
  height: 60%;
  background-image: url("img/Img1.jpg");
  background-repeat: no-repeat;
  background-size: cover;
}

section.modalWrap.active .arrows {
  display: block;
  position: absolute;
  transform: translateY(-50%);
  /* width: 5%; */
  top: 50%;
  text-align: center;
  font-size: 4rem;
  color: white;
  border-radius: 50%;
  padding: 5px;
  transition: .3s;
}

section.modalWrap.active .closePopUp {
  display: block;
  position: absolute;
  top: -5%;
  right: -5%;
  font-size: 4rem;
  color: white;
}

section.modalWrap.active .arrows:hover {
  color: #dd9600;
}

section.modalWrap.active .turnLeft {
  left: -10%;
}

section.modalWrap.active .turnRight {
  right: -10%;
}

@media (max-width: 1600px) {
  :root {
    --dividerHeight: 280px;
    --dividerTriangleHeight: 110px;
    --galleryImageHeight: 150px;
    --headerHeight: 540px;
    --sectionMinWidth: 750px;
    --navWidth: 70%;
    --headerTriangleHeight: 105px;
  }
}

@media (max-width: 1200px) {
  html {
    font-size: 8.5px;
  }

  :root {
    --dividerHeight: 190px;
    --dividerTriangleHeight: 60px;
    --headerTriangleHeight: 60px;
    --galleryImageHeight: 100px;
    --headerHeight: 400px;
    --sectionMinWidth: 100%;
    --navWidth: 100%;
  }

  header h1 {
    font-size: 7rem;
  }

  section.modalWrap.active {
    width: 100%;
    height: 100%;
  }

  section.modalWrap.active .viewPhoto {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 50%;
    background-image: url("img/Img1.jpg");
    background-repeat: no-repeat;
    background-size: contain;
  }

  /* section.modalWrap.active .turnLeft {
    top: 20%;
    left: -12%;
    transform: translateY(-25%);
  }

  section.modalWrap.active .turnRight {
    top: 20%;
    transform: translateY(-25%);
    right: -12%;
  } */

  section.modalWrap.active .arrows {
    font-size: 3rem;
    top: 20%;
    transform: translateY(-25%);
  }

  section.modalWrap.active .arrows:hover {
    color: white;
  }

  section.modalWrap.active .turnLeft {
    left: -10%;
  }

  section.modalWrap.active .turnRight {
    right: -10%;
  }

  section.modalWrap.active .closePopUp {
    top: -10%;
    right: -5%;
    font-size: 3rem;
  }
}

section.modalWrap.active .closePopUp:hover {
  color: white;
}


@media (max-width: 720px) {

  :root {
    --dividerHeight: 160px;
    --dividerTriangleHeight: 40px;
    --headerTriangleHeight: 40px;
    --galleryImageHeight: 80px;
    --headerHeight: 350px;
  }

  nav ul li {
    padding: 20px 20px;
  }

  nav ul li a {
    font-size: 2rem;
  }

}

@media (max-width: 530px) {

  nav {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
  }

  nav ul {
    display: none;
    flex-direction: column;
    color: #111;
  }

  nav ul.active {
    display: flex;
    border: none;
  }

  nav ul.active li {
    border: none;
  }

  nav ul li a {
    font-size: 3rem;
  }

  nav div.hamburgerMenu {
    width: 65px;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    padding: 5px 10px;
  }

  nav div.hamburgerMenu div {
    width: 100%;
    height: 5px;
    background-color: #333;
    border-radius: 2px;
    transition: all .5s ease;
    margin: 4px 0;
  }

  nav div.active div:nth-child(1) {
    transform: rotate(35deg);
    transform-origin: 0%;
  }

  nav div.active div:nth-child(2) {
    background-color: #fff;
  }

  nav div.active div:nth-child(3) {
    transform: rotate(-35deg);
    transform-origin: 0%;
  }

  main section.ourOfert h2 {
    font-size: 3.3rem;
    margin: 20px 0 20px 0;
  }


  main section.ourOfert div.container,
  main section.contactAndInfo div.container {
    width: 80%;
    flex-direction: column;
    align-items: center;
  }

  main section.ourOfert div.container,
  main section.contactAndInfo div.container div.figure {
    margin: 20px 0;
  }
}

@media (max-width: 420px) {
  nav ul li a {
    font-size: 1.2rem;
    padding: 0;
  }

  header h1 {
    font-size: 5.5rem;
    letter-spacing: 2px;
  }

  header h1 span {
    font-size: 2.5rem;
    letter-spacing: -1px;
  }

  /* Sekcja - Co oferujemy */

  main section.ourOfert h2 {
    font-size: 4rem;
    margin: 20px 0 40px 0;
    text-transform: uppercase;
  }

  main section.ourOfert div.container,
  main section.contactAndInfo div.container {
    width: 80%;
    display: flex;
    flex-direction: column;
  }

  /* Sekcja - Galeria */

  section.gallery div.galleryContainer {
    width: 80%;
  }
}