h1 {
font-family: "blakely", sans-serif;
font-weight: 700;
font-size: 53px;
font-style: normal;
color: white;
top: 60px;
}

h2 {
 font-family: "blakely", sans-serif;
font-weight: 700;
font-size: 53px;
font-style: normal;
}

.transplant h3 {
    top: -20px;
}

.earthday h3 {
    font-size: 15px;
    top: 9px;
}

p {
    font-family: sans-serif;
    line-height: 25px;
}

h2 { font-size: 2.7243em; }
h3 { font-size: 1.4rem; top: 9px; }
h4 { font-size: 1.6505em; }
h5 { font-size: 1.2847em; }
p { font-size: 1em; }
small { font-size: .7784em; }


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;}

 /* END TYPOGRAPHY */
/*----------------------HEADER STYLES----------------------*/

header {
    background-image: url("../img/artdecostyle1.svg");
    background-color: #d4af37;
    height: 250px;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    padding-top: 1rem;
}

header {
    max-width: 1000px;
    margin: 0 auto;
}

header h1 {
    text-align: center;
    color: white;

}

#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: 0 auto;  /* auto left/right centers */
} 

  .gwd h2 {
      font-size: 2.5rem; /* slightly smaller so it fits on one line */
  }
  
  
  /* START FORMATTING BASIC BOXES */
  
  .wrapper {
    background-image: url(../img/artdecostyle-2.png);
    background-repeat: no-repeat; 
    background-size: 26rem;
    background-position: center; 
    padding: 3.5rem 3.5rem .1rem 3.5rem;  /* white outer margin so nothing touches the edge of the phone */
    top: -1px;
  }
  
  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 */
  
  
  
  
  .macmarket .one img, .fblink /* two selectors separated by a comma, for a single set of style rules */ {
      float: left;
      width: 25%;
      margin: 0 0.5rem 0 0;
  }
  
  .fblink {
    margin: 0.5rem 0.5rem 0 0;
    float: left;
    width: 25%;
    margin: 0 0.5rem 0 0;
    top: 6px;
    left: 6px;
}
  
  .fb {
    padding: 0.5rem;
    display: flex;
    border: 3px solid black;
    border-radius: 1rem;
    column-gap: 1rem;
    flex-direction: row-reverse;
  }

  p#fbtext {
    border: 3px solid black;
    border-radius: 12px;
  }
  
  #macmarketp2 {
    margin-left: 35px;
  }
  
  .macmarket .two p:last-child {
      padding: 0.5rem;
  }
  
  /* ========== END MAC MARKET LOGO ========== */
  
  
  
  
  
  
  
  
      
  /* +++++++++++++ START FORMAT SPONSOR LOGOS +++++++++++++ */
  
  /* REMEMBER TO DO THIS PART AT 320px */
  
  
  
  
  
 
  .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 +++++++++++++ */    
  
  .earthday .flex-container {
      display: flex;
      flex-wrap: wrap;
      gap: 1rem;

  
      border: 3px solid black; 
      /* 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: 46%;  /* adjust width of images, flexbox-wrap will send images to another if they don't fit */
  }
  
  
  
  
  
  
  
  
  /* +++++++++++++ START TRANSPLANT SECTION +++++++++++++ */    
  
  .transplant .two {
      border: 4px solid orange;
      padding: 1rem;
      margin: 10rem 0;
  }
  
  .transplant .two h3 {
      color: orange;
      margin: 0.5rem;
  }
  
  .transplant .two h3:first-child {
      font-size: 1.2rem;
      text-align: center;
      margin-bottom: 2rem;
      color: #444;
      top: -6.5px;
  }
  
  .transplant .two h3:nth-child(2) {
      font-size: 2.2rem;
      text-align: center;
      margin-bottom: 2rem;
      text-transform: uppercase;
      
      border-top: 3px solid orange;
      padding-top: 1rem;
      
      border-bottom: 3px solid orange;
      padding-bottom: 1rem;
  }
  
  .transplant .two h3:nth-child(3) {
      font-size: 1.438rem;
      text-align: center;
      margin-bottom: 2rem;
      text-transform: uppercase;
      color: #444;
      position: relative;
      top: -13px;
  }
  
  .transplant .two h3:nth-child(3):before {
    content: " ";
    position: absolute;
    z-index: 1;
    display: block;
    background-image: url(../img/earth-day-event-gallery.jpeg);
    background-repeat: no-repeat;
    background-size: cover;
    width: 13rem;
    height: 8rem;
    top: -26rem;
    left: -31px;
    rotate: 90deg;
    border: 3px solid black;
    transform: rotate(270deg);
    border-radius: 13px;
}

  #transplantimg {
    border: 3px solid black;
    border-radius: 12px;
    top: 25px;
  }
  
  /* +++++++++++++ END TRANSPLANT SECTION +++++++++++++ */    
  
  
  /* CSS FOR IMAGES */

  .giveaway img {
    border: 2px solid black;
    border-radius: 10px;
  }

  .gwd img {
    top: -8px;
    border: 2px solid black;
    border-radius: 10px;
  }
  
  footer {
      color: white;
      background-color: #141483;
      padding: 1rem;
      text-align: center;
      font-size: small;
  }
  
  footer span.gwd{
     color: orange;
  }

  main {
    max-width: 1000px;
    margin: 0 auto;
  }
  
  /*------------TABLET SIZE-----------------------*/
  @media only screen and (min-width: 375px) {

.flex-container {
    display: flex;
}


.wrapper {
    background-image: none;
    background-repeat: no-repeat;
    background-size: 104%;
    background-position: center;
    padding: 5%;
}

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

.column {
    width: 50%;
    margin: 1%;
}

.transplant .column {
    width: 100%;
}

.fblink {
    margin: 0.5rem 0.5rem 0 0;
    float: left;
    width: 100%;
    margin: 0 0.5rem 0 0;
    top: 46px;
    left: -175px;
}

.macmarket .two p:last-child {
    padding: 0.5rem;
    top: -114px;
}

.macmarket .one img {
    float: left;
    width: 100%;
    margin: 0 0.5rem 0 0;
    left: -6px;
}

.transplant .two h3:nth-child(3):before {
    content: " ";
    position: absolute;
    z-index: 1;
    display: block;
    background-image: url(../img/earth-day-event-gallery.jpeg);
    background-repeat: no-repeat;
    background-size: cover;
    width: 20rem;
    height: 12rem;
    top: -32rem;
    left: -108px;
    rotate: 90deg;
    border: 3px solid black;
    transform: rotate(270deg);
    border-radius: 13px;
}

div.column.two {
    left: -71px;
}

img#fbimg {
    left: 76px; 
}

