/* style.css */
:root {
  font-size: 1.2rem;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Ropa Sans", sans-serif;
  font-weight: 500;
  font-style: normal;
  background-color: #fff;
  overflow-x: hidden;
}

html {
  scroll-behavior: smooth;
  overflow-y: scroll;
}

/* Responsive text container */
.text-wrapper {
  width: 200%;
  height: 100%;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.responsive-text {
  width: 98%;
  line-height: 1.4;
  text-align: center;
  transform-origin: center center;
}

/* Sekcje główne */
#wakacyjnie,
#o_pracowni,
#warsztaty,
#cennik,
#rekodziela {
  height: 100vh;
  width: 100%;
  display: flex;
  margin-left: auto;
  margin-right: auto;
}
#wakacyjnie {
    background-image: url('./img/warsztaty/warsztaty_2025.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 100vh; 
}
#cennik {
  max-width: 1024px;
  margin-top: 5vh;
  margin-bottom: 5vh;
}
#o_pracowni {
  padding-top: 5vh;
}
/* Kolumny */
.slider-column-o_pracowni {
  flex: 4;
  position: relative;
  overflow: hidden;
  background-size: cover;
  background-position: center;
}

.slider-column-o_pracowni::after {
  content: '';
  display: block;
  padding-top: 100%;
}

.text-section-o_pracowni {
  flex: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: justify;
  background-color: rgb(220, 220, 220);
  position: relative;
  z-index: 2;
}

.text-section-o_pracowni p {
  margin-bottom: 0.5em;
  padding-bottom: 0.5em;
  padding-top: 0.5em;
  width: 100%;
  text-align: justify;
}

.slider-column-warsztaty {
  flex: 4;
  position: relative;
  overflow: hidden;
  border-radius: 5px;
  background-size: cover;
  background-position: center;
}

.slider-column-warsztaty::after {
  content: '';
  display: block;
  padding-top: 100%;
}

.text-section-warsztaty {
  flex: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  margin-top: 0px;

  background-color: rgb(220, 220, 220);
  position: relative;
  z-index: 2;
}

.text-section-warsztaty p {
  margin-bottom: 0.5rem;
  padding-bottom: 1em;
  padding-top: 1em;
  border-top: 0px solid rgb(238, 238, 238);
  width: 100%;
}

.warsztaty-oferty {
  text-align: left;
  padding-left: 1vw;
}

.warsztaty-table table {
  line-height: 1rem;
  width: 100%;
  border-collapse: collapse;
}

.warsztaty-table td {
  padding: 5px;
  line-height: 1.4em;
}

.warsztaty-links {
  width: 100%;
  text-align: left;
}

.warsztaty-icons {
  width: 20%;
  text-align: right;
}

.warsztaty-icons a {
  color: #333;
}

.warsztaty-icons a:hover {
  color: #000;
}

.warsztaty-icons i {
  font-size: 1.5rem;
}

.slider-column-rekodziela {
  flex: 4;
  position: relative;
  overflow: hidden;
  background-size: cover;
  background-position: center;
}

.slider-column-rekodziela::after {
  content: '';
  display: block;
  padding-top: 100%;
}

.text-section-rekodziela {
  flex: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  background-color: rgb(220, 220, 220);
  position: relative;
  z-index: 2;
}

.responsive-image {
  width: 100%;
  height: auto;
  margin: 0 auto;
  display: block;
}

.text-section-rekodziela p {
  margin-bottom: 0.5rem;
  padding-bottom: 1em;
  padding-top: 1em;
  border-top: 0px solid rgb(238, 238, 238);
  width: 100%;
}

.text-section-rekodziela p:last-child {
  border-bottom: none;
  padding-bottom: 0.5em;
  border-top: none;
}

.rekodziela-marketplace {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 20px;
}

.marketplace-logo {
  width: 8em;
  height: auto;
  margin: 10px;
  transition: transform 0.5s ease;
}

.marketplace-logo:hover {
  transform: scale(1.1);
}

.text-section-o_pracowni, .text-section-warsztaty, .text-section-rekodziela {

  opacity: 0.8;
}
/* Sekcja kontakt */
#kontakt {
  height: auto;
  display: flex;
  justify-content: center;
  margin: 0 auto;
  color: #fff;
  background-color: #000;
}

