main {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  margin-top: 102px;
  width: 100%;
}

main h1 {
  margin-top: 102px;
}

.challenge-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 77px;
  width: 90%;
}

.challenge-row:nth-child(even) {
  flex-direction: row-reverse;
}

.challenge-image {
  display: flex;
  width: 44%;
  height: 345px;
  border-radius: 16px;
  background: var(--white, #ffffff);
}

.challenge-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 16px;
}

.challenge-row:nth-of-type(5) img,
.challenge-row:nth-of-type(6) img,
.challenge-row:nth-of-type(9) img,
.challenge-row:nth-of-type(10) img,
.challenge-row:nth-of-type(12) img {
  object-fit: cover;
}

main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
}

.challenge-details {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  width: 48%;
  height: 100%;
  padding: 0 20px;
}

.challenge-details p {
  font-weight: normal;
}

.toggle-text {
  color: var(--red-color);
  cursor: pointer;
  text-decoration: underline;
}

main h2 {
  margin-bottom: 5px;
}

main p {
  margin: 0;
  padding: 0;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  width: 56%;
  min-width: 300px;
}

.challenge-row:nth-child(even) p {
  width: 90%;
  min-width: 250px;
}

.challenge-row:nth-child(odd) p {
  width: 90%;
}

main span {
  margin: 0;
  padding: 0;
  margin-bottom: 20px;
}

@media only screen and (max-width: 700px) {
  .challenge-image {
    display: flex;
    width: 100%;
    height: 345px;
    border-radius: 16px;
    background: var(--white, #ffffff);
  }

  .challenge-details {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    width: 100%;
    height: 100%;
    padding: 0 20px;
  }

  main p {
    margin: 0;
    padding: 0;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.5;
    width: 100%;
    min-width: 300px;
  }
}

footer {
  background: var(--red-color);
  color: var(--white-color);
}

footer a {
  color: var(--white-color);
}
