body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  margin: 0;
  color: white;
  background-color: #161616;
  overflow-x: hidden; /* Prevent horizontal scrolling */
}

/*------------------------About post Malone---------------------*/

.page1 {
  height: 100vh;
  width: 100%;
  background: url("../images/about/hero1.png");
  background-size: cover;
  background-position: center center;
  align-items: center;
  justify-content: center;
  display: flex;
}

.title1 {
  width: 100%;
  font-size: 56px;
  text-align: center;
  line-height: 60px;
  color: rgb(255, 255, 255);
}

/*------------------------Early Day / Cultural Impact And Style---------------------*/
.title2 {
  font-size: 25px;
}

.page2container {
  width: 100%;
  height: 2100px;
}

.page2 {
  max-width: 1800px;
  height: 1980px;
  background: url("../images/about/hero2.png") no-repeat center center;
  background-size: 100% 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-direction: column;
  overflow: hidden;
}

.earlyday {
  width: 80%;
  margin-top: 200px;
}

.cultural {
  width: 80%;
  margin-top: 15px;
}

.line {
  width: 90%;
  height: 1px;
  background-color: white;
  margin: 60px 0;
}

.p {
  color: #a3a3a3;
}

/*------------------------Award---------------------*/
.timelinetitle {
  font-size: 25px;
}

.timeline-container {
  width: 80%;
  margin: 0 auto;
  position: relative;
  padding: 50px 0;
}

.timeline {
  display: flex;
  justify-content: space-between;
  position: relative;
}

.timeline-item {
  position: relative;
  text-align: center;
}

.timeline-item .date {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 30px;
}

.timeline-item .line {
  width: 0.5px;
  height: 40px;
  background-color: white;
  margin: 0 auto 20px auto;
}

.timeline-item .details {
  width: 140px;
  font-size: 12px;
  line-height: 1.5;
  white-space: pre-line;
  color: #a3a3a3;
  margin-top: 20px;
  margin-bottom: 30px;
}

.boldaward {
  font-size: 14px;
  font-weight: bold;
  color: white;
}

/*-----------------------------mobile------------------------------*/

@media screen and (max-width: 900px) {
  /* General adjustments for mobile screens */
  body {
    background-color: #161616;
    font-size: 14px; /* Smaller default font size */
    padding: 0;
    overflow-x: hidden; /* Prevent horizontal scrolling */
  }

  .title1.about {
    font-size: 50px;
  }

  /* Page Content: Adjust for mobile */
  .page1 {
    height: 100vh; /* Reduce hero image height */
    background-size: cover;
  }

  .page2container {
    height: auto; /* Let content determine the height */
  }

  .page2 {
    height: 550vh;
    background: url("../images/about/hero2.png") no-repeat;
    background-size: contain;
    padding: 20px;
    background-position: center;
    display: flex;
    flex-direction: column;
  }

  .earlyday,
  .cultural {
    font-size: 14px;
    width: 65%;
    margin: 15px 0;
  }

  /* Timeline: Adjust for better readability */
  .awardfamily {
    margin-top: 470px;
    background-position: center;
    display: flex;
    flex-direction: column;
  }

  .timeline {
    flex-direction: column; /* Stack timeline items vertically */
    align-items: center;
  }

  .timeline-item {
    margin-bottom: 20px;
  }

  .timeline-item .details {
    width: 100%; /* Use a larger width */
    font-size: 14px; /* Increase readability */
  }
}

@media screen and (max-width: 600px) {
  /* General adjustments for mobile screens */
  body {
    background-color: #161616;
    font-size: 14px; /* Smaller default font size */
    padding: 0;
    overflow-x: hidden; /* Prevent horizontal scrolling */
  }

  .title1.about {
    font-size: 50px;
  }

  /* Page Content: Adjust for mobile */
  .page1 {
    height: 100vh; /* Reduce hero image height */
    background-size: cover;
  }

  .page2container {
    height: auto; /* Let content determine the height */
  }

  .page2 {
    height: 1070vh;
    background: url("../images/about/hero2.png") no-repeat;
    background-size: contain;
    padding: 20px;
    background-position: center;
    display: flex;
    flex-direction: column;
  }

  .earlyday,
  .cultural {
    font-size: 14px;
    width: 65%;
    margin: 15px 0;
  }

  /* Timeline: Adjust for better readability */
  .awardfamily {
    margin-top: 470px;
    background-position: center;
    display: flex;
    flex-direction: column;
  }

  .timeline {
    flex-direction: column; /* Stack timeline items vertically */
    align-items: center;
  }

  .timeline-item {
    margin-bottom: 20px;
  }

  .timeline-item .details {
    width: 100%; /* Use a larger width */
    font-size: 14px; /* Increase readability */
  }
}