.contact-column {
  flex: 0 1 auto;
  padding: 1em;
  padding-bottom: 0px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
}

.contact-item {
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  padding-bottom: 1em;
  width: 100%;
}
.contact-item i {
  padding-right: 1em;
}
/* Menu górne */
nav {
  backdrop-filter: blur(15px);
  font-size: 1.5rem;
  position: fixed;
  width: 100%;
  /* max-width: 1024px; */
  height: 10vh;
  min-height: 80px;
  background-color: rgba(80, 80, 80, 0.6);
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  z-index: 1000;
  left: 50%;
  transform: translateX(-50%);

}

nav a {
  color: white;
  text-decoration: none;
  font-size: 0.8em;
  text-align: center;
  transition: color 0.3s ease, font-size 1.0s ease;
  padding: 0px;
}

nav a:hover {
  font-size: 0.9em;
  transition: font-size 0.5s ease;
  color: #f1d2a6;
}

.nav-o-pracowni {
  height: 3em;
  max-height: 60px;
  width: auto;
}
/* Media query */
@media (max-width: 768px) 

{
  nav a {
      font-size: 1rem;
  }
.text-wrapper {
  width: 150%;
}
  .slider-column-o_pracowni {
      position: absolute;
      top: 1px;
      left: 1px;
      width: 100%;
      height: 100%;
      margin: 0;
      z-index: -1;
      background-size: cover;
      background-position: center;
  }

  .text-section-o_pracowni {
      position: relative;
      border-radius: 5px;
      box-shadow: 10px 20px 20px rgba(100, 100, 100, 0.1);
      z-index: 2;
  }

  .text-section-o_pracowni p {
      margin-bottom: 0.5rem;
      text-align: justify;
  }

  .slider-column-warsztaty {
      position: absolute;
      top: 1px;
      left: 1px;
      width: 100%;
      height: 100%;
      margin: 0;
      z-index: -1;
      background-size: cover;
      background-position: center;
  }

  .text-section-warsztaty {
      position: relative;
      border-radius: 5px;
      box-shadow: 10px 20px 20px rgba(100, 100, 100, 0.1);
      z-index: 2;
  }

  .text-section-warsztaty p {
      margin-bottom: 1rem;
  }

  .slider-column-rekodziela {
      position: absolute;
      top: 1px;
      left: 1px;
      width: 100%;
      height: 100%;
      margin: 0;
      z-index: -1;
      background-size: cover;
      background-position: center;
  }

  .text-section-rekodziela {
      position: relative;
      margin: 5vw;
      border-radius: 5px;
      box-shadow: 10px 20px 20px rgba(100, 100, 100, 0.1);
      z-index: 2;
  }

  .text-section-rekodziela p {
      margin-bottom: 1rem;
  }

  .responsive-image {
      width: 60%;
      height: auto;
      margin: 0 auto;
      display: block;
  }
  
  .text-section-o_pracowni, .text-section-warsztaty, .text-section-rekodziela {
    padding: 0 5vw !important; /* Nadpisanie styli inline */
    margin: 10%;
    width: 80%;
    height: 85%;
    opacity: 0.8;
}

  #kontakt {
      flex-direction: column;
      align-items: center;
  }

  .contact-column {
      left: 20%;
      width: 30%;
      margin: 0px;
      padding-top: 1em;
      transform: translateX(-15%);
  }
  .contact-item {
      line-height: 1rem;
      margin-bottom: 5px;
      width: 75vw;
  }
}

@media (max-width: 468px) {
  nav a {
      font-size: 0.5em;
  }

  .responsive-image {
      width: 80%;
      height: auto;
      margin: 0 auto;
      display: block;
  }

  .contact-column {
    width: 70%;
  }
}

/* Dodatkowe centrowanie dla większych ekranów */
@media (min-width: 769px) {
  .tiles-container {
      transform: translateY(-5%);
  }
  .text-section-o_pracowni, 
  .text-section-warsztaty, 
  .text-section-rekodziela {
    font-size: 1.45em;
}
}
/* Konfiguracja modal-window */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 1000;
  display: none; /* Początkowo ukryte */
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal.active {
  opacity: 1;
  visibility: visible;
  display: flex; /* Pokazuje się gdy aktywne */
}

