

/* Sekcja główna */
main{
width: 100%;

background-color: #fcfbf9;
float: left;
}

.buttons{
    width: 60%;
    margin: auto;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 5px;
    
}
.buttons button{
    width: 15vh;
    height: 5vh;
    border: 1px solid rgb(179, 133, 43);
    background-color:rgb(248, 159, 58) ;
    color: rgb(255, 255, 255);
    margin: 8px;
    cursor: pointer;
    border-radius: 15px;
    font-size: 20px;
    font-weight: bold;
    font-family: Helvetica, sans-serif;
    text-shadow: 2px 1px black;
    transition: all .2s ease-in;
    box-shadow: 2px 2px 3px black;
    
    
    
    
}
.buttons button:hover{
    background-color: rgb(239, 175, 39);
    box-shadow: 6px 3px 8px black;     
    outline: none;     
    
}


 button.year_active{
    
    background-color: rgb(81, 125, 24);
}
#referentions_p{
    text-align: center;
    font-family: Helvetica, sans-serif;
    font-size: 50px;
    font-weight: bold;
    text-shadow: 2px 1px 2px gray;
}
h2{
    text-align: center;
    font-size: 40px;
    font-weight: lighter;
}
.year{
    font-weight: bold;
}
.text {
    width: 100%;               /* dostosowuje szerokość do rodzica */
              /* opcjonalnie ograniczenie max szerokości */
               /* wycentrowanie */
    padding: 10px;
    
    display: flex; /* nowsze standardy */
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 10px;
    gap: 10px;

}

.name-box{
max-width: 40vh;
max-height: 80vh;
min-height: 50vh; ;

margin-top: 10px;


}
.name-box img{
    width: 40vh;
    display: flex;
    border: 1px solid blanchedalmond;
    cursor: pointer;
    
}

.nazwa{
    text-align: center;
    font-weight: bold;
    
    background-color: tomato;
    display: flex;
    justify-content: center;
    align-content:center ;
    
}
.nazwa p{
    color: rgb(247, 241, 241);
    font-size:1em;
    font-family: Helvetica, sans-serif;
    font-weight: 700;
}


/* Modal dla powiększenia obrazka */
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.8);
  justify-content: center;
  align-items: center;
  padding: 20px;
  box-sizing: border-box;
}

.modal-content {
  max-width: 90vw;
  max-height: 90vh;
  border: 4px solid white;
  border-radius: 20px;
  box-shadow: 0 0 20px black;
  overflow: visible; 
  position: relative;
  background-color: #000;


  display: block;
  text-align: center; /* żeby obraz nadal był wyśrodkowany poziomo */
}

.modal-content img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  display: inline-block;
  object-fit: contain;
}

/* Przycisk zamknięcia */
.close-modal {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 40px;
  color: white;
  cursor: pointer;
  font-weight: bold;
  text-shadow: 2px 2px 5px black;
  z-index: 10000;
}

.close-modal:hover {
  color: #ff6600;
}

/* ========================= */
/*       MEDIA QUERIES       */
/* ========================= */

/* TABLET – poniżej 992px */
@media screen and (max-width: 992px) {
    #referentions_p{
        font-size: 50px;
    }
    
    
}

/* TELEFON – poniżej 768px */
@media screen and (max-width: 768px) {
    #referentions_p{
        font-size: 55px;
    }
    
}

/* MAŁE TELEFONY – poniżej 480px */
@media screen and (max-width: 480px) {
    #referentions_p{
        font-size: 40px;
    }
}

@media screen and (max-height: 992px) {
    
    
    
}


