/* styles for making the player / journey fit together */

:root {
  --plyr-color-main: #F55D49;
  --swiper-theme-color: black;
  --swiper-pagination-color: black;
  --swiper-pagination-bullet-inactive-color: black;
  --swiper-pagination-bullet-inactive-opacity: .5;
  --swiper-pagination-bottom: 24px;
  --swiper-pagination-bullet-size: 12px;
}

video.plyr {
  height: 300px;
}

.swiper-container {
  overflow-x: hidden;
  height: 100%;

}

#enter-fullscreen {

  position: absolute;
  z-index: 4;
  background: none;
  border: none;
  margin: 8px;
  padding: 0;
}

/* plyr */
button[data-plyr='pip'],
input[data-plyr='volume'],
button[data-plyr='mute'],
/* button[data-plyr='captions'], */
button[data-plyr='settings'],
button[data-plyr='airplay'],
.plyr__controls__item.plyr__volume {
  display: none !important;
}

.plyr__controls__item.plyr__progress__container {
  display: none;
}

.swiper-pagination.swiper-pagination-bullets-dynamic {
  position: relative;
  width: 100px !important;
  bottom: -8px;
  left: 0 !important;
  transform: none !important;
}

.btn-bar button {
  display: inline-flex;
  background-color: transparent;
}

button#like-btn.liked #heart-icon {
  stroke: black;
  fill: red;
}

.btn-bar button {
  color: black;
  padding: 0;
}

.muteAllButton svg {
  height: 100%;
  width: 24px;
  /*fix for safari */
}

/* When the button has the "muted" class, show the muted icon and hide the unmuted icon */
#muteAllButton.muted .nosound {
  display: inline-block;
  
}

#muteAllButton.muted .sound {
  display: none;

}

/* When the button does not have the "muted" class, show the unmuted icon and hide the muted icon */
#muteAllButton:not(.muted) .nosound {
  display: none;
}

#muteAllButton:not(.muted) .sound {
  display: inline-block;
}

#toggle-messages {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#toggle-messages:hover {
  cursor: pointer;
}

#toggle-messages .arrow-icon svg {
  width: 28px;
  stroke: black;
  padding-right: 4px;
}

.supporter-messages {
  background: #f6f4ef;
}

.message-item {
  font-size: 15px;
  background: white;
  padding: 6px 10px;
  margin: 8px 0;
}

.message-name {
  font-weight: 700
}

.arrow-icon {
  transition: transform 0.2s ease-in-out;
  transform: rotate(-180deg);
}

.arrow-icon.collapsed {
  transform: rotate(0);
  /* Rotate upward when collapsed */
}

/* Signature counter */
/* counter */
.progress-container {
  width: 100%;
  margin: 0 auto;
  margin-top: 3px !important;
  font-family: "Source Serif 4", system-ui, -apple-system, Segoe UI;
}

.progress-bar {
  width: 100%;
  overflow: hidden;
  height: 12px;
  margin-bottom: 0 !important;
  margin: 4px 0 !important;
  border: solid 2px #F55D49;

}

.sc-progress-fill {
  height: 100%;
  width: 1%;
  background-color: #F55D49;
  text-align: right;
  line-height: 20px;
  color: white;
  padding-right: 5px;
  clip-path: polygon(0 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
  transition: width 0.5s ease;
}

.progress-labels {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
}

.progress-labels div {
  text-align: center;
}

.progress-labels .left,
.progress-labels .right {
  display: flex;
  flex-direction: column;
  line-height: normal;
  font-size: 22px;
}

.progress-labels .left,
.progress-labels .right {
  text-align: left;
  transition: opacity 0.5s ease;
  opacity: 1;
}

.progress-labels .right {
  text-align: right;
}

.progress-labels div span {
  font-size: 16px;
}

.opacity-0 {
  opacity: 0 !important;
}


/* rollcall */
.signers-list {
  overflow: hidden;
  position: relative;
  white-space: nowrap;
  width: 100%;
  transition: opacity 0.5s ease;
  min-height: 32px;
}

.signer-container {
  /*     animation: marquee 10s linear infinite; */
  display: inline-flex;
  /*     padding-left: 100px; */
  white-space: nowrap
}

.signer {
  /* border: 1px solid blue; */
  display: inline-block;
  margin-right: 10px;
  display: inline-flex;
  color: black;
  background: #F6F4EF;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 15px;
}

.signer img {
  max-width: 16px;
  object-fit: contain;
  margin-right: 5px;
}

@keyframes marquee {
  0% {
    transform: translateX(0)
  }

  to {
    transform: translateX(-100%)
  }
}

input.rollcall-checkbox {
  position: relative;
  opacity: 1;
  pointer-events: auto;
  margin-right: 6px;
}

.form-rollcal {
  margin-top: 16px;
}

.opacity-0 {
  opacity: 0 !important;
}


/* Main container */
/* .intro-container {
    display: flex;
    flex-direction: column;
  } */

/* Image styling */
.intro-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  margin-bottom: 1rem;
  max-width: 360px;
  margin-left: auto;
  margin-right: auto;
}

