img {
    max-width: 100%; 
    height: auto;
    border-radius: 10px;
    display: block;
}

h3, h4, li, a {
    font-family: "Lato", sans-serif;
    text-align: center;
}

body {
    background-color: #D3FDBB;
    
}

#title {
    font-family: "Russo One", sans-serif;
    color:#fff ;
    font-size: 30px;
    text-align: center;
    margin-top: 10px;
    background-color: #68B948;
}

#subheadding {
    font-family: "Cabin", sans-serif;
    font-style: italic;
    color: #68b948;
    text-align: center;
    margin: 0.5rem 0.5rem 0.5rem 0.5rem;
    padding: 0.5rem;
    border-radius: 10px;
}

#sub {
    font-family: "Nerko One", cursive;
    text-align: center;
    margin: 10px;
    font-size: 2.5em;
}

section {

    margin: 1rem 1rem 1rem 1rem;
    padding: 1.5rem;
    background-color: #dfefd2;
    border-radius: 10px;
    border: solid green 6px
}

/* .flex-container {
    display: flex;
    /* put elements side-by-side *
}

.when .flex-container {
    flex-direction: row-reverse;
    /* places elements in reverse order: last element becomes first *
} */

.when p,
    .when picture,
    .why p,
    .why picture {
	    flex-basis: 50%;
    }

.how .flex-container {
        display: grid;
        grid-template-columns: 1fr 1fr;
        /* two columns: each equal to one fraction of the available space */
    }

    .how picture {
        order: 2;
        /* force to go to column 2 */
      }

    .how .flex-container div {
        order: 1;
        /* force to go to column 1 */
    }

    footer {
        background-color: #68B948;
        color: #fff;
        height: 5rem;
        line-height: 5rem;
        /* the line of text is the same height as the box it is in: vertical centering */

        text-align: center;
        /* horizontal centering */
    }

   #jac-logo {
    border-radius: 0%;
   }
   
   .text {
    font-family: "Lato", sans-serif;
    margin: 10px;
    font-size: 25px;
   }

   .foot {
    font-family: "Lato", sans-serif;
    text-align: center;

   }

   
   header {
    background-image: url(images/foresta.jpg); /* 1x version */
    background-repeat: no-repeat;
    background-size: cover;
}

@media (min-resolution: 2x) {

header {
    background-image: url(css/img/bg2x.jpg); /* 2x version */
    /* no need to repeat css properties that don’t change */
}

} /* always comment closing media query */

header {
    position: relative;
    /* forces absolutely positioned child elements to be placed relative to the top/left corner of this element by default */
}

header::before {
    content: " "; 
    /* 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(css/img/bg.jpg);
    background-repeat: no-repeat;
    background-size: cover; /* or "contain" */
    /* add background as usual */

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

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

    left: 0;
    /* align left */
}

body {
    background-image: url("images/foresta.jpg");
    background-position-y: 114px;
    background-repeat: repeat;
    background-size: auto;
  }

  #subheadding {
    background-color:#D3FDBB;
  }

  @media screen and (min-width: 48rem) {

    body {
     background: rgb(255, 255, 255);
     background-image: url(images/foresta.jpg);
     background-position-y: 114px;
     background-repeat: repeat;
     background-size: auto;
    }

    p {
        max-width: 90ch;
    }

    picture {
        max-width: 36rem;
        /* 36rem * 16 = 576px */
    }

    .flex-container > p,
    .flex-container > div {
        margin: 0 1rem;
    }
 

    .flex-container {
        display: flex;
    }

    .when .flex-container {
        flex-direction: row-reverse;
    }

    .when p,
    .when picture,
    .why p,
    .why picture {
	    flex-basis: 50%;
    }

    .how .flex-container {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .how picture {
        order: 2;
      }

    .how .flex-container div {
    order: 1;
    }
}

/* always comment closing media query */


@media screen and (min-width: 64rem) {

    h1 {
        font-size: 4.6em;
    }

    .wrapper{
        max-width: 64rem;
        margin: 0 auto;
    }

    header h2 {margin-top: 53.75rem;}

    section {
        border: unset;
        padding: unset;
        margin: 1rem 0 5rem 0;
    }
}

/* always comment closing media query */