* {
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    color: #fff;
    background: #d6714c;
    background: -webkit-repeating-linear-gradient(left, #c96c4a, #c96c4a 12px, #dd7f5c 12px, #dd7f5c 24px);
    background: -o-repeating-linear-gradient(left, #c96c4a, #c96c4a 12px, #dd7f5c 12px, #dd7f5c 24px);
    background: repeating-linear-gradient(to right, #c96c4a, #c96c4a 12px, #dd7f5c 12px, #dd7f5c 24px);
    font-family: 'Open Sans', sans-serif;
    font-size: 0.9em;
}


/*kontener*/

.container {
    background-color: #d6714c;
    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" "content linia aside" "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: 1fr 2px 250px;
    grid-template-columns: 1fr 2px 250px;
}


/*tytuł strony*/

header {
    -ms-grid-row: 1;
    -ms-grid-column: 1;
    -ms-grid-column-span: 3;
    grid-area: header;
    background: #cc270a;
    margin-bottom: -5px;
}


/*przyciski nawigacji*/

.toggle,
.close {
    display: none;
}


/*nawigacja*/

nav {
    -ms-grid-row: 2;
    -ms-grid-column: 1;
    -ms-grid-column-span: 3;
    grid-area: nav;
    background: #ca2a11;
    border-top: 2px dashed #fff;
    border-bottom: 2px dashed #fff;
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 10;
}

nav 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, 1fr);
    grid-template-rows: 2;
}

nav 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;
    }
}

nav ul li,
.close {
    border-bottom: 2px solid #a01b09;
}

nav ul li a {
    display: block;
    padding: 2px;
}

nav ul li:hover {
    background: #a01b09;
}

.toggle {
    display: none;
}


/*artykuły*/

main {
    -ms-grid-row: 3;
    -ms-grid-column: 1;
    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;
    border-radius: 5px;
    margin-bottom: 1.3em;
}

main article:nth-child(odd) {
    background: #e55751;
}

main article:nth-child(even) {
    background: #ec8741;
}

article section {
    padding: 0.5em 0 0 0;
}

article section a,
article p a {
    border-top: 0;
    border-right: 0;
    border-bottom: 3px solid #ac4d2b;
    border-left: 3px solid #ac4d2b;
    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 {
    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;
}


/*panel boczny*/

aside {
    -ms-grid-row: 3;
    -ms-grid-column: 3;
    grid-area: aside;
    padding: 1em;
}

aside .asidebox {
    background: #ca2a11;
    vertical-align: top;
    text-align: left;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 1.3em;
}

aside a:hover {
    text-decoration: none;
}

.button span {
    display: block;
    text-align: center;
    border: 3px #a01b09 dashed;
    margin-bottom: 10px;
    padding: 3px;
}


/*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: #ca2a11;
    text-align: justify;
}


/*obrazki i ramki Youtube*/

img {
    max-width: 100%;
    height: auto;
    border: 0;
}

iframe {
    max-width: 100%;
    max-height: 100%;
}


/*olinkowanie*/

a:link,
a:visited {
    color: #FFF;
    text-decoration: none;
}

a:hover,
a:focus {
    text-decoration: underline;
    color: #FFF;
}

a:active {
    text-decoration: none;
}


/*nagłówki*/


/* data artykułu*/

.articledate {
    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;
}


/*nagłówek i stopka sekcji main*/

.hfmain {
    font-size: 1.3em;
    font-family: 'Lemonada', cursive;
    letter-spacing: -1px;
    padding: 0.4em;
}


/*nagłówki panelu bocznego*/

.asideheader {
    font-size: 1.2em;
    font-weight: 700;
    padding: 0 0 1em 0;
    text-align: center;
}


/*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: #c32c17;
    -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*/
    @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" "menubutton" "nav" "content" "linia" "aside" "footer";
        -ms-grid-rows: min-content min-content min-content 1fr 2px min-content min-content;
        grid-template-rows: -webkit-min-content -webkit-min-content -webkit-min-content 1fr 2px -webkit-min-content -webkit-min-content;
        grid-template-rows: min-content min-content min-content 1fr 2px min-content min-content;
        -ms-grid-columns: 1fr;
        grid-template-columns: 1fr;
    }
    /*przycisk nawigacji*/
    /*przycisk otwierający*/
    .toggle {
        grid-area: menubutton;
        display: block;
        background: #c32c17;
        border-top: 2px dashed #fff;
        border-bottom: 2px dashed #fff;
        position: -webkit-sticky;
        position: sticky;
        top: 0;
        z-index: 10;
        font-size: 24px;
        line-height: 34px;
        font-family: 'Lemonada', cursive;
        padding: 8px;
        text-align: center;
        cursor: pointer;
        -ms-grid-row: 2;
        -ms-grid-column: 1;
    }
    .toggle i {
        padding-right: 15px;
    }
    .toggle:hover {
        text-decoration: none;
        background: #a01b09;
    }
    /*przycisk zamykający*/
    .close {
        font-size: 28px;
        line-height: 34px;
        font-family: 'Lemonada', cursive;
        padding: 8px;
        display: block;
        text-align: right;
        cursor: pointer;
        padding-right: 20px;
    }
    .close 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;
    }
    /*nawigacja*/
    nav {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 20;
        border: 0;
        -ms-grid-row: 3;
        -ms-grid-column: 1;
    }
    nav ul {
        -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;
    }
    nav.active {
        display: block;
    }
    nav ul li {
        display: block;
        padding: 0;
        margin: none;
        text-align: left;
        font-size: 1em;
    }
    nav 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;
        }
    }
    /*artykuły*/
    main {
        padding: 0.5em 0.5em 0.5em 0.5em;
        -ms-grid-row: 4;
        -ms-grid-column: 1;
    }
    main article p {
        text-align: justify;
    }
    /*linia*/
    .linia {
        -ms-grid-row: 5;
        -ms-grid-column: 1;
    }
    /*panel boczny*/
    aside {
        -ms-grid-row: 6;
        -ms-grid-column: 1;
        padding: 0.5em;
    }
    /*stopka*/
    footer {
        -ms-grid-row: 7;
        -ms-grid-column: 1;
    }
    /*przycisk do góry*/
    .material-scrolltop.reveal {
        width: 50px;
        height: 50px;
        font-size: 42px;
        border: 2px solid #fff;
        margin: auto;
        padding-bottom: 12px;
    }
}


/*drukowanie*/

@media print {
    header,
    nav,
    aside,
    footer,
    .toggle {
        display: none;
    }
    main article {
        border: 2px solid #c2c2c2;
        -webkit-box-shadow: none;
        box-shadow: none;
    }
}