body {
    background-color: rgba(100, 149, 237, 0.9);
    background-image: url(basen.png);
    background-position: top right;
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
    overflow-x: hidden;
}

html {
    width: 100%;
}

h1 {
    color: white;
    text-align: right;
    font-family: Tahoma, sans-serif;
    line-height: 150%;
    font-size: small;
    text-shadow: 0px 0px 5px black;
    margin: 10px;
}

h2 {
    color: #ffd700;
    font-family: Tahoma, sans-serif;
    text-align: center;
    width: 100%;
    float: left;
    margin: 0 auto;
    font-size: xx-large;
    line-height: 130%;
    text-shadow: 0px 0px 5px black;
}

@media screen and (max-width: 768px) {
    h2 {
        font-size: 25px;
    }
}

h3 {
    color: #ffd700;
    font-family: Tahoma, sans-serif;
    text-align: center;
    padding: 0;
    margin: 2%;
    font-size: 200%;
    width: 100%;
    float: left;
    text-shadow: 0px 0px 5px black;
}

@media screen and (max-width: 768px) {
    h3 {
        font-size: 25px;
    }
}

h4,
h5,
h6 {
    color: #ffd700;
    font-family: Tahoma, sans-serif;
    text-align: center;
    padding: 0;
    margin: 0;
    font-size: 120%;
    width: 90%;
    text-shadow: 0px 0px 5px black;
}

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

    h4,
    h5,
    h6 {
        font-size: 16px;
    }
}

p {
    color: yellow;
    margin: 1%;
    font-size: 14px;
    text-align center;
    text-indent: 2em;
    font-family: Tahoma, sans-serif;
    line-height: 130%;
}

.p1 {
    float: left;
    color: white;
    font-size: 18px;
    text-align: justify;
    text-indent: 2em;
    font-family: Tahoma, sans-serif;
    margin: 20px;
    line-height: 130%;
    width: 90%;
}

@media screen and (max-width: 768px) {
    .p1 {
        font-size: 14px;
    }
}

.p2 {
    float: left;
    color: white;
    font-style: italic;
    font-size: 18px;
    text-align: justify;
    text-indent: 2em;
    font-family: Tahoma, sans-serif;
    margin: 20px;
    line-height: 130%;
    width: 90%;
    clear: both;
}

@media screen and (max-width: 768px) {
    .p2 {
        font-size: 14px;
    }
}

.p3 {
    float: left;
    color: white;
    font-size: 18px;
    text-align: center;
    text-indent: 2em;
    font-family: Tahoma, sans-serif;
    margin: 20px;
    line-height: 130%;
    width: 90%;
}

.podpis {
    color: white;
    font-style: italic;
    font-size: small;
    text-align: right;
    float: right;
    font-family: Tahoma, sans-serif;
    margin: 0 5% 2% 0;
    width: 100%;
}

/*odsyłacze*/
a:link {
    color: yellow;
    text-decoration: none;
    font-family: Tahoma, sans-serif;
}

a:visited {
    color: yellow;
    text-decoration: none;
    font-family: Tahoma, sans-serif;
}

/*navi*/
.topnav {
    overflow: hidden;
    text-align: center;
    background-color: yellow;
}

.topnav a {
    display: inline-block;
    font-family: Tahoma, sans-serif;
    color: blue;
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
    font-size: 18px;
}

.topnav a:hover {
    background-color: navy;
    color: #ebebeb;
}

.topnav .icon {
    display: none;
}

@media screen and (max-width: 1200px) {
    .topnav {
        text-align: left;
    }

    .topnav a:not(:first-child) {
        display: none;
    }

    .topnav a.icon {
        float: right;
        display: block;
    }

    .topnav.responsive {
        position: absolute;
    }

    .topnav.responsive a.icon {
        position: absolute;
        right: 0;
        top: 0;
    }

    .topnav.responsive a {
        float: none;
        display: block;
        text-align: left;
    }
}



/*boxy*/

#container {
    width: 99%;
    background-image: url(plywanie.png);
    min-width: 310px;
    max-width: 1200px;
    background-color: rgba(16, 78, 139, 0.7);
    background-repeat: no-repeat;
    border-radius: 20px;
    background-position: right top;
    background-size: 550px;
    box-shadow: 3px 3px 3px black;
    margin: 2% auto;
    height: 100%;
    border-right: 3px solid black;
    /*dla IE8*/
    border-bottom: 3px solid black;
    /*dla IE8*/
}

#baner {
    min-height: 180px;
    background-image: url(logo.png);
    background-repeat: no-repeat;
    background-position: left center;
    background-position: 2%;
    background-size: contain;
    background-size: 20%;
    background-size: 160px;
    border-radius: 20px 20px 0 0;
}

@media screen and (max-width: 768px) {
    #baner {
        background-size: 15%;
        background-size: 120px;
    }
}

section {
    float: left;
    width: 50%;
    min-width: 320px;
    height: 100%;
}

@media screen and (max-width: 768px) {
    section {
        float: left;
        width: 100%;
        min-width: 320px;
        height: 100%;
    }
}



header {}

footer {
    width: 100%;
    border-top: 2px solid yellow;
    /*dla IE8*/
    background-color: rgb(16, 78, 139);
    /*dla IE8*/
    height: 50px;
    border-radius: 0 0 20px 20px;
    clear: both;
}

