.stretched-flex-graphics {
  display: flex;
  width: 85%;
  padding: 40px 0px;
  align-items: flex-start;
  gap: 24px;
  max-width: 1280px;
}

.stretched-graphic {
  width: 100%;
}

.graphic-block {
  display: flex;
  flex-direction: column;
  padding-top: 20px;
  align-items: flex-start;
  gap: 14px;
  flex: 1 0 0;
  border-top-width: var(--Border-width);
  border-top-style: solid;
  border-top-color: var(--Dataviz-Categorical-01);
  opacity: var(--sds-size-stroke-border);
}
.graphic-block:nth-child(2) {
  border-top-color: var(--Dataviz-Categorical-02);
}
.graphic-block:nth-child(3) {
  border-top-color: var(--Dataviz-Categorical-03);
}

.graphic-heading {
  color: var(--Dataviz-Categorical-01);
  font-family: "Proxima Nova";
  font-size: 20px;
  font-style: normal;
  font-weight: 700;
  line-height: 22px; /* 110% */
  align-self: stretch;
}
.graphic-block:nth-child(2) .graphic-heading {
  color: var(--Dataviz-Categorical-02);
}
.graphic-block:nth-child(3) .graphic-heading {
  color: var(--Dataviz-Categorical-03);
}

.graphic-text {
  opacity: 0.8;
  align-self: stretch;
  color: #000;
  font-family: "Proxima Nova";
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 22px; /* 137.5% */
}

.touch-button {
  display: none;
}

.hero-container {
  width: 100%;
  /* height: 720px; */
  height: calc(100vh - 110px);
  max-height: 720px;
  margin-bottom: 20px;
  flex-shrink: 0;
  background-position: center; /* Center the image */
  background-repeat: no-repeat; /* Do not repeat the image */
  background-size: contain; /* Resize the background image to cover the entire container */
  display: flex;
  align-items: end;
  justify-content: center;
  gap: 30px;
}

.hero-image {
  width: 100%;
  height: auto;
  object-fit: contain;
  max-height: 75vh;
}

.hero-recommendations {
  background: url("./images/chpt\ 3\ test\ header\ image.png") lightgray 50% /
    cover no-repeat;
}

.hero-text-container {
  padding-bottom: 20px;
}

.hero-chapter-title {
  align-self: stretch;
  color: #000;
  text-align: center;
  font-family: Georgia;
  font-size: 32px;
  font-style: normal;
  font-weight: 700;
  line-height: 58px; /* 181.25% */
  opacity: 0.6;
}

.hero-h1 {
  align-self: stretch;
  color: #000;
  text-align: center;
  font-family: "Bodoni 72";
  font-size: 60px;
  font-style: normal;
  font-weight: 700;
  line-height: 100%; /* 60px */
}

.chapter-nav {
  display: flex;
  justify-content: space-between;
}

.chapter-button {
  display: flex;
  flex-direction: column;
  width: 50%;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 26px;
  padding: 0 2%;
  text-decoration: none;
  transition: 0.3s ease;
  /* background-size: cover;
  background-repeat: no-repeat;
  background-position: 40px 50px; */
  /* background-position: right bottom;
  background-size: 80%; 
  background-repeat: no-repeat; */
}

.chapter-image {
  background-size: contain; /* Ensure the image fits within the container */
  background-position: center; /* Center the image inside the container */
  background-repeat: no-repeat; /* Avoid repeating the image */
  width: 100%;
  height: 264px;
}

#chapter-button-0 {
  background-color: #e9e7d9;
}
#chapter-button-1 {
  background-color: #e9e7d9;
}
#chapter-button-2 {
  background-color: #eee4cc;
}
#chapter-button-3 {
  background-color: #ebd7cc;
}
#chapter-button-4 {
  background-color: #d9eae2;
}
#chapter-button-5 {
  background-color: #dce6f0;
}

.chapter-container {
  display: flex;
  flex-direction: column;
}

.chapter-button-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
  /* margin-top: -50px; */
  transition: 0.3s ease-in-out; /* Smooth transition */
  /* overflow: hidden; */
}

