/* Resetowanie stylów */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
}

body {
    font-family: "Aldrich", sans-serif;
  font-weight: 400;
  font-style: normal;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(-30deg, #d9d9d9, #ffffff);
    background-attachment: fixed;
    overflow-x: hidden;
    
    
}
#homeDivTlo {
 
  
  
background-image: url(../img/gym.jpg);
z-index: -4;
filter: blur(3px) brightness(60%);
position: absolute;

height: 100%;
width: 100%;



  
}
footer a{

   color: lightgray;
}
#ulMargin{
display: none;
    }
#waznoscContainer
{
border: #992600 5px solid;
border-radius: 20px;
text-align: center;
width: 50%;
margin-left: 25%;
font-size: 1.5rem;
padding-top: 4rem;
height: 25rem;
margin-top: 2rem;
}
#sprawdzButton
{
    width: 20rem;
    height: 4rem;
    background-color: lightgrey;
    font-size: 1.2rem;
    padding-top: 0.5rem;
    border-radius: 20px;
    border: 4px solid #696969;
    transition: 0.14s;
    cursor: pointer;
    color: #992600;

}

#sprawdzButton:hover
{
    background-color: transparent;
    }
.sprawdzInput
{
    width: 10rem;
    height: 2rem;
    font-size: 1.3rem;


}
.back-button {
            background-color: grey;
            color: white;
            border: 4px solid #ab0707;  /* White border for the back button */
                  /* Space above back button */
            font-size: 1rem;          /* Font size for back button */
            width: 200px;
            position: absolute;
            text-align: center;
            margin-top: -80px;
            margin-left: 80%;
            height: 50px;
            border-radius: 20px;
            border: 3px white solid;
            padding-top: 10px;
            font-size: 1.1rem;
            text-decoration: none;

         

        }

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

header {
    position: relative;
    overflow: hidden;
    color: #fff;
    /* Brama używa sztywnej wysokości i paddingu, zamiast flexboxa */
    height: 10rem; 
    padding-top: 4rem; 
    display: block; /* Resetujemy flexbox */
}

/* Tło nagłówka */
header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-position: 1.4rem;
    background-image: url('../img/gym2.jpeg'); /* Ścieżka dla pliku CSS */
    background-attachment: fixed;
    filter: brightness(40%);
    z-index: -1;
}
       /* Stylizacja modala */
        .modal {
            display: none;
            position: fixed;
            z-index: 1;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            overflow: auto;
            background-color: rgba(0, 0, 0, 0.4);
        }
        .modal-content {
            background-color: #fefefe;
            margin: 15% auto;
            padding: 20px;
            border: 1px solid #888;
            width: 80%;
            max-width: 400px;
            text-align: center;
        }
        .close {
            color: #aaa;
            float: right;
            font-size: 28px;
            font-weight: bold;
        }
        .close:hover,
        .close:focus {
            color: black;
            text-decoration: none;
            cursor: pointer;
        }
#napis {
    font-family: "Aldrich", sans-serif;
    font-weight: 400;
    font-size: 1.8rem;
    text-transform: uppercase;
    text-align: right;
    margin: 0; /* Usuwamy stare marginesy */
}
#logoContainer {
    width: 100%;
    margin-left: 0;
    height: 300px; /* Wysokość z wersji Bramy */
    position: absolute;
    margin-top: -4rem; /* Cofnięcie marginesu z Bramy */
    background: linear-gradient(to right, black 10%, transparent 35%); /* Gradient z Bramy */
    z-index: 1;
   
}

#logoContainer a {
    height: 200px;
}

#logo {
    width: 12%;
    /* Marginesy dokładnie jak w Bramie */
    margin-top: 10px; 
    margin-left: 20px;
}
.header-container {
    display: flex;
    text-align: right;
    justify-content: flex-end; /* Tekst do prawej */
    width: 95%;
    max-width: 95%;
    position: relative;
    z-index: 2;
    /* Usuwamy padding i height 100% z poprzedniej wersji flex */
}

header h1 {

    margin-bottom: 1rem;
    flex: 1;
}

nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
}

nav ul li {
    margin: 0 1rem;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
}

#nasze
{
    margin-bottom: 3rem;
}
.section {
    padding: 2rem 0;
}

.cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1rem; /* Przerwa między kartami */
}

.card {
    position: relative;
    background: #f4f4f4;
    padding: 1rem;
    margin: 1rem;
    flex: 1 1 calc(40% - 1rem); /* Flex grow i basis dla responsywności */
    max-width: calc(40% - 1rem); /* Maksymalna szerokość karty */
    min-height: 30rem; /* Minimalna wysokość karty */
    height: 100%; /* Pełna wysokość, jeżeli jest potrzebna */
    border: solid #992600 7px;
    border-radius: 20px;
    background-color: #24181c;
    transition: 0.14s;
    box-sizing: border-box; /* Upewnia się, że padding i border są wliczane w szerokość i wysokość */
}