p {
    font-size: 1em;
    left: 76px;
}

.gwd img {
    top: 100px;
    border: 2px solid black;
    border-radius: 10px;
}

h2.column.one {
    font-size: 32px;
}

div#logos {
    left: 1px; 
}

.earthday h2 {
    font-size: 67px;
}

.earthday h3 {
    font-size: 15px;
}

.earthday .flex-container {
    display: flex;
    flex-wrap: wrap;
    gap: 26px;
    border: 3px solid black;
}

p#fbtext {
    border: none;
}

p {
    font-family: sans-serif;
}

.giveaway h3 {
    font-family: "blakely", sans-serif;
}

}

  /*-------------------END OF MEDIA QUERY----------------------*/


  /*-------------------DESKTOP STYLES--------------------------*/
  @media only screen and (min-width: 675px){

    .flex-container {
        display: flex;
    }

    .column {
        width: 50%;
    }

    .macmarket h2 {
        top: -33px;
    }

    img#fbimg {
        top: 130px;
        left: -62px;
    }

    .macmarket .one img {
        float: left;
        width: 100%;
        margin: 0 0.5rem 0 0;
        left: -6px;
        top: -36px;
    }
    
    .gwd h2 {
        top: 37px;
    }

    .gwd img {
        top: 40px;
        border: 2px solid black;
        border-radius: 10px;
    }

    p#gwdtext {
        top: 40px;
    }

    p#gwdtext2 {
        top: 40px;
    }

    .transplant .two h3:nth-child(3):before {
        content: " ";
        position: absolute;
        z-index: 1;
        display: block;
        background-image: url(../img/earth-day-event-gallery.jpeg);
        background-repeat: no-repeat;
        background-size: cover;
        width: 20rem;
        height: 12rem;
        top: -27rem;
        left: -38px;
        rotate: 90deg;
        border: 3px solid black;
        transform: rotate(270deg);
        border-radius: 13px;
    }

    #wherenwhen {
        left: -135px;
    }

    .earthday .flex-container {
        display: grid;
        gap: 26px;
        border: none;
        grid-template-columns: auto auto auto auto;
        /* two columns: each equal to one fraction of the available space */

    }

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

    p {
        font-family: sans-serif;
    }

    .giveaway h3 {
        font-family: "blakely", sans-serif;
    }
  }

  /*------------------DESKTOP STYLES------------------------*/
  @media only screen and (min-width: 800px) {
   img#fbimg {
    top: 130px;
    left: -117px;
   }

   p#fbtext {
    border: none;
    top: -170px;
   }

    .gwd img {
        top: 40px;
        border: 2px solid black;
        border-radius: 10px;
        left: 1px;
    }

    .transplant .two h3:nth-child(3):before {
        content: " ";
        position: absolute;
        z-index: 1;
        display: block;
        background-image: url(../img/earth-day-event-gallery.jpeg);
        background-repeat: no-repeat;
        background-size: cover;
        width: 20rem;
        height: 12rem;
        top: -27rem;
        left: -15px;
        rotate: 90deg;
        border: 3px solid black;
        transform: rotate(270deg);
        border-radius: 13px;
    }

    #wherenwhen {
        left: -159px;
    }
  }

  /*----------------------DESKTOP STYLES-------------------*/
  @media only screen and (min-width: 900px) {
    .macmarket .one img {
        float: left;
        width: 100%;
        margin: 0 0.5rem 0 0;
        left: -23px;
        top: -52px;
    }

    img#fbimg {
        top: 161px;
        left: -179px;
    }
  }

  @media only screen and (min-width: 1112px) {
    .macmarket .one img {
        float: left;
        width: 66%;
        margin: 0 0.5rem 0 0;
        left: 47px;
        top: -68px;
    }

    img#fbimg {
        top: 123px;
        left: -207px;
        width: 66%;
    }

    p#fbtext {
        border: none;
        top: -140px;
    }
  }
/*-------------------END OF MEDIA QUERY----------------------*/

  @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 */