body{
    background-color: #333;
    color: white;
    font-family: "Montserrat", sans-serif;
    margin: 0;
    color: white;
}
a{
    text-decoration: none;
}
.main {
    letter-spacing: 1px;
    background-image: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('img/tlo.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    width: 100%;
    height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
}


  
  .main::before {
    content: ''; 
    position: absolute; 
    bottom: 0;
    left: 0;
    width: 100%; 
    height: 20%; 
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.014), #222); 
    pointer-events: none; 
}
h1{
    padding: 20px;
    clear: both;
    text-align: center;
}
@keyframes pulse {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.05);
    }
}
.grid-container {
    color: white;
    text-align: center;
    width: 90%;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 30px;
  }

  .title {
    clear: both;
    font-size: 25px;
    width: 100%;
  }

  .avatar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    grid-gap: 20px;
    justify-items: center;
    align-items: center;
    margin-top: 20px;
  }

  .avatar {
    border: 1px solid #222;
    position: relative;
    width: 200px; 
    height: 250px;
    overflow: hidden; 
}
.avatar:hover {
    border: 1px solid #e14e53;;
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


.username {
    vertical-align: middle;
    position: absolute;
    bottom: 0;
    left: 0;
    padding: 5px;
    color: white; /* Kolor tekstu */
    font-size: 16px; /* Rozmiar czcionki */
    border-radius: 0 10px; /* ZaokrÄ…glenie rogÃ³w */
    z-index: 1; 
}
.avatar::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%; /* WysokoÅ›Ä‡ cienia */
    background: linear-gradient(to top, rgba(0, 0, 0, 0.993), transparent); /* Gradient cienia od czarnego do przezroczystego */
    pointer-events: none; /* Zapobiega interakcji z cieniem */
}
  @media screen and (max-width: 600px) {
    .main{
        background-position: center;
    }
    .avatar {
      width: 160px;
      height: 180px;
    }
    
  }
  @media screen and (min-width: 600px) {
    .avatar-grid {
      grid-template-columns: repeat(5, 1fr); /* PiÄ™Ä‡ avatarÃ³w w jednym rzÄ™dzie na wiÄ™kszych ekranach */
    }
    .grid-container{
        width: 70%;
    }
  }
  .bn632-hover {
    width: 300px;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
    height: 55px;
    text-align:center;
    border: none;
    background-size: 300% 100%;
    border-radius: 50px;
    -moz-transition: all .4s ease-in-out;
    -o-transition: all .4s ease-in-out;
    -webkit-transition: all .4s ease-in-out;
    transition: all .4s ease-in-out;
  }
  .bn632-hover:hover {
    background-position: 100% 0;
    -moz-transition: all .4s ease-in-out;
    -o-transition: all .4s ease-in-out;
    -webkit-transition: all .4s ease-in-out;
    transition: all .4s ease-in-out;
  }
  
  .bn632-hover:focus {
    outline: none;
  }
  
  .bn632-hover.bn28 {
    background-image: linear-gradient(
      to right,
      #eb3941,
      #f15e64,
      #e14e53,
      #e2373f
    );
    box-shadow: 0 5px 15px rgba(242, 97, 103, 0.4);
  }
.more{
    cursor: pointer;
    margin-bottom: 50px;
    width: 20%;
    text-align: center;
    background-color: #222;
    margin-left: auto;
    margin-right: auto;
    padding: 15px;
    border-radius: 20px;
}
@media screen and (max-width: 600px) {
    .more{
        width: 70%;
    }
    
  }
