.Main {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-evenly;
}

.M1 {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-evenly;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    0deg,
    hsla(0, 0%, 100%, 1) 0%,
    hsla(38, 12%, 58%, 0.31) 100%
  );
}

.M1 img {
  width: 100%;
  max-width: 871px;
  margin-top: 100px;
}

.M1 h2 {
  width: 100%;
  max-width: 871px;
  color: #69443c;
  font-family: "Mate", serif;
  font-size: 24px;
  text-align: center;
  line-height: 1.5;
  margin: 0;
}

.M2 {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-evenly;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    0deg,
    hsla(38, 12%, 58%, 0.31) 0%,
    hsla(0, 0%, 100%, 1) 100%
  );
}

.M2 img {
  width: 100%;
  max-width: 871px;
  margin-top: 100px;
}

.M2 h1 {
  width: 100%;
  max-width: 871px;
  color: #69443c;
  font-family: "Mate", serif;
  font-size: 64px;
  text-align: center;
  line-height: 1.5;
  margin: 0;
  margin-bottom: 75px;
}

/* Styles for extra small devices */
@media (max-width: 575.98px) {
  .M1 img,
  .M2 img {
    margin-top: 75px;
    margin-bottom: 25px;
    width: 90%;
  }

  .M1 h2 {
    font-size: 17px;
    width: 80%;
    margin-left: 10%;
    margin-right: 10%;
    text-align: center;
  }

  .M2 h1 {
    font-size: 48px;
    margin-bottom: 50px;
  }
}

/* Styles for small devices */
@media (min-width: 576px) and (max-width: 767.98px) {
  .M1 img,
  .M2 img {
    margin-top: 75px;
    width: 90%;
  }

  .M1 h2 {
    font-size: 17px;
    width: 80%;
    margin-left: 10%;
    margin-right: 10%;
    text-align: center;
  }

  .M2 h1 {
    font-size: 56px;
    margin-bottom: 60px;
  }
}

/* Styles for medium devices */
@media (min-width: 768px) and (max-width: 991.98px) {
  .M1 img,
  .M2 img {
    margin-top: 100px;
    width: 90%;
  }

  .M1 h2 {
    font-size: 19px;
    width: 80%;
    margin-left: 10%;
    margin-right: 10%;
    text-align: center;
  }

  .M2 h1 {
    font-size: 60px;
    margin-bottom: 70px;
  }
}

/* Styles for large devices */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .M1 img,
  .M2 img {
    margin-top: 125px;
  }

  .M1 h2 {
    font-size: 20px;
  }

  .M2 h1 {
    font-size: 64px;
    margin-bottom: 80px;
  }
}

/* Styles for extra large devices */
@media (min-width: 1200px) and (max-width: 1439.98px) {
  .M1 img,
  .M2 img {
    margin-top: 150px;
  }

  .M1 h2 {
    font-size: 22px;
  }

  .M2 h1 {
    font-size: 68px;
    margin-bottom: 90px;
  }
}

/* Styles for 2K/QHD devices */
@media (min-width: 1440px) and (max-width: 1919.98px) {
  .M1 img,
  .M2 img {
    margin-top: 175px;
  }

  .M1 h2 {
    font-size: 24px;
  }

  .M2 h1 {
    font-size: 72px;
    margin-bottom: 100px;
  }
}

/* Styles for Ultra HD/4K devices */
@media (min-width: 1920px) {
  /* Styles remain the same as the default styles */
}
