html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font: inherit;
	vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
	display: block;
}
body {
	line-height: 1;
}
ol, ul {
	list-style: none;
}
blockquote, q {
	quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
	content: '';
	content: none;
}
table {
	border-collapse: collapse;
	border-spacing: 0;
}








img {
    max-width: 100%;
    height: auto;
}   




h1{ 
    font-family: Arial, Helvetica, sans-serif;
}




h1 {
    font-size: 3em;
}

h2 {
    font-size: 2.498em;
}

h3 {
    font-size: 2.0801em;
}

h4 {
    font-size: 1.7321em;
}

h5 {
    font-size: 1.4422em;
}

h6 {
    font-size: 1.2009em;
}


    p {
        font-size: 1em;
        color: rgb(0, 0, 0);

            font-family: "Galindo", sans-serif;
            font-weight: 400;
            font-style: normal;
          
          
    }


small {
    font-size: .8327em;
}

h2 {
	font-size: 1.3em;
	color: rgb(0, 0, 0);
	font-family: "Galindo", sans-serif;
	font-weight: 400;
	font-style: normal;
}
h3{
	font-size: 1.3em;
	color: rgb(0, 0, 0);
	font-family: "Galindo", sans-serif;
	font-weight: 400;
	font-style: normal;
}
h4 {
	font-size: 1.3em;
	color: rgb(0, 0, 0);
	font-family: "Galindo", sans-serif;
	font-weight: 400;
	font-style: normal;
	margin-top: 0;
	border: 6px solid #000000;
	margin: 1rem 1rem 5rem 1rem;
	padding: 1rem;
	background-color: #d9f1bc;
	border-radius: 85.7px;
}
h5 {
	font-size: 1em;
	color: rgb(217, 241, 188);
	font-family: "Galindo", sans-serif;
	font-weight: 400;
	font-style: normal;
}

h6 {
    color: #000000;
    font-weight: bold;
    line-height: 1.1;
    margin: 2rem 0 1rem 0;
}

img {
	max-width: 100%;
	height: auto;
	border-radius: 8px;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.5;
    background-color: #596c21;
}

header::before {
	content: " ";
	/* border: 1px solid red; */
	display: block;
	height: 5.3rem;
	width: 104.8%;
	position: absolute;
	top: 0;
	left: 0;
	z-index: 0;
	background-color: #7b903c;
}


#jac-logo {
	filter: invert(1);
	margin: 0 2rem 9rem 0rem;
	max-width: 250px;
	display: block;
}

h1 span {
    display: block;
    font-size: 150%
}

header {
    background-image: url(../img/jac-square.jpg);
    background-size: 100%;
    /* height: 810px; */
    background-repeat: no-repeat;
    background-color: #596c21;
    padding-top: 0rem;
    background-position-y: 17rem;
    position: relative;
    margin: 0;
    padding: 1rem 0 0 0;
}

h1 {
	line-height: 1;
	text-align: center;
	color: #d9f1bc;
	font-weight: bold;
	position: relative;
	top: -4.7rem;
	font-family: "Atma", system-ui;
	font-weight: 500;
	font-style: normal;
}
      
   .center{text-align: center;}
      


header h2 {
    margin: 0;
    color: #fff;
    font-weight: bold;
    font-style: italic;
    line-height: 1.3;
    text-align: center;
    font-size: 1.5rem;
    background-color: #596c21;
    padding: 1rem;
    margin-top: 80vw;
    max-width: 40ch;
    margin-left: auto;
    margin-right: auto;
}

section {
	border: 6px solid #000000;
	margin: 1rem 1rem 5rem 1rem;
	padding: 1rem;
	background-color: #d9f1bc;
	border-radius: 30.4px;
}

picture {
    max-width: 18.75rem;
    /* 18.75rem * 16 = 300px */
}

footer {
	background-color: #596c21;
	color: #ffffff;
	height: 10rem;
	line-height: 5rem;
	text-align: center;
}

footer a:link {color: white; text-decoration: none;}
footer a:visited {color: rgb(220, 218, 218);}
footer a:hover {text-decoration: underline;}
footer a:active {color: rgb(216, 216, 30);}


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

   

    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;
    }
.what p,
    .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 {
        
        margin: 1rem 0 5rem 0;
    }

    section.what {
        border: 8px solid black;
        position: relative;
    }


section.what::before{
content:"";
display:block;
width: 5rem;
border-radius: 2.5rem;
height: 5rem;
position: absolute;
border: 2px solid #d9f1bc;
top: -5rem;
background-color: #596c21;
;
z-index: -1;
left: -4rem;
}

.flex-container{
    display:flex;
}


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


.when p,
.when picture,
.why p,
.why picutre,
.what picture,
.what div,
.where picture,
.where p,
.how picture,
.how div
{
    flex-basis:50%
}
}

/* always comment closing media query */








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

    section {
        width: 800px; 
        margin: 3rem auto;
    }

    .flex-container {
        display: flex;  
        /* creates two columns */

        column-gap: 1rem;
        /* space between the columns */
    }

    .flex-container picture, 
    .flex-container > p, 
    .flex-container > div {
        flex-basis: 50%; 
        /* makes each column 50% wide */

        /* > means "direct child of", meaning first level descendent: child, not grandchildren */ 
        /* see https://www.w3schools.com/cssref/css_ref_combinators.php */
    }

    .when .flex-container,
    .how .flex-container {
    /*  select "every other" section tag,
        ex: first and third */


        flex-direction: row-reverse;
        /* swap left and right columns */
    }
    

    } /* always comment the closing media query tag
         so you don't delete it by accident */
