/* ==========================================================================
   1. FUNDAMENTY: CZCIONKI I USTAWIENIA OGOLNE
   ========================================================================== */

@font-face {
  font-family: 'Aller';
  font-style: normal;
  font-weight: normal;
  src: url('https://www.karolgwozdz.com/fonts/aller.woff2') format('woff2'),
       url('https://fonts.cdnfonts.com/s/12/Aller_Rg.woff') format('woff');
}

html, body {
  width: 100%;
  font-family: "Times New Roman", Times, serif;
}

body {
  max-width: 1000px;
  margin: 0 auto;
  padding-top: 50px;
  box-shadow: 0 0 20px #aaa;
}

h1, h2 {
  font-family: "Times New Roman", Times, serif;
  font-weight: bold;
}

.clear {
  clear: both;
}


/* ==========================================================================
   2. NAGLOWEK (HEADER) I TLO (BACKGROUND PHOTO)
   ========================================================================== */

header {
  width: 90%;
  max-width: 600px;
  margin: 0 auto 0 auto;
}

header h1 {
  text-align: center;
  z-index: 1;
  color: white;
}

#photo {
  position: relative;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 170%;
  max-width: 1000px;
  z-index: -1;
}

#photo img {
  width: 100%;
  z-index: inherit;
}


/* ==========================================================================
   3. GLOWNA TRESC I KOLUMNY TEKSTOWE
   ========================================================================== */

main {
  width: 100%;
  display: block;
}

main h1 {
  text-align: center;
  margin: 20px auto 10px auto;
  width: 90%;
  max-width: 500px;
}

main .column {
  width: 29%;
  float: left;
  padding: 0 2%;
  text-align: justify;
  line-height: 1.3em;
}

main p {
  margin-bottom: 1em;
}

.nomargin {
  margin-bottom: 0;
}

main ul {
  padding-left: 5%;
}

main li:before {
  content: "- ";
}


/* ==========================================================================
   4. LOGOTYPY I PARTNERZY
   ========================================================================== */

main #logos {
  width: 100%;
  padding: 5% 0 0 0;
}

main #logos img {
  width: 40px;
}

main #logos  {
  padding-right: 10px;
}


/* ==========================================================================
   5. SEKCJA SKLEPOW (PACKSHOT I DANE TECHNICZNE)
   ========================================================================== */

#purchase {
  width: 100%;
  display: inline-block;
  margin: 50px 0;
}

#purchase #packshot {
  width: 29%;
  float: left;
  padding-left: 2%;
  padding-right: 4%;
}

#purchase #packshot img {
  width: 100%;
}

.packshot-responsive {
  width: 29%;
}

#purchase p {
  padding-top: 10px;
  padding-left: 2%;
  line-height: 1.3em;
}


/* ==========================================================================
   6. LINKI ZEWNETRZNE I STOPKA
   ========================================================================== */

#links h1 {
  width: 29%;
  padding: 2% 2% 50px 2%;
  float: left;
  text-align: center;
}

#links a {
  color: black;
  text-decoration: none;
  border-bottom: none;
}

#links a:hover {
  color: #00b6de;
}

/* Efekt delikatnego powiększenia TYLKO dla logo sklepów w sekcji links */
#links a img {
    transition: transform 0.3s ease;
}

#links a img:hover {
    transform: scale(1.1);
}


/* ==========================================================================
   7. MULTIMEDIALNY SLIDER (FOTO I WIDEO)
   ========================================================================== */

.mySlides {
  display: none; /* Chowa slajdy na starcie */
}

.fade {
  animation-name: fade;
  animation-duration: 1.5s;
}

@keyframes fade {
  from {opacity: .4} 
  to {opacity: 1}
}

.dot.active {
  background-color: #717171 !important; /* Kolor aktywnej kropki */
}


/* ==========================================================================
   8. RESPONSYWNOSC (WYGLAD NA TELEFONY I TABLETY)
   ========================================================================== */

@media screen and (max-width: 450px) {
  #links h1 {
    width: 100%;
    padding: 0 0 50px 0;
  }
}

@media screen and (max-width: 630px) {
main .column, .column {
    width: 100% !important; 
    float: none !important; 
    display: block !important; 
    padding: 0 5% !important; 
    margin-bottom: 20px;  
    box-sizing: border-box;
    text-align: left;
  }

  #links div[style*="flex: 0 0 28%"] {
    flex: 0 0 31% !important;
    max-width: 31% !important;
    
    margin-left: 8% !important;
    margin-right: 8% !important;
    margin-bottom: 3px !important; 
  }

    #links h1 img {
    max-width: 100% !important;
    height: auto !important;
  }


  /* ODTWARZACZ AUDIO */
  .player-container {
    width: 100% !important;
    max-width: 280px !important;
    display: block;
    overflow: visible !important;
  }

  #purchase {
    padding: 2% 0;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  #purchase #packshot, .packshot-responsive {
    display: block !important;
    width: 90% !important;
    max-width: 450px;
    margin: 0 auto 20px auto !important;
    float: none !important;
    padding: 0 !important;
  }

  #purchase .releaseinfo {
    width: 90%;
    padding: 0 5%;
    text-align: center;
  }

  .mySlides img, .mySlides video {
    width: 100% !important;
    height: auto !important;
  }
}

/* MARGINES BEZPIECZEŃSTWA DLA PRZEŁĄCZNIKA JĘZYKÓW NA MAŁE EKRANY */
@media screen and (max-width: 750px) {
  #language-switcher {
    margin-bottom: 75px !important;
  }
}


/* ==========================================================================
   9. SYSTEM JĘZYKOWY (UK / SZL / PL / EN)
   ========================================================================== */

/* Ukrywamy wszystko domyślnie - JavaScript zajmie się resztą */
.lang-block {
    display: none;
    animation: fadeEffect 0.5s;
}

/* To sprawi, że Śląski będzie widoczny zaraz po wejściu na stronę */
.lang-block.szl {
    display: block;
}

@keyframes fadeEffect {
    from {opacity: 0;}
    to {opacity: 1;}
}

