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

        html, body {
            scroll-behavior: smooth;
            font-family: Trebuchet MS,Lucida Grande,Lucida Sans Unicode,Lucida Sans,Tahoma,sans-serif;
            color:#000;
            overflow-x: hidden;
            transition: 0.5 ease-in;
        }
::selection { background: #579A51;color: #fff;}
a { color:#4CAF50;text-decoration: underline;transition: color 500ms ease; }
a:hover { color:#000;text-decoration: none; }
img { vertical-align: middle;border: 0px none; }

header {
    width: 100%;
    height: 75px;
    overflow: hidden;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 999;
    background-color: #ff9600fa;
    background-repeat: repeat-x;
    text-align: center;
    transition: all 0.8s;
}

.smaller { box-shadow: #211d18 0px 1px 8px 0px;display:block; }
.smaller img { display:block; }

h1#logo {
    display: inline-block;
    position: relative;
    margin: 0;
    padding: 0;
    float: left;
}

h1#logo a {
    display: block;
    text-indent: -5000px;
    outline: none;
    margin: 0 auto;
    overflow: hidden;
    position: relative;
    font-size: 8px;
}

h2 { margin: 14px 0;font-size: 34px; }

header img.logo {
    width:75px;
    height: 75px;
}

header button {
    background: #ffffff;
    color: #ff9600;
    border: none;
    margin:7px 4px 0;
    width: 60px;
    border-radius: 0 8px;
    cursor: pointer;
    font-size: 22px;
    font-weight: 600;
    height: 60px;
    box-shadow: 1px 1px 2px 1px #000;
    transition: all 1.3s ease;
    float:right;
}

header button:hover { box-shadow: inset 1px 1px 2px 0px #000;background:#eee;color:#000; }

.logo { display: block;}

        .section {
            width: 100vw;
            display: flex;
            justify-content: center;
            font-size: 2rem;
        }

        /* Pierwsza sekcja - pełny ekran */
#section1 {
    height: 100vh;
    background: radial-gradient(ellipse at center, #ffa84c 0%, #ff7b0d 100%);
    color: white;
    position: relative;
}

#section1 .siatka { margin: 0 auto;
    display: grid;
    grid-template-columns: 55% 45%;
    grid-template-rows: 165px 55% auto;
    height: 89%;
    align-items: center;
}

#section1 h1 {
    text-shadow: 0 0 4px black;
    grid-column: 2 / 2;
    grid-row: 2 / 3;
    text-align: center;
}

#section1 img {
    grid-column: 1 / 2;
    grid-row: 1 / 3;
    width: 100%;
}

#section1 .ads {
    grid-column: 1 / 3;
    grid-row: 3 / 3;
    margin: 0 auto;
    width: 100%;
    text-align: center;
    height: 250px;
    background:#000000fa;
    align-self: start;
}

        /* Druga sekcja - normalne przewijanie */
        #section2 {
            background: #fff;
            padding: 90px 0 24px;
        }