.modal-content {
  background-color: rgba(255, 255, 255, 0.9);
  width: 90%; 
  max-width: 1024px;
  height: 80vh;
  padding: 30px;
  border-radius: 15px;
  position: relative;
  overflow-y: auto; /* Zmienione z hidden na auto */
  backdrop-filter: blur(5px);
  line-height: 1.5rem;
  text-align: justify;
  font-size: 0.75rem;
}

.modal-content p {
  padding-bottom: 10px;
}

@media (min-width: 1024px) {
  .modal-content {
      width: 75%;
      max-width: 968px;
      line-height: 1.5rem;
      font-size: 1rem;
  }
}

.close-modal {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 3em;
  cursor: pointer;
  color: #000;
  background-color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 0 10px rgba(0,0,0,0.3);
  z-index: 1001;
}

.close-modal:hover {
  background-color: #f0f0f0;
  transform: scale(1.1);
  transition: transform 0.3s ease;
}

/* Styl dla tabeli cennika */
.table-container {
  width: 100%;
  background-color: #fff;
  height: 90vh;
  max-height: 90vh;
  letter-spacing: 0.5pt;
  font-size: calc(0.5vw + 0.5vh);
}

@media (max-width: 768px) {
  .table-container {
      font-size: calc(1.1vw + 1.2vh);
  }
}

.custom-table {
  width: 100%;
  height: 100%;
  border-collapse: collapse;
}

.custom-table th, .custom-table td {
  border: 2px solid #856161;
  padding: 3px;
  text-align: center;
}

.custom-table thead {
  height: 8%;
}

.custom-table tbody tr:nth-child(2),
.custom-table tbody tr:nth-child(3),
.custom-table tbody tr:nth-child(4),
.custom-table tbody tr:nth-child(7),
.custom-table tbody tr:nth-child(8),
.custom-table tbody tr:nth-child(11) {
  background-color: rgb(200,200,200);
}

.vertical-header {
  width: 20%;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.custom-table th:nth-child(1) {
  width: 30%;
}

.custom-table th:nth-child(2) {
  width: 40%;
}

/* Slider image */
.slider-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: opacity 0.5s ease-in-out;
  border-radius: 5px;
}

.slider-image.active {
  opacity: 1;
}

li {
  list-style-type: none;
  line-height: 1em;
}

a {
  text-decoration: none;
  color: rgb(64, 153, 194);
}

.li-first {
  margin-top: -10px;
}

.download-btn {
  display: inline-flex;
  align-items: center;
  padding: 5px 5px;
  background-color: rgb(212, 138, 95);
  color: white;
  text-decoration: none;
  border-radius: 5px;
  margin-left: 10px;
  margin-bottom: 10px;
  line-height: 1.5rem;
  font-size: 16px;
  transition: background-color 0.3s ease;
}

.download-btn:hover {
  background-color: rgb(102, 80, 80);
}

.download-btn i {
  margin-right: 8px;
}

.image-grafik {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
}

.image-grafik-link {
  width: 80%;
  margin: 0 auto;
  height: auto;
  display: block;
  cursor: pointer;
}

@media (min-width: 769px) and (max-width: 940px) {
  .image-grafik-link {
      width: 100%;
  }
}

@media (min-width: 585px) and (max-width: 768px) {
  .image-grafik-link {
      width: 60%;
  }
}

@media (max-width: 584px) {
  .image-grafik-link {
      width: 100%;
  }
}

.download-icon {
  position: absolute;
  top: 40%;
  left: 60%;
  transform: translateX(-50%);
  background-color: rgb(212, 138, 95);
  color: white;
  padding: 5px 5px;
  border-radius: 5px;
  font-size: 16px;
  transition: background-color 0.3s ease;
}

.download-icon:hover {
  background-color: rgb(102, 80, 80);
}

.instagram-btn {
  height: 1.5rem;
  width: auto;
  display: inline-flex;
  align-items: center;
  padding-right: 5px;
  text-decoration: none;
  transition: transform 0.3s ease;
}

.instagram-btn:hover {
  transform: scale(1.1);
  transition: transform 1s ease;
}

.cennik,
.grafik {
  align-items: center;
  font-weight: bolder;
  font-size: 1.5rem;
  text-align: center;
  margin: 0 auto;
}
.grafik {
  margin-top:5vh;
}

