@import url(https://fonts.googleapis.com/css2?family=Chewy&family=Roboto+Slab:wght@100..900&family=Roboto:ital,wght@0,100..900;1,100..900&display=swap);

header {
    
    position: relative;
    background-image: url(../img/headerbg.svg);
    background-repeat: no-repeat;
    background-size: 100%;
    background-position-x: 0rem;
    background-position-y: bottom;
    background-color: #D9D9D9;
    max-width: 100%;
    
    height: 26.05rem;
    /* forces absolutely positioned child elements to be placed relative to the top/left corner of this element by default */
}
.bio-header {
	display: block;
	margin: auto;
	width: 250px;
	position: relative;
}
 header img {
    height: auto;
    width: 12rem;
    padding-top: 1rem;
    padding-left: 1rem  ;
}
img {
    border-radius: 2.75rem;
}
.android {
    height: auto;
    width: 12em;
}
 .apple {
    height: auto;
    width: 5rem;
    border-radius: 0rem;
 }

header::before {
    content: url(headerimg.jpg); 
    /* content cannot be empty */

    position: absolute;
    /* position anywhere you like, on a layer */

    z-index: -1;
    /* control stacking like "send to back" */

    display: block;
    /* behave as normal block level element */

    background-image: url(headerimg.jpg);
    background-repeat: no-repeat;
    background-size: cover; /* or "contain" */
    /* add background as usual */

    width: 100%;
    height: 1rem;
    /* control size explicitly */

    top: -5rem; 
    /* match height to position above header */

    left: 0;
    /* align left */
}

body {
    background-color: #0DAE48;
}
body img {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}
  h1{ font-family: "Chewy", Helvetica, sans-serif;
    padding-left: 2rem;
    padding-right: 2rem;
    padding-bottom: 1rem;
    font-size: 1.3rem;
    text-align: center;
}
h2 { 
    font-family: "Roboto", Helvetica, sans-serif;
    padding-left: 2rem;
    padding-right: 2rem;
    padding-bottom: 1rem;
    font-size: 1.2444em; 
    font-weight: bold;
    text-align: center;
}

h3 { 
    font-family: "Roboto Slab", serif, Helvetica, sans-serif;
    padding-left: 2rem;
    padding-right: 2rem;
    padding-bottom: 1rem;
    font-size: 1.1911em;
}

h4 { 
    font-family: "Roboto Slab", serif, Helvetica, sans-serif;
    padding-left: 2rem;
    padding-right: 2rem;
    padding-bottom: 1rem;
    font-size: 1.1402em;
}

h5 { 
    font-family: "Roboto Slab", serif, Helvetica, sans-serif;
    padding-left: 2rem;
    padding-right: 2rem;
    padding-bottom: 1rem;
    font-size: 1.0914em;
}

h6 { 
    font-family: "Roboto Slab", serif, Helvetica, sans-serif;
    padding-left: 2rem;
    padding-right: 2rem;
    padding-bottom: 1rem;
    font-size: 1.0447em;
}

p { 
    font-family: "Roboto Slab", serif, Helvetica, sans-serif;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    padding-top: 1rem;
    padding-bottom: 1rem;
    font-size: 1em;
}
small
 { 
    font-size: .9572em; 
}


img {
    max-width: 100%;
    height: auto;
}
section {
    border: 3px solid #1e6e0d; 
    background-color: #7dcd93;   
    border-radius: 2.75rem;
    margin: 1rem;   
    padding: 1rem;
}
.section{
    background-image: url(../img/question_mark.jpg);
}
header a:link {color: rgb(255, 0, 255);}
header a:visited  {color: rgb(134, 101, 142);}
header a:hover  {color: rgb(14, 255, 255);}
header a:active {color: rgb(192, 24, 24);}

main a:link  {color: rgb(255, 0, 255);}
main a:visited  {color: rgb(134, 101, 142);}
main a:hover  {color: rgb(14, 255, 255);}
main a:active  {color: rgb(192, 24, 24);}

footer a:link    {color: rgb(255, 0, 255);}
footer a:active   {color: rgb(134, 101, 142);}
footer a:hover   {color: rgb(14, 255, 255);}
footer a:active   {color: rgb(192, 24, 24);}


footer {
        position: relative;
        background-color: #0DAE48;
        background-image: url(../img/footerbg.svg);
        background-repeat: no-repeat;
        background-position-y: bottom;
        background-size: 280px;
        height: auto;
        max-width: 100%;
        padding-top: 50px;
        text-align: center;
        background-position-x: center;
}   
@media screen and (min-width: 800px) {
    .flex-container {
        display: flex;
        column-gap: 3rem;
    }
    .what .flex-container,
    .where .flex-container,
    .why .flex-container
    {  
    flex-direction: row-reverse;
    }
    main{
        width: 800px;
        margin: 0 auto;
    }
    .bio-header {
        width: 300px;
        top: -50px;
    }
    section.when{
        position: relative;
    }
    section.when::before{
        content: "";
        display: block;
        width: 7.5rem;
        /* border-radius: 3.75rem; */
        height: 7.5rem;
        position: absolute;
        top: 6rem;
        background-image: url(../img/calendar.png);
        background-repeat: no-repeat;
        background-position: center;
        background-size: 100%;
        z-index: 2;
        ;left: 37.75rem;
    } 
      section.when::after{
        content: "";
        display: block;
        width: 7.5rem;
         border-radius: 3.75rem;
        height: 7.5rem;
        position: absolute;
        top: 16rem;
        background-image: url(../img/clock.jpg);
        background-repeat: no-repeat;
        background-position: center;
        background-size: 170%;
        z-index: 2;
        ;left: 37.75rem;
    }

    section.what{
        position: relative;
    }
    section.where::before{
        content: "";
        display: block;
        width: 12rem;
        border-radius: 2rem;
        height: 7.5rem;
        position: absolute;
        top: 11rem;
        background-image: url(../img/goose.jpg);
        background-repeat: no-repeat;
        background-position: center;
        background-size: 100%;
        z-index: 2;
        ;left: 3rem;
    }



    .how .flex-container {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }
        section.how::before{
        content: "";
        display: block;
        width: 20rem;
        height: 7.5rem;
        position: absolute;
        top: 22rem;
        background-image: url(../img/iNaturalistCA-Wordmark.svg);
        background-repeat: no-repeat;
        background-position: center;
        background-size: 100%;
        z-index: 2;
        ;left: 3.5rem;
    }

    .why p,
    .why picture {
    flex-basis: 80%;
    }
    .what p,
    .what picture {
    flex-basis: 150%;
    }
    .when p,
    .when picture {
    flex-basis: 80%;
    }
    .how p,
    .how picture {
    flex-basis: 50%;
    }
    .why p,
    .why picture {
        flex-basis: 50%;
    }
    .android {
        margin-left: -1rem;
        width: 90rem;
    }
    p { 
    padding-top: 0rem;
    }
}