/* Heading section */
.intro-heading {
  text-align: center;
}

.header-content h1 {
  /* Add any specific h1 styles here */
}

.header-content p {
  margin-bottom: 1rem;
}

.spacer {
  margin: 1rem 0;
}

/* Mobile letter (hidden on desktop) */
.mobile-letter {
  background-color: black;
  color: white;
  margin: 1.5rem 0;
  padding: 0.75rem;
}

/* Desktop adjustments */
@media (min-width: 992px) {
  .intro-container {
    flex-direction: row;
    align-items: flex-start;
    gap: 1rem;
  }

  .intro-image {
    max-width: 290px;
    margin-bottom: 0;
  }

  .intro-heading {
    text-align: left;
    background-color: white;
    padding: 1rem;
  }

  .mobile-letter {
    display: none;
  }

  button#like-btn.liked #heart-icon {
    stroke: black;
    fill: white;
  }
}

.stuck {
  position: fixed;
  /* Keep it fixed at the bottom */
  z-index: 50;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 8px 10px;
  box-shadow: 0px -10px 20px rgba(0, 0, 0, 0.5);
  background: white;
  border: 1px #ccc solid;
  /* Add a background to prevent content from overlapping */
}

.stuck button {
  margin: 0 !important;
  padding: 12px;
  font-size: 18px;
}

.form-modal-content {
  padding: 24px;
  /* max-width: 600px; */
}

.form-modal .modal-dialog {
  max-width: 600px;
  margin-left: auto !important;
  margin-right: auto !important;
  margin-top: 50px !important;
}

button.btn-close.close-form-modal {
  position: absolute;
  right: 4px;
  border: none;
  background: white;
  font-size: 28px;
  padding: 0;
  right: 16px;
  color: black;
}

@media (max-width: 500px) {

  .form-modal-content {

    zoom: .85;
  }

  .form-modal .modal-dialog {

    margin-top: 0 !important;
  }
}

/* thank you */

