/* START TYPOGRAPHY */

/* Apply font choice to everything, as everything is a child of body */
body {
  font-family: "Fauna One", sans-serif;
  font-optical-sizing: auto;
  font-weight: 300;
  font-style: normal;
  line-height: 1.4;  /* leading */
  background-image: url("https://images.template.net/124584/earth-day-blur-background-p2wf0.jpg");
  background-size: contain;
}

/* Apply font choice to all headers: h1 to h6 */
h1,h2,h3,h4,h5,h6 {
font-family: "Special Gothic Condensed One", sans-serif;
  font-weight: 400;
  font-style: normal;
  line-height: 1.1;  /* tighter leading for titles */
  color: #2a7e2a;
}


/* Apply font scale, based on size of H1 on 320px screen 
   See: https://spencermortensen.com/articles/typographic-scale/  */

h1 { font-size: 3.5em;
    font-family: "Cantora One", sans-serif;
    color: #31CA31;
    text-shadow: 1px 4px 5px black;
}

h2 { font-size: 2.7243em;
    font-family: "Climate Crisis", serif;
    color: #32CD32;
    text-shadow: 4px 4px 4px black;
}

h3 { font-size: 2.1205em;
    font-family: "Cantora One", sans-serif;
    color: #98FB98;
    text-shadow: 1px 2px 5px black;
}

h4 { font-size: 1.6505em;
    font-family: "Playfair Display", serif;
    color: #90EE90;
    text-shadow: 5px 5px 5px black;
}

h5 { font-size: 1.2847em;
    font-family:#98FB98;
    text-shadow: 3px 3px 4px black;
}

p { font-size: 1em;
    font-family: "Fauna One", sans-serif;
    color: #3C5210;
    text-shadow: 1px 1px 1px black;
}

small { font-size: .7784em; }


h1 { 
    margin: 2rem 0 1rem 0;  /* always put more space above than below */
    text-align: center;
}

h2 { margin: 2rem 0 1rem 0; }
h3 { margin: 2rem 0 1rem 0; }
h4 { margin: 2rem 0 1rem 0; }
h5 { margin: 2rem 0 1rem 0; }

p { margin: 0 0 1rem 0; } /* paragraphs only skip one line after */

small { margin: 2rem 0 1rem 0;}



.gwd h2 {
    font-size: 2.5rem; /* slightly smaller so it fits on one line */
}

/* END TYPOGRAPHY */







/* START CONTROL TYPOGRAPHIC PAIRS 

In CSS, + means "follows" as in the H3 follows (comes after / is a sibling of) the h2
:has() is a test to see if a tag (ex: h2) HAS a sibling (ex: h3) that follows (+) it: h2:has(+ h3)

*/

h2:has(+ h3) { margin: 2rem 0 0rem 0;}
/* control h2 margins only when followed by h3 */


h2 + h3 { margin: 0 0 1rem 0;}
/* control h3 margins only when h2 comes before it */


/* END CONTROL TYPOGRAPHIC PAIRS */







/* START FORMATTING BASIC BOXES */

.wrapper {
    padding: 0.5rem;  /* forestgreen outer margin so nothing touches the edge of the phone */
}

section {
    margin: 0 0 5rem 0;  /* Space sections far away from each other, so easy to tell them apart */
    background-color: white;
    margin: 5%;
    padding: 5%;
}

.logos .two {
    display: flex;  /* puts logos side-by-side */
    width: 100%;
    flex-wrap: wrap;  /* in a box that wraps to a second line if not enough space */
    border: 1px solid #444444;
    background-color: #c0d996;
}

/* END FORMATTING BASIC BOXES */









/* ========== START MAC MARKET LOGO ========== */

/* FLOATS see: https://www.w3schools.com/cssref/pr_class_float.php 

FLOATS are fun, but they can break page layouts easily. (They break the css box model stacking order.)
Good for insetting an image in a paragraph like this. But use flexbox or grid for setting things side by side in page layouts instead of floats.

*/

.macmarket .one img, /* two selectors separated by a comma, for a single set of style rules */
.fblink {
    float: left;
    width: 25%;
    margin: 0 0.5rem 1rem 0;
}

.fblink {margin: 0.5rem 0.5rem 0 0}

.macmarket .two p:last-child {
    border: 1px solid #445fa0;  /* make the last paragraph look like a box */
    padding: 0.5rem;
}

/* ========== END MAC MARKET LOGO ========== */








    
/* +++++++++++++ START FORMAT SPONSOR LOGOS +++++++++++++ */

