.main-img, .small-img {
    max-width:100%;
    max-height:100%;

}


.flex-container {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    margin: 0;
    justify-content: space-around;
}
nav {
    width: 100%;

}


.flex-parent {
    width : 100%;
    height: auto;
    margin: 2em;
}

.flex-parent h1 {
    text-align: center;
    font-family: 'Poiret One', cursive;
}

nav ul {
    display: flex;
    list-style-type: none;
    width: 100%;
    border-left: 0px;
}


body {
    margin: 0;
}
footer {
    font-family: 'Poiret One', cursive;
}

nav ul {
    display: flex;
    flex-flow: row wrap;
    justify-content: center;
    list-style-type: none;
    margin: 0;
    padding: 0;
    background-color: crimson; }

nav ul li {
    justify-content: center;
    width: 30%;
    display: flex;
    font-family: 'Dosis', sans-serif;


}

nav ul li a {
    align-items: center;
    color: white;
    padding: 14px 16px;
    text-decoration: none;
}

nav ul li:first-of-type {
    background-color: white;
    border: 3px solid crimson;


}


.pinknav:hover:not(.active) {
    background-color: #F16A85;
    color: white;
}
nav li:hover:not(.active) {
    background-color: #F16A85;
    color: white;
}

#homenav:hover:not(.active) {
    color: white;
}

.home a {
    color: crimson;
}

li {
    list-style-type: none;
}






.main-img, .small-img {
    opacity: 1;
    transition: .5s ease;
    backface-visibility: hidden;
}

.flex-parent:hover .main-img {
    opacity: 0.6;
}
.flex-parent:hover .small-img {
    opacity: 0.6;
}

.flex-parent a{

        color: black;
        text-decoration: none; /* no underline */

}



#leftbanner {
    width: 100%;
    height: auto;
}

footer {
    margin: 10px;
}


/*
.main-img {
    visibility: hidden;
    height: 0px;
    width: 0px;
}
*/
.small-img {
    visibility: visible;
    width: auto;
    height: auto;
}



@media screen and (min-width: 450px) {

    nav ul {
        display: flex;
        flex-flow: row;
    }


    #leftbanner {
        visibility: visible;
        height: auto;
        width:auto;
    }
    .flex-parent{
        width:25%;
        margin:1.5em;
        margin-top:20px;
    }
    .flex-container {
        justify-content: space-around;
    }
   nav ul li {
        display: flex;
        justify-content: center
    }
    #leftbanner {
        width: 100%;
        height: auto;
    }
    .scroller {
        max-width: 2500px;
    }

    .small-img {
        visibility: visible;
        height: auto;
        width: auto;
    }

/*
    .main-img {
        visibility: hidden;
        width: 0px;
        height: 0px;
    }
*/

}

