:root {
    --drawer-transition: .2s ease-out;
    --drawer-width: 33%;
    --close-btn-width: 24px;
    --content-width: 75%;
}

/* LAYOUT */
.wrap {
  margin: 0;
  position: relative;
  max-width: 990px;
  padding-left: 12px;
  padding-right: 12px;
}
@media (min-width: 801px) {
  .wrap {
    padding-left: 24px;
    padding-right: 24px;
  }
  .right-content {
    width: var(--content-width);
    margin-left: auto; /* Pushes it to the right */
  }
}

/* CONTENT */
.digital-playtext {
  margin-top: 30px;
  margin-bottom: 30px;
}
.digital-playtext header {
  text-align: center;
  /* position: relative; */
}

.digital-playtext header * {
  margin: 0 auto 30px auto;
}
.digital-playtext header hr {
  width: 100%;
  background: #2B264040;
}
.summary {
  margin-bottom: 45px;
}

.line-block {
  display: grid;
  grid-template-columns: 20% auto;
  gap: 0 5%;
  margin-bottom: 10px;
}
.character {
  display: block;
  margin-bottom: 10px;
}
.character:empty {display: none;}
.line {
  display: block;
  margin-bottom: 5px;
}
.character + .line {
  display: inline-block;
}
.line-number {
  text-align: right;
}

/* TRIGGERS */
.trigger {
  text-decoration: none;
  font-weight: bold;
}
.trigger[data-type="character profile"],
.annotation__trigger .character {
  color: #5137B0;
}
.trigger[data-type="annotation"] {
  color: #217EC6;
}
.trigger[data-type="question"] {
  color: #217EC6;
}
.trigger[data-type="quote"] {
  color: #217EC6;
}
.trigger[data-type="glossary"] {
  color: red;
  cursor: pointer;
}


/* POP-OUT DRAWER */
.drawer__container {
  position: relative;
}
.drawer {
  background: white;
  width: var(--drawer-width);
  height: 100%;
  border-left: 2px #BAB1C3 solid;
  box-shadow: -10px 0 10px -10px #BAB1C3;
  /* Fixed due to issues with scrollable content within the side panel */
  position: fixed;
  right: -100%;
  top: 0;
  z-index: 9;
  overflow-x: auto;
  opacity: 0;
  transition: right var(--drawer-transition), opacity var(--drawer-transition);
  pointer-events: none;
}

body.drawer--open .drawer {
  right: 0;
  opacity: 1;
  pointer-events: auto;
}
@media all and (max-width: 800px) {
  body.drawer--open {
    overflow: hidden;
  }
}


.drawer__header {
  display: flex;
  justify-content: flex-end;
}
.drawer__body {
  padding: 30px 20px;
}
.drawer__close {
  cursor: pointer;
  padding: 0 5px;
}
.drawer__close.cross {
  position: absolute;
  top: 10px;
  right: 10px;
}
.drawer__close .dps-icon {
  width: var(--close-btn-width);
  height: var(--close-btn-width);
  fill: #222033;
}
.drawer__close.cross .dps-icon {
  width: 30px;
  height: 30px;
}
.drawer__close.collapse,
.drawer__close.expand {
  position: fixed;
  z-index: 10;
  top: 50%;
  right: 0;
  align-items: center;
  background-color: #BAB1C3;
  height: 67px;
  transition: right var(--drawer-transition);
}
.drawer__close.expand {
  transform: rotate(180deg);
}
body.drawer--open .drawer__close.collapse,
body.drawer--open .drawer__close.expand {
    right: calc(var(--drawer-width) - (var(--close-btn-width) / 2));
}
@media (max-width: 1200px) {
  :root {
    --drawer-width: 50%;
  }
}
@media (max-width: 800px) {
  :root {
    --drawer-width: 100%;
  }
  .drawer {
    border: none;
  }
  .drawer__close.collapse,
  .drawer__close.expand {
    --close-btn-width: 18px;
  }
  body.drawer--open .drawer__close.collapse,
  body.drawer--open .drawer__close.expand {
      right: calc(var(--drawer-width) - var(--close-btn-width));
  }
}

/* ANNOTATION */
.annotation-container {
  margin-bottom: 20px;
}
.annotation {
  /* Becuase the box shadow horizontally overflows the containing element, we remove the overflow value from thew width of the element. This aligns thr whole elemtn nicely within the parent, as per the design. */
  --box-shadow-overflow: 10px;
  background-color: #5137B0;
  box-shadow: var(--box-shadow-overflow)  var(--box-shadow-overflow) 0 black;
  width: calc(100% - var(--box-shadow-overflow));
  padding: 15px;
}
.annotation.glossary {
  background-color: #C9BAFF;
  box-shadow: var(--box-shadow-overflow) var(--box-shadow-overflow) 0 #5137B0;
}
.annotation.glossary * {color: black;}
.annotation.glossary .annotation__icon .dps-icon {fill: black!important;}
.annotation.glossary .annotation__header {
  border-bottom: 1px black solid;
}

.quote-card {
  border: 1px #5137B0 solid;
  box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.25);
  margin: 10px 0 30px 0;
  padding: 5px;
}
.annotation *,
.character-card-iframe * {
  color: #FAF3FF;
}
.character-card-iframe h1 {margin-top: 0;}
.annotation .annotation__header {
  display: flex;
  align-items: center;
  border-bottom: 1px #FAF3FF solid;
  margin-bottom: 20px;
  padding-bottom: 5px;
  font-weight: bold;
}
.annotation .annotation__icon {
  margin-right: 10px;
}
.annotation .annotation__icon .dps-icon {
  width: 20px;
  height: 20px;
  fill: #FAF3FF;
}
.character-card {
  width: 100%;
  min-height: 1200px;
}



.carousel {
  max-width: 100%;
  background: rgba(34, 32, 51, 1);
}
figure {
  margin: 0;
}
figcaption {
  padding: 10px;
}



/* UTILITIES */
.flex {
  display: flex;
}
.hidden {
  display: none;
}
.center {
  display: block;
  float: none;
  margin-left: auto;
  margin-right: auto;
}
.bold {
  font-weight: bold;
}
.button__unstyled {
  text-align: left;
  background: transparent;
  border: none;
  padding: 0;
  margin: 0;
}
.truncate {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: min-content;
  max-width: 250px;
}
blockquote {
  /* font-family: "Georgia", Times, serif; */
  font-style: italic;
  margin-left: 0;
  padding-left: 24px;
  border-left: 2px solid #ddd;
  margin-bottom: 12px;
}
/* blockquote p:first-child:before,
blockquote li:first-child:before {
  content: "“";
  font-size: 100px;
  position: absolute;
  left: -48px;
  top: -37px;
  font-style: normal;
  color: #999;
}
blockquote p:last-of-type:after,
blockquote li:last-of-type:after {
  content: "”";
  font-size: 100px;
  vertical-align: sub;
  position: absolute;
  right: -45px;
  bottom: -83px;
  font-style: normal;
  color: #999;
} */
blockquote .quotee {
  color: #767676;
  font-style: normal;
  line-height: 18px;
  text-align: right;
  margin-bottom: 0;
}
