* {
    padding:0;
    margin:0;
    box-sizing: border-box;
}
:root {
	--tlo-zielone: #026d00;
	--tlo-biale: #ffffff;
    --tlo-szare: #8d8d8d;
    --tekst-bialy: #ffffff;
    --tekst-zolty: #fff82c;
}
html {
	width:100%;
	height:100%;
    font-size: 18px;
    font-family: "Fuzzy Bubbles", sans-serif;
    font-weight: 400;
    font-style: normal;
}
body {
    background-color: var(--tlo-zielone);
}
.puls {
  animation: blinker 1.5s step-end infinite;
}

/* FONTY */
.fuzzy-bubbles-regular {
  font-family: "Fuzzy Bubbles", sans-serif;
  font-weight: 400;
  font-style: normal;
}

.fuzzy-bubbles-bold {
  font-family: "Fuzzy Bubbles", sans-serif;
  font-weight: 700;
  font-style: normal;
}

.lato-thin {
  font-family: "Lato", sans-serif;
  font-weight: 100;
  font-style: normal;
}

.lato-light {
  font-family: "Lato", sans-serif;
  font-weight: 300;
  font-style: normal;
}

.lato-regular {
  font-family: "Lato", sans-serif;
  font-weight: 400;
  font-style: normal;
}

.lato-bold {
  font-family: "Lato", sans-serif;
  font-weight: 700;
  font-style: normal;
}

.lato-black {
  font-family: "Lato", sans-serif;
  font-weight: 900;
  font-style: normal;
}

.lato-thin-italic {
  font-family: "Lato", sans-serif;
  font-weight: 100;
  font-style: italic;
}

.lato-light-italic {
  font-family: "Lato", sans-serif;
  font-weight: 300;
  font-style: italic;
}

.lato-regular-italic {
  font-family: "Lato", sans-serif;
  font-weight: 400;
  font-style: italic;
}

.lato-bold-italic {
  font-family: "Lato", sans-serif;
  font-weight: 700;
  font-style: italic;
}

.lato-black-italic {
  font-family: "Lato", sans-serif;
  font-weight: 900;
  font-style: italic;
}



@keyframes blinker {
  from { opacity: 1.0; }
  40% { opacity: 1.0; }
  50% { opacity: 0.5; }
  60% { opacity: 1.0; }
  to { opacity: 1.0; }
}

