/* Fonts block

Font: Inria Sans */

/* latin-ext */
@font-face {
    font-family: 'Inria Sans';
    font-style: italic;
    font-weight: 300;
    font-display: swap;
    src: url(font/Inria_Sans/InriaSans-LightItalic.woff2) format('woff2'),
    url(font/Inria_Sans/InriaSans-LightItalic.ttf) format('truetype'),
}

/* latin-ext */
@font-face {
    font-family: 'Inria Sans';
    font-style: italic;
    font-weight: 400;
    font-display: swap;
    src: url(font/Inria_Sans/InriaSans-Italic.woff2) format('woff2'),
    url(font/Inria_Sans/InriaSans-Italic.ttf) format('truetype'),
}

/* latin-ext */
@font-face {
    font-family: 'Inria Sans';
    font-style: italic;
    font-weight: 700;
    font-display: swap;
    src: url(font/Inria_Sans/InriaSans-BoldItalic.woff2) format('woff2'),
    url(font/Inria_Sans/InriaSans-BoldItalic.ttf) format('truetype'),
}

/* latin-ext */
@font-face {
    font-family: 'Inria Sans';
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: url(font/Inria_Sans/InriaSans-Light.woff2) format('woff2'),
    url(font/Inria_Sans/InriaSans-Light.ttf) format('truetype'),
}

/* latin-ext */
@font-face {
    font-family: 'Inria Sans';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url(font/Inria_Sans/InriaSans-Regular.woff2) format('woff2'),
    url(font/Inria_Sans/InriaSans-Regular.ttf) format('truetype'),
}

/* latin-ext */
@font-face {
    font-family: 'Inria Sans';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url(font/Inria_Sans/InriaSans-Bold.woff2) format('woff2'),
    url(font/Inria_Sans/InriaSans-Bold.ttf) format('truetype'),
}


:root {
    --color-primary: #3D2B26;
}

* {
    font-family: 'Inria Sans', sans-serif;
}

html {
    margin: 0;
    padding: 0;
}

body {

    display: flex;
    flex-direction: column;
    font-size: 14pt;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    justify-content: center;
}

.container {
    box-sizing: border-box;
    padding: 0 15px;
    margin: 0 auto;
    display: block;
    max-width: 100%;
    width: 100%;
}

nav {
    position: fixed;
    margin: 0;
    width: 100%;
    height: 3em;
    background-color: #3D2B26;
    box-shadow: 0 0 5px black;
    top: 0;
    z-index: 3;
}

.navigation {
    position: relative;
    background-color: #3D2B26;
    height: 100%;
}

.navigation .container {
    height: 100%;
    color: white;
    display: flex;
    align-items: center;
    align-content: center;
}

.navigation .container > *:first-child {
    margin-right: auto;
}

.menu {
    box-sizing: border-box;
    top: 0;
    left: 0;
    right: 0;
    margin-top: 3em;
    position: absolute;
    background-color: #2d201c;
    color: white;
    z-index: -1;
    width: 100%;
    text-align: left;
}

.menu .container {
    flex-direction: column;
    justify-content: center;
}

.menu a {
    width: 100%;
    box-sizing: border-box;
    padding: 1em 0;
    border-bottom: 2px solid #251a17;
}

.menu a:last-child {
    border: none;
}

@keyframes menu-animacja {
    from {
        display: none;
        top: -15em;
    }

    to {
        display: flex;
        top: 0;
    }
}

.background {
    top: 3em;
    left: 0;
    bottom: 0;
    z-index: -2;
    width: 100vw;
    height: 100vh;
    position: absolute;
    background-color: black;
    opacity: 0.5;
}

.logo {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 2em;
    margin: 0;
    padding: 0;
    height: 100%;
    display: flex;
    align-items: center;
}

.logo img {
    max-height: 1.2em;
}

nav a {
    color: white;
    text-decoration: none;
    margin-right: 1em;
    font-size: 1.1em;
}

main {
    flex-grow: 1;
}

main.with-shadow {
    box-shadow: 0 0 5px black;
}

main img {
    max-width: 100%;
}

main.container {
    margin-top: 3em;
}

main a {
    box-sizing: border-box;
    color: var(--color-primary);
    text-decoration: none;
    border-bottom: 2px solid;
    font-weight: 900;
}

main ul li {
    list-style-type: "❖";
    list-style-position: outside;
    padding-left: 1em;
}

.swiatynia,
.obrazek {
    width: 100%;
    max-width: 100%;
    height: auto;
}

.obrazek {
    position: relative;
    margin: 0 -15px;
    max-width: calc(100% + 30px);
    width: calc(100% + 30px);
}

