@font-face {
    font-family: bebas;
    src: url(../files/bebas.ttf);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    height: auto;
    overflow-x: hidden; /* Blokowanie poziomego scrolla */
    
    
}

body {
    min-height: 100vh; /* Zapewnia możliwość scrollowania */
    display: flex;
    flex-direction: column;
    
    background-color: #273850;
}
 
      
.header {
    position: fixed;
    top: 0;
    width: 100%;
    height: 12vh; /* Zamiast 12%, co jest bardziej niezawodne */
    max-height: 12vh;
    background: linear-gradient(#00C8FF, #0093bb);
    box-shadow: 0px 0px 2px #5fdcff, 3px 5px 20px #004b60;
    z-index: 1000; /* Zapewnia, że header zawsze będzie na wierzchu */
}



    
      
       .header:hover {
          opacity: 100%;
          box-shadow:  0px 0px 4px #5fdcff, 3px 5px 20px #004b60 ;
          
       }
       
       #logo {
        display: flex; /* Zapewnia poprawne wyrównanie */
        align-items: center;
        justify-content: center;
        height: 100%; /* Pełna wysokość headera */
        text-decoration: none; /* Usuwa domyślne podkreślenie linku */
    }
    
    #logotyp {
        display: flex;
        max-height: 85%; /* Większe logo */
        max-width: 12vw;
        height: auto;
        width: auto;
        filter: drop-shadow(0px 0px 5px #ffffff);
        margin-top: auto;
        margin-bottom: auto;
        margin-right: 0.5%;
        align-items: center;
        object-fit: contain;
    }

        
        .sticky {
          position: fixed;
          opacity: 70%;
          top: 0;
          width: 100%;
          box-shadow:  0px 0px 0px #5fdcff, 0px 0px 0px #004b60 ;
          transition: opacity 0.2s ease-in-out !important;
        }

        #nav{
            display: flex;
            height: 100%;
            width: 100%;

justify-content: center;
align-items: center;
margin: 0;
  padding: 0;
  

        }

        #menu {
            display: flex;
            flex-wrap: wrap; 
            justify-content: center;
            align-items: center;
            width: 100%;
            padding: 1vw;
            gap: 1vw; 
        }
        
        li {
            display: flex;
            font-size: 2vw; 
            font-family: bebas;
            margin: 1vw;
            justify-content: center;
            align-items: center;
            flex: 1 1 auto; 
        }
       
        
        #textmenu:hover {
            border-radius: 8px 8px 8px 8px;
            box-shadow:  0px 0px 11px rgb(255, 255, 255);
            background-color: #00c8ff;
            
            

        }
        #textmenu {
            display: flex;
            flex-direction: row;
            text-decoration: none;
            list-style-type: none;
            color: aliceblue;
            font-size: 2vw; 
            transition: background-color 0.2s ease-in-out, 
                box-shadow 0.2s ease-in-out, 
                border-radius 0.2s ease-in-out;
            
        }





        #menu-toggle {
            color: #ffffff;
            display: flex;
            align-items: center !important;
            text-justify: center !important;
            text-align: center !important;
            gap: 8px; /* Odstęp między tekstem a strzałką */
            font-family: bebas !important;
            font-size: 3.7vh !important;
            flex-direction: row-reverse; /* Odwrócenie kolejności (strzałka na końcu) */
            transition: background-color 0.2s ease-in-out, 
                box-shadow 0.2s ease-in-out, 
                border-radius 0.2s ease-in-out;
        }
        #menu-toggle:hover {
            border-radius: 8px 8px 8px 8px;
            box-shadow:  0px 0px 11px rgb(255, 255, 255);
            background-color: #00c8ff;
        }
        
        #menu-text {
            display: flex;
            align-items: center;
            text-justify: center;
            text-align: center;
            color: #ffffff;
            font-family: bebas;
            font-size: 3.7vh;
            letter-spacing: 0.2vh;
        }
        



/* Płynne przejście wysokości nagłówka */
.header {
    transition: height 0.3s ease-in;
}




