* {
  margin: 0;
  padding: 0;
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
}

body {
  font-family: "Yrsa", serif;
  line-height: 1.6;
  font-size: 18px;
}

* {
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
}

main {
  padding-top: 40px;
  padding-bottom: 40px;
  background-color: #e4e72c;
  min-height: 100dvh;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  gap: 40px;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}
main section {
  padding: 20px;
  max-width: 820px;
  background-color: #eee;
  margin-left: auto;
  margin-right: auto;
}
main h2 {
  font-size: 1.5em;
}

.container {
  width: 100%;
  max-width: 500px; /* Narrow container to force wrapping */
  padding: 30px;
  border-radius: 10px;
  -webkit-box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
          box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

h1 {
  text-align: center;
  color: #2c3e50;
  margin-bottom: 40px;
  font-size: 2.2em;
}

h2 {
  color: #2980b9;
  margin-top: 0;
  margin-bottom: 20px;
  font-size: 1.8em;
}

p {
  margin-bottom: 15px;
}

/* --- Text-Wrap: Wrap (Default) --- */
.wrap-container {
  background-color: #f1e3e8; /* Light pink */
  border: 1px solid #f48fb1;
}

.wrap-container h2,
.wrap-container p {
  /* text-wrap: wrap is the default, explicitly stated here for demonstration */
  text-wrap: wrap;
}

/* --- Text-Wrap: Pretty --- */
.pretty-wrap-container {
  background-color: #e0f2f7; /* Light blue */
  border: 1px solid #a7d9ed;
}

.pretty-wrap-container h2,
.pretty-wrap-container p {
  text-wrap: pretty;
}

/* --- Text-Wrap: Balance --- */
.balance-wrap-container {
  background-color: #e6ffe6; /* Light green */
  border: 1px solid #4caf50;
}

.balance-wrap-container h2,
.balance-wrap-container p {
  text-wrap: balance;
}