
body{
    font-family: Montserrat, sans-serif;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
        background-color: #005fcc;

}

/* Prevent horizontal overflow and ensure consistent box-sizing */
html{ box-sizing: border-box; }
*, *::before, *::after { box-sizing: inherit; }
body{ margin: 0; overflow-x: auto; }
header{
    text-align: center;
    align-items: center;
    gap: 20px;
    display: flex;
    justify-content: center;
    background-color:#EAEAEA;

}
nav{
 text-align: right  ;
    display: flex;
    align-items: center;
    justify-content: space-between; /* UL po lewej, IMG po prawej */
    padding: 0 20px
}
nav ul{
    align-items: center;
    display: flex;
    gap: 18px;
    padding: 0;
    list-style:  none;
    }
       nav img {
    height: 200px;
    width: auto;
    object-fit: contain;  
    margin-left: 50px
}
    a:hover{
        color: #005fcc;
    }
    a{
        text-decoration: none;
        color: #FF8C00;
    }

        main{
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
            grid-auto-rows: auto;
            gap: 15px;
            padding: 30px;
            max-width: 1300px;
            margin: 0 auto;
            flex: 1;
                background-color:#EAEAEA;

        }
    main img{
                display: block;
                width: 100%;
            max-width: 100%;
            min-width: 0;
            height: auto;
            object-fit: cover;
            border-radius: 10px;
            transition: transform 0.3s ease, box-shadow 0.3s ease;
            cursor: pointer;
    }
    main img:hover{
        transform: scale(1.05);
      box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    }

section{
      display: none;
      position: fixed;
      z-index: 100;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: rgba(0,0,0,0.8);
      justify-content: center;
      align-items: center;
    }
section img{
        width: auto;
    height: 90vh; /* 90% wysokości ekranu */
    max-width: 100%;
    border-radius: 10px;
      
    }
footer{
    background-color:#EAEAEA;
    text-align: center;
    padding: 15px 0;
    margin-top: 20px;
}
.social-buttons {
    position: fixed;      /* przyklejone do lewej strony */
    top: 50%;             /* wyśrodkowane pionowo */
    left: 0;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 1000;
}

.social-buttons .btn {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    color: #fff;
    text-decoration: none;
    font-size: 20px;
    border-radius: 0 10px 10px 0;
    transition: all 0.3s;
    background-color: #FF8C00;
}



.social-buttons .btn:hover {
    transform: translateX(10px); /* przesunięcie w prawo po hover */
}
.btn img{
    max-width: 100%;   /* dopasowanie obrazka do przycisku */
    max-height: 100%;
}
.btn:hover {
    background-color: #005fcc;
}
#podglad {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999;
}

#podglad img {
    max-width: 90%;
    max-height: 90%;
}

#podglad .nav {
    position: absolute;
    background: none;
    border: none;
    color: white;
    font-size: 60px;
    cursor: pointer;
    padding: 20px;
    user-select: none;
}

#podglad .left {
    left: 30px;
}

#podglad .right {
    right: 30px;
}

#podglad .nav:hover {
    color: #ccc;
}

/* Responsywność stosowana tylko dla ekranów węższych niż 1400px */
@media (max-width: 1400px) {
    header{ justify-content: space-between; flex-wrap: wrap; padding: 10px 20px; }
    nav{ width: 100%; padding: 10px; }
    nav img{ height: 140px; margin-left: 0; margin: 10px 0; }
    main{ max-width: 1100px; margin: 20px auto; padding: 20px; }
    .social-buttons{ top: auto; bottom: 10px; left: 10px; transform: none; flex-direction: row; }
    .social-buttons .btn{ width: 44px; height: 44px; border-radius: 8px; }
    main img{ width: 100%; height: auto; }
}

@media (max-width: 768px){
    nav img{ height: 100px; }
    main{ padding: 12px; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
}

@media (max-width: 480px){
    nav img{ height: 80px; }
    main{ gap: 8px; padding: 8px; }
}