.card-content {
    padding: 0 5%; /* Padding 5% z lewej i prawej strony */
}

.cardElement {
    position: absolute;
    bottom: 0; /* Ustawienie na dole karty */
    left: 50%; /* Wyśrodkowanie poziome */
    transform: translateX(-50%) translateY(50%); /* Wyśrodkowanie poziome */
    width: 50%; /* Szerokość dostosowana do karty */
    height: 10%; /* Wysokość, którą można dostosować */
    border-radius: 20px;
    background-color: #992600;
    color: white;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 500;
    transition: 0.14s;
    cursor: pointer;
}

.card:hover {
    transform: scale(1.1);
    border-color: #99bbff;
    background-color: #171921;
}

.card:hover .cardElement {
    background-color: #99bbff;
}

.card h3 {
    margin-bottom: 0.5rem;
    text-align: center;
    font-size: 1.5rem;
    text-transform: uppercase;
    font-weight: 800;
    color: lightgray;
}

.card p {
    margin-bottom: 1rem;
}

.zalety {
    padding-top: 6rem;
    margin-left: 1rem;
    color: white;
    font-weight: 600;
    font-size: 1.3rem;
    position: absolute;
    top: 1rem; /* Ustawienie od góry, aby było widoczne */
    left: 1rem;
}

.checkmark {
    color: white;
    font-size: 24px;
}

#shop button {
    background: transparent;
    color: #fff;
    border: none;
    z-index: 10;
    cursor: pointer;
    width: 100%;
    height: 100%; /* Wysokość dopasowana do wysokości karty */
    position: absolute;
    top: 0; /* Dopasowanie do karty */
    left: 0; /* Dopasowanie do karty */
    margin: 0; /* Usuń marginesy */
}


footer {
    background: #333;
    color: #fff;
    text-align: center;
    padding: 1rem 0;
    margin-top: 2rem;
}

.gallery-container {
    display: flex;
    align-items: center;
    position: relative;
}

.gallery {
    overflow: hidden;
    white-space: nowrap;
    width: 80vw;
    margin-left: 10vw;

 
}

.gallery-wrapper {
    display: flex;
    transition: transform 0.9s ease;
}

.gallery img {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
}

.scroll-button {
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    font-size: 24px;
    z-index: 1;
}

.prev {
    position: absolute;
    left: 0;
}

.next {
    position: absolute;
    right: 0;
}

.fotki{
    max-height: 700px;
    max-width: 100%; /* Ustawia maksymalną szerokość obrazka na 100% szerokości kontenera */
    height: auto; /* Zachowuje proporcje obrazka */
    display: block; /* Usuwa przestrzeń poniżej obrazka */
    margin-left: 30vw;
}
#homeDiv {
  position: relative;
  height: 800px;

  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  text-align: center;

  box-sizing: border-box;
  overflow: hidden; /* Ukrywa nadmiar pseudo-elementu */
  width: 100%;
  min-width: 100vw;
   
  flex-direction: column;
 

  background-repeat: no-repeat; 

}

#homeDiv::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url(../img/gym.jpg);

  background-attachment: fixed;
 
  filter: blur(7px) brightness(60%);

  z-index: -2; /* Umieszcza rozmyty pseudo-element za pseudo-elementem z przyciemnieniem */
}


#homeDiv::after {

  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height:  100%;
  background-color: rgba(0, 0, 0, 0.5); /* Czarne przyciemnienie */
  z-index: -1; /* Umieszcza pseudo-element z przyciemnieniem za tekstem, ale przed tłem */

}

#witamy{
    font-size: 3rem;
    margin-top: -10rem;
}
#tutaj
{
    font-size: 1.3rem;
    margin-top: 5rem;
}

#dolnaNav
{
    height: 10rem;
    position: relative;
  padding-top: 3rem;  
}
.elementyDolnejNawigacji
{
    color: #696969;
    margin-left: 9rem;
    margin-right: 9rem;
    font-weight: 600;
    border-bottom: #696969 solid 0.3rem;
    border-radius: 2px;
    width: 2rem;
    padding-bottom: 0.2rem;
   
}
#sprawdzTitle
{
 font-size: 3rem;
     color: #666666 ;
    width: 100%;
    text-align: center;
    margin-top: 10rem;
}
#galeriaH1{
    margin-top: 15rem;

}
#galeriaH1
{
    font-size: 4rem;
     color: #666666 ;
    width: 100%;
    text-align: center;
   

}
#galeria {
  
    /*background: linear-gradient(to  bottom, rgba(33, 32, 33, 0) 0%, rgba(33, 32, 33, 0.2) 10%, rgba(33, 32, 33, 0.5) 20%, #212021 70%, #452428 100%);*/


}

#shop{
    margin-top: 10rem;
}
#shopH1
{
    font-size: 4rem;
    color: #666666 ;
    width: 100%;
    text-align: center;
    
}

#contact {
    margin-top: 15rem;
}