.chapter-button-content.desktop {
  max-width: 30%; /* allows image to take up more room on desktop */
}

.chapter-button:hover,
.chapter-button-full-w:hover {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3), 0 0px 15px rgba(0, 0, 0, 0.35),
    0 0px 25px rgba(0, 0, 0, 0.3);
}
/* .chapter-button:hover .chapter-button-content {
  transform: scale(1.01); 
} */

.chapter-button-mobile {
  display: none;
}

.chapter-container img {
  max-width: 100%;
  max-height: 300px;
  height: 60%;
  width: auto;
  object-fit: contain;
}

.portraits-container {
  display: flex;
  position: relative;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 20px;
  max-width: 1784px;
  margin-left: auto;
  margin-right: auto;
}

.portrait-container {
  display: flex;
  position: relative;
  width: min-content;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.portrait-container img,
.frank-focus img,
.yara-focus img {
  max-width: 320px;
}

#maria-portrait-container {
  transform: translate(130px, 40px);
}
#cody-portrait-container {
  transform: translate(50px, 0px);
}
#victor-portrait-container {
  transform: translate(-50px, 40px);
}
#selena-portrait-container {
  transform: translate(-150px, 0px);
}

#selena-portrait-container img {
  max-width: 280px;
}

.portrait-age {
  font-weight: 700;
}

.portrait-description {
  padding: 0 20%;
  text-align: left;
}

.frank-yara-focus {
  display: flex;
  flex-direction: column;
  padding-top: 2%;
  max-width: 1000px;
  margin-right: auto;
  margin-left: auto;
}

.frank-focus,
.yara-focus,
.camila-focus {
  display: flex;
  align-items: center;
  gap: 10px;
}

.yara-focus {
  padding-left: 25%;
  padding-right: 5%;
  margin-top: -10%;
}
.frank-focus {
  padding-right: 25%;
  padding-left: 5%;
}
.camila-focus {
  padding: 0 10%;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
  gap: 30px;
}

.camila-focus img {
  max-width: 450px;
}

.frank-title,
.yara-title {
  color: #000;
  font-family: "Bodoni 72";
  font-size: 36px;
  font-style: normal;
  font-weight: 700;
  line-height: 58px; /* 161.111% */
}

.frank-text,
.yara-text {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.frank-desc,
.yara-desc {
  opacity: 0.6;
  color: #000;
  font-feature-settings: "liga" off, "clig" off;
  font-family: "Proxima Nova";
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
}

.camila-desc {
  color: #000;
  font-feature-settings: "liga" off, "clig" off;
  font-family: "Proxima Nova";
  font-size: 20px;
  font-style: normal;
  font-weight: 400;
  line-height: 32px;
}

.download-report-banner {
  background: #e5e3d7;
  width: 100%;
  height: 267px;
  display: flex;
  align-items: center;
  background-position: right; /* Center the image */
  background-repeat: no-repeat; /* Do not repeat the image */
  background-size: 50%; /* Resize the background image to cover the entire container */
}

.download-report-banner-text {
  display: flex;
  width: 40%;
  margin-left: 5%;
  margin-right: 5%;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 11px;
}

.download-heading-text {
  color: #db2b35;

  /* H3 */
  font-family: "Bodoni 72";
  font-size: 36px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
  align-self: stretch;
}

.download-text {
  color: #000;
  font-feature-settings: "liga" off, "clig" off;
  font-family: "Proxima Nova";
  font-size: 20px;
  font-style: normal;
  font-weight: 400;
  line-height: 32px; /* 160% */
  align-self: stretch;
}

.flex-container {
  display: flex;
  flex-direction: column; /* Stack items vertically */
  align-items: center; /* Center the content horizontally */
  justify-content: flex-start; /* Align items at the top */
  /* gap: 10px; Space between flex items */
  /* padding: 10px; */
}

.flex-container img {
  max-width: 100%; /* Let the image take up the full width of the container */
  max-height: 200px; /* PREVIOUSLY 260px; */
  height: auto; /* Maintain the aspect ratio */
  flex-shrink: 1; /* Allow the image to shrink if needed */
  object-fit: contain; /* Ensure the image fits within the available space */
}

.text-content,
.more-content {
  flex-shrink: 0; /* Prevent text from shrinking */
}

.modal-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 25px;
  padding: 35px;
  background-color: #fff;
  box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.25);
  height: 435px;
}

