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

    .flex-container {
        display: flex;
    }

    .earthday .flex-container {
        width: 100%;
        flex-wrap: wrap;
    }

    .earthday .flex-container img {
        width: 200px;
        padding: 0.5rem;
    }

} /* closes media query*/

header {
  margin-top: -20px;
  padding-bottom: 84px;
  background-image: url(../img/styleimg/_-3.png);
  background-size: 100%;
  background-repeat: no-repeat;
  background-position-y: 80px;
  background-position-x: center;
  padding-bottom: 330px;
}

.ruslan-display-regular {
    font-family: "Ruslan Display", sans-serif;
    font-weight: 400;
    font-style: normal;
  }

  .oi-regular {
    font-family: "Oi", serif;
    font-weight: 400;
    font-style: normal;
  }
  
  .rubik-glitch-regular {
    font-family: "Rubik Glitch", system-ui;
    font-weight: 400;
    font-style: normal;
  }
  
  .slackey-regular {
    font-family: "Slackey", sans-serif;
    font-weight: 400;
    font-style: normal;
  }

  .annie-use-your-telescope-regular {
    font-family: "Annie Use Your Telescope", cursive;
    font-weight: 400;
    font-style: normal;
  }
  
  .ribeye-regular {
    font-family: "Ribeye", serif;
    font-weight: 400;
    font-style: normal;
  }
  

/* START TYPOGRAPHY */

/* Apply font choice to everything, as everything is a child of body */
body {
    font-family: "Montserrat", sans-serif;
    font-optical-sizing: auto;
    font-weight: 300;
    font-style: normal;
    line-height: 1.4;  /* leading */
    color: #ffff;
    background-color: #195e47;
    background-image: url(../img/styleimg/BackgroundImage.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
  }

  p {
    background-color: #92c709;
    border-width: 5px;
    border: solid;
    color: black;
    padding: 30px;
    border-width: thick;
  font-family: lafleur, sans-serif;
font-style: normal;
font-weight: 400;
color: white;
  }
  
  
  /* 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 */
  }
  
  
  /* Apply font scale, based on size of H1 on 320px screen 
     See: https://spencermortensen.com/articles/typographic-scale/  */
  
  h1 { font-size: 2.5em; }
  h2 { font-size: 2.7243em; }
  h3 { font-size: 2.1205em; }
  h4 { font-size: 1.6505em; }
  h5 { font-size: 1.2847em; }
  p { font-size: 1em; }
  small { font-size: .7784em; }
  
  
  h1 { 
      margin: 2rem 0 1rem 0;  /* always put more space above than below */
      text-align: center;
      color: #f0f0f0;
      font-family: blackcurrant, sans-serif;
font-style: normal;
font-weight: 400;
  position: relative;
  top: -5px;
  }
  
  h2 { margin: 2rem 0 1rem 0; 
     font-family: slackey;
     text-align: center;
     font-family: synthemesc, sans-serif;
font-style: normal;
font-weight: 400;
color: #92c709;
-webkit-text-stroke: 24px white;
  paint-order: stroke fill;
    }

  h3 { margin: 2rem 0 1rem 0; 
    font-family: flower power, sans-serif;
font-style: normal;
font-weight: 500;
text-align: center;
padding-top: 10px;
  font-size: 20px;
}
  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;}

h2 + h3 { margin: 0 0 1rem 0;}

/* END CONTROL TYPOGRAPHIC PAIRS */

/* START FORMATTING BASIC BOXES */
.wrapper {
    padding: 0.5rem;  /* white 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 */
}

.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 #444;
    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;
    width: 13rem;
    height: auto;
    margin: 1rem auto;
    position: relative;
    left: -3px;
  top: 20px;
} 

.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 2  ======== */
.earthday .flex-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 0 0.25rem;
    /* 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 +++++++++++++ */    

.transplantpic {
position: relative;
left: 42px;
  top: 25px;
  border: 5px solid white;
}

.transplant .two {
    border: 4px solid #e10c44;
    padding: 1rem;
    margin: 5rem 0;
    background-color: #512732;
}

.transplant .two h3 {
    color: #e10c44;
    margin: 0.5rem;
    font-family: ribeye;
    size: 10px;
}


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

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

.transplant .two h3:nth-child(3) {
    font-size: 2.5rem;
    text-align: right;
    margin-bottom: 2rem;
    text-transform: uppercase;
    color: #92c709;
    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/finger.svg);
    /* 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: white;
    background-color: #af3b29;
    padding: 1rem;
    text-align: center;
    font-size: small;
}

footer span.gwd{
   color: orange;
}

@media screen and (min-width: 22.75rem) {
  header {
    padding-bottom: 400px;
  }
}

@media screen and (min-width: 27.875rem) {
  header {
    padding-bottom: 500px;
  }
}

@media screen and (min-width: 34.875rem) {
  header {
    padding-bottom: 600px;
  }
}

@media screen and (min-width: 42.5rem) {
  body {
    background-image: url(../img/styleimg/_-4.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
  }

  header {
    background-image: url(../img/styleimg/_-8.png);
    background-size: 100%;
  background-repeat: no-repeat;
  background-position-y: 50px;
  background-position-x: center;
  padding-bottom: 600px;
  }

  #jac-logo {
    width: 25rem;
  }

  p {
    background-color: #9a907d;
    border: solid 5px white;
  }

  h2 {
    color: #9a907d;
    -webkit-text-stroke: 24px white; 
  paint-order: stroke fill;
  }

  .transplant .two {
    border: 4px solid #f08748;
    background-color: #a75829;
  }

  .transplant .two h3:first-child {
    color: white;
}

.transplant .two h3:nth-child(3) {
  color: white;
}

.transplant .two h3 {
  color: #f08748;
 }

  .transplant .two h3:nth-child(2) {
    border-top: 3px solid #f08748;
    border-bottom: 3px solid #f08748;
  }

  .transplantpic {
  position: relative;
    left: 100px;  
  }
}

@media screen and (min-width: 54rem) {
  header {
    padding-bottom: 700px;
  }
}

@media screen and (min-width: 60rem) {
header {
  background-image: url(../img/styleimg/header60rem.png);
  background-size: 100%;
  background-repeat: no-repeat;
  background-position-x: center;
  background-position-y: 4px;
}

body {
  background-image: url(../img/styleimg/body60rem.jpg);
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
}

.macmarket .one img {
  width: 50%;
}
    
} /* closes media query: never delete */

