@import url('https://fonts.googleapis.com/css?family=Montserrat:400,500&display=swap');
@import url('https://fonts.googleapis.com/css?family=Playfair+Display:400,700&display=swap');
@import url('https://fonts.googleapis.com/css?family=Lora:400&display=swap');
/* 
    COLOR SCHEME
    #02387b
    #03488e
    #0856a7 
    #5fc1e9

    #1a79c3
*/

/* 
    CORE 
    reusable core styles in dimmobiliere-style.css    
*/

h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2.7em;
    font-weight: 400;
    color: black;
    background-color: #fff;
    padding: 8px;
    padding-left: 16px;
    padding-right: 16px;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 4px;
}

h2 {
    font-family: 'Playfair Display', serif;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-align: center;
}

h3 {
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 10px;
    font-size: 2em;
}

h4 {
    font-family: "Montserrat";
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8em;
    letter-spacing: 1px;
    color: #91819b;
    text-align: center;
}

h5 {
    font-family: "Montserrat";
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8em;
    letter-spacing: 2px;
    color: #91819b;
}

p {
    font-family: 'Lora, serif';
    letter-spacing: 2px;
    font-size: 1.2em;
}

/* HEADER CAROUSEL FULLSCREEN */

.carousel-fullscreen .carousel-inner .carousel-item {
    height: 90vh;
    min-height: 600px;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.carousel-indicators li {
    width: 15px;
    height: 15px;
    border-radius: 100%;
}

.carousel-control-next-icon {
    width: 80px;
    height: 80px;
}

.carousel-control-prev-icon {
    width: 80px;
    height: 80px;
}

.showcase-item {
    height: 90vh;
    padding: 0 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.carousel-caption {
    left: 5%;
    right: 5%;
    text-align: start;
}

/* MAIN */

.wrapper {
    display: grid;
}

#title-top {
    display: flex;
}

#title-bottom {
    display: flex;
}

.title-space {
    width: 140px;
}

/* CONTENT */

.content-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    overflow: hidden;
}

.content-container h4 {
    text-align: center;
}

/* SECTION A */

#section-a .text-box {
    justify-self: center;
    max-width: 60%;
    display: grid;
    align-content: flex-start;
    text-align: justify;
    margin-top: 25%;
}

#section-a .img-box {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

#section-a img {
    width: 85%;
    height: auto;
    padding-left: 30px;
    margin: 95px 0;
}

/* SECTION C */

#section-c .text-box {
    justify-self: center;
    max-width: 60%;
    display: grid;
    align-content: flex-start;
    text-align: justify;
    margin-top: 25%;
}

#section-c .img-box {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

#section-c img {
    width: 85%;
    height: auto;
    padding-right: 30px;
    margin-top: 95px;
}

/* SECTION D */

#section-d .text-box {
    justify-self: center;
    max-width: 60%;
    display: grid;
    align-content: flex-start;
    text-align: justify;
    margin-top: 15%;
}

#section-d .img-box {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

#section-d img {
    width: 85%;
    height: auto;
    padding-left: 30px;
    margin-bottom: 95px;
}

/* TABLET */

@media (max-width: 980px) {
    .carousel-fullscreen .carousel-inner .carousel-item {
        background-attachment: unset;
    }
    .content-container {
        display: grid;
        grid-template-columns: 1fr;
    }
    #section-a .text-box {
        max-width: 100%;
        padding: 0 15%;
        margin-top: 15%;
    }
    #section-c .text-box {
        max-width: 100%;
        padding: 0 15%;
        margin-top: 15%;
    }
    #section-d .text-box {
        margin-bottom: 15%;
    }
}

/* PHONE
    TODO: add space between headline and text in sections
*/

@media (max-width: 630px) {
    h1 {
        font-size: 2em;
        color: black;
        background: none;
        padding: 0;
        margin: 0;
        line-height: 1.3;
        letter-spacing: 3px;
    }
    .title-space {
        display: none;
    }
    .title-container {
        padding: 16px;
        background-color: #fff;
    }
    #section-a .text-box {
        margin-top: 25%;
    }
    #section-c .text-box {
        margin-top: 25%;
    }
    #section-a img {
        width: 100%;
        height: auto;
    }
    #section-c img {
        width: 100%;
        height: auto;
    }
    #section-d img {
        width: 100%;
        height: auto;
    }
}