/* ====== FONTS ====== */
h1{  /* heading */
  font-family: "rye";
  letter-spacing: 6px;
}

h2 { /* Numbers */
  font-family: "Anton", sans-serif;
  letter-spacing: 3px;
  text-transform: uppercase;
  opacity: 100%;
}

h3 { /* title */
  font-family: "Ruslan Display", sans-serif;
  font-weight: 400;
  font-style: normal;
}

h4{ /* sub-title */
  font-family: "Bungee Hairline", sans-serif;
  font-weight: 1000;
  font-style: normal;
}

h5{ /* sub-heading */
  font-family: "Caveat", cursive;
  font-optical-sizing: auto;
  font-weight: 2rem;
  font-style: normal;
}

p { /* Paragraph */
  font-family: "Playfair Display", serif;
  font-optical-sizing: auto;
  font-weight: 2rem ;
  font-style: normal;
  letter-spacing: 1.5px;
}

/* TEXT */
.text {
  flex: 1;
  max-width: 550px;
}

.text h2 {
  font-size: 6rem;
  opacity: 0.34;
  margin-bottom: -20px;
}

.text h3 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.text p {
  opacity: 0.7;
  line-height: 1.6;
}

/* HERO (Subtitle) */
.hero p {
  margin-top: 15px;
  font-size: 1.5rem;
  letter-spacing: 2px;
  opacity: 0.9;
}

.hero { /* Center content */
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  text-align: center;
  color: #f5e6c8;
}

/* ====== TYPOGRAPHY ====== */

h1 { font-size: 6em; }
h2 { font-size: 4em; }
h3 { font-size: 3.902em; }
h4 { font-size: 2.0477em; }
h5 { font-size: 1.431em; }
p { font-size: 1em; }
small { font-size: .6988em; }

/* ====== COLOR PALETTE ====== */

:root {
  /* desert */
  --white: #fff;
  --black: #000;
  --beige: #f8d18835;
  --lightorange:#ebab62c7;
  --darkorange:#b45625;
  --darkdarkorange:#dc2f02;
  --brownred:#80300D;
  --brown:#5d1d01;
  --lightyellow:#fad643;
  --yellow:#ffb703;

  /* polor */
  --yankeesblue:#0d273d;
  --tealblue:#3e6985;
  --pewterblue:#8aa7bc;
  --pastelblue:#a6bed1;
  --columbiablue:#cdd7df;

  /* tropical bleach */
  --tiberwolf:#d3d0c8;
  --aliceblue:#e9f1f6;
  --lightblue:#b2d5e2;
  --moonstone:#44a6b5;
  --midnightgreen:#004554;

h2{
  color: var(--lightorange);
}

h3{
  color: var(--yellow);
}

h4{
  color:var(--lightyellow);
}

h5{
  color: var(--darkdarkorange);
}
}

section {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(4px);
  margin: 1rem;
  border-radius: 20px;
  padding: 1rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
section:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.371);
}

/* Dark overlay on top of image */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(90, 60, 20, 0.45);
  border-radius: 15px 50px;
}

