* {
    margin: 0; padding: 0; border: o;
    box-sizing: border-box;
}

/* ====mobile styles and bigger====*/
body {
    background-color: rgb(138, 200, 179);
    color: #363636;
    font-family: verdana;
}

.container {
    margin: 4px 8px;
}

.page-body {
    display: flex; /* flexbox container */
    flex-flow: row wrap;
}

.header-primary { /*container > header*/
    background-color: rgb(95, 76, 48);
    color: antiquewhite;
    min-height: 80px;
    text-align: center;
}

.nav-primary {
    background-color: rgb(178, 146, 208);
    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 {
    border: 2px solid rgb(27, 61, 27);
    padding: 8px 12px;
    background-color: rgb(253, 253, 200);
    color: rgb(89, 82, 82);
    text-decoration: none;
}

.nav-primary .phone {
    border: 4px solid rgb(0, 0, 0);
    display: inline;
}

.nav-primary .desktop {
    border: 2px solid rgb(0, 0, 0);
    display: none;
}

article {
    background-color: rgb(193, 242, 242);
    flex-basis: auto;
    flex-grow: 1;
}

article > header {
    background-color: rgb(134, 182, 134);
    min-height: 60px;
    margin: 8px;
}

header + figure.hero {
    background-color: rgb(238, 164, 164);
    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(124, 123, 123);
    color: rgb(233, 244, 254);
    min-height: 60px;
}


/* ===== landscape tablet and bigger ==== */

@media screen and (min-width: 1020px) {


    .header-primary {
        text-align: left;
    }

    .nav-primary {
        flex-grow: 0;
    }

    article {
        flex-basis: 400px;
    }

    article > header {
        margin: 0px;
        
    }

    header + figure.hero {
        margin: 16px;
        width: 260px; aspect-ratio: 1;
        float: left;
    }

    article > p:nth-of-type(1) {
        margin-top: 16px;
    }

    article > p:nth-of-type(1)::first-letter {
        display:block;
        color: rgb(73, 34, 34);
        font-size: 3em;
        float: left;
        padding-right: 8px;
    }

    .nav-primary .desktop {
        display: inline;
    }


} /*end of wide-screen styles*/




