body,
html {
  width: 100%;
  height: 100%;
  font-family: "Arial", sans-serif;
  line-height: 1.2;
  position: relative;
  background: white;
}

/* .wrap {
  width: 100%;
  height: 100%;
  
  max-width: 870px;
  max-height: 100%;
  margin: 0 auto;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  
} */

.wrap {
  aspect-ratio: 870 / 1024;
  width: min(870px, 100%, 100vh * 0.85);
  height: auto;
  max-height: 100vh;
  container-type: inline-size;
  margin: 0 auto;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.top,
.bottom {
  /* flex: 0 0 75%; */
}

.top-scroll {
  overflow: auto;
  height: 100%;
}
.top {
  position: relative;
  flex: 0 1 auto; /* grow:0, shrink:1, basis:auto */
  min-height: 0; /* important: allow it to shrink inside flex */
  overflow: hidden;
}
.top:after {
  /* content: ""; */
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;

  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.25) 100%
  );
  height: 10px;
  pointer-events: none;
}

.top {
}

.bottom {
  flex: 1 0 38.28125%; /* grow into remaining space, base 25% */
  min-height: 38.28125%;
  overflow: hidden;
}

.wrap img {
  width: 100%;
  max-width: 100%;
}

.section {
  padding: 3.678161%;
}

.section--grey {
  background: #f0f0f0;
  padding: 3% 3.67%;
}

.section--isi {
  max-height: 100%;
  display: flex;
  flex-direction: column;

  padding: 0;
  /* overflow: auto;
  overflow-y: scroll; */
  scrollbar-gutter: stable both-edges;

  /* Firefox */
  scrollbar-width: thin;
  scrollbar-color: #b24399 #d9d9d9;
}
.isi-wrap {
  padding: 3.2183908% 3.678161%;
  height: 100%;
  max-height: 100%;
  flex-grow: 0;
  min-height: 0;
  overflow-y: scroll;
  scrollbar-gutter: stable both-edges;
}

.isi-wrap a {
  display: inline;
}

.isi-wrap p a,
.isi-wrap strong.dark {
  color: #890c59;
}

.isi-wrap h2,
.isi-wrap p,
.isi-wrap li {
  font-size: 2.4137931cqw;
  color: black;
  line-height: 1.12;
}

.isi-wrap p,
.isi-wrap ul {
  margin-bottom: 0.75em;
}

.isi-wrap ul ul {
  margin-bottom: 0;
}

.isi-wrap ul.loose li {
  margin-bottom: 0.75em;
}

.isi-wrap p.tight {
  margin-bottom: 0;
}

.isi-wrap li {
  list-style: disc;
  margin-left: 1em;
}

@media screen and (max-width: 800px) {
  .isi-wrap h2,
  .isi-wrap p,
  .isi-wrap li {
    /* font-size: 18px; */
  }
  .bottom {
    /* flex: 1 0 305px;  */
    /* min-height: 305px; */
  }
}

.isi-wrap h2,
.isi-wrap p strong,
.isi-wrap ul.loose li strong {
  font-weight: bold;
  color: #b24399;
}
ul.loose li::marker {
  color: #b24399;
}

.isi-wrap p.reference strong {
  color: black;
}
.isi-wrap p.reference {
  margin: 0.75em 0;
}

.isi-wrap::-webkit-scrollbar {
  width: 80px;
}

.isi-wrap::-webkit-scrollbar-track {
  background: #d9d9d9;
  border-radius: 8px;
}

.isi-wrap::-webkit-scrollbar-thumb {
  background-color: #b24399;
  border-radius: 8px;
  border: 2px solid #d9d9d9;
}

.isi-wrap::-webkit-scrollbar-thumb:hover {
  background-color: #b24399;
}

a {
  display: block;
}
.continue-button {
  margin-top: 1.3%;

  margin-left: auto;
  margin-right: auto;
  width: 36.1042182874%;
}

img.alexion-logo {
  width: 248px;
}

/* Media query for when browser wider than 870 */
@media screen and (min-width: 870px) {
  .wrap {
    /* width: 870px; */
    /* min-height: 1104px; */
  }
  .top {
    height: 632px;
  }

  img.alexion-logo {
    width: 248px;
  }
}

@media screen and (max-width: 500px) {
  .wrap {
    /* height: auto;
    max-height: none; */
  }

  .wrap {
    aspect-ratio: auto;
    width: 100%;
    height: 100%;
    /* max-height: 100vh; */
    container-type: inline-size;
  }

  .isi-wrap h2,
  .isi-wrap p,
  .isi-wrap li {
    font-size: 4.64vw;
  }

  .bottom {
    /* flex: 1 0 392px;
    min-height: 392px; */
  }

  .bottom {
    min-height: 250px;
  }

  .section--grey {
    padding: 28px;
  }

  .section--isi {
    /* padding: 32px 16px 0; */
    background: white;
  }

  .isi-wrap {
    /* padding: 0 16px 32px; */
  }

  .isi-wrap a {
    word-break: break-word;
  }
  .continue-button {
    width: auto;
    margin: 28px -10px 16px -10px;
  }
}

@media screen and (max-width: 500px) {
  .desktop-only {
    display: none;
  }
}
@media screen and (min-width: 501px) {
  .mobile-only {
    display: none;
  }
}

.view-full {
  position: relative;
}

.view-full a {
  position: absolute;
}

.patient-info {
  top: 5%;
  left: 32%;
  width: 16%;
  height: 90%;
}

.prescribing {
  top: 5%;
  left: 53%;
  width: 19%;
  height: 90%;
}

@media screen and (max-width: 600px) {
  .patient-info {
    top: 10%;
    left: 18%;
    width: 40%;
    height: 40%;
  }

  .prescribing {
    top: 10%;
    left: 68%;
    width: 25%;
    height: 40%;
  }

  .prescribing-row-2 {
    top: 50%;
    left: 36%;
    width: 28%;
    height: 38%;
  }
}
