*, *::before, *::after {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    font-family: 'Josefin Sans';
}

.container {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.grid {
    display: grid;
    grid-template-columns: repeat(16, 1fr);
    width: 100%;
    height: 100%;
}

.navigation {
    background-color: #b51500;
    height: 80px;
    width: 100%;
    position: sticky;
    top: 0;
    box-shadow: 0 1px 3px 3px #ddbb00;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.navigation span, .navigation div {
    cursor: pointer;
    letter-spacing: -1px;
}

.nav-element {
    font-size: 24px;
    color: white;
    padding: 10px;
}

.menu-icon {
    width: 60px;
    height: 60px;
}

.front {
    grid-column: 1 / 17;
    min-height: 440px;
    background-image: url("./../images/dobre_church.png");
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    display: flex;
    border-bottom: 5px solid #ddbb00;
    padding-top: 30px;
    padding-bottom: 30px;
}

.front-2 {
    grid-column: 1 / 17;
    height: 270px;
    background-image: url("./../images/inner_church.png");
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    display: flex;
    border-top: 5px solid #ddbb00;
    border-bottom: 5px solid #ddbb00;
    margin-bottom: 75px;
}

.front span {
    width: 75%;
    margin: auto;
    user-select: none;
}

.content {
    grid-column: 3 / 15;
    min-height: 400px;
    background-color: white;
    display: flex;
    flex-direction: column;
    padding-left: 15px;
    padding-right: 15px;
}

.content2 {
    grid-column: 3 / 15;
    height: 100px;
    background-color: white;
    display: flex;
    flex-direction: column;
    padding-left: 15px;
    padding-right: 15px;
}

#parish-title {
    font-size: 96px;
    justify-content: center;
    align-items: center;
    color: white;
    margin: auto;
    text-shadow: #b51500 3px 3px 2px;
    text-align: center;
}

.content-row-triple {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    min-height: 300px;
}

.content-row-single {
    display: flex;
    flex-direction: row;
}

.triple-tile {
    display: flex;
    flex-direction: column;
    width: 27%;
    text-align: center;
    border: 3px solid #b51500;
    text-align: center;
    padding: 20px;
}

.text-header {
    text-decoration: underline;
    text-decoration-color: #ddbb00;
    text-decoration-thickness: 4px;
    text-underline-offset: 0.55em;
}

.full-tile {
    width: 100%;
    text-align: center;
    border: 3px solid #b51500;
    text-align: center;
    padding: 20px;
}

.tile-title {
    font-size: 36px;
    font-weight: 600;
    text-decoration: underline #ddbb00;
}

.tile-content-large {
    font-size: 26px;
    padding: 20px 10px 10px 10px;
}

.tile-content-small {
    font-size: 17px;
    padding: 25px 10px 10px 10px;
}

.ogloszenia-tile {
    background-color: initial;
    transition: background-color 0.7s ease;
    cursor: pointer;
}

.ogloszenia-tile:hover {
    background-color: rgba(181,21,0,0.9);
}

a {
    color: inherit;
    text-decoration: none;
}

.text-content {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    line-height: 2;
}

.text {
    display: flex;
    flex-direction: column;
    grid-column: 4 / 10;
    font-size: 19px;
    gap: 1px;
    text-align: left;
}

.text .archive-row div {
    width: 100% !important;
    text-align: center !important;
    justify-content: center !important;
    justify-items: center !important;
    align-items: center !important;
    align-content: center !important;
}

.footer {
    background-color: #b51500;
    min-height: 260px;
    width: 100%;
    position: relative;
    bottom: 0;
    box-shadow: 0 -1px 3px 3px #ddbb00;
    display: grid;
    grid-template-columns: repeat(9, 1fr);
    color: white;
}

.address {
    grid-column: 1 / 6;
    padding: 25px;
    font-size: 18px;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.bank {
    grid-column: 6 / 10;
    padding: 25px;
    font-size: 16px;
    display: flex;
    flex-direction: column;
    gap: -3px;
    text-align: right;
    justify-content: flex-end;
}

.bank > span {
    margin-top: -10px;
}

.archive-row {
    display: flex;
    justify-content: space-between;
}

.mobile-menu-icon {
    display: none;
}


.mobile-expanded-menu.show {
    display: flex;
}

.mobile-expanded-menu {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background-color: rgba(181,21,0,0.92);
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    z-index: 1001;
    color: white;
    font-size: 25px;
    padding-top: 5px;
    padding-bottom: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    border-bottom: #ddbb00 3px solid;
}

.mobile-expanded-menu span{
    width: fit-content;
    margin-top: 7px;
    margin-bottom: 6px;
    padding: 7px;
    border: 2px solid white;
    background-color: #b51500;
}

.cemetery-link {
    text-align: center;
    cursor: pointer;
}

.cemetery-link:hover {
    color: rgb(181,21,0)
}

.bractwo-image {
    width: 40vw;
    height: 50vw;
    align-self: left;
}

@media only screen and (max-width: 1400px) {
    .nav-element {
        font-size: 21px;
        color: white;
        padding: 7px;
    }
}

@media only screen and (max-width: 1200px) {
    .nav-element {
        font-size: 19px;
        color: white;
        padding: 4px;
    }
}

@media only screen and (max-width: 900px) {
    .content-row-triple {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    .triple-tile {
        width: 100%;
        margin-bottom: 50px;
    }

    .full-tile {
        width: 100%;
    }

    .front-2 {
        display: none;
    }

    .tile-title {
        font-size: 44px;
    }

    .tile-content-large {
        font-size: 26px;
        padding: 20px 10px 10px 10px;
    }
    
    .tile-content-small {
        font-size: 22px;
        padding: 25px 10px 10px 10px;
    }

    .footer {
        display: flex;
        flex-direction: column;
    }
    
    .address {
        padding: 25px;
        font-size: 22px;
        text-align: center;
    }
    
    .bank {
        padding: 25px;
        font-size: 20px;
        text-align: center;
    }

    .nav-element {
        display: none;
    }

    .mobile-menu-icon {
        display: block;
    }

    #parish-title {
        font-size: 72px;
    }
    
    .text {
        grid-column: 2 / 12;
    }

    .bractwo-image {
        width: 70vw;
        height: 90vw;
        align-self: center;
    }

    .ogloszenia-tile .tile-title {
        margin-left: -5px;
    }
}