.odreczny {
  font-family: "Caveat", cursive;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
}
.container {
	margin:0 auto;
    -webkit-box-shadow: 5px 5px 25px 0px rgba(8, 34, 8, 1);
-moz-box-shadow: 5px 5px 25px 0px rgba(8, 34, 8, 1);
box-shadow: 5px 5px 25px 0px rgba(8, 34, 8, 1);
}
@media (min-width: 1300px) {
	.container {width:1250px;}
	nav ul li a {border-radius: 5px;}
	nav ul li a:hover{border-radius: 10px;}
    section { margin: 0 1rem 1rem 1rem;}
}
@media (max-width: 1300px) and (min-width: 1000px) {
	.container {width:950px;}
	nav ul li a {border-radius: 5px;}
	nav ul li a:hover{border-radius: 10px;}
    section { margin: 0 1rem 1rem 1rem;}
}
@media (max-width: 1000px) and (min-width: 800px) {
	.container {width: calc(100% - 30px);}
	nav ul li a {border-radius: 5px;}
	nav ul li a:hover{border-radius: 10px}
    section { margin: 0 1rem 1rem 1rem;}
}
@media (max-width: 800px) and (min-width: 500px) {
	.container {width: calc(100% - 30px);}
	nav ul li a {border-radius: 5px;}
	nav ul li a:hover{border-radius: 10px;}
    section { margin: 0 1rem 1rem 1rem;}
}
@media (max-width: 500px) {
	.container {width: calc(100% - 10px);}
	nav ul li a {border-radius: 5px;}
	nav ul li a:hover{border-radius: 10px;}
    section { margin: 0 0.2rem;}
}
header {
    display: flex;
    position: relative;
    flex-direction: row;
	padding: 10px 20px;
	border-radius: 0 0 -5px -5px;
    background-color: rgba(3, 14, 3, 0.05);
    background-image: linear-gradient(0deg, rgba(3, 14, 3, 0.05) 0%, rgba(3, 14, 3, 0.3) 7%);
    color: var(--tekst-bialy);
    gap: 0.5rem;
    align-items: flex-end;
    
    img {
        width: 4rem;
    }
    .tytul {
        font-size: 2.5rem;
        line-height: 2rem;
        padding-bottom: 0.5rem;
    }
    .podtytul {
        font-family: "Caveat", cursive;
        font-optical-sizing: auto;
        font-weight: 200;
        font-style: normal;
        font-size: 2rem;
    }
    .nazwa_uzytkownika {
        display: block;
        position: absolute;
        top: 0.4rem;
        right: 1rem;
        font-size: 0.7rem;
        color: var(--tlo-szare);
    }
}
nav {
    
    font-weight: normal;
    font-size: 0.9rem;
    padding: 0.4rem 1rem;
    ul {
        display: flex;
        flex-direction: row;
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: flex-start;
        list-style: none;
    }
    ul li {
        display: block;
        list-style-position: inside;
    }
    ul li a {
        display: block;
        color: var(--tekst-zolty);
        text-decoration: none;
        padding-left: 0.6rem;
        padding-right: 0.6rem;
        transition: ease 1s;
    }
    ul li a:hover {
        text-decoration: underline;
        transform: scale(1.1);
        transition: ease 0.5s;
    }
    ul li a.guziol {
        background-color: var(--tekst-zolty);
        color: var(--tlo-zielone);
        border: 1px solid var(--tlo-zielone);
        border-radius: 1rem;
    }
    ul li a.guziol:hover {
        background-color: var(--tlo-zielone);
        color: var(--tekst-zolty);
        border: 1px solid var(--tekst-zolty);
        text-decoration: none;
    }
}
h1 {
	font-size:2.2em;
    font-weight: 400;
    margin-top: 1rem;
}
h2 {
	font-size:1.6em;
    font-weight: 400;
    margin-top: 0.8rem;
}
h3 {
	font-size:1.4em;
    margin-top: 0.6rem;
    font-weight: 400;
}
h4 {
	font-size:1.1em;
}
section {
    color: var(--tekst-bialy);
    min-height: calc(100vh - 350px);

    a {
        color: var(--tekst-zolty);
    }
    ol {
        list-style: decimal inside;
        padding: 0.5rem 1.5rem 1rem 1.5rem;
    }
    ul {
        list-style-type: disc;
        list-style-image: inherit;
        list-style-position: inside;
        padding: 0.5rem 1.5rem 1rem 1.5rem;
    }
    .button {
        background-color: var(--tekst-zolty);
        color: var(--tlo-zielone);
        border: 1px solid var(--tlo-zielone);
        text-decoration: none;
        border-radius: 1rem;
        font-size: 1rem;
        padding: 0.2rem 1rem;
        transition: all ease 1s;
    }
    .button:hover {
        background-color: var(--tlo-zielone);
        color: var(--tekst-zolty);
        border: 1px solid var(--tekst-zolty);
        transform: scale(1.1);
        transition: all ease 0.5s;
    }
    hr {
        border: 0;
        border-bottom: 1px dashed #ccc;
        background: #999;
        margin: 0.8rem 0 1.2rem 0;
    }
    table {
        border-collapse: collapse; /* Zbicie granic komórek, aby nie było podwójnych linii */
        width: 100%; /* Opcjonalnie dopasowanie szerokości tabeli */
    }
    
    th, td {
        border: 1px solid silver; /* Ustawienie 1-pikselowej linii wokół komórek */
        padding: 8px; /* Odstęp wewnątrz komórek */
        text-align: left; /* Wyrównanie tekstu */
    }
    
    table, th, td {
        box-shadow: none; /* Usunięcie cienia */
    }
}
footer {
    display: flex;
    flex-direction: row;
	  padding: 1.6rem 1rem 1rem 1rem;
    background-color: rgb(4, 48, 4);
    color: var(--tekst-bialy);
    gap: 0.5rem;
    justify-content: space-around;
    align-items: center;
}
#logowanie, #zgloszenia {
    display: block;
    margin: 1rem auto 1rem auto;
    width: 450px;
    max-width: 100%;
    input[type=text], input[type=password], input[type=email] {
        padding: 0.6rem 1rem;
        font-size: 1rem;
        width: 100%;
        margin-bottom: 1rem;
        border-radius: 0.9rem;
        border: 1px solid var(--tekst-zolty);
        background-color: var(--tlo-szare);
        transition: all ease 2000ms;
    }
    input[type=text]:focus, input[type=password]:focus, input[type=email]:focus {
        background-color: var(--tlo-biale);
        color: var(--tlo-zielone);
        border: 2px solid var(--tekst-zolty);
        border-radius: 1rem;
        font-weight: bold;
        transform: scale(1.1);
        transition: all ease 500ms;
    }


    input[type=radio]::after {
        width: 15px;
        height: 15px;
        border-radius: 15px;
        top: -5px;
        left: -1px;
        position: relative;
        background-color: var(--tlo-szare);
        content: '';
        margin: 2px 0;
        display: inline-block;
        visibility: visible;
        border: 2px solid white;
        transition: all ease 1500ms;
    }
    input[type=radio]+label {
        font-size: 0.9rem;
        display: inline-block;
        margin: 0.5rem 1rem;
        cursor: pointer;
        transition: all ease 1500ms;
        color: var(--tekst-bialy);
    }
    input[type=radio]:checked+label {
        color: var(--tekst-zolty);
        transition: all ease 500ms;
        font-size: 1rem;
    }

    input[type=radio]:checked::after {
        width: 15px;
        height: 15px;
        border-radius: 15px;
        top: -9px;
        left: -5px;
        position: relative;
        background-color: var(--tlo-zielone);
        content: '';
        margin: 0;
        display: inline-block;
        visibility: visible;
        border: 6px solid var(--tekst-zolty);
        transition: all ease 500ms;
    }

    select, textarea {
        padding: 0.6rem 1rem;
        font-size: 1rem;
        width: 100%;
        margin-bottom: 1rem;
        border-radius: 0.9rem;
        border: 1px solid var(--tekst-zolty);
        background-color: var(--tlo-szare);
        transition: all ease 2000ms;
        -webkit-appearance: none;
    }
    select:focus, textarea:focus {
        background-color: var(--tlo-biale);
        color: var(--tlo-zielone);
        border: 2px solid var(--tekst-zolty);
        border-radius: 1rem;
        font-weight: bold;
        transform: scale(1.1);
        transition: all ease 500ms;
    }
    .czekboks {
        display: grid;
        grid-template-columns: 1em auto;
        gap: 0.5em;

        input[type="checkbox"] {
            /* Add if not using autoprefixer */
            -webkit-appearance: none;
            appearance: none;
            /* For iOS < 15 to remove gradient background */
            background-color: var(--tlo-szare);
            /* Not removed via appearance */
            margin: 1px 0;
            font: inherit;
            color: currentColor;
            width: 1.15rem;
            height: 1.15rem;
            border: 2px solid var(--tekst-bialy);
            border-radius: 5px;
            transform: translateY(-0.075rem);
            display: grid;
            place-content: center;
            transition: all ease 500ms;
        }
        input[type="checkbox"]:checked {
            border: 3px solid var(--tekst-zolty);
            background-color: var(--tlo-zielone);
            transform: scale(1.1);
            transition: all ease 500ms;
            margin: 0;
        }
        label :checked {
            color: var(--tekst-zolty);
        }
        input[type="checkbox"]::before {
            content: "";
            width: 0.65rem;
            height: 0.65rem;
            transform: scale(0);
            transition: 120ms transform ease-in-out;
            background-color: var(--tekst-zolty);
            transition: all ease 500ms;
        }
        input[type="checkbox"]:checked::before {
            transform: scale(1);
            
            transform-origin: bottom left;
            clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
            transition: all ease 500ms;
        }
        input[type="checkbox"]:focus {
            outline: max(2px, 0.15em) solid currentColor;
            outline-offset: max(2px, 0.15em);
            transition: all ease 500ms;
        }
    }
    .czekboks + .czekboks {
        margin-top: 1rem;
    }
}