.gradient {
    z-index: 0;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 35%;
    background: linear-gradient(transparent, #ffffffdd 45%, white 70%, white);;
}

.info {
    width: 100%;
    display: flex;
    flex-direction: column;
    text-align: center;
    align-items: center;
    justify-content: space-around;
    row-gap: 3em;
}

.info h3 {
    margin: 0;
    padding: 0;
    font-size: 1.6em;
    font-weight: 900;
}

.msze-swiete {
    display: block;
    align-items: center;
}

.msze-naglowek {
    margin: 0;
    padding: 0;
    text-align: center;
}

.msze-godziny {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-evenly;
}

.WK {
    padding-top: 1em;
}

.MK {
    padding-top: 1em;
}

.WK h4,
.MK h4 {
    font-size: 16pt;
    margin: 0 0 .2em;
    padding: 0;
    font-weight: 900;
}

.WK p,
.MK p {
    margin: 0;
    padding: 0;
}

.informacje {
    margin-bottom: 5em;
}

.naglowek-informacji {
    font-size: 2em;
    font-weight: 900;

}

.tytul-informacji {
    font-weight: 900;
}

a .tytul-informacji {
    text-decoration: underline;
}

.bierzaca-informacja {
    box-sizing: border-box;
    text-align: justify;
}

a.czytaj-wiecej {
    display: block;
    margin-left: auto;
    width: fit-content;
}

.dodatki a {
    display: block;
    box-sizing: border-box;
    color: white;
    text-decoration: underline;
}

footer {
    box-shadow: 0 0 5px black;
    padding: 0 2em 2em;
    background-color: #3D2B26;
    min-height: 5em;
}

.footer {
    box-sizing: border-box;
    display: block;
    margin-top: 4em;
}

.kontakt,
.kontakt a:link {
    flex-grow: 1;
    box-sizing: border-box;
    color: white;
    min-height: 3.5em;
    padding-bottom: 1em;
}

.dodatki {
    padding-top: 1em;
    padding-bottom: 1.5em;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-content: flex-start;
    align-items: flex-start;
    gap: .9em;
}

.ikony {
    margin-bottom: 1em;
    height: 65px;
    color: white;
}

.hamburger {
    background-color: transparent;
    border: none;
    content: '';
    width: 40px;
    display: block;
}

.hamburger::before,
.hamburger::after,
.hamburger > span {
    position: relative;
    content: '';
    display: block;
    height: 5px;
    margin: 5px auto;
    background-color: white;
    transition: all ease-in-out 0.2s;
}


.hamburger::before {
    top: 0;
}

.hamburger::after {
    bottom: 0;
}

.navigation[data-extended="true"] .hamburger::before {
    rotate: 45deg;
    top: 10px;
}


.navigation[data-extended="true"] .hamburger::after {
    rotate: -45deg;
    bottom: 10px;
}

.navigation[data-extended="true"] .hamburger > span {
    opacity: 0;
}

.navigation[data-extended="true"] ~ .menu {
    animation-name: menu-animacja;
    animation-duration: 0.3s;
    display: flex;
}

.navigation[data-extended="true"] ~ .menu .container {
    display: flex;
}

.navigation[data-extended="true"] ~ .background {
    display: block;
}

.navigation[data-extended="false"] ~ .menu {
    display: none;
}

.navigation[data-extended="false"] ~ .background {
    display: none;
}

.przyciski {
    display: none;
}

.informacje-stale {
    display: flex;
    justify-content: center;
    flex-direction: column;
}

.informacje-stale > * {
    flex: 1;
}

.informacje-h2 > h2 {
    margin: 1em 0;
}

.section {
    padding: 1em 0;
}


.input {
    background-color: transparent;
    border: 1px solid grey;
    font-size: 16pt;
}

.input:active {
    border: 3px solid black;
}

.form {
    margin: auto;
    display: flex;
    flex-direction: column;
    width: 50%;
    justify-items: center;
    align-items: center;
}

.form * {
    margin: .5em .5em;
}

.admin {
    margin: auto;
    display: flex;
    flex-direction: column;
    flex: 1;
    justify-items: center;
    align-items: center;
}

.admin * {
    font-size: 20pt;
    width: fit-content;
    margin: 1em 0;
}

.mb-3 {
    margin-top: 1em;
    font-size: 18pt;

}

.login-user {
    color: blue;
    font-weight: 900;
}

.submit {
    margin-top: 2em;
    border: none;
    background-color: transparent;
    font-weight: 900;
    text-decoration: underline;
    font-size: 20pt;
}

.submit:hover {
    color: gray;
}

.kontakt-flex {
    display: block;
}

iframe {
    width: 100%;
    height: calc(22em + 58px);
    margin-top: -60px;
    border: none;
    box-sizing: border-box;
}

.mapa {
    margin-top: 2em;
    width: 100%;
    height: 22em;
    overflow: hidden;
    box-sizing: border-box;
    border: 2px solid #3D2B26;
}

.error {
    margin: 3em 0;
    text-align: center;
    display: flex;
    flex-direction: column;
}

.notification[data-subscribed="false"] #close-button {
    display: none;
}

#push-subscription-button {
    display: none;
}

#close-button {
    display: inline;
}

.notification[data-subscribed="false"] #push-subscription-button {
    display: inline;
}

.notification[data-subscribed="pending"] #close-button {
    display: inline;
}