/* EARTH DAY */
.hero h1 {
  font-size: 5rem;
  letter-spacing: 6px;
  font-weight: 1000;

  /* Sand gradient effect */
  background: linear-gradient(#f5e6c8, #e0b15c, #a66b2e);
  background-clip: text;
  color: transparent;
  
}

/* Highlight 2027 */
.hero h1 span {
  color: #ff8c42;
}

/* ========== ANIMATION ========== */

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.container {
  position: relative;
  width: 300px;
  overflow: hidden;
 
}

.image {
  width: 100%;
  transition: transform 0.5s ease;
}

/* Zoom effect */
.container:hover .image {
  transform: scale(1.1);
}

/* Overlay improved */
.overlay {
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: 0.4s ease;
}
.container:hover .overlay {
  opacity: 1;
}
html {
  scroll-behavior: smooth;
}
a {
  transition: 0.3s;
}
a:hover {
  color: var(--darkorange);
  transform: scale(1.05);
}

/* BACKGROUND (matches your vibe) */
body {
  background: #062c2c;
  color: #e6e0d4;
  font-family: Arial, sans-serif;
}
 
/* ========== BOX LAYOUT ========== */

/* SPLIT LAYOUT */
.split {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4rem;

  max-width: 1200px;
  margin: 0 auto;
  padding: 6rem 2rem;
}

/* REVERSE LAYOUT */
.reverse {
  flex-direction: row-reverse;
  align-items: center;
  justify-content: space-between;
  gap: 4rem;
  padding: 5rem 2rem;
  max-width: 1100px;
}

.picture {
  margin: 2rem;
}
/* ========== IMAGE ========== */

.image-box {
  width: 100%;
  flex: 1;
  max-width: 500px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 0 40px rgba(255, 200, 100, 0.2);
  transition: 0.4s ease;
}

.image-box img {
  width: 100%;
  display: block;
  transition: transform 0.5s ease;
}

/* HOVER EFFECT */
.image-box:hover img {
  transform: scale(1.08);
}

.image-box:hover {
  box-shadow: 0 0 60px rgba(255, 200, 100, 0.4);
}

header { 
  margin: 2rem;
  border-radius: 10px;
}

section.split { 
  margin: 2rem;
  
}

/* ========= INDEX ========= */
.index {
    background-image: url(bgimg/david-wirzba-INPhKOKlK3c-unsplash.jpg);
      background-size:cover ;
      background-attachment: fixed;
      background-repeat: no-repeat;
  }
/* ========== MAIN ========= */


  #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;
        filter: invert();
        margin: 1rem auto;  /* auto left/right centers */
    } 

/* SET WIDTH OF LOGOS */



.logos .two li{
  margin: 0;
  width: 100% !important;
  /* SVGs have no size by default, will disappear */
}

.logos .two li:nth-child(1) {
  width: 80%;
}

.logos .two li:nth-child(2) {
  width: 50% !important; 
}

.logos .two li:nth-child(3) {
  width: 85%; 
}

.logos .two li {
  margin: 1rem auto;/* margin for all logos */
}

picture.column.one { /* picture smaller in destop mode */
  width: 20rem;
  display: block;
}

/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Keeps text above overlay */
.content {
  position: relative;
  z-index: 1;
}

.container {
  position: relative;
  width: 300px;
}

.image {
  width: 100%;
  display: block;
}



.container:hover .overlay {
  opacity: 1;
}

/* ====== MEDIA QUERY (mobile)====== */
@media (max-width: 768px) { /* ( picture update) */

  /* stack layout */
  .split,
  .reverse {
    flex-direction: column;
    gap: 2rem;
  }

  /* TEXT full width */
  .text {
    width: 100%;
    text-align: center;
  }

  /* FIX IMAGE SIZE */
  picture.column.one {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    float: none;
  }

  picture.column.one img {
    width: 100%;
    height: auto;
    display: block;
    margin: 0.5rem;
  }

  /* ALSO fix image-box ones */
  .image-box {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
  }

  /* --- pseudo-elements --- */
  
}

@media (max-width: 530px) {
  /* --- Pseudo-elements --- */
  .split_reverse1::before {
    content: "";
    position: absolute;
    width: 277px;
    height: 310px;
    background: url("bgimg/cactus2.png") no-repeat center / cover;
    right: 2rem;
    top: -2rem;
    opacity: 50%;
  }

  .split3::before {
    content: "";
    position: absolute;
    width: 390px;
    height: 220px;
    background: url("bgimg/cactus.png") no-repeat center / cover;
    right: -9rem;
    top: -0.2rem;
    opacity: 80%;
  }

  .split1::before {
    content: "";
    position: absolute;
    width: 180px;
    height: 210px;
    background: url("bgimg/sticker.png") no-repeat center / cover;
    right: 16rem;
    top: -5rem;
    
  }

  .earthday::before {
    content: "";
    position: absolute;
    width: 360px;
    height: 210px;
    background: url("bgimg/animal.png") no-repeat center / cover;
    right: 1rem;
    top: -7.5rem;
    opacity: 80%;
  }

}
  

 /* Never delete closing media query bracket */

 /* Brought to you by (logos side by side) */
