/* ------------------ GOOGLE FONTS ------------------ */

@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;600&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Amita:wght@700&display=swap&text=Ozanam');
@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@700&display=swap&text=FedericoOzanam(1813-1853)');

/* ------------------ LOCAL FONTS ------------------ */

@font-face {
    font-family: 'Bernardette';
    src: url('fonts/bernadette_rough.ttf');
    font-weight:  400;
}

@font-face {
    font-family: 'Priscilla Script';
    src: url('fonts/Priscilla-Script.ttf');
    font-weight:  900;
}

/* ------------------ GENERAL ------------------ */

html, body{
    margin: 0;
    font-family: 'Open Sans', sans-serif;
    font-size: 13px;
}

html{
    height: 100%;
}

body{
    display: flex;
    padding-top: 2rem;
    align-items: center;
    flex-direction: column;
    min-height: calc(100% - 2rem);
}

div, header, hgroup, nav,
main, section, article, footer,
address,
h1, h2, h3, h4, h5, h6{
    display: flex;
    box-sizing: border-box;
}

img{
    width: 100%;
    height: 100%;
}

/* ------------------ HEADER ------------------ */

body>header {
    height: 3.33rem;
    width: 100%;
    user-select: none;
}

body>header hgroup{
    position: relative;
    flex: 2;
    background-image:url('../img/header.svg');
    background-position: center;
    background-size: cover;
    cursor: pointer;
}

body>header hgroup h1{
    position: relative;
    width: 100%;
    top: -3.4rem;
    padding-right: 2.33rem;
    font-family: 'Amita', cursive;
    font-size: 4.93rem;
    letter-spacing: -0.2rem;
    color: #c07120;
    margin: 0;
    justify-content: center;
    text-shadow: 0.27rem 0.27rem 0.33rem rgba(0,0,0,0.25);
}

body>header hgroup h2{
    position: absolute;
    top: -1.87rem;
    width: 100%;
    font-weight: 300;
    font-size: 1.67rem;
    color: #c07120;
    justify-content: center;
    margin: 0;
    letter-spacing: 0.13rem;
}

body>header nav{
    flex: 3;
    max-width: 70rem;
    background-color: #c07120;
    align-items: center;
}

body>header nav a{
    display: flex;
    flex: 1 0;
    height: 100%;
    font-size: 1.13rem;
    font-style: italic;
    line-height: 1rem;
    font-weight: 600;
    text-decoration: none;
    color: white;
    text-align: center;
    align-items: center;
    justify-content: center;
}

body>header nav a:hover{
    text-shadow: 0.13rem 0.13rem 0.53rem #000000;
}

body>header nav a.selected{
    height: 110%;
    box-shadow: 0 0.13rem 1rem 0 rgba(0,0,0,0.4);
    background-color: #c07120;
    z-index: 1;
}

body>header .menu-icon{
    display: none;
    box-shadow: 0 0.13rem 1rem 0 rgba(0,0,0,0.4);
    background-color: #c07120;
}

/* ------------------ MAIN ------------------ */
.contents, main{
    width: 90%;
    max-width: 100rem;
    flex-direction: column;
    align-items: center;
    flex: 1;
}

.page-title{
    width: 100%;
    margin-top: 1rem;
    margin-bottom: 1.33rem;
    align-items: center;
}

.page-title>.title{
    font-weight: 600;
    font-style: italic;
    font-size: 2rem;
    padding: 0.66rem 2.66rem;
    color: #c07120;
}

.page-title>.line{
    background-color: #c07120;
    height: 0.5rem;
    flex: 1;
}

.row{
    flex-wrap: wrap;
    justify-content: center;
}

/* FOOTER */
body>footer{
    flex-direction: column;
    width: 100%;
    font-weight: 300;
    color: white;
    background-color: #c07120;
}

body>footer a, body>footer a:hover, body>footer a:visited{
    color: white;
    text-decoration: none;
}

body>footer .group:nth-child(1){
    padding: 1.33rem 1.33rem 0 1.33rem;
    justify-content: center;
    flex-wrap: wrap;
}

body>footer .group:nth-child(1)>div:nth-child(1){
    font-size: 1.66rem;
    font-weight: 600;
    font-style: italic;
    text-align: center;
    padding-right: 3.33rem;
}

body>footer .group:nth-child(1)>address{
    flex-direction: column;
    font-style: normal;
}

body>footer .group:nth-child(1) .title{
    font-weight: 600;
}

body>footer .group:nth-child(2){
    justify-content: center;
    padding: 1rem;
}

body>footer .phone-link{
    text-decoration: none;
}

body>footer .phone-link, body>footer .mail-link{
    color: white;
}

.ozanam{
    position: absolute;
    z-index: -2;
}
.ozanam img{
    width: 14.33rem;
    margin-left: -4rem;
}
.mobile{
    display: none !important;
}

.weight-300{
    font-weight: 300;
}
.weight-500{
    font-weight: 600;
}
.italics{
    font-style: italic;
}
.line-height-2{
    line-height: 2;
}

.box-shadow{
    box-shadow: 0 0 1rem -0.2rem rgba(0,0,0,0.25);
}

.pointer{
    cursor: pointer;
}

.leaflet-popup, .leaflet-popup-content-wrapper, .leaflet-popup-content{
    display: block;
}

@media (max-width: 1024px){
    body>header nav {
        flex-direction: column;
        flex-wrap: wrap;
        background-color: white;
        position: absolute;
        top: 6.66rem;
        width: 100%;
        height: calc(100% - 6.66rem);
        z-index: 1;
        justify-content: center;
    }

    body>header nav a {
        flex: 0 0 3.33rem;
        color: #c07120;
        margin: 0.66rem 0;
    }

    body>header nav a.selected {
        color: white;
        padding: 0 1rem;
    }

    body>header .menu-icon{
        display: flex;
        position: absolute;
        right: 0;
        top: 1.8rem;
        width: 3.73rem;
        height: 3.73rem;
        padding: 0.67rem;
    }

    .hidden{
        display: none;
    }
}

@media (max-width: 425px){
    html, body{
        font-size: 3.058823vw; /* width: 425px => 13px */
    }
}