:root{
    --navbar-height: 60px;
}

.root-section:nth-child(odd){
    /*background-color: var(--color-2);
    color: var(--color-text-2);*/
    /*background-image: url("/resources/img/bg/blur1.png");
    background-size: cover;*/

    box-shadow: var(--shadow-black);
}

.root-section:nth-child(odd) .section-header, .root-section:nth-child(odd) #contact-info-container p{
    text-shadow: 0 0 40px white;
}
#footer-text{
    text-shadow: 0 0 40px black;
}
.root-section:nth-child(even){
    background-color: var(--color-4);
    color: var(--color-text-4);
    box-shadow: var(--shadow-black);
}
body{
    background-image: url("/resources/img/tlo-jasne-rozmyte.jpg");
    /*background-image: url("/resources/img/Grafika tymczasowa strona glowna blur jansy.jpg");*/
    background-color: var(--color-4);
    background-position: center;
    background-size: cover;
    background-attachment: fixed;
}
/* https://forums.mobirise.com/discussion/30860/css-background-size-cover-in-iphone */
body::before {
    content: ' ';
    display: block;
    background-image: url("/resources/img/tlo-jasne-rozmyte.jpg");
    /*background-image: url("/resources/img/Grafika tymczasowa strona glowna blur jansy.jpg");*/
    background-position: center;
    background-size: cover;
    height: 100vh;
    width: 100vw;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    position: fixed;
    z-index: -10;
}



/* -------- <banner> -------- */

#banner{
    height: calc(100vh - var(--navbar-height));

    /*background-image: url("/resources/img/Grafika tymczasowa strona glowna upscaled.jpg");*/
    background-image: url("/resources/img/tlo-ciemne.jpg");
    background-position: center;
    background-size: cover;
    z-index: -2;
    position: relative;
}
/* https://stackoverflow.com/questions/30102792/css-media-query-to-target-only-ios-devices/47818418#47818418 */
@supports not (-webkit-touch-callout: none) {
    #banner{
        background-attachment: fixed;
    }
}
#banner *{
    color: white;
}
#banner-tilte-container{
    position: relative; /* for js scrolling*/
    top: -var(--navbar-height);
    z-index: -1; /* for js scrolling*/
}
#banner-tilte-container > *{
    font-family: 'montserrat', sans-serif;
    text-shadow: 0 0 15px black;
}
/* https://stackoverflow.com/questions/30102792/css-media-query-to-target-only-ios-devices/47818418#47818418 */
/* poniżej równe cienie na ios... */
@supports (-webkit-touch-callout: none) {
    #banner-tilte-container > h2{
        text-shadow: 0 0 15px black;
    }
    #banner-tilte-container > h1{
        text-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
    }
}
#banner-tilte-container img{
    height: 200px;
    width: auto;
    margin: auto;
}
#banner-tilte-container h1{
    font-weight: 700;
    font-size: 2em;
    margin-bottom: 10px;
}
#banner-tilte-container h2{
    font-weight: 500;
    font-size: 1.3em;
}
@media (min-width: 490px){
    #banner-tilte-container img{
        height: 250px;
    }
    #banner-tilte-container h1{
        font-size: 2.5em;
    }
    #banner-tilte-container h2{
        font-size: 1.6em;
    }
}
@media (min-width: 640px){
    #banner-tilte-container img{
        height: 300px;
    }
    #banner-tilte-container h1{
        font-size: 3em;
    }
    #banner-tilte-container h2{
        font-size: 1.8em;
    }
}
/*@media (min-width: 1200px){
    #banner-tilte-container img{
        height: 350px;
    }
    #banner-tilte-container h1{
        font-size: 4em;
    }
    #banner-tilte-container h2{
        font-size: 2.5em;
    }
}*/

/* -------- </banner> -------- */



/* -------- <about> -------- */
.section-about-text{
    margin-bottom: 20px;
}
.section-about-text:last-child{
    margin-bottom: 0;
}
@media (min-width: 600px){
    .section-about-text{
        font-size: 1.1em;
    }
}

@media (max-width: 640px){
    #o-studio .container{
        width: 90%;
    }
}


/* -------- </about> -------- */



/* -------- <section contents> -------- */

.section-header{
    padding: 20px 0;
    /*font-size: 2em;
    font-weight: 900;*/
    /*font-family: montez;*/

    font-family: 'montserrat', sans-serif;
    font-weight: 700;
    font-size: 2.5em;
}
.section-header-2{
    font-size: 1.5em;
    text-align: center;
}
.section-image-container{
    margin-top: 20px;

    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}
@media (min-width: 440px){
    .section-image-container{
        margin-top: 40px;
    }
}
@media (min-width: 1500px){
    .section-content-container{
        display: flex;
        flex-direction: row;
        justify-content: space-between;
    }

    .section-description-container{
        width: calc(70% - 20px);
    }
    .section-image-container{
        margin: 0;
        width: 30%;
    }
}

/* -------- </section contents> -------- */



/* -------- <tile, tile events> -------- */