/*obrazki*/
.baner {
    float: right;
    margin: 29px 0 0 0;
    width: 40%;
}

#film {
    margin: 5%;
    width: 90%;
    min-width: 300px;
}

.doprawej {
    margin: 3% 10%;
    float: right;
    border: none;
}

.centrum {
    margin: 10px 0 2px 45px;
}

.licznik {
    margin: 10px 0 0 5px;
}

.dolewej {
    margin: 5%;
    min-width: 300px;
    width: 55%;
}

.dolewejbis {
    margin: 3% 10%;
    float: left;
    border: none;
}

.obraz {
    /* margin: 3% 15%; */
    margin: 1% 5%;
}

.filesToDownload {
    width: 35px;
    height: 50px;
}

/*efekt big*/
.efektbig {
    overflow: hidden;
    padding: 0;
    min-width: 300px;
    width: 70%;
    margin: 4% auto;
}

.efektbig img {
    transition-duration: 3s;
    margin: 0 auto;
    display: block;
}

.efektbig img:hover {
    transform: scale(1.2);
    -webkit-transform: scale(1.2);
    -moz-transform: scale(1.2);
    z-index: 0;
}



/*lista*/
ol {
    list-style-type: disc;
    font-size: 18px;
    margin-left: 5px;
    margin-right: 2%;
    list-style-position: outside;
    width: 85%;
    float: left;
}

li {
    color: white;
    text-align: left;
    font-family: Tahoma, sans-serif;
    line-height: 130%;
}

@media screen and (max-width: 768px) {
    ol {
        font-size: 14px;
    }
}

/*galeria*/
.zdjecia {
    text-align: center;
    color: white;
    font-family: Tahoma, sans-serif;
}

.zdjecia_menu {
    margin-bottom: 10px;
    font-size: 10px;
    color: white;
    font-family: Tahoma, sans-serif;
}

.zdjecia_menu input,
.zdjecia_menu select {
    font-size: 10px;
    color: white;
    font-family: Tahoma, sans-serif;
    background-color: rgba(100, 149, 237, 0.4);
}

.zdjecia_opis {
    margin-top: 10px;
    margin-bottom: 20px;
    text-align: center;
    color: gold;
    font-family: Tahoma, sans-serif;
}


/*tabele*/
table {
    margin: 1em;
    width: 95%;
    min-width: 330px;
    font-weight: normal;
    font-family: Tahoma, sans-serif;
    border: 2px solid #ffd700;
    float: left;
}

td {
    border: 1px solid #2456B9;
    padding: 5px 5px;
    font-size: 75%;
    text-align: left;
    background-color: rgb(128, 128, 255);
    /*dla IE8*/
    background-color: rgba(101, 155, 231, 0.6);
    color: white;
}

th {
    border: 1px solid gold;
    padding: 5px 5px;
    font-size: 80%;
    background-color: rgb(128, 128, 255);
    /*dla IE8*/
    background-color: rgba(101, 155, 231, 0.6);
    color: #ffd700;
}

.uwagafixed {
    color: white;
    width: 85%;
    background-color: red;
    font-size: large;
    font-weight: bold;
    text-align: center;
    border: 5px solid #ffd700;
    border-radius: 15px;
    box-shadow: 5px 5px 5px black;
    padding: 2px;
    bottom: 4%;
    left: 5%;
    position: fixed;
}
    /* Styl modala */
    .modal {
      display: none; /* Ukryty domyślnie */
      position: fixed;
      z-index: 1000;
      left: 0;
      top: 0;
      width: 100%;
      height: 100%;
      overflow: auto;
      background-color: rgba(0,0,0,0.5); /* Przyciemnione tło */
    }
.contact-button img {
  display: block;
  height: 20px;
  width: 20px;
}
    /* Zawartość modala */
    .modal-content {
      background-color: #fff;
      margin: 10% auto;
      padding: 20px;
      border: 1px solid #888;
      width: 90%;
      max-width: 500px;
      border-radius: 8px;
      position: relative;
    }

    /* Przycisk zamknięcia */
    .close {
      color: #aaa;
      position: absolute;
      top: 10px;
      right: 15px;
      font-size: 28px;
      font-weight: bold;
      cursor: pointer;
    }

    .close:hover,
    .close:focus {
      color: black;
      text-decoration: none;
    }

    /* Przycisk otwierający modal */
    .contact-button {
      position: fixed;
      bottom: 20px;
      right: 20px;
      background-color: #007BFF;
      color: white;
      border: none;
      padding: 12px 20px;
      font-size: 16px;
      border-radius: 25px;
      cursor: pointer;
      z-index: 999;
      box-shadow: 0 4px 6px rgba(0,0,0,0.2);
    }

    .contact-button:hover {
      background-color: #0056b3;
    }

    /* Formularz */
    form label {
      font-weight: bold;
    }

    form input,
    form textarea {
      width: 100%;
      padding: 8px;
      margin-top: 4px;
      margin-bottom: 12px;
      border: 1px solid #ccc;
      border-radius: 4px;
    }

    form input[type="submit"] {
      background-color: #28a745;
      color: white;
      border: none;
      cursor: pointer;
    }

    form input[type="submit"]:hover {
      background-color: #218838;
    }