
body {
    font-family: 'open sans', sans-serif, Arial, Georgia;
    margin: 0px;
    padding: 0px;
   
  
}

header, nav, section, footer {
    margin: 10px;
    padding: 15px;
    border: 1px solid #ccc;
    text-align: center;
  
}

/* Podstawowe style */

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #fff;
    color: black;
    padding: 1rem 2rem;
    position: sticky;
  top:0;
}

.logo { font-size: 1.5rem; font-weight: normal; color: #1b5f77d0;
      }

.menu-links {
    display: flex;
    list-style: none;
    gap: 20px;
    margin: 0;
    padding: 0;
}

.menu-links a {
    text-decoration: none;
    color: black;
    transition: 0.3s;
}

.menu-links a:hover { color: #f4a261; }

/* Ukrycie hamburgera na desktopie */
#menu-toggle { display: none; }
.hamburger { display: none; cursor: pointer; }
.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: black;
    transition: all 0.3s ease-in-out;
  
}

/* RESPONSYWNOŚĆ - Media Query (dla komórek < 768px) */
@media (max-width: 768px) {
    .menu-links {
        display: none; /* Ukryj linki domyślnie na mobile */
        flex-direction: column;
        width: 40%;
        background-color: #fff;
        position: absolute;
        top: 100%; /* Poniżej paska menu */
        right: 0;
        padding: 1rem 0;
        text-align: center;
        font-size:18px;

    }

    .menu-links li { margin: 15px 0; }
    
    .hamburger { display: block; } /* Pokaż hamburger na mobile */

    /* Gdy checkbox jest zaznaczony (menu otwarte) */
    #menu-toggle:checked ~ .menu-links {
        display: flex;
    }

    /* Animacja hamburgera do X */
    #menu-toggle:checked ~ .hamburger .bar:nth-child(2) { opacity: 0; }
    #menu-toggle:checked ~ .hamburger .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    #menu-toggle:checked ~ .hamburger .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}



  

nav ul {
    list-style: none;
    padding: 0;
}

nav li {
    display: inline;
    margin-right: 10px;

    
}
h1,
h2,
h3,
h4,
h5,
h6 {
    text-align: center;
    color: #1b5f77d0;
    font-weight: 500;    
}

h1 {
    font-size: 40px;
    line-height: 2.5rem;
  
   
}
          
h2 {
    font-size: 30px;
    line-height: 2.0rem;
    
}

h3 {
    font-size: 24px;
    line-height: 1.5rem;

}

p { font-size: 18px;
     text-align: center;
     color: #080808d0;

}
A:link {
    COLOR: rgb(15, 155, 150);
    TEXT-DECORATION: none
    
}

A:visited {
    COLOR: rgb(28, 134, 46);
    TEXT-DECORATION: none
}

A:active {
    COLOR: rgb(24, 114, 10);
    TEXT-DECORATION: none
}

A:hover {
    COLOR: #febe10;
    TEXT-DECORATION: none


}

div { display:inline-block;
      text-align:center;
     width:100%;
     

    }


/* Styl dla komórek (domyślny) */
 img {
    max-width: 100%;
    height: auto;
    border-radius:20px; /* Np. zaokrąglone rogi tylko na telefonie */
    margin-top: 20px;
   
}

/* Styl dla laptopów/ekranów szerokich (np. powyżej 768px) */
@media (min-width: 768px) {
 img {
        max-width: 20%; /* Na laptopie obrazek zajmuje połowę ekranu */
        top:100%;   
        margin-right: 20px;
   
    }
}         

iframe {
        width: 100%;
       display:inline-block;
          

}

.table {
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
    margin-bottom: 1%;
}

.table
th,td { 
    font-size: 16px;
    border-top: 1px solid #ddd;
    padding: 15px 12px;
    text-align: center;
    vertical-align: top;
   
}

.table tbody tr:nth-child(even) td {
    background-color: #f3f3f3;
}

form div {
    margin-top: 1rem;
}

label,
input,
textarea,
select,
button {
    font-size: 1.3rem;
    line-height: 1.2
}

form {
    width: 30em;
    max-width: 90%;
    margin: 0 auto;
}

label {
    margin-bottom: 0.4rem;
    display: block;
}

input,
textarea {
    padding: 0.4rem;
    width: 100%;
    border: 1px solid;
}

button {
    
    margin-top: 2rem;
    
}
hr {
    border: 1px solid #ccc;

}

footer {
    text-align: center;
    color: #777;


}
  

@media only screen and (max-width:768px) 

{

    .left,
    .right {
        width: 100%;
    }
}