.s3 { background: #fff;padding: 90px 0 24px; }
.s4 { background: #fff; }

        #okrag {
            position: absolute;
            bottom: 0;
            background: #fff;
            height: 60px;
            width: 100%;
            border-radius: 50% 50% 0 0;
            box-shadow: inset #000 0px 3px 2px 0px;
        }
#cookie-consent { display:none; position: fixed; bottom: 10px; left: 10px; background-color: #333; color: #fff; padding: 10px 20px; border-radius: 14px 0; z-index: 1000;box-shadow: 0 0 4px 0px #000; }

footer { background:#211d18;color:#fff;padding:14px 0;border-top: 4px solid #579a51;border-bottom: 6px double #ff7b0d; }

.footer {
    margin: 14px auto !important;
    overflow: hidden;
    display: flex !important;
    justify-content: space-between;
    flex-wrap: wrap;
    position: relative;
}

#ciekawostka { border: 2px solid #555;padding: 14px;border-radius: 8px;width: calc(100% - 126px);margin: 25px -60px 0 66px;
    display: block;position: relative;font-family: "Goudy Old Style", Garamond, "Big Caslon", "Times New Roman", serif;font-size: 24px;background: #ffffffad; }
#ciekawostka::after { content: "czy wiesz, że...";position: absolute;top: -20px;left: 4px;font-family:arial;font-size: 13px;font-weight: 600; }

.tree { background: url(../img/tree.webp), #fff;background-position: right 88px bottom 0;background-repeat:no-repeat; }

.foot-a a { font-size:12px;display:inline-block;text-align:center;margin:14px 8px 0;text-decoration:none;font-weight: 700; }
.foot-a a:hover { color:#fff; }
.footer i { font-size:44px;display:block; }

#menu_bok {
    position: fixed;
    bottom: 20%;
    right: 0;
    z-index: 999;
    font-size: 22px;
    display: flex;
    flex-direction: column;
    align-items: flex-end; /* Wyrównanie do prawej */
}

#menu_bok a {
    width: 48px; /* Początkowa szerokość */
    height: 50px; /* Stała wysokość dla spójności */
    background: #ddd;
    color: #000;
    display: flex;
    align-items: center;
    justify-content: flex-start; /* Wyrównanie tekstu do lewej */
    box-sizing: border-box;
    overflow: hidden;
    text-decoration: none;
    transition: width 0.4s ease-in-out;
    border-radius: 5px 0 0 5px;
    white-space: nowrap;
    padding-left: 10px;
    margin-top: 8px;
    border: 2px solid #000;
    border-right: none;
}

#menu_bok a:hover {
    width: 140px; /* Powiększanie po hover */
}

#menu_bok .fa {
    font-size: 32px;
    margin-right: 10px; /* Odsunięcie ikony od tekstu */
}

.img-pytanie {
    float: left;
    margin-left: -64px;
    margin-right: 8px;
}

.img-pytanie2 { position:absolute;left:44px; }

.wrapper {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 4px;
    display: block;
    position: relative;
}

.lapka {
        width: 80px;
    height: 80px;
    position: fixed;
    display: block;
    margin: 0 auto;
    padding:8px;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    text-align: center;
    opacity: 1;
    border-radius: 50%;
    transition: all 0.5s;
    border:3px solid #FF9600;
    color:#000;
}

.lapka i { animation: pulsowanie 1s infinite alternate;font-size:44px;position: absolute;transform: translateX(-50%);top: 0;color: #000; }

@keyframes pulsowanie
{
from {margin-top:10px;}
to {margin-top:25px;}
}
@-webkit-keyframes pulsowanie
{
from {margin-top:10px;}
to {margin-top:25px;}
}

.smaller1 { display:none; }

.show-in { opacity: 0;animation: showIn 1s forwards; }

@keyframes showIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

header .fa { opacity: 0;font-size: 36px;animation: showG 0.5s ease forwards; }

@keyframes showG {
  from {
    opacity: 0;
    filter: blur(4px);
  }
  to {
    opacity: 1;
    filter: blur(0);
  }
}

#dynamic-content, #narrow-content {
    height: 77px;
    width: 370px;
    border: 5px solid #579a51;
    margin: 4px 0;
}

.no-js { display: none !important; }

.night-mode {
  filter: invert(1) hue-rotate(180deg);
  transition: filter 0.3s ease;
}

.night-mode .puzzle-piece, .night-mode img, .night-mode .card, .night-mode .cell { filter: invert(1) hue-rotate(180deg); }
.night-mode .cell { background:#181818; }
.button {
    display: inline-block;
    width: calc(100% - 40px);
    padding: 14px 0;
    background: #ff7b0d;
    color: #fff;
    text-align: center;
    text-decoration: none;
    border-radius: 8px 0;
    box-shadow: 1px 1px 2px 1px #000;
    transition: all 0.3s ease;
    margin: 10px 5px 10px 0;
}

#section2 button, h2 button, #another-favorites button {
    width: 36px;
    height: 36px;
    display: inline-flex; 
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    font-size:28px;
    cursor: pointer;
}

.container {
    display: flex;
    align-items: center;
    gap: 5px;
    justify-content: center;
    padding-left: 40px;
}

#section2 .fa { float:right;transition:all 0.5s ease; }
#section2 .fa:hover { color:#ff7b0d; }

#section2 h2 { margin:0 0 22px 0;text-align: center; }