/* Ukrywanie przycisku strzałki dla szerokości >750px */
@media screen and (min-width: 751px) {
    .menu-toggle {
        display: none !important;
    }
    #logo-collapsed {
        display: none !important;
        
    }
}

/* Mobilny układ poniżej 750px */
@media screen and (max-width: 750px) {
    /* Zwinięty header - tylko przycisk jest widoczny */
    .header.collapsed {
        height: 8vh;
        max-height: 8vh;
        display: flex;
        justify-content: center;
        align-items: center;
        overflow: hidden;
        
    }

    /* Ukrywamy logo i menu w zwiniętym stanie */
    .header.collapsed #menu {
        display: none;
    }
    .header.collapsed #nav {
        display: none !important;
    }

    
    /* Domyślnie ukrywamy drugie logo */
#logo-collapsed {
    display: none;
    position: absolute;
    right: 10px; /* Dostosuj odległość od prawej */
    top: 50%;
    transform: translateY(-50%);
    height: auto;
    width: auto;
}

/* Ukrywamy główne logo w zamkniętym headerze */
.header.collapsed #logo {
    display: none !important;
}

/* Pokazujemy drugie logo w zamkniętym headerze */
.header.collapsed #logo-collapsed {
    display: flex; /* Zapewnia poprawne wyrównanie */
    align-items: center;
    justify-content: center;
    height: 100%; /* Pełna wysokość headera */
    text-decoration: none; /* Usuwa domyślne podkreślenie linku */
}

.header.collapsed #logotyp-collapsed {
    display: flex;
    max-height: 85%; /* Większe logo */
    height: auto;
    width: auto;
    filter: drop-shadow(0px 0px 5px #ffffff);
    margin-top: auto;
    margin-bottom: auto;
    margin-right: 0.5%;
    align-items: center;
    object-fit: contain;
}
    
    /* Rozwinięty header - pokazujemy menu i logo */
    .header.expanded {
        width: 100%;
        max-width: 100%;
        min-width: 100%;
        min-height: 60%;
        max-height: 60%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .header.expanded #logo,
    .header.expanded #logotyp{
        display: none !important;
    }

    
    .header.expanded #menu {
        display: flex;
    }

    /* Menu rozwinięte */
    .header.expanded #menu {
        flex-direction: column;
        width: 100%;
        gap: 3vw !important;
        text-align: center;
        padding: 10px 0;
    }

    /* Logo i przycisk wewnątrz rozwijanego headera */
    .header.expanded #logo {
        display: inline-block !important; /* Dopasowuje się do zawartości */
    width: auto !important; /* Automatyczna szerokość zgodna z obrazkiem */
    height: auto !important; /* Automatyczna wysokość zgodna z obrazkiem */

        position: absolute !important;
        right: 5px !important;
        top: 5px !important;
    }

    .header.expanded .menu-toggle {
        margin-bottom: 20px;
    }

    /* Przycisk strzałki */
    .menu-toggle {
        display: block;
        position: relative;
        
        background: none;
        border: none;
        
        cursor: pointer;
        align-items: center !important;
        text-justify: center !important;
        text-align: center !important;
        
    }

  

    #textmenu {
      
        font-size: 7vw !important; 
        
    }
   
    .icon {
        width: 7.6vw !important; 
        height: 7.6vw !important;
        
    }

    #nav {
     flex-direction: column;

    }
}

















        @media screen and (max-width: 1400px) {
           
            #textmenu {
              
                font-size: 2.0vw; 
                
            }
           
            li {
                
                margin: 0.5vw;
               
            }
            
        }
        
        .icon {
            width: 2.5vw; 
            height: 2.5vw;
            margin-right: 0.5vw;
        }

        @media screen and (max-width: 1400px) {
           
            .icon {
                width: 2.4vw; 
                height: 2.4vw;
                
            }
            
            .header{
                 height: 10vh;

            }
            
        }


        

        @media screen and (max-width: 1055px) {
           
            #textmenu {
              
                font-size: 1.7vw; 
                
            }

            .icon {
                width: 1.7vw; 
                height: 1.7vw;
                
            }
            
            .header{
                 height: 8vh;

            }

            li {
                
                margin: 0.1vw;
               
            }
            
        }
       
        





      
        
        .image-blocks-container {
          display: flex;
          flex-wrap: wrap;
          justify-content: center;
          padding: 20px;
          gap: 20px;
          min-height: 22.59vw;
          align-items: center;
          background-color: #253451;
        }
        
        /* Wspólne */
        .image-block {
          position: relative;
          background-size: cover;
          background-position: center;
          transition: transform 0.5s ease;
          cursor: pointer;
          border-radius: 7px;
          filter: brightness(1.2);

        }
        
        .image-block-label {
          position: absolute;
          top: 50%;
          left: 50%;
          transform: translate(-50%, -50%);
          color: white;
          font-size: 3rem;
          font-weight: bold;
          text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
          pointer-events: none;
          text-align: center;
          letter-spacing: 4px;
          font-family: impact;
        }
        
        .image-block:hover {
          transform: scale(1.05);
        }
        
        /* Desktop: stałe 400x225 */
        @media (min-width: 901px) {
          .image-block {
            width: 580px;
            height: 385px;
          }
        }
        
        /* Tablety: stałe 300x169 */
        @media (min-width: 601px) and (max-width: 900px) {
            .image-block {
            width: 75%;
            aspect-ratio: 16 / 9;
            height: auto;
          }
        }
        
        /* Telefony: 100% szerokości i aspect-ratio */
        @media (max-width: 600px) {
          .image-block {
            width: 100%;
            aspect-ratio: 16 / 9;
            height: auto;
          }
        }
        
        
        


        

        
        
        
        footer {
            width: 100%;
            background-color: #0e2546;
            color: white;
            padding: 15px 5%;
            font-family: bebas;
            display: flex;
            flex-direction: column;
            align-items: center;
            text-align: center;
        }
        
        .footer-content {
            width: 100%;
            display: flex;
            justify-content: center;
            align-items: center;
            flex-wrap: wrap;
        }
        
        .footer-icons {
            display: flex;
            gap: 20px; /* Odstęp między ikonami */
            flex-wrap: wrap;
            justify-content: center;
        }
        
        .footer-item {
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 1.2em;
            text-decoration: none;
            color: white;
            transition: 0.3s;
        }
        
        .footer-item:hover {
            color: #004b60;
        }
        
        .footer-item i {
            font-size: 1.5em;
        }
        
        .footer-bottom {
            margin-top: 10px;
            font-size: 0.9em;
            text-align: center;
        }
        
       
        
        






           


