main {
  display: flex;
  flex-direction: column;
}

.box-flex {
  display: flex;
  flex-direction: column;
  margin-top: 5%;
  margin-bottom: 5%;
  gap: 5vh;
}

.box {
  background-color: rgb(238, 215, 215);
  border: solid 3px black;
  display: flex;
  border-radius: 10px;
  justify-content: space-between;
  width: 80%;
  margin: auto;
}

.text {
  display: flex;
  flex-direction: column;
  padding: 1vw;
  justify-content: flex-start;
  flex: 1 1 60%;
  overflow-wrap: break-word;
  hyphens: auto;
}

.img {
  flex-shrink: 0;
  width: 40%;
  object-fit: cover;
  object-position: 70% 40%;
  border-top-right-radius: 5px;
  border-bottom-right-radius: 5px;
  border-left: solid 3px black;
  flex-basis: 40%;
  min-width: 0;
  display: block;
}

h2 {
  font-size: 3em;
}

p {
  font-size: 2rem;
}

/*tablet*/
@media (max-width: 1024px) {
  h2 {
    font-size: 2.5em;
  }

  p {
    font-size: 1.5em;
  }
}

/*phone*/
@media (max-width: 600px) {
  .box {
    flex-direction: column;
    height: auto;
    align-items: center;
  }
  .img {
    width: 100%;
    border-left: none;
    border-top: solid 3px black;
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
    border-top-right-radius: 0;
  }
  .text {
    text-align: center;
    padding-bottom: 1vw;
  }
  h2 {
    font-size: 2em;
  }
  p {
    font-size: 1.3em;
  }
}