.notification[data-subscribed="true"] {
    height: 0;
}

.notification {
    overflow: hidden;
    box-sizing: border-box;
    color: white;
    text-align: center;
    font-size: 16pt;
    background-color: #6A1B9A;
    transition: all 1s ease-in-out;
    transition-behavior: allow-discrete;
    height: calc-size(auto);
    interpolate-size: allow-keywords;
}

.notification .container {
    padding-top: 1em;
    padding-bottom: 1em;
}

.notification button {
    padding: .7em 1.2em;
    margin-block: 1em;
    border: none;
    border-radius: .2em;
    background-color: white;
    color: #4A148C;
    font-weight: 900;
    font-size: 14pt;
    transition-duration: .2s;
    transform: scale(1);
    transition-property: all;
}

.notification button:hover {
    transform: scale(1.1);
    box-shadow: 1px 0px 15px 2px rgba(0, 0, 0, 0.39);
}

.notification button:active {
    transition-duration: 70ms;
    transform: scale(1.03);
    box-shadow: 1px 0px 10px 2px rgba(0, 0, 0, 0.39);
}

.sw-bartlomiej-wizerunek {
    display: block;
    margin: 1em auto;
}


@media screen and (min-width: 360px) {
    .logo img {
        max-height: 1.3em;
        width: 100%;
    }
}

@media screen and (min-width: 462px) {
    .informacje-stale {
        flex-direction: column;
    }
}

@media screen and (min-width: 540px) {
    .informacje {
        margin-left: 1.5em;
        margin-right: 1.5em;
    }
}

@media screen and (min-width: 760px) {

    .informacje {
        margin-left: 2.5em;
        margin-right: 2.5em;
    }


    .container {
        max-width: 760px;
    }

    .WK {
        width: 47%;
    }

    .MK {
        width: 53%;
    }

    .przyciski {
        display: none;
    }

    footer {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .footer {
        border-left: 2px solid white;
        padding-left: 2em;
        display: flex;
        flex-direction: row;
        align-items: flex-start;
    }

    .naglowek-informacji {
        text-align: left;
    }

    .bierzaca-informacja {
        margin: 1.5em .7em auto;
        padding: .3em 1.5em;
        border-left: 2px solid;
    }

    .info > * {
        width: 50%;
    }

    .info .msze-swiete {
        width: 100%;
    }

    .info {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        margin-bottom: 5em;
        row-gap: 3em;
    }

    .msze-godziny {
        flex-direction: row;
        justify-content: center;
        align-items: flex-start;
        margin: 0 3em 0 3em;
        align-self: stretch;
    }

    .error {
        font-size: 20pt;
    }

    .footer {
        margin: 2em;
        border-left: 2px solid white;
    }

    footer {
        padding: 0;
        width: 100%;
        background-color: #3D2B26;
        min-height: 5em;
    }


    .informacje-stale {
        flex-direction: row;
    }

    .sw-bartlomiej-wizerunek {
        align-self: auto;
        margin: 1em;
        float: right;
    }
}


@media screen and (min-width: 960px) {
    .container {
        max-width: 950px;
    }

    .przyciski {
        display: flex;
    }

    .hamburger {
        display: none;
    }

    footer .footer {
        margin: 3em;
    }

    .kontakt {
        width: 50%;
    }

    footer {
        padding: 0;
        width: 100%;
        background-color: #3D2B26;
        min-height: 5em;
    }

    .dodatki {
        width: 50%;
        justify-items: center;

    }


    .informacje-stale {
        flex-direction: row;
    }

}


@media screen and (min-width: 1280px) {
    .container {
        max-width: 1200px;
    }

    .dodatki {
        width: 40%;
    }

    footer {
        width: 100%;
        background-color: #3D2B26;
    }

    .footer > * {
        width: 100%;
    }

    .info {
        flex-wrap: nowrap;
        align-items: flex-start;
    }

    .info > * {
        width: 25%;
    }

    .info .msze-swiete {
        width: 50%;
        order: 2;
    }

    .kosciol-historia {
        order: 3;
    }

    .dodatki {
        width: 50%;
    }

}

table.table {
    width: 100%;
    border: none;
    border-collapse: collapse;
}

table.table th, table.table td {
    border: 1px solid #3d2b26;
    border-collapse: collapse;
    border-spacing: 0;
    padding: 0.25em 0.5em;
}

table.table.th-align-right th {
    text-align: right;
}

table.table.th-align-left th {
    text-align: left;
}

table.table th.no-border, table.table td.no-border {
    border: none;
}

table.table.table-border-rows th,
table.table.table-border-rows td {
    border-left: none;
    border-right: none;
}

table.table.table-border-rows tr:first-child th,
table.table.table-border-rows tr:first-child td {
    border-top: none;
}

table.table.table-border-rows tr:last-child th,
table.table.table-border-rows tr:last-child td {
    border-top: none;
}

table.table.table-stripes tr:nth-child(even) th,
table.table.table-stripes tr:nth-child(even) td {
    background-color: rgba(61 43 38 / .05);
}