#kontaktH1 {
    font-size: 4rem;
    color: #666666;
    width: 100%;
    text-align: center;
}

#where {
    font-size: 2rem;
    width: 100%;
    text-align: center;
    margin-bottom: 3rem;
    font-weight: 600;
}

.underline {
    width: 20%;
    height: 5px; /* Grubość podkreślnika */
    background-color: #666666;
    border-radius: 5px; /* Zaokrąglone rogi */
    margin: 0 auto; /* Wyśrodkowanie */
    margin-bottom: 4rem;
}
.underlineWaznosc
{
    width: 40%;
    height: 5px; /* Grubość podkreślnika */
    background-color: #666666;
    border-radius: 5px; /* Zaokrąglone rogi */
    margin: 0 auto; /* Wyśrodkowanie */
    margin-bottom: 4rem;
}

.contact-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
}

#contKont {
    width: 45%;
    text-align: left;
}

.kontakty {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    display: block;
}

#contMapa {
    width: 45%;
    text-align: center;
}

#mapa {
    width: 100%;
    height: 400px; /* Możesz dostosować wysokość */
    border: 0;
}

/* Stylowanie dla urządzeń mobilnych */
@media (max-width: 768px) {
    nav ul
    {
        
    }
    .elementyDolnejNawigacji
{
    margin-left: 1rem;
    margin-right: 1rem;
}
      .card {
        flex: 1 1 100%; /* Jedna karta na linię na mniejszych ekranach */
        max-width: 100%; /* Maksymalna szerokość karty na 100% */
    }
    header{
        background: linear-gradient(to  bottom, black 40%, #780404 150%);
    }
    
.header-container {
        justify-content: center; /* Centrowanie poziome flexa */
        flex-direction: column;
        width: 100%;
        text-align: center;
        padding-top: 1rem;
    }


#logoContainer {
        position: relative;
        width: 100%;
        height: auto;
        margin: 0;
        background: none; /* Usuwamy boczny gradient desktopowy */
        text-align: center; /* Centrujemy obrazek */
    }

    #logo {
        width: 50%; /* Większe logo na telefonie */
        max-width: 200px;
        margin: 0 auto; /* Automatyczne marginesy centrują blok */
        display: block;
    }

   #napis {
    font-family: "Aldrich", sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 1.8rem;
    text-transform: uppercase;
    text-align: center;
    margin: 0;
}

#witamy
{
    margin-top: 2rem;
    font-size: 1.8rem;
    padding: 2rem;
    
}
#tutaj
{
    padding: 2rem;
    margin-top: 15rem;
}

.gallery {
    width: 90vw;
margin-left: 5vw;
}
#homeDivTlo {
 
  
  
background-image: url(../img/gym.jpg);
z-index: -4;
filter: blur(3px) brightness(60%);
position: absolute;
height: 100%;
width: 100%;

will-change: background-position;

  
}

#homeDiv::before
{
    background-image: none;
}
header {
        /* Tło gradientowe na całości w mobile wygląda lepiej */
        background: linear-gradient(to bottom, black 40%, #780404 150%);
        flex-direction: column;
        justify-content: center;
        height: auto;
        padding: 2rem 0;
    }
header::before {
    
    width: 100%;
    height: 100%;

    background-position: 74% ;
   filter:  brightness(40%);
    /* Rozmycie i przyciemnienie tła */
     /* Umieść pseudo-element za treścią */
}
#shop{
    margin-top: 2rem;
}
#shopH1
{
    font-size: 2rem;
    color: #666666 ;
    width: 100%;
    text-align: center;
    
}

    .contact-content {
        flex-direction: column;
        align-items: center;
    }

    #contKont, #contMapa {
        width: 100%;
        text-align: center;
        margin-bottom: 2rem; /* Dodaj odstęp między sekcjami */
    }

    #mapa {
        height: 300px; /* Możesz dostosować wysokość mapy */
    }

    #kontaktH1 {
        font-size: 2.5rem; /* Zmniejsz czcionkę nagłówka na mniejszych ekranach */
    }

    #where {
        font-size: 1.5rem; /* Zmniejsz czcionkę napisu "Gdzie nas znaleźć?" */
    }

    .kontakty {
        font-size: 1.2rem; /* Zmniejsz czcionkę informacji kontaktowych */
        margin-bottom: 1rem; /* Zmniejsz odstęp między informacjami */
    }

    .underline {
        width: 30%; /* Zwiększ szerokość podkreślnika na mniejszych ekranach */
    }

#dolnaNav
{
    padding-top: 0rem; 
}
#ulMargin{
margin-top: 2.5rem;
display: flex;
}


#sprawdzTitle
{
font-size: 2rem;
}
.underlineWaznosc
{
    width: 80%;
}
#waznoscContainer
{
    height: 25rem;
    width: 80%;
    margin-left: 10%;
}
#sprawdzButton
{
    width: 80%;
}
}


}