.modal-heading {
  color: #000;
  text-align: center;
  font-family: "Proxima Nova";
  font-size: 21px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
}

.modal-description {
  color: #000;
  text-align: center;
  font-feature-settings: "liga" off, "clig" off;
  font-family: "Proxima Nova";
  font-size: 18px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  opacity: 0.6;
}

.modal-button {
  cursor: pointer;
}

.chapter-button-full-w {
  display: flex;
  justify-content: center;
  /* width: 100%; */
  height: 300px;
  /* padding: 0 0 0 130px; */
  text-decoration: none;
  transition: 0.3s ease;
}

.flex-container-full-w {
  display: flex;
  flex-direction: row; /* Stack items vertically */
  align-items: center; /* Center the content horizontally */
  justify-content: center; /* Align items at the top */
}

.ecosystem-svg-container svg {
  max-height: 747px;
}

/* .sankey-svg-container svg {
  max-height: 606px;
} */

.sankey-svg-container,
#current-state-svg-container,
#future-state-svg-container {
  width: 100%;
  width: -moz-available; /* WebKit-based browsers will ignore this. */
  width: -webkit-fill-available; /* Mozilla-based browsers will ignore this. */
  width: fill-available;
  max-width: 1200px;
}

.frank-yara-container-mobile {
  display: none;
}

.frank-yara-network-buttons {
  position: absolute;
  top: 100px;
  left: 50px;
}

#back-to-top-icon {
  position: fixed;
  bottom: 5px;
  right: 5px;
  cursor: pointer;
  transition: transform 0.3s ease, opacity 0.3s ease;
  visibility: hidden;
}

#back-to-top-icon:hover {
  transform: scale(1.1);
}

@media screen and (max-width: 1280px) {
  .chapter-button-full-w {
    padding: 0 0 0 5%;
  }
}

@media screen and (max-width: 1299px) {
  #selena-portrait-container {
    transform: translateX(0px);
  }
}

@media screen and (max-width: 999px) {
  #victor-portrait-container,
  #maria-portrait-container,
  #cody-portrait-container {
    transform: translateX(0px);
  }
}

@media screen and (max-width: 992px) {
  .stretched-flex-graphics {
    flex-direction: column;
  }
  .yara-focus {
    margin-top: 0%;
  }
  .chapter-button-mobile {
    display: block;
    margin-left: auto;
    margin-right: auto;
  }
  .chapter-button-desktop {
    display: none;
  }
  /* .chapter-button-parent {
    padding-left: 20px;
    padding-right: 20px;
  } */
  .camila-focus {
    flex-direction: column;
    padding: unset;
  }
  #camila-portrait {
    padding-left: 20px;
    padding-right: 20px;
  }
}

/* General mobile styles */
@media screen and (max-width: 768px) {
  .chapter-description {
    line-height: normal;
  }
  .more-content {
    padding: 0 30px;
  }
  .hero-h1 {
    font-size: 40px;
    line-height: normal;
    padding-left: 10px;
    padding-right: 10px;
  }
  .accordion-container {
    padding-left: 20px;
    padding-right: 20px;
  }
  .ecosystem-svg-container {
    padding-left: 2px;
    padding-right: 10px;
  }
  .frank-yara-container-mobile {
    display: flex;
  }
  .frank-yara-container-desktop {
    display: none;
  }
  .frank-yara-network-buttons {
    position: unset;
  }
  .camila-focus img {
    max-width: 320px;
  }
}

@media screen and (max-width: 620px) {
  .portrait-description {
    padding: 0;
  }
}

@media screen and (max-width: 460px) {
  .modal-content {
    padding: 25px;
    gap: 15px;
    height: auto;
  }
}

@media (pointer: coarse) {
  .touch-button {
    display: block;
  }
}