@media screen and (max-width: 1024px) {
    #logo {
        max-width: 18vw; /* Większe logo na tabletach */
    }
    
    #logotyp {
        max-width: 14vw;
    }
}

@media screen and (max-width: 768px) {
    #logo {
        max-width: 22vw; /* Jeszcze większe logo na telefonach */
    }
    
    #logotyp {
        max-width: 18vw;
    }
}

element {
    overflow-x: hidden; /* Ukrywa pasek przewijania poziomego */
    overflow-y: hidden; /* Ukrywa pasek przewijania pionowego */
  }

  

  .cookie-box {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 400px;
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 15px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 1000;
}

.cookie-box p {
    margin: 0 0 10px 0;
    font-size: 14px;
    font-family: arial;
    font-weight: bold;
}

.cookie-box button {
    background-color: #00C8FF;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-family: arial;
    font-weight: bold;
    transition: background-color 0.3s;
}

.cookie-box button:hover {
    background-color: #008dbb;
}

.hidden {
    display: none !important;
}


.admin-badge {

    width: 50px;

    height: 50px;

    background-color: #333;

    color: white;

    font-size: 24px;

    display: flex;

    align-items: center;

    justify-content: center;

    cursor: pointer;

    border-radius: 0px 5px 5px 0px;

    opacity: 0.75;

    position: fixed;

    top: calc(12vh + 2%);

    left: 0;

    display: flex;

    flex-direction: column;

    gap: 10px;

    z-index: 1500;
    text-decoration: none;
}



.admin-badge:hover {

    transition: opacity 0.3s ease-in-out, background-color 0.3s ease-in-out;

    background-color: #333;

    opacity: 1;

}