body.thank-you .page-content {
  background:
    #FFFF5F;
  background:
    linear-gradient(to bottom,
      #FFFF5F 0px,
      #FFFF5F 150px,
      #ADADE5 101px,
      #ADADE5 100vh);
}

body.thank-you .slanted-half {
  background: linear-gradient(177deg,
      #FFFF5F 49.8%,
      #ADADE5 20%);
}


.section-margins {
  padding: 1rem;
  /* p-4 */
  margin-top: 0;
  /* base state - no top margin */
}

/* Responsive padding */
@media (min-width: 640px) {

  /* sm */
  .section-margins {
    padding: 1.5rem !important;
    /* sm:p-6 */
    padding-top: 5vh !important;
  }
}

@media (min-width: 768px) {

  /* md */
  .section-margins {
    padding: 2rem !important;
    /* md:p-8 */
    /* margin-top: 1rem; md:mt-4 */
    padding-top: 10vh !important;
  }
}

@media screen and (max-width: 767px) {

  #share-ask-section,
  #share-section,
  #donate-single-section,
  #donate-monthly-section {
    padding-top: 1rem !important;
  }
}

.section-container {
  max-width: 36rem;
  /* Equivalent to max-w-xl (xl = 36rem in Tailwind) */
  background-color: white;
  margin-left: auto;
  margin-right: auto;
  padding: 1.5rem;
  /* p-6 = 1.5rem (24px) */
  text-align: center;
}

/* Responsive padding variants */
@media (min-width: 640px) {

  /* sm breakpoint */
  .section-container {
    padding: 2rem !important;
    /* sm:p-8 = 2rem (32px) */
  }
}

@media (min-width: 768px) {

  /* md breakpoint */
  .section-container {
    padding: 2.5rem !important;
    /* md:p-10 = 2.5rem (40px) */
  }
}


.primary-btn {
  border-style: none;
  --tw-bg-opacity: 1;
  background-color: #FFFF5F;
  padding-left: 1.5rem !important;
  padding-right: 1.5rem !important;
  font-weight: 700;
  display: inline-flex;
  font-size: 18px;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  align-self: center;
  justify-self: center;
  border-radius: 0.25rem;
  padding: 0.75rem;
  line-height: 1.375;
  letter-spacing: 0.025em;
  --tw-text-opacity: 1;
  color: rgb(28 28 28 / var(--tw-text-opacity));
  transition: filter 0.3s ease-in-out;
}

.primary-btn:focus {
  filter: brightness(.95);
}

.secondary-btn {
  border: 1px solid black;
  border-radius: 3px;
  padding: 10px;
  padding-left: 1rem !important;
  padding-right: 1rem !important;
  display: block;
  font-size: 17px;
  line-height: 1.375;
  font-weight: 700;
  transition: filter 0.3s ease-in-out;
  background-color: white;
}

.secondary-btn:hover {
  filter: brightness(.95);
}

.section-container .primary-btn,
.section-container .secondary-btn {
  margin: 1.2rem auto;
  color: black;
}

.skip-link {
  font-weight: 600;
  /* font-semibold */
  text-decoration: underline !important;
  /* underline */
  cursor: pointer;
  /* cursor-pointer */
}

.fullscreen-modal .video-container {
  max-width: 100%;
}

/* Fullscreen Modal Styling */
.fullscreen-modal {
  /* display: none; */
  height: 0;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  z-index: 1000;
  overflow: hidden;
  transition: transform .2s;
  transform-origin: 0 100%;
  transform: scaleY(.8);
}

.fullscreen-modal.active {
  display: flex;
  transform: scaleY(1);
  height: 100%;
}

#iframeModal button.btn-close {
  border: none;
  background: none;
  zoom: 2;
  line-height: 0.5;
  padding: 0;
  color: black;
}

/* Fullscreen modal container */
.fullscreen-modal {
  position: fixed;
  height: 0;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 20;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: rgba(0, 0, 0, 0.9);
  /* Optional background */
}

/* Close button styles */
.modal-close-btn {
  position: absolute;
  padding: 0.5rem;
  top: 0.5rem;
  left: .25rem;
  color: white;
  border: none;
  font-size: 2.25rem;
  line-height: 2.5rem;
  cursor: pointer;
  z-index: 50;
  background-color: rgba(0, 0, 0, 0.4);
  height: 2.5rem;
  border-radius: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Modal content container */
.fullscreen-modal.active .modal-content {
  position: relative;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  flex: 1 1 0%;
  max-height: calc(100vh - 64px);
  overflow: auto;
  /* Add if content may overflow */
  justify-content: center;
}

.fullscreen-modal.active .movable-content {
  height: 100%;
}

.fullscreen-modal.active .movable-content video.plyr {
  height: 100%;
}

.fullscreen-modal.active .movable-content .swiper-pagination {
  bottom: 20px;
}


.fullscreen-modal.active .movable-content .swiper-container {
  height: calc(100% - 46px);
  width: calc(100% + 1px);
  overflow: hidden;
}

.fullscreen-modal .btn-bar {
  background-color: black;
  padding: 6px 6px 10px 6px;
}

.fullscreen-modal .btn-bar button {
  color: white;
}

.fullscreen-modal .btn-bar svg {
  stroke: white;
}

.fullscreen-modal {

  --swiper-pagination-color: white;
  --swiper-pagination-bullet-inactive-color: white;

}

.fullscreen-modal button#like-btn.liked #heart-icon {
  stroke: white;
}

.fullscreen-modal #enter-fullscreen {

  display: none;

}

@media (min-width: 576px) {
  #enter-fullscreen {

    display: none;

  }

}