* {
    margin: 0; padding: 0; border: 0; box-sizing: border-box;
}

body {
    padding-top: 8px;
}

#content {
    width: 80%; margin: 0 auto;
    min-width: 400px; max-width: 1200px;
    min-height: 600px;
}

header {
    background-color: #577590; min-height: 150px;
}

.hlogo {
    display: block; width: 130px; height: 130px;
    float: left; margin: 8px;
    border-radius: 8px;
}

.hlogo img {
    width: 100%; height: 100%;
    border-radius: 8px;
}

header > nav {
    margin: 0px 8px 8px 150px;
    position: relative; top: 4px;
    display: flex;
    flex-flow: row wrap;
}

header > nav > a {
    display: block;
    border: 2px solid white;
    flex: 1 0 45%;
    min-height: 40px;
    margin: 2px;
    color: #EEE; text-align: center; text-decoration: none;
    line-height: 40px;
}

main {
    background-color: #43aa8b; min-height: 400px;
    display: flex;
    flex-flow: row wrap;
}

main > div {
    flex: 1 0 100%; /* grow - shrink - basis */
    border: 4px solid #f9c74f;
    min-height: 180px;
    background-color: red;
}

main > div > a {
    display: block; width: 100%; height: 100%;
}

main > div > video {
    width: 100%; height: 100%;
}

main > div:nth-child(1) {
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    font-size: 18px;
    padding: 4px;
}

main > div:nth-child(2) {
    background-image: url(../images/fm1.jpg); background-size: cover;
}

main > div:nth-child(3) {
    background-image: url(../images/fm2.jpg); background-size: cover;
}

main > div:nth-child(5) {
    background-image: url(../images/dfm-map.png); background-size: cover;
}

main > div:nth-child(6) {
    background-image: url(../images/fm3.jpg); background-size: cover;
}

footer {
    background-color: #4d908e; min-height: 200px;
    padding-top: 8px;
}

#credits {
    border-collapse: collapse;
    width: 70%;
    margin: 0px 8px;
}

#credits td {
    border: 4px solid lightgray;
    padding: 4px;
    color: #FFC;
}

footer > #socials {
    display: flex;
    margin: 0px 8px;
}

footer > #socials > #socials1 > a {
    text-decoration: none;
    color: black;
    font-weight: bold;
}

footer > #socials > #socials2 > a {
    text-decoration: none;
    color: black;
    font-weight: bold;
}

footer > #socials > #socials3 > a {
    text-decoration: none;
    color: black;
    font-weight: bold;
}

footer > #socials > #socials1 {
    background-color: thistle;
    padding: 1em;
    margin: 1%;
}

footer > #socials > #socials2 {
    background-color: wheat;
    padding: 1em;
    margin: 1%;
}

footer > #socials > #socials3 {
    background-color: tomato;
    padding: 1em;
    margin: 1%;
}

/* tablet and bigger*/
@media screen and (min-width: 700px) {

    #content {
        width: 95%; max-width: 95%;
        background-color: #43aa8b;
    }
    
    main > div {
        flex: 1 0 50%;
        background-color: red;
        border: 4px solid yellow;
    }

}

/* desktop and bigger*/
@media screen and (min-width: 1200px) {

    .flexparent {
        display: flex;
        flex-direction: row;
    }

    .flexparent > header {
        width: 300px; min-width: 300px;
    }

    .hlogo {
        width: 280px; height: 280px;
        float: none; margin: 8px auto; 
    }

    header > nav {
        margin: 8px 8px 8px 8px;
    }

    header > nav > a {
        border: 2px solid green;
        flex: 1 0 100%;
        min-height: 40px; 
        margin: 2px;
        color: #090; text-align: left; text-decoration: none;
        padding-left: 70px;
        line-height: 40px;
        background-image: url(../images/tomato-menu.png);
        background-repeat: no-repeat;
        background-size: 44px;
        background-position: 0px -45px;
    }

    header > nav > a:hover {
        background-position: 0px 1px;
        color: red;
        border: 2px solid red;
    }

    .flexparent > main {
        flex-grow: 1;
    }
    
    main > div {
        flex: 1 0 50%;
        background-color: red;
    }

}