.tile-container{
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
}
.tile-item{
    /*padding: 20px;*/
    background-color: var(--color-3);
    color: var(--color-text-3);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    width: 100%;

    box-shadow: var(--shadow-black);
}
.tile-item:first-child{
    /*margin-top: 0;*/
}
.tile-image{
    /*height: 150px;*/
    width: 100%;
    padding-bottom: 66%;
    background-position: center;
    background-size: cover;
}
.tile-title{
    padding: 20px 0;
    width: 100%;

    font-size: 1.7em;
    font-family: 'montserrat', sans-serif;
    font-weight: 700;

    text-align: center;
    background-color: rgba(0, 0, 0, 0.3);
}
.tile-desc{
    flex-grow: 1;
    text-align: center; /*było justify ale wyglądało źle*/
    padding: 20px;
}
/*center overfloved text: https://stackoverflow.com/questions/6618648/can-overflow-text-be-centered*/
.tile-btn:before {
    content: "";
    margin-left: -100%;
}
.tile-btn:after {
    content: "";
    margin-right: -100%;
}
.tile-btn{
    white-space: nowrap;
    padding: 10px;
    background-color: var(--color-4);
    color: var(--color-text-4) !important; /* bez tego przez a:visited był biały kolor */
    margin-bottom: 20px;
    text-align: center;
    width: calc(100% - 40px);

    transition: 0.2s all;
}
.tile-btn:hover{
    box-shadow: var(--shadow-black);
    width: calc(100% - 60px);
}
@media (min-width: 640px){
    .tile-container{
        justify-content: space-between;
    }
    .tile-item{
        width: calc(50% - 10px);
        margin: 0;
        margin-bottom: 20px;
    }
}
@media (min-width: 910px){
    .tile-item{
        width: calc(33% - 10px);
    }
}
/* @media (min-width: 1500px){
    .tile-item{
        width: calc(25% - 10px);
    }
} */

/* events */

.tile-events{
    width: 100%;
    background-color: var(--color-3);
    color: var(--color-text-3);
    margin-bottom: 20px;

    box-shadow: var(--shadow-black);
}
.tile-e-title{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.3);
    overflow: hidden;
}
.tile-e-title h4{
    font-size: 1.6em;
    font-family: 'montserrat', sans-serif;
    font-weight: 700;
}
.tile-e-share-icon{
    height: 1.7em;
    width: auto;
    cursor: pointer;
}
.tile-e-details-container{
    margin: 10px 20px;
    margin-bottom: 0;
    padding-bottom: 10px;
    display: flex;
    flex-direction: row;
    align-items: center;

    border-bottom: 1px solid var(--color-text-3);
}
.tile-e-details-container > img{
    height: 28px;
    width: auto;
    margin-right: 10px;
}
.tile-e-desc-container ul, .tile-e-desc-container ol{
    list-style-position: inside;
    margin-bottom: 20px;
}
.tile-e-desc-container{
    display: flex;
    flex-direction: column;
    padding: 20px;
}
.tile-e-desc-container p{
    margin-bottom: 20px;
}
.tile-e-desc-container a{
    text-decoration: underline;
}
.tile-e-desc-container p:last-child{
    margin-bottom: 0;
}
.tile-e-img{
    flex-shrink: 0; /* otherwise width is ignored */
    width: 100%;
    padding-bottom: 66%;
    margin-right: 20px;
    margin-bottom: 20px;
    background-position: center;
    background-size: cover;
}
@media (min-width: 640px){
    .tile-e-title h4{
        word-break: normal;
    }
    .tile-e-desc-container{
        flex-direction: row;
    }
    .tile-e-img{
        height: 200px;
        width: 200px;
        padding-bottom: 0;
        margin-bottom: 0;
    }
}
@media (min-width: 910px){
    .tile-e-img{
        height: 200px;
        width: 260px;
    }
}
@media (min-width: 1500px){
    .tile-e-img{
        height: 200px;
        width: 160px;
    }
}


/* -------- </tile, tile events> -------- */


/* -------- <contact> -------- */
.contact-info-row{
    display: flex;
    flex-direction: row;
    align-items: center;
}
.contact-info-icon{
    height: 1.2em;
    width: auto;
    margin-right: 10px;
}
#contact-info-container p{
    margin: 5px 0;
}
#contact-info-container a{
    text-decoration: underline;
}
#share-address-btn{
    display: flex;
    align-items: center;
    cursor: pointer;
    background-color: var(--color-3);
    margin-top: 30px;
    box-shadow: var(--shadow-black-1);
    transition: all 0.3s;
    padding: 10px;
    color: var(--color-text-3);
}
#share-address-btn:hover{
    box-shadow: var(--shadow-black-2);
}
/* -------- </contact> -------- */


/* -------- <map> -------- */

#google-map-container{
    background-color: var(--color-4);
    margin-top: 30px;
    margin-bottom: 40px;
    box-shadow: var(--shadow-black-2);
}
#google-map-container iframe{
    min-height: 200px;
    max-height: 500px;
    height: 60vw;
    width: 100%;
}
/* -------- </map> -------- */