/* Style dla przycisków galerii z dualnym wyświetlaniem */
.expand-gallery-btn {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(0, 0, 0, 0.8);
  color: #fff;
  padding: 10px 15px;
  border-radius: 5px;
  font-weight: bold;
  font-size: 1.3em;
  letter-spacing: 2pt;
  z-index: 100;
  transition: background-color 0.5s ease;
  white-space: nowrap;
  text-align: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0);
}

.expand-gallery-btn:hover {
  background-color: rgb(142, 130, 130);
}

/* Style dla galerii modalnej */
.gallery-modal .modal-content {
  width: 90%;
  max-width: 1200px;
  height: 90vh;
  padding: 20px;
  display: flex;
  flex-direction: column;
}

.gallery-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.main-image-container {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  position: relative;
}

.main-gallery-image {
  max-width: 100%;
  height: 100%;
  max-height: 75vh;
  object-fit: contain;
}

.gallery-navigation {
  display: flex;
  justify-content: space-between;
  padding: 10px 10px;
}

.gallery-nav {
  position:relative;
  font-size: 1.2rem;
  cursor: pointer;
  color: #000;
  background-color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 0 10px rgba(0,0,0,0.3);
  z-index: 1001;
}

.prev-image {
  padding-right: 5px;
}

.next-image {
  padding-left: 5px;
}
.gallery-nav:hover {
    background-color: #f0f0f0;
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

.thumbnails-container {
  display: flex;
  justify-content: center;
  height: 100px;
  margin-top: 15px;
  overflow: hidden;
}

.thumbnails-scroll {
  display: flex;
  overflow-x: hidden;
  padding: 5px 0;
  scrollbar-width: thin;
}

.thumbnail {
  width: 80px;
  height: 80px;
  margin-right: 10px;
  flex-shrink: 0;
  cursor: pointer;
  object-fit: cover;
  border: 2px solid black;
  transition: border-color 0.3s;


}

.thumbnail.active {
  border-color: #ffffff;
  transition: border-color 0.3s;
}

.thumbnails-scroll::-webkit-scrollbar {
  height: 6px;
}

.thumbnails-scroll::-webkit-scrollbar-thumb {
  background-color: rgba(0, 0, 0, 0.3);
  border-radius: 3px;
}

.thumbnails-scroll::-webkit-scrollbar-track {
  background-color: rgba(0, 0, 0, 0.1);
}

  /* GRAFIK */
  /* Wersja desktop */
  .desktop-container {
    display: grid;
    grid-template-columns: 0 1fr;
    height: 80vh;
    max-width: 1200px;
    margin: 20px auto;
}

.time-axis {
    visibility: hidden;
}

.days-container {
    position: relative;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 15px;
    padding: 15px;
    height: 80vh;
    top: 5vh;
}

.day-column {
    position: relative;
    border-left: 1px solid #eee;
}

.day-label {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    font-weight: bold;
    z-index: 2;
}

.activity {
    position: absolute;
    width: 90%;
    left: 10px;
    padding: 2px;
    border-radius: 6px;
    color: #333;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border: 1px solid rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: calc(0.3em + 0.6vh);
    font-weight: 600;
    text-transform: uppercase;
    background-color: #a7b8a8
}
@media (max-width: 768px) {
  .activity {
    font-size: calc(0.4em + 0.4vh);
  }
}

.weekend {
  top: 8vh !important;
  height: 90%;
}
/* Wersja mobilna */
.mobile-container {
    display: none;
    width: 96vw;
    height: 90vh;
    margin: 5vh auto;
    position: relative;
    overflow: hidden;
}

.mobile-time-axis {
    display: none;
}

.mobile-days-container {
    display: flex;
    width: 200%;
    height: 100%;
    transition: transform 0.3s;
}

.mobile-day-group {
    width: 50%;
    padding: 15px;
    position: relative;
}

.mobile-day-label {
    position: absolute;
    top: 4%;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.8em;
    font-weight: bold;
}

.nav-arrows {
    position: absolute;
    top: 5%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
}

.nav-arrow {
    margin-top: -30px;
    background: #666;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    cursor: pointer;
    opacity: 0.6;
}

@media (max-width: 768px) {
    .desktop-container {
        display: none;
    }
    .mobile-container {
        display: block;
    }
}