* {
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    color: #fff;
    background: #736366;
    background: -webkit-repeating-linear-gradient(left, #42393b, #42393b 12px, #948185 12px, #948185 24px);
    background: -o-repeating-linear-gradient(left, #42393b, #42393b 12px, #948185 12px, #948185 24px);
    background: repeating-linear-gradient(to right, #42393b, #42393b 12px, #948185 12px, #948185 24px);
    font-family: 'Open Sans', sans-serif;
    font-size: 0.9em;
}


/*kontener*/

.container {
    background-color: #736366;
    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: #736366;
    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: #961108;
    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 #660c06;
}

.mainnav ul li a {
    display: block;
    padding: 2px;
}

.mainnav ul li:hover {
    background: #660c06;
}

.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;
    min-width: 100px;
}

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;
}

main ul,
main ol {
    padding-left: 20px;
}

main li {
    list-style: disc inside;
    padding-left: 20px;
    text-indent: -20px;
    padding-bottom: 10px;
}

main ul ol li {
    list-style: inside decimal;
    padding-left: 50px;
    padding-bottom: initial;
}

main ul ol li:last-child {
    padding-bottom: 20px;
}

article p a {
    border-top: 0;
    border-right: 0;
    border-bottom: 3px solid #574b4d;
    border-left: 3px solid #574b4d;
    border-radius: 0px 0px 0px 10px;
    -moz-border-radius: 0px 0px 0px 10px;
    -webkit-border-radius: 0px 0px 0px 10px;
}

p {
    padding: 10px 0 10px 0;
}

.kontenerblokowy {
    display: -ms-grid;
    display: grid;
    -ms-grid-rows: 1fr;
    grid-template-rows: 1fr;
    grid-template-rows: 1fr;
    -ms-grid-columns: 1fr 4fr;
    grid-template-columns: 1fr 4fr;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    border-bottom: 1px solid white;
}

.kontenerliniowy {
    display: -ms-grid;
    display: grid;
    -ms-grid-rows: 1fr;
    grid-template-rows: 1fr;
    -ms-grid-columns: 3fr 6fr;
    grid-template-columns: 3fr 6fr;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    border-bottom: 1px solid white;
    padding: 1em;
}

.kontenerliniowybezlinii {
    display: -ms-grid;
    display: grid;
    -ms-grid-rows: 1fr;
    grid-template-rows: 1fr;
    -ms-grid-columns: 3fr 6fr;
    grid-template-columns: 3fr 6fr;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    padding: 1em;
}

.kontenerliniowypolnapol {
    display: -ms-grid;
    display: grid;
    -ms-grid-rows: 1fr;
    grid-template-rows: 1fr;
    -ms-grid-columns: 1fr 1fr;
    grid-template-columns: 1fr 1fr;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    border-bottom: 1px solid white;
    padding: 1em;
}

.center {
    text-align: center;
}

.numer {
    padding: 1em;
}

.kartynadwa {
    display: -ms-grid;
    display: grid;
    -ms-grid-columns: 1fr 1fr;
    grid-template-columns: repeat(2, 1fr);
    column-gap: 6px;
}

.karty {
    display: -ms-grid;
    display: grid;
    -ms-grid-columns: 1fr 1fr 1fr;
    grid-template-columns: repeat(3, 1fr);
    column-gap: 6px;
}

.japanese {
    line-height: 150%;
}

.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;
}

.grupapostaci {
    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;
}

.postacie {
    padding: 0 1em 1em 0;
    width: 180px;
}

.bold {
    font-weight: 700;
}

.przedmioty img {
    max-width: 145px;
    min-width: 145px;
    object-fit: cover;
}


/*galerie obrazków w artykułach*/

.img_big {
    padding: 16px 0 10px 0;
}

.img_big img {
    display: block;
    margin-bottom: 4px;
}

.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;
}


/*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: #a21207;
    text-align: justify;
}


/*obrazki i ramki Youtube*/

img {
    max-width: 100%;
    height: auto;
    border: 0;
}

iframe {
    max-width: 100%;
    max-height: 100%;
    padding: 0.8em 0 0.8em 0;
}


/*olinkowanie*/

a:link,
a:visited {
    color: #fff;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
    color: #fff;
}

a:active {
    text-decoration: none;
}


/*nagłówki*/


/* data artykułu*/

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;
}


/*linki do artykułów*/

h2 {
    font-size: 1.3em;
    font-family: 'Lemonada', cursive;
    letter-spacing: -1px;
    line-height: 130%;
    padding: 0.4em;
}

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: 600;
    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.7em 0 0.7em 0;
}


/*tabele*/

table {
    width: 100%;
}

table,
th,
td {
    border: 2px solid #574b4d;
    border-collapse: collapse;
}

th,
td {
    padding: 4px;
    vertical-align: top;
}

.tabela {
    overflow-x: auto;
}

.szerkom1 {
    width: 33%;
}

.szerkom2 {
    width: 50%;
}


/**
* 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: #a21207;
    -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;
        }
    }
    .kontenerliniowy {
        -ms-grid-rows: 1fr;
        grid-template-rows: 1fr;
        -ms-grid-columns: 1fr 1fr;
        grid-template-columns: 1fr 1fr;
    }
    .kartynadwa {
        display: -ms-grid;
        display: grid;
        -ms-grid-columns: 1fr;
        grid-template-columns: 1fr;
        column-gap: 6px;
    }
    .karty {
        display: -ms-grid;
        display: grid;
        -ms-grid-columns: 1fr 1fr;
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }
}

@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: #660c06;
    }
    .asidetoggle:hover {
        text-decoration: none;
        background: #574b4d;
    }
    .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: #a21207;
    }
    .asidetoggle,
    .closeaside i {
        background: #736366;
    }
    /*nawigacja główna i boczna*/
    /*kontenery główne*/
    .mainnav {
        position: static;
        border: 0;
    }
    aside {
        background: #736366;
        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 #574b4d;
        position: relative;
    }
    .asidenav nav ul li:hover,
    .asidenav nav ul .sublista span:hover {
        background: #574b4d;
    }
    .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: #736366;
    }
    .asidenav nav ul .sublista {
        border-bottom: 0;
    }
    .asidenav nav ul .sublista span,
    .asideclose {
        border-bottom: 2px solid #574b4d;
    }
    /*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: auto auto 4px auto;
    }
    .img_small,
    .img_medium,
    .img_big {
        text-align: center;
    }
    .kontenerliniowy,
    .kontenerliniowypolnapol {
        -ms-grid-rows: 1fr;
        grid-template-rows: 1fr;
        -ms-grid-columns: 1fr;
        grid-template-columns: 1fr;
    }
    .articlelink {
        flex-direction: column;
    }
    .karty {
        display: -ms-grid;
        display: grid;
        -ms-grid-columns: 1fr;
        grid-template-columns: 1fr;
        column-gap: 6px;
    }
    /*stopka*/
    footer {
        -ms-grid-row: 6;
        -ms-grid-column: 1;
    }
}


/*drukowanie*/

@media print {
    header,
    nav,
    aside,
    footer,
    .maintoggle,
    .asidetoggle {
        display: none;
    }
    main article {
        border: 2px solid #c2c2c2;
        -webkit-box-shadow: none;
        box-shadow: none;
    }
}