    * {
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    color: #fff;
    background: #587482;
    background: -webkit-repeating-linear-gradient(left, #587482, #587482 12px, #698492 12px, #698492 24px);
    background: -o-repeating-linear-gradient(left, #587482, #587482 12px, #698492 12px, #698492 24px);
    background: repeating-linear-gradient(to right, #587482, #587482 12px, #698492 12px, #698492 24px);
    font-family: 'Open Sans', sans-serif;
    font-size: 0.9em;
}


/*kontener*/

.container {
    background-color: #587482;
    margin: 0 auto;
    min-width: 320px;
    max-width: 1204px;
    height: 100%;
    border: 2px dashed #fff;
    -webkit-box-shadow: 0px 0px 15px #000000;
    box-shadow: 0px 0px 15px #000000;
    display: -ms-grid;
    display: grid;
    grid-template-areas: "header header header" "nav nav nav" "aside linia content" "footer footer footer";
    -ms-grid-rows: min-content min-content 1fr min-content;
    grid-template-rows: -webkit-min-content -webkit-min-content 1fr -webkit-min-content;
    grid-template-rows: min-content min-content 1fr min-content;
    -ms-grid-columns: 190px 2px 1fr;
    grid-template-columns: 190px 2px 1fr;
}


/*tytuł strony*/

header {
    -ms-grid-row: 1;
    -ms-grid-column: 1;
    -ms-grid-column-span: 3;
    grid-area: header;
    background: #587482;
    margin-bottom: -5px;
}


/*przyciski nawigacji*/

.maintoggle,
.asidetoggle,
.mainclose,
.asideclose,
.nawigacjainfo {
    display: none;
}


/*nawigacja*/

.mainnav {
    -ms-grid-row: 2;
    -ms-grid-column: 1;
    -ms-grid-column-span: 3;
    grid-area: nav;
    background: #1b3877;
    border-top: 2px dashed #fff;
    border-bottom: 2px dashed #fff;
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 10;
}

.mainnav ul {
    /*flex dla IE*/
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
    -ms-flex-flow: row wrap;
    flex-flow: row wrap;
    /*grid dla reszty*/
    display: grid;
    grid-template-columns: repeat(18, auto);
    grid-template-rows: 2;
}

.mainnav ul li {
    margin: 0;
    min-width: -webkit-max-content;
    min-width: -moz-max-content;
    min-width: max-content;
    -webkit-box-flex: 1;
    -ms-flex: auto;
    flex: auto;
    text-align: center;
    list-style: none;
}

@supports (display: grid) {
    li:nth-child(1) {
        grid-column: span 3;
    }
    li:nth-child(2) {
        grid-column: span 3;
    }
    li:nth-child(3) {
        grid-column: span 2;
    }
    li:nth-child(4) {
        grid-column: span 4;
    }
    li:nth-child(5) {
        grid-column: span 4;
    }
    li:nth-child(6) {
        grid-column: span 2;
    }
    li:nth-child(7) {
        grid-column: span 3;
    }
    li:nth-child(8) {
        grid-column: span 2;
    }
    li:nth-child(9) {
        grid-column: span 2;
    }
    li:nth-child(10) {
        grid-column: span 2;
    }
    li:nth-child(11) {
        grid-column: span 3;
    }
}

.mainnav ul li,
.mainclose {
    border-bottom: 2px solid #0a245c;
}

.mainnav ul li a {
    display: block;
    padding: 2px;
}

.mainnav ul li:hover {
    background: #0a245c;
}

.maintoggle,
.asidetoggle {
    display: none;
}


/*panel boczny*/

aside {
    -ms-grid-row: 3;
    -ms-grid-column: 1;
    grid-area: aside;
    padding: 1.2em;
    height: auto;
    text-align: left;
}

.asidenav ul li {
    list-style: none;
}

.asidenav ul li:before {
    font-family: 'Font Awesome 5 Free';
    content: '\f005';
    font-weight: 600;
    font-size: 12px;
    margin-right: 4px;
}

.asidenav ul li.sublista:before {
    font-family: 'Font Awesome 5 Free';
    content: '\f105';
    font-weight: 600;
    font-size: 20px;
    margin-right: 4px;
    margin-left: 4px;
    -webkit-transition: -webkit-transform 0.3s;
    transition: -webkit-transform 0.3s;
    -o-transition: transform 0.3s;
    transition: transform 0.3s;
    transition: transform 0.3s, -webkit-transform 0.3s;
    display: inline-block;
}

.asidenav ul li.arrowrotation.sublista:before {
    -webkit-transform: rotate(90deg);
    -ms-transform: rotate(90deg);
    transform: rotate(90deg);
}

.asidenav ul li ul {
    display: none;
}

.asidenav ul li.submenuactive ul {
    display: block;
}

.sublista {
    cursor: pointer;
}

.sublista ul li {
    padding-left: 20px;
}

aside ul+.asideheader {
    margin-top: 15px;
}


/*artykuły*/

main {
    -ms-grid-row: 3;
    -ms-grid-column: 3;
    display: block;
    grid-area: content;
    padding: 0.5em 1em 0.5em 1em;
    text-align: center;
    min-height: 100vh;
}

main article {
    vertical-align: top;
    text-align: left;
    padding: 10px;
    margin-bottom: 1.3em;
}

article section {
    padding: 0.5em 0 0 0;
}

article h2:before,
article h2::after {
    font-family: 'Font Awesome 5 Free';
    content: '\f005';
    font-weight: 600;
    font-size: 16px;
    padding: 4px;
}

.articlelink {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    padding-bottom: 3px;
}

.articlelink:last-child {
    padding-bottom: 0;
}

.articlelink img {
    min-width: 90px;
    min-height: 90px;
    max-width: 90px;
    max-height: 90px;
    object-fit: cover;
}

article p a {
    border-top: 0;
    border-right: 0;
    border-bottom: 3px solid #32505f;
    border-left: 3px solid #32505f;
    border-radius: 0px 0px 0px 10px;
    -moz-border-radius: 0px 0px 0px 10px;
    -webkit-border-radius: 0px 0px 0px 10px;
}


/*galerie obrazków w artykułach*/

.img_big,
.img_medium {
    padding: 16px 0 10px 0;
}

.img_big img {
    display: block;
    margin: auto auto 4px 0;
}

.img_big a img,
.img_medium img {
    display: inline;
}

.img_big a img:hover {
    -webkit-box-shadow: 0px 0px 15px #000000;
    box-shadow: 0px 0px 15px #000000;
}

.img_big img:last-child {
    margin-bottom: 0;
}

.img_small {
    padding: 10px 10px 10px 0;
}

.img_small a:hover {
    text-decoration: none;
}

.img_small img {
    -webkit-transition: -webkit-transform 0.2s ease-in-out;
    transition: -webkit-transform 0.2s ease-in-out;
    -o-transition: transform 0.2s ease-in-out;
    transition: transform 0.2s ease-in-out;
    transition: transform 0.2s ease-in-out, -webkit-transform 0.2s ease-in-out;
}

.img_small img:hover {
    -webkit-transform: scale(0.95);
    -ms-transform: scale(0.95);
    transform: scale(0.95);
    transition: -webkit-transform 0.2s ease-in-out;
    -o-transition: transform 0.2s ease-in-out;
    transition: transform 0.2s ease-in-out;
    transition: transform 0.2s ease-in-out, -webkit-transform 0.2s ease-in-out;
}


/*tabelki*/

table,
th,
td {
    vertical-align: top;
    border: 1px solid;
    border-color: #32505f;
    border-collapse: collapse;
    padding: 3px;
}

table {
    margin-bottom: 10px;
}

table li {
    list-style-type: none;
}


/*linia*/

.linia {
    -ms-grid-row: 3;
    -ms-grid-column: 2;
    grid-area: linia;
    border-right: 2px dashed #fff;
}


/*stopka*/

footer {
    border-top: 2px dashed #fff;
    -ms-grid-row: 4;
    -ms-grid-column: 1;
    -ms-grid-column-span: 3;
    grid-area: footer;
    padding: 0.5em;
    background: #1b3877;
    text-align: justify;
}


/*obrazki i ramki Youtube*/

img {
    max-width: 100%;
    height: auto;
}

iframe {
    max-width: 100%;
    max-height: 100%;
}


/*olinkowanie*/

a:link,
a:visited {
    color: #FFF;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
    color: #FFF;
}

a:active {
    text-decoration: none;
}


/*nagłówki*/


/* tytuły i nagłówki podstron*/

h1 {
    font-size: 1.6em;
    font-family: 'Lemonada', cursive;
    padding: 0 0 0.3em 0;
    letter-spacing: -2px;
    line-height: 130%;
}

.jpfont {
    font-family: 'Kosugi Maru', sans-serif;
}


/* miesiące*/

h2 {
    font-size: 1.3em;
    font-family: 'Lemonada', cursive;
    letter-spacing: -1px;
    line-height: 130%;
    padding: 0.4em;
}


/*linki do artkułów*/

h3 {
    font-size: 1.2em;
    font-family: 'Lemonada', cursive;
    letter-spacing: -1px;
    line-height: 140%;
    padding: 0.4em;
}


/*nagłówki panelu bocznego*/

.asideheader {
    font-size: 1.2em;
    font-weight: 700;
    padding: 0 0 1em 0;
}


/*podkreślone tytuły w artykułach*/

.underline {
    font-size: 1.1em;
    font-weight: lighter;
    text-decoration: underline;
    padding: 0 0 0.7em 0;
}

p+.underline {
    padding: 0.7em 0 0.7em 0;
}


/**
* material-scrolltop
*
* Author: Bartholomej
* Website: https://github.com/bartholomej/material-scrolltop
* Docs: https://github.com/bartholomej/material-scrolltop
* Repo: https://github.com/bartholomej/material-scrolltop
* Issues: https://github.com/bartholomej/material-scrolltop/issues
*/

.material-scrolltop {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    position: fixed;
    width: 0;
    height: 0;
    bottom: 12px;
    right: 12px;
    overflow: hidden;
    outline: none;
    border: none;
    -webkit-box-shadow: 0 3px 10px rgba(0, 0, 0, 0.5);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.5);
    cursor: pointer;
    border-radius: 50%;
    color: #fff;
    background: #1b3877;
    -webkit-transition: all 0.3s cubic-bezier(0.25, 0.25, 0, 1);
    -ms-transition: all 0.3s cubic-bezier(0.25, 0.25, 0, 1);
    -moz-transition: all 0.3s cubic-bezier(0.25, 0.25, 0, 1);
    -o-transition: all 0.3s cubic-bezier(0.25, 0.25, 0, 1);
    transition: all 0.3s cubic-bezier(0.25, 0.25, 0, 1);
}

.material-scrolltop:hover {
    -webkit-box-shadow: 0 3px 10px rgba(0, 0, 0, 0.5), 0 3px 15px rgba(0, 0, 0, 0.5);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.5), 0 3px 15px rgba(0, 0, 0, 0.5);
}

.material-scrolltop.reveal {
    width: 44px;
    height: 44px;
    font-size: 38px;
    border: 2px solid #fff;
    margin: auto;
    padding-bottom: 12px;
}


/*media query*/

@media all and (max-width: 1000px) {
    /*nawigacja*/
    .mainnav ul {
        grid-template-columns: repeat(18, auto);
        grid-template-rows: 3;
    }
    @supports (display: grid) {
        nav ul {
            grid-template-columns: repeat(18, 1fr);
            grid-template-rows: 3;
        }
        li:nth-child(1) {
            grid-column: span 4;
        }
        li:nth-child(2) {
            grid-column: span 5;
        }
        li:nth-child(3) {
            grid-column: span 3;
        }
        li:nth-child(4) {
            grid-column: span 6;
        }
        li:nth-child(5) {
            grid-column: span 6;
        }
        li:nth-child(6) {
            grid-column: span 3;
        }
        li:nth-child(7) {
            grid-column: span 4;
        }
        li:nth-child(8) {
            grid-column: span 2;
        }
        li:nth-child(9) {
            grid-column: span 3;
        }
        li:nth-child(10) {
            grid-column: span 3;
        }
        li:nth-child(11) {
            grid-column: span 5;
        }
    }
    @media all and (max-width: 750px) {
        /*kontener*/
        .container {
            grid-template-areas: "header header" "menustrony menudzialu" "nav nav" "aside aside" "content content" "footer footer";
            -ms-grid-rows: min-content min-content min-content min-content 1fr min-content;
            grid-template-rows: -webkit-min-content -webkit-min-content -webkit-min-content -webkit-min-content 1fr -webkit-min-content;
            grid-template-rows: min-content min-content min-content min-content 1fr min-content;
            -ms-grid-columns: 1fr 1fr;
            grid-template-columns: 1fr 1fr;
        }
        /*przyciski nawigacji*/
        /*przyciski otwierające*/
        .maintoggle {
            grid-area: menustrony;
            border-top: 2px dashed #fff;
            border-right: 2px dashed #fff;
            border-bottom: 2px dashed #fff;
            -ms-grid-row: 2;
            -ms-grid-column: 1;
        }
        .asidetoggle {
            grid-area: menudzialu;
            border-top: 2px dashed #fff;
            border-bottom: 2px dashed #fff;
            -ms-grid-row: 2;
            -ms-grid-column: 2;
        }
        .maintoggle,
        .asidetoggle {
            font-size: 24px;
            line-height: 34px;
            font-family: 'Lemonada', cursive;
            padding: 8px;
            display: block;
            text-align: center;
            cursor: pointer;
            position: -webkit-sticky;
            position: sticky;
            top: 0;
            z-index: 10;
        }
        .maintoggle i,
        .asidetoggle i {
            padding-right: 15px;
        }
        .maintoggle:hover {
            text-decoration: none;
            background: #0a245c;
        }
        .asidetoggle:hover {
            text-decoration: none;
            background: #425c69;
        }
        .nawigacjainfo {
            display: block;
            padding: 10px;
        }
        /*przyciski zamykające*/
        .mainclose,
        .asideclose {
            font-size: 28px;
            line-height: 34px;
            font-family: 'Lemonada', cursive;
            padding: 8px;
            display: block;
            text-align: right;
            cursor: pointer;
            padding-right: 20px;
        }
        .mainclose i,
        .asideclose i {
            width: 44px;
            height: 44px;
            font-size: 36px;
            border-radius: 50%;
            border: 2px solid #fff;
            -webkit-box-shadow: 0 3px 10px rgba(0, 0, 0, 0.5);
            box-shadow: 0 3px 10px rgba(0, 0, 0, 0.5);
            padding-top: 2px;
            padding-right: 8px;
        }
        /*style wspólne dla przycisków otwierających i zamykających*/
        .maintoggle,
        .closemain i {
            background: #1b3877;
        }
        .asidetoggle,
        .closeaside i {
            background: #587482;
        }
        /*nawigacja główna i boczna*/
        /*kontenery główne*/
        .mainnav {
            position: static;
            border: 0;
        }
        aside {
            background: #587482;
            padding: 0;
        }
        .mainnav,
        aside {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: 20;
        }
        /*kontenery z listami linków*/
        .mainnav ul,
        .asidenav nav {
            -webkit-box-orient: vertical;
            -webkit-box-direction: normal;
            -ms-flex-flow: column;
            flex-flow: column;
            grid-template-columns: 1fr;
            max-height: calc(100vh - 62px);
            max-width: 100vw;
            overflow: auto;
            padding-bottom: 60px;
        }
        /*aktywacja otwierania menu i podmenu oraz wyświetlanie dat w rozwijanym podmenu*/
        .mainactive,
        aside.asideactive,
        .asidenav nav ul .sublista span {
            display: block;
        }
        /*ostylowanie list linków menu głównego*/
        .mainnav ul li {
            display: block;
            padding: 0;
            margin: none;
            text-align: left;
            font-size: 1em;
        }
        .mainnav ul li a {
            padding: 11px;
        }
        @supports (display: grid) {
            li:nth-child(1) {
                grid-column: span 1;
            }
            li:nth-child(2) {
                grid-column: span 1;
            }
            li:nth-child(3) {
                grid-column: span 1;
            }
            li:nth-child(4) {
                grid-column: span 1;
            }
            li:nth-child(5) {
                grid-column: span 1;
            }
            li:nth-child(6) {
                grid-column: span 1;
            }
            li:nth-child(7) {
                grid-column: span 1;
            }
            li:nth-child(8) {
                grid-column: span 1;
            }
            li:nth-child(9) {
                grid-column: span 1;
            }
            li:nth-child(10) {
                grid-column: span 1;
            }
            li:nth-child(11) {
                grid-column: span 1;
            }
        }
        /*ostylowanie list linków menu bocznego*/
        .asideheader {
            padding: 10px;
        }
        .asidenav nav ul li a,
        .asidenav nav ul .sublista span {
            padding: 11px 11px 11px 24px;
        }
        .asidenav nav ul li {
            border-bottom: 2px solid #425c69;
            position: relative;
        }
        .asidenav nav ul li:hover,
        .asidenav nav ul .sublista span:hover {
            background: #425c69;
        }
        .asidenav ul li:before {
            position: absolute;
            top: 13px;
            left: 4px;
        }
        .asidenav ul li ul li:before {
            position: absolute;
            top: 13px;
            left: 24px;
        }
        .asidenav nav ul li a,
        .asidenav nav ul li ul li a {
            display: -ms-inline-grid;
            display: inline-grid;
            width: 100%;
        }
        .asidenav nav ul .sublista:hover {
            background: #587482;
        }
        .asidenav nav ul .sublista {
            border-bottom: 0;
        }
        .asidenav nav ul .sublista span,
        .asideclose {
            border-bottom: 2px solid #425c69;
        }
        .asidenav nav ul li ul li {
            background: #89abbd
        }
        /*artykuły*/
        main {
            -ms-grid-row: 5;
            -ms-grid-column: 1;
            -ms-grid-column-span: 2;
            padding: 0.5em 0.5em 0.5em 0.5em;
        }
        .img_big img {
            margin: 0 auto;
        }
        .img_small,
        .img_medium,
        .img_big {
            text-align: center;
        }
        .img_big img {
            display: block;
            margin: auto auto 4px auto;
        }
        /*stopka*/
        footer {
            -ms-grid-row: 6;
            -ms-grid-column: 1;
        }
        /*linki do artkułów*/
        h3 {
            padding-left: 0.4em;
        }
    }
    /*drukowanie*/
    @media print {
        header,
        nav,
        aside,
        footer,
        .maintoggle,
        .asidetoggle {
            display: none;
        }
        main article {
            border: 2px solid #c2c2c2;
            -webkit-box-shadow: none;
            box-shadow: none;
        }
    }