.button:hover { box-shadow: inset 1px 1px 2px 0px #000;background:#eee;color:#000; }

#favorites { text-align: center;margin:14px 0; }
#another-favorites {
    display: block;
    width: 100%;
}
.button1 {
    display: inline-block;
    padding: 14px 10px;
    background: #ff7b0d;
    color: #fff;
    text-align: center;
    text-decoration: none;
    border-radius: 8px 0;
    box-shadow: 1px 1px 2px 1px #000;
    transition: all 0.3s ease;
    margin: 4px 6px 0;
    font-size: 22px;
    cursor: pointer;
}
.button1:hover, .MQ:hover { background:#fff;color: #ff7b0d; }

.MQ { background:#579a51; }

#welcomeDiv {
    overflow-y: auto;
    overflow-x: hidden;
    text-align: center;
    width: 92%;
    margin: 0 auto ;
    max-width: 990px;
    position: relative;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding:10px 0;
}

#welcomeDiv h3 { width: 100%; }
#welcomeDiv .button1 { margin:8px; }

.welcome_menu {
  position:fixed;
  left: 0;
  top: 0;
  overflow-y: scroll;
  overflow-x: hidden;
  width: 100%;
  height: 100vh;
  z-index:99999;
  display:none;
  background-color: #ece8dff0;
  text-align: center;
}

.menu_list .button1 { font-size:18px; }

.cb {
    display: inline-block;
    font-size: 36px;
    transition: all 0.4s;
    width: 54px;
    height: 54px;
    border: 2px solid #000;
    padding: 4px;
    position: absolute;
    border-radius: 8px 0;
    overflow: hidden;
    box-shadow: 0 0 2px 2px #000;
    right: 8px;
    top: -8px;
    background: #fff;
    cursor: pointer;
}
.cb:hover { transform: rotate(25deg);border: 2px solid transparent;filter: blur(2px);box-shadow:none;background:transparent; }

.w_menu { margin: 22px auto;max-width: 990px;padding:0 78px;position:relative; }

#zglos {
    background: #f10 !important;
    font-size: 16px;
    text-align: center;
    color: #fff !important;
}

    .no-scroll {
      height: 100vh !important;
    }

.statystyki p { font-size:28px;line-height:2em;text-align: center; }
.statystyki span { font-weight:900; }
#averagePercentage { font-size:98px;display:block;text-align:center;font-family: Impact, Haettenschweiler, "Franklin Gothic Bold", Charcoal, "Helvetica Inserat", "Bitstream Vera Sans Bold", "Arial Black", "sans serif"; }
.note { font-size:14px !important;color:#999;margin: 14px 0; }


.style1 { width: 90%;margin: 14px auto; }
.style2 { width: 50%;margin: 14px auto; }

input, textarea {
  width: 100%;
  max-width:600px;
  font-size:18px;
  padding: 6px 10px;
  margin: 0 0 14px 0;
  box-sizing: border-box;
  border-radius: 6px 0;
}

input:focus, textarea:focus { background-color: #eee;border:2px solid #4CAF50; }

/* MEDIA */

@media all and (max-width: 1150px) {

.section { display:block;text-align:center; }
 .srodek { margin: 0 0.5%; }
 h4.adres { font-size: 46px !important; }
 .img-pytanie { float: left;margin-left: 2px;margin-right: 8px; }
}

@media (max-width: 768px) {
    #section1 .siatka {
        grid-template-columns: 100%;
        grid-template-rows: auto 60px auto;
    }
    #section1 img, #section1 h1, #section1 h2 {
        grid-column: 1 / 2;
        grid-row: auto;
    }
    #section1 h1 { font-size: 28px; }
    #section1 h2 { font-size: 24px; }
    #section1 img { margin:0 auto; max-width: 700px;align-self: end; }
    #section1 .ads { align-self: start; }
    #ciekawostka { width: calc(100% - 60px);margin: 25px 0 8px 8px; }
}


/* noscript */

#brakjs { font-size:22px; }
#brakjs fieldset { padding: 5px;margin-bottom: 10px; }

#brakjs label {
    display: block;
    font-size: 16px;
    color: #222;
    padding: 8px;
    background: #eee;
    border-radius: 5px;
    margin: 5px 0;
    cursor: pointer;
    transition: background 0.3s ease;
}

#brakjs label:hover {
    background: #ddd;
}

#brakjs input[type="radio"] {
    margin-right: 10px;
}