@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Montserrat&display=swap');

body {
  margin: 0;
  padding: 0;
  background-color: #000;
  font-family: 'Bebas Neue', 'Montserrat', sans-serif;
  color: white;
  overflow-x: hidden;
}

.screen-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  min-height: 100vh;
  box-sizing: border-box;
}

.story-frame {
  width: 100%;
  max-width: 400px;
  aspect-ratio: 9 / 16;
  background-size: cover;
  background-position: center;
  border-radius: 20px;
  box-shadow: 0 0 25px rgba(255, 0, 0, 0.5);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  box-sizing: border-box;

}

.quote-overlay {
  background-color: rgba(0, 0, 0, 0.7);
  padding: 1.5rem;
  border-radius: 10px;
  text-align: center;
  width: 100%;
}


.quote-overlay p {
  font-size: 1.6rem;        /* Adjust as needed (e.g., 1.6rem for larger text) */
  font-weight: bold;
  line-height: 1.4;
  margin-bottom: 1rem;      /* Was 12rem, which pushed text too far down */
}

.quote-overlay small {
  font-size: 1.1rem;          /* Equivalent to 16px */
  color: #ccc;
}


.corner-brand {
  position: absolute;
  bottom: 12px;
  right: 16px;
  font-size: 12px;
  color: #bbb;
}

.share-button-wrapper {
  margin-top: 1rem;
}

.share-btn {
  background-color: red;
  color: white;
  padding: 10px 16px;
  border-radius: 6px;
  font-weight: bold;
  font-size: 14px;
  text-decoration: none;
  font-family: 'Montserrat', sans-serif;
  transition: 0.3s ease;
}

.share-btn:hover {
  background-color: darkred;
  transform: scale(1.05);
}

@media (max-width: 768px) {
  .screen-wrapper {
    justify-content: flex-start;
    padding-top: 3.5vh;
    padding-bottom: 0.5rem;
  }

  .quote-footer {
    margin-top: 0.5rem; /* Reduce space below the story frame */
  }
}


  .story-frame {
    transform: scale(0.85); /* shrink the entire box */
    max-height: 80vh; /* keep it tight inside screen */
    margin: 0 auto;
  }

  .quote-overlay {
    padding: 1.5rem 1rem;
  }

  .quote-overlay p {
    font-size: 1.4rem;
    line-height: 1.4;
  }

  .quote-overlay small {
    font-size: 1rem;
  }

  .corner-brand {
    font-size: 11px;
    bottom: 6px;
    right: 8px;
  }

  /*.share-button-wrapper {
    margin-top: 0.2rem;

  }*/

.share-button-wrapper {
  display: inline-flex;        /* Enables horizontal flex layout */
  justify-content: center;
  align-items: center;
  gap: 20px;                   /* Adds spacing between buttons */
  margin-top: 0.2rem;
}


  .share-btn {
    font-size: 12px;
    padding: 6px 10px;
    margin-top: 0rem;
  }
  html, body {
  height: 100%;
  overflow-y: hidden; /* Prevent visible scroll */
  overscroll-behavior-y: contain; /* Still allow pull-to-refresh */
  margin: 0;
  padding: 0;
  background-color: #000;
}


#capture-area {
  border-radius: 24px;
  background-color: #000;
  padding: 0;
  display: inline-block;
  /* No box-shadow here */
}


.story-frame {
  background-size: cover;
  background-position: center;
  border-radius: 24px;
  box-shadow: 0 0 40px rgba(255, 0, 0, 0.6); /* ✅ Red glow here only */
  width: 100%;
  max-width: 400px;
  aspect-ratio: 9 / 16;
  min-height: 600px; /* ✅ Prevents visual squeeze for small quotes */
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}


/*change image button*/

/*.button-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px; /* ⬅️ This adds space between buttons */
 /* margin-top: 1rem;
}
*/

@media (max-height: 750px) {
  html, body {
    overflow-y: auto !important;  /* allow vertical scroll if screen is short */
  }

  .screen-wrapper {
    padding-bottom: 6rem; /* ensure space for bottom buttons */
  }
}

/*scroll bar hidden */

html, body {
  overflow-y: scroll;
  scrollbar-width: none; /* for Firefox */
}

body::-webkit-scrollbar {
  display: none; /* for Chrome, Safari */
}


/*copy text*/
.copy-toast {
  position: absolute;
  top: 20px;               /* ⬅️ puts copy button just above the quote */
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  z-index: 10;
  animation: fadeOut 1.5s ease-out forwards;
}

@keyframes fadeInOut {
  0%   { opacity: 0; transform: translateX(-50%) scale(0.9); }
  10%  { opacity: 1; transform: translateX(-50%) scale(1.0); }
  90%  { opacity: 1; transform: translateX(-50%) scale(1.0); }
  100% { opacity: 0; transform: translateX(-50%) scale(0.9); }
}