/* Landscape dla iphone*/
@media only screen 
  and (min-device-width: 375px) 
  and (max-device-width: 1050px) 
  and (-webkit-min-device-pixel-ratio: 3)
  and (orientation: portrait) { 
    html {
        font-size: 32px;
        margin: 0;
        padding: 0;
        width:100%;
	    height:100%;
    }
    .container {
        margin:0;
        width:100%;
    }
    header {
        display: flex;
        position: relative;
        flex-direction: row;
        padding: 10px 20px;
        margin: 0;
        width:100%;
        border-radius: 0;
        background-color: rgba(3, 14, 3, 0.05);
        background-image: linear-gradient(0deg, rgba(3, 14, 3, 0.05) 0%, rgba(3, 14, 3, 0.3) 7%);
        color: var(--tekst-bialy);
        gap: 0.5rem;
        align-items: flex-end;
        
        img {
            width: 40%;
        }
        .tytul {
            font-size: 3rem;
            line-height: 2.5rem;
            padding-bottom: 0.5rem;
        }
        .podtytul {
            font-family: "Caveat", cursive;
            font-optical-sizing: auto;
            font-weight: 200;
            font-style: normal;
            font-size: 2rem;
        }
        .nazwa_uzytkownika {
            display: block;
            position: absolute;
            top: 0.4rem;
            right: 1.2rem;
            font-size: 1rem;
            color: var(--tlo-szare);
        }
    }
    nav {
        width: 100%;
        margin: 0;
        font-weight: normal;
        font-size: 1.8rem;
        padding: 0.4rem 1rem;
        ul {
            display: flex;
            flex-direction: column;
            gap: 1rem;
            flex-wrap: wrap;
            justify-content: center;
            list-style: none;
            text-align: center;
        }
        ul li {
            display: block;
            list-style-position: inside;
            width: 100%;
            text-align: center;
            border-radius: 0.5rem;
            background: rgba(0, 0, 0, 0.2);
        }
        ul li a {
            display: block;
            color: var(--tekst-zolty);
            text-decoration: none;
            transition: ease 1s;
        }
        ul li a.guziol {
            background-color: var(--tekst-zolty);
            color: var(--tlo-zielone);
            border: 1px solid var(--tlo-zielone);
            border-radius: 1rem;
        }
    }
    #logowanie, #zgloszenia {
        display: block;
        margin: 1rem auto 1rem auto;
        width: 800px;
        max-width: 100%;
        font-size: 1.8rem;
        input[type=text], input[type=password], input[type=email] {
            font-size: 1.8rem;
        }
        input[type=radio]+label {
            font-size: 1.8rem;
        }
        input[type=radio]:checked+label {
            font-size: 2.2rem;
        }
    }
    section {
        .button {
            font-size: 2rem;
        }
    }
}