@media screen and (min-width: 60rem) and (max-width: 116.999rem) { 
    .wrapper {
        max-width: 60rem;
        margin: 0 auto;
    }

  .logos .two {
    width: 100%;
    background-color: var(--teal);
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
}

.logos .two img {
    width: 100%;
}

.earthday .flex-container {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 0.3rem;
    margin: 0.75rem auto;
    width: 100%;
    max-width: unset;
}

/* ====== MEDIA QUERY (ipad) ===== */
@media screen and (min-width: 60rem) and (max-width:89.9999rem) {
  
  header img {
    max-width: 40rem;
    display: block;
    margin:0 auto;
  }

  section {
    padding-left: calc(50% - (60rem / 2));
    padding-right: calc(50% - (60rem / 2));
    margin: 2rem;
    border-radius: 4rem;
    padding: 2rem;
  }

  /* --- Pseudo-elements --- */
  .split_reverse1::before {
    content: "";
    position: absolute;
    width: 287px;
    height: 310px;
    background: url("bgimg/cactus2.png") no-repeat center / cover;
    right: 5rem;
    top: -2rem;
  }

  .split3::before {
    content: "";
    position: absolute;
    width: 490px;
    height: 920px;
    background: url("bgimg/cactus.png") no-repeat center / cover;
    right: -6rem;
    top: -0.5rem;
    opacity: 80%;
  }

  .split1::before {
    content: "";
    position: absolute;
    width: 580px;
    height: 610px;
    background: url("bgimg/sticker2.png") no-repeat center / cover;
    right: -15rem;
    top: -14rem;
    
  }

  .earthday::before {
    content: "";
    position: absolute;
    width: 420px;
    height: 210px;
    background: url("bgimg/animal.png") no-repeat center / cover;
    right: 8rem;
    top: -3.5rem;
    opacity: 80%;
  }
}

/* ====== MEDIA QUERY (computer)====== */
/* ===== MEDIA QUERY (placement of the grid) =====*/
@media screen and (min-width: 90rem) {

  main { 
    display:grid;
    grid-template-columns: repeat(16, 1fr);
    grid-template-rows: 10rem 60rem 30rem 30rem;
    
  }

   section {
     padding-left: unset;
     padding-right: unset;
     margin: 2rem;
 } 

  .earthday .flex-container {
    margin: 0 auto;
    margin-left: 3rem;
    margin-right: 2rem;
    grid-template-columns: 25% 25% 25%;
  }

.hero { /* title */
  grid-column: 1 / 13; /* full width */
  grid-row: 1/ 2;
  margin: 2rem;
}

.split1 {/* Brandywine tomato */
  grid-column: 1 / 6;
  grid-row: 2 / 2;
  padding: 2rem;
  width: 25rem;
}

.split_reverse1 { /* mac market */
  grid-column: 6 / 13;
  grid-row: 2 / 3;
  padding: 2rem;
}

.split2 { /* facebook */
  grid-column: 1 / 5;
  grid-row: 3 / 4;
  padding: 2rem;
  height: 53rem;
  
} 

.split3 { /* graphic and web design */
  grid-column: 5 / 9;
  grid-row: 3 / 4;
  padding: 2rem;
  height: 53rem;
  width: 24rem;
}

.split_reverse2 { /* transplant */
  grid-column: 9 / 16;
  grid-row: 3 / 4;
  padding: 2rem;
  width: 23rem;
  height: 50rem;
}

.logos { /* Brought to you by */
  grid-column: 1 / 16;
  grid-row: 5 / 6;
  padding: 2rem;
  }  

  .logos .two {
    width: 100%;
    background-color: var(--teal);
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

.earthday { /* earthday */
    grid-column: 13/17;
    grid-row: 1/5;
    padding: 1rem;
    width: 18rem;
    height: 60rem;
  }  

.footer {
   grid-column: 1 / 16; /* full width */
   grid-row: 6;
   padding: 1rem; 
}


/* ---- Pseudo-elements ---- */
.split1 {
  position: relative;
}

@media screen and (min-width: 90rem) {
  .split_reverse1::before {
    content: "";
    position: absolute;
    width: 237px;
    height: 250px;
    background: url("bgimg/cactus2.png") no-repeat center / cover;
    right: -0.1rem;
    top: -1.5rem;
  }

  .logos::before {
    content: "";
    position: absolute;
    width: 420px;
    height: 210px;
    background: url("bgimg/animal.png") no-repeat center / cover;
    right: 8rem;
    top: -3.5rem;
    opacity: 80%;
  }
}
}