/* ------- Core styles for this project ------- */

/* google fonts */
@import url('https://fonts.googleapis.com/css?family=Source+Sans+Pro:400');

/* Reset CSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* General center styles */
.center{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* No link decoration */
a {
    text-decoration: none;
    color:black;
}

/* Underline design */
.border{
    height: 1px;
    background-color: #ebbfb2;
    margin-top: 10px;
    margin-bottom: 25px;
}

/* Body styles */
body {
    margin: 0;
    padding: 0;
    font-family: 'Source Sans Pro', sans-serif;
}


/* ------- Responsive designs for this project ------- */
/* Description of the following classes in their home css */

@media screen and (max-width: 1200px) {
    /* Hide the main menü when this screen size is reached */
    .parentsDetails{
        grid-template-columns: 1fr 1fr;
    }
}

/* --- View for medium screens --- */
@media screen and (max-width: 780px) {
    /* Hide the main menü when this screen size is reached */
    .main-menu {
        display: none;
    }

    /* Fix the font size when this screen size is reached */
    main.home p, main.flats, main.agb, main.impressum{
        font-size: 14px;
    }

    /* Shows the Hamburger icon when this screen size is reached  */
    #hamburger-menu {
        display: block;
    }

    /* This container is from the nav */
    nav{
        width: 100%;
        background-color: black;
    }

    /* This container is from the site contact */
    /* Der Container labelItem nimmt 100% des Platzes im Container maxWidth ein.*/
    .labelItem {
        flex-basis: 100%;
       /* Für flexible breiten, wird empfohlen flex-basis zu verwenden. */
        margin-bottom: 15px;
    }

    /* This container is from the site galerie  */
    .parentsFlats{
        grid-template-columns: 1fr 1fr;
    }

    /* This container is from the site galerie */
    .itemFlat{
        display: flex;
        box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
    }

    /* This container is from the site details */
    .parentsDetails{
        grid-template-columns: 1fr;
    }

    /* This container is from the site home */
    .parentsHome {
        grid-template-columns: 1fr;
    }
}

/* --- View for small screens --- */
@media screen and (max-width: 520px) {

    /* This container is from the footer */
    footer .parent{
        display: flex;
        flex-direction: column;
        align-items: center;
        padding-bottom: 50px;
    }

    /* This container is from the site galerie */
    .parentsFlats {
        display: grid;
        grid-template-columns: 1fr;
    }

    /* This container is from the site galerie */
    .itemFlat{
        box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
        margin: auto;
        text-align: center;
        max-width: 350px;
        display: flex;
        flex-direction: column;
    }
}