* {
    margin: 0; padding: 0; border: 0;
    box-sizing: border-box;
}

body {
    background-color: #22BEd9;
    color: #345;
    font-family: verdana;
    padding-bottom: 80px;
}

.primary_mind {
     margin: 4px 8px;
     background-color: #b6e0e5;
}

.primary_header {
    min-height: 100px;
    color: #e9d59c;
    text-align: center;
    text-transform: capitalize;
    text-shadow: 0 0 5px #738b13, 0 0 10px #256940, 0 0 20px #f28500;
}

.page_body {
    display: flex; /* flexbox container */
    flex-flow: row wrap;
}

.primary_nav {
    background-color: seagreen;
    min-height: 70px;
    flex-grow: 1;
    flex-basis: 260px;
    display: flex;
    flex-flow: row wrap;
    justify-content: space-evenly;
    gap: 10px;
    padding: 10px 8px;
}

.nav-primary a {
    padding: 8px 12px;
    background-color: rgb(255, 195, 40);
    color: #234;
    text-decoration: none;
}

.primary_nav .desktop {
    color: #cdca52;
    display: none; /* remove the elements */
}

article {
    background-color: #d8944d;
    flex-grow: 1;
    flex-basis: auto;
    color: #e33626
}

article > header {
    background-color: #eaacb4;
    min-height: 60px;
    margin: 8px;
    color: #865d95
}

header + figure.hero {
    background-color: rgb(200,220,20);
    aspect-ratio: 2/1;
    margin: 8px;
    background-image: url(../images/ocean_island1.jpg);
    background-size: cover;
    background-position: center;
}

article p {
    font-size: 1.2em;
    line-height: 1.4;
    margin: .2em 8px 1em 8px;
}

footer {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    background-color: #c44041;
    color: #ff9609;
    min-height: 60px;
    padding: 10px;
    z-index: 1000;
}

/* ========= landscape tablet and bigger ========= */
@media screen and (min-width: 1020px) {


   .primary_nav {
    flex-grow: 0; } 

    article {
        flex-basis: 400px;
    }

   article > header {
    margin: 0px; }

    header + figure.hero {
    margin: 16px;
    width: 500px; aspect-ratio: 1;
    float: left; }
    
    article > p:nth-of-type(1) {
        margin: 16px;
    }

    .primary_nav .desktop {
        display: inline;
    }

} 