* {
    margin: 0; padding: 0;
    border: 0;
    box-sizing: border-box;
}

/* =========== Mobile/portrait tablets styles and bigger ============= */

body {
    background-color: #CFC;
    color: #345;
    font-family: verdana;
}

.container {
    margin: 4px 8px;
    border: 2px solid red;
}

.header-primary {
    background-color: rgb(20,20,200);
    color: rgb(240,240,240);
    min-height: 80px;
    text-align: center;
}

.page-body {
        display: flex;  /* flex box container */
        flex-flow: row wrap;
    }

.nav-primary {
    background-color: rgb(255,165,0);
    min-height: 70px;
    flex-grow: 1;
    flex-basis: 260px;
    display: flex;
    flex-flow: row wrap;
    justify-content: space-evenly;
    gap: 10px;
    padding: 10px 0px;
}

.nav-primary a {
    border: 2px solid #234;
    padding: 8px 12px;
    background-color: rgb(255,195,40);
    color: #234;
    text-decoration: none;
}

.nav-primary .desktop {
    border: 2px solid #234;
    display: none; /* removes the elements */
}

.nav-primary .phone {
    border: 4px solid black;
    display: inline;
}

article {
    background-color: rgba(255,255,255,.7);
    flex-grow: 1;
    flex-basis: 340px;
}

article > header {
    background-color: rgb(20,200,20);
    min-height: 60px;
    margin: 8px;
}

header + figure.hero {
    background-color: rgb(200,200,20);
    min-height: 200px;
    margin: 8px;
    background-image: url(../images/dog2.jpg);
    background-size: cover;
    background-position: center;
}

article p {
    font-size: 1.2em;
    line-height: 1.4;
    margin: .2em 8px 1em 8px;
}

article footer {
    background-color: rgb(100,100,100);
    color: #EEE;
    min-height: 60px;
}


/* ============= landscape tablet and bigger ===============*/
/*only things that will change between mobile and desktop */
@media screen and (min-width: 1020px) {  

     .header-primary {
        text-align: left;
    }
    
    .nav-primary {
        flex-grow: 0;
    }


    article > header {
    margin: 0px;
    }

    header + figure.hero {
        margin: 16px;
        width: 260px;
        float: left;
    }

    article > p:nth-of-type(1) {
        margin-top: 16px;
    }

    /* creates a drop cap on first letter of first paragraph */
    article > p:nth-of-type(1)::first-letter {   
        font-size: 400%;
        line-height: 85%;
        float: left;
        margin-right: 0.1em;
        font-weight: bold;
        color: red;
    }

    .nav-primary .desktop {
        display: inline;
    }

} /*end of widescreen styles */