* {
    margin: 0;
    padding: 0;
}
*{
    font-family: 'Oswald', sans-serif;
}
body{
  min-width: 100%;
}

/* === grid === */
.trends-grid {
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  place-items: center;
  align-items: stretch;
  row-gap: 6%;
  padding: 4%;
  gap: 2%;
  background: #ffc896;
  margin: auto;
  margin-bottom: 13%;
}

.trends {
  display:flex;
  align-items: center;
  justify-content: center;
  gap: 2%;
  background: #f5f5dc;
  border-radius: 15px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  padding: 5%;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
  line-height: 1.6;
  width: 35vw;
  height: 40vh;
}

.trends-content{
    display:flex;
    flex-direction: column;
    align-items: center;
    justify-items: center;
}

.trends h2 {
  margin-top: 7.5%;
  font-size: 4em;
  color: #333;
  text-align: center;
  margin-bottom: 5%;
  text-shadow:0 4px 10px rgba(0,0,0,0.3);
}

.trends img{
width: 15vw;
  height:auto;
  border-radius: 10px;
}

.trends:first-child{
    grid-column: 1 / -1;
    width:30vw;
    height: auto;
}

/* === footer === */
footer{
  background-color: black;
  display: flex;
  align-items: center;
  justify-content: center;
  width:100%;
  height:50px;
  bottom:0;
}
footer p{
  font-size: 1em;
  color:#ffc896;
}

/* === Responsive Design === */
@media(max-width:1710px){
  .trends-grid{
    padding:2%;
    column-gap: 2%;
    margin-bottom: 20%;
    margin-top: 5%;
  }
}

@media (max-width:1440px){
  .trends-grid{
        grid-template-columns: repeat(2, 1fr);
  
        row-gap: 1%;
        margin-bottom: 30%;
    }
    .trends {
        flex-direction: row;
        gap: 2%;
        align-items: center;
        width: 40vw;
    }
    .trends img {
        max-width: auto;
        height: 60%;
        margin-top: 5%;
        padding-bottom: 5%;
    }
    .trends h2 {
        font-size: 1.8em;
    }
}

@media (max-width: 1024px) {
    .trends-grid {
        grid-template-columns: 1fr;
        padding: 2%;
        row-gap: 1%;
        margin-bottom: 100%;
    }
    .trends {
        flex-direction: column;
        gap: 2%;
        padding: 4%;
        align-items: center;
        width: 70vw;
        height: 80vh;
    }
    .trends img {
        max-width: auto;
        height: 60%;
        margin-top: 5%;
        padding-bottom: 5%;
    }
    .trends h2 {
        font-size: 1.8em;
    }
}

@media (max-width: 768px) {
    .trends-grid {
        grid-template-columns: 1fr;
        padding: 2%;
        row-gap: 1%;
        margin-bottom: 110%;
    }
    .trends {
        flex-direction: column;
        gap: 2%;
        padding: 4%;
        align-items: center;
        width: 70vw;
        height: 80vh;
    }
    .trends img {
        max-width: auto;
        height: 60%;
        margin-top: 5%;
        padding-bottom: 5%;
    }
    .trends h2 {
        font-size: 1.5em;
    }
}

@media (max-width: 480px) {
   .trends-grid {
        grid-template-columns: 1fr;
        padding: 2%;
        row-gap: 1%;
        margin-bottom: 200%;
    }
    .trends {
        flex-direction: column;
        gap: 2%;
        padding: 4%;
        align-items: center;
        width: 70vw;
        height: 80vh;
    }
    .trends img {
        width:60vw;
        height:35vh;
        margin-top: 5%;
        padding-bottom: 5%;
        border-radius: 5%;
    }
    .trends h2 {
        font-size: 1.5em;
    }
}

.trends:first-child{
    grid-column: 1 / -1;
    width:50vw;
    height: auto;
}

@media (max-width: 425px){
  .trends-grid {
        grid-template-columns: 1fr;
        padding: 2%;
        row-gap: 1%;
        margin-bottom: 150%;
    }
    .trends {
        flex-direction: column;
        gap: 2%;
        padding: 4%;
        align-items: center;
        width: 70vw;
        height: 85vh;
    }
    .trends img {
        max-width: auto;
        height: 35vh;
        margin-top: 5%;
        padding-bottom: 5%;
    }
    .trends h2 {
        font-size: 1.5em;
    }
}

@media (max-width: 380px) {
    .trends-grid {
        grid-template-columns: 1fr;
        padding: 2%;
        row-gap: 1%;
        margin-bottom: 200%;
    }
    .trends {
        flex-direction: column;
        gap: 2%;
        padding: 4%;
        align-items: center;
        width: 70vw;
        height: 90vh;
    }
    .trends img {
        max-width: auto;
        height: 60%;
        margin-top: 5%;
        padding-bottom: 5%;
    }
    .trends h2 {
        font-size: 1.5em;
    }
}