/* REMEMBER TO DO THIS PART AT 320px */





#jac-logo {
        display: block; /* allows element to be given width and height */
        
        width: 15rem; /* set size in one direction, set the other to auto */
        height: auto;
    
        margin: 1rem auto;  /* auto left/right centers */
    } 

.logos .two img {
    width: calc(100% / 5)  /* all images in column 2 of .logos set to 1/5 of available space ( because 5 logos in this box) */
    display: block;
}

/* PSEUDO CLASS SELECTORS: https://www.w3schools.com/cssref/css_ref_pseudo_classes.php  
   Simply put: automatically select the first, last or any items in a box by counting which number it is in the box (order it is written in the html) */

.logos .two img:first-child, 
.logos .two img:nth-child(4)  /* first and fourth logos set too 100% wide, because they are wide not square logos. NO CLASS or ID needed this way! */
{
    width: calc(100%);
    margin: 1rem;
}

.logos .two img:nth-child(2),  /* second and third logo set to 40% width and centered */
.logos .two img:nth-child(3)
{
    width: calc(40%);
    margin-left: auto;
    margin-right: auto;
}

.logos .two img:last-child {  /* last logo set individually */
    width: 60%;
    margin-left: auto;
    margin-right: auto;
}

/* +++++++++++++ END FORMAT SPONSOR LOGOS +++++++++++++ */    





    


/* ======== FORMAT UNITED NATIONS LOGOS OPTION 1  ======== */

.earthday .flex-container {
    /* display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 0.75rem;
    width:95vw;
    margin: 0.75rem auto;
    max-width: 500px; */
}


/*  ======== FORMAT UNITED NATIONS LOGOS OPTION 2  ======== */

.earthday .flex-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 0 0.25rem;

    border: 1px solid red;  
    /* must see box edges to properly center theis div by adjusting max-width to 
    match the width of whole columns (because a fraction of a column at right won't allow an image to display) */
}

.earthday .flex-container img {
    width: calc(100% / 6);  /* adjust width of images, flexbox-wrap will send images to another if they don't fit */
}








/* +++++++++++++ START TRANSPLANT SECTION +++++++++++++ */    

.transplant .two {
    border: 4px solid greenyellow;
    padding: 1rem;
    margin: 5rem 0;
}

.transplant .two h3 {
    color: greenyellow;
    margin: 0.5rem;
}

.transplant .two h3:first-child {
    font-size: 3.2rem;
    text-align: center;
    margin-bottom: 2rem;
    color: #71FF52;
}

.transplant .two h3:nth-child(2) {
    font-size: 3.2rem;
    text-align: center;
    margin-bottom: 2rem;
    text-transform: uppercase;
    
    border-top: 3px solid greenyellow;
    padding-top: 1rem;
    
    border-bottom: 3px solid yellowgreen;
    padding-bottom: 1rem;
}

.transplant .two h3:nth-child(3) {
    font-size: 2.5rem;
    text-align: right;
    margin-bottom: 2rem;
    text-transform: uppercase;
    color: #444;
    position: relative;
}

.transplant .two h3:nth-child(3):before {

    content: " "; 
    /* content cannot be empty, otherwise box collapses to no height */


    position: absolute;   
    /* position anywhere you like, on a layer */
    /* could also be "relative" for different behaviour */

    z-index: 1;
    /* control stacking like "send to back" */
    /* can be any negative (send to back) or positive (send to front) number, 
    ex: 99 is the 99th layer above the background */

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

    background-image: url(img/earth-day-blur-background-p2wf0.jpg);
    /* select image: path points from the css file to the image file */

    background-repeat: no-repeat;
    /* by default, backgrounds repeat to fill up the entire space */

    background-size: cover; 
    /* or "contain", or a size expressed in em, rem, %, px, etc */
    
    width: 3rem;
    height: 3rem;
    /* control size explicitly in em, rem, %, px, etc */

    top: 0rem; 
    /* match height of pseudo-element to move it above top edge of parent */

    left: -0.5rem;
    /* align left */

    rotate: 90deg;

    /* border: 1px solid red; */
}

/* +++++++++++++ END TRANSPLANT SECTION +++++++++++++ */    




footer {
    color: forestgreen;
    background-color: forestgreen;
    padding: 1rem;
    text-align: center;
    font-size: small;
}

footer span.gwd{
   color: palegreen;
}



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

    
} /* closes media query: never delete */