.more:hover{
    background-color: #e2373f;
}
.colora{
    cursor: pointer;
    font-weight: bold;
    color:#e2373f;
    font-size: 25px;
}
.colora:hover{
  font-weight: bold;
  color:#e14e53;
  font-size: 25px;
}
footer{
    width: 100%;
    background-color: #222;
    text-align: center;
}
.broken{
  width: 150px;
}
@media screen and (max-width: 600px) {
  .broken{
    width: 100px;
  }
}
.settings{
  width: 30px;
  margin-bottom: 10px;
  position: absolute;
  bottom: 0;
  left: 0;
  margin-left: 10px;
  text-align: center;
}
.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.5s ease-in-out forwards; /* Dodajemy animacjÄ™ pojawiania siÄ™ */
    z-index: 9999999999;
  }
  
  /* Styl dla okienka popup */
  .popup {
    width: 80%;
    text-align: center;
    background-color: #222;
    color: #fff;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    position: relative; /* Ustawienie dla pozycjonowania X */
    z-index: 9999999999;
  }
  @keyframes fadeIn {
    from {
      opacity: 0; /* PoczÄ…tkowa przezroczystoÅ›Ä‡: 0 */
    }
    to {
      opacity: 1; /* KoÅ„cowa przezroczystoÅ›Ä‡: 1 */
    }
  }
  .popup-title{
    font-size: 25px;
  }
  /* Styl dla ikony X */
  .close-icon {
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
    font-size: 20px;
    color: #999;
  }
  
  /* Styl dla ikony X po najechaniu */
  .close-icon:hover {
    color: #000;
  }
  .popup .bn632-hover{
    width: 300px;
  }
  .popup h1{
    font-size: 27px;
  }
  .showPopup{
    cursor: pointer;
  }
.przyciskiaa {
  padding-top: 10px;
  padding-bottom: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 20px;
}
.losuj{
  cursor: pointer;
  color: white;
  background-color: #e2373f;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
}
.search-container {
  margin-top: 10px;
}

.search-container input[type=text] {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  width: 100%;
  box-sizing: border-box;
}
@media screen and (min-width: 600px) {
  .przyciskiaa {
    flex-direction: row;
    justify-content: center;
  }

  .losuj {
    margin-bottom: 0;
    margin-top: 0;
    margin-right: 5px; /* Dodaj margines prawy */
  }

  .search-container {
    margin-top: 0;
  }

  .search-container input[type=text] {
    width: 200px; /* Dostosuj szerokoÅ›Ä‡ pola wyszukiwania */
  }
}
@media screen and (max-width: 599px) {
  .przyciskiaa {
    flex-direction: row;
    justify-content: center;
  }

  .losuj {
    margin-bottom: 0; /* UsuÅ„ margines dolny */
    margin-top: 5px; /* Dostosuj margines gÃ³rny */
  }

  .search-container {
    margin-top: 5px; /* Dostosuj margines gÃ³rny */
    margin-left: 0;
  }

  .search-container input[type=text] {
    width: 100%; /* Dostosuj szerokoÅ›Ä‡ pola wyszukiwania */
  }
}
.search-input{
  color: white;
  background-color: #222;
  border-bottom:1px solid #e14e53;
  border-right: none;
}
.search-input::placeholder{
  color: #e14e53;
}
#container {
  position: relative;
  width: 200px;
  height: 200px;
  overflow: hidden;
  justify-content: center;
  align-items: center;
  margin: auto;
  border: 4px solid #e2373f;
}

#images {
  position: absolute;
  display: flex;
  transition: transform 5s linear;
}

#images img {
  width: 200px;
  height: 200px;
  object-fit: cover;
  
}

#buttons {
  margin-top: 20px;
  text-align: center;
}

button {
padding-left: 35px;
padding-right: 35px;
padding-top: 10px;
padding-bottom: 10px;
border-radius: 10px;
border-style: none;
background-color: #333;
color: white;
margin: 10px;
box-shadow: 0 0 3px 1px black;
}
button:hover {
background-color: #f15e64;
}
.rejestracjapop{
font-size: 20px;
padding: 15px;
border-radius: 10px;
background-color: orange;
border: none;
color: white;
box-shadow: 0 0 3px 1px black;
}

.rejestracjapop:hover{
font-size: 20px;
padding: 15px;
border-radius: 10px;
background-color: grey;
border: none;
color: white;
box-shadow: 0 0 3px 1px black;
}
.popupx {
display: none; /* Modal jest ukryty domyÅ›lnie */
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.7);
z-index: 3;
}

.popup-contentx {
text-align: center;
background-color: #222;
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
width: 80%;
padding: 20px;
border-radius: 5px;
}
.closex {
position: absolute;
top: 10px;
right: 10px;
cursor: pointer;
}
