
:root {
  --white: #fff;
  --black: #000;
}

body {
  background: #d9e5ee;
  margin: 0;
}

.wrapper {
  max-width: 1440px;
  margin-left: auto;
  margin-right: auto;
}

main {
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}


header {
  background-color: rgba(42, 98, 87);
  border-radius: 3rem;
  padding: 1rem;
  margin: 0.75rem 0.75rem 0 0.75rem;
  background-image: url(../img/bgnew.jpg);
  background-size: contain;
  background-position: left;
  background-repeat: no-repeat;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 250px;
  overflow: hidden;
}

.logo {
  position: absolute;
  bottom: 3px;
  filter: brightness(0) invert(1);
  padding: 8px 12px;
  border-radius: 10px;
  max-width: 180px;
}

.header-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 250px;
  text-align: center;
}


h1 {
  margin: 0;
  font-family: "Rozha One", serif;
  font-weight: 400;
  font-size: clamp(4.5rem, 10vw, 8rem);
  line-height: 0.9;
  color: white;
  text-align: center;
}

h2 {
  margin: 0;
  font-family: "Saira Condensed", sans-serif;
  font-weight: 500;
  font-size: clamp(3rem, 8vw, 6rem);
  line-height: 0.9;
  color: white;
  text-align: center;
  padding-bottom: 10px;
}

h3 {
  margin: 0;
  font-family: "Roboto", sans-serif;
  font-size: 1.2rem;
  font-style: italic;
  color: #f4c400;
  text-align: center;
  padding-bottom: 10px;
}

.year {
  font-family: "Roboto", sans-serif;
  font-size: 3rem;
  font-weight: 600;
  color: #f4c400;
  text-align: center;
  font-style: italic;
  background-color: rgba(7, 114, 114, 0.8);

  padding: 0.1em 0.3em; 
  border-radius: 12px;   
  display: inline-block; 
}

p {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 15px;
  line-height: 1.3;
  color: white;
  background-color: rgba(255, 255, 255, 0.1);
  padding: 1rem;
  border-radius: 12px;
}


.flex-container {
  display: flex;
  align-items: center;
  gap: 1rem;
}

section {
  padding: 2rem;
  border-radius: 20px;
}

.giveaway { background-color: rgb(80, 139, 106); }
.macmarket { background-color: rgb(95, 99, 169); }
.gwd { background-color: rgb(121, 64, 107); }
.transplant { background-color: rgba(58, 159, 176); }
.logos { background-color: rgb(95, 99, 169); }

.earthday {
  background-color: rgb(50, 50, 50);
  min-height: auto;
  margin: 0 0.75rem 0.75rem;
}

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


.macmarket-image {
  display: block;
  margin: 2rem auto;
  max-width: 900px;
}

.logo-row {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin: 1.5rem 0 2rem;
  flex-wrap: wrap;
}

.market,
.fblogo {
  width: 60px;
}

.fblogo {
  filter: brightness(0) invert(1);
}

.logos ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
}

.logos li {
  width: 120px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  border-radius: 10px;
  padding: 8px;
}

.logos li img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 0;
}


.earthday .flex-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, 80px);
  gap: 12px;
  justify-content: center;
  list-style: none;
  padding: 0;
  margin: 0 auto 0;
}

.earthday li {
  display: flex;
  justify-content: center;
  align-items: center;
}

.earthday ul img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  border-radius: 0;
}

footer {
  margin: 0 0.75rem 1rem;
  text-align: center;
  padding: 2rem;
  border-radius: 20px;
  background-color: rgb(80, 139, 106);
  color: white;
}
.giveaway .flex-container,
.gwd .flex-container,
.transplant .flex-container {
  flex-direction: column;
  align-items: stretch;
}

.giveaway .column,
.gwd .column,
.transplant .column {
  width: 100%;
}


@media screen and (min-width: 60rem) {
  main {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(8, auto);
    gap: 0.75rem;
    align-items: start;
  }
header {
  background-size: cover;
}
  .giveaway {
    grid-column: 1 / 2;
    grid-row: 1 / 3;
  }

  .macmarket {
    grid-column: 2 / 3;
    grid-row: 1 / 8;
    height:100%
  }

  .gwd {
    grid-column: 3 / 4;
    grid-row: 1 / 5;
    height: 100%;
  }

  .transplant {
    grid-column: 1 / 2;
    grid-row: 3 / 8;
  }

  .logos {
    grid-column: 3 / 4;
    grid-row: 5 / 8;
    height: 100%;
  }

  h2 {
    font-size: clamp(2rem, 3.2vw, 3.8rem);
  }

  .giveaway .flex-container,
  .gwd .flex-container,
  .transplant .flex-container {
    flex-direction: column;
    align-items: stretch;
  }

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

@media screen and (min-width: 60rem) and (max-width: 89.999rem) {
  main {
    gap: 2rem;
  }

  main section {
    margin: 0;
    padding: 3rem;
    border-radius: 4rem;
  }
.header 
{border-radius: 3rem;}

.transplant {height: 100%}
  .earthday {
    margin: 1rem 0.75rem 0.75rem;
    border-radius: 2rem;
  }
}