@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@300;400;500;600;700&display=swap');

/* ------------------------------------------------------------------------------
# NEWER CSS FROM LATE MARCH 2025
# ------------------------------------------------------------------------------ */

/* 2) ROOT VARIABLES (Design Tokens) */
:root {
  /* FONT */
  --font-family-base: 'Quicksand', sans-serif;

  /* COLORS */
  --color-dark-gray: #4E4D4D; /* Primary brand anchor color */
  --color-blue: #00818C;      /* Primary CTA button color */
  --color-green: #56E856;     /* Success/alternate button color */
  --color-white: #FFFFFF;
  --color-light-gray: #F8F9FA;
  --color-mid-gray: #E9ECEF;

  /* SPACING (You can tweak these as needed) */
  --spacing-xs: 4px;
  --spacing-s: 8px;
  --spacing-m: 16px;
  --spacing-l: 24px;

  /* FONT SIZES (Adjust to your preference) */
  --font-size-body: 1.2rem;
  --font-size-h1: clamp(2.5rem, 5vw, 5.2rem);
  --font-size-h2: clamp(1.5rem, 3vw, 3rem);
  --font-size-h3: clamp(1.25rem, 1.8vw, 2rem);
  --font-size-button: clamp(1rem, 2vw, 1.2rem);

  /* TRANSITIONS */
  --transition-fast: 0.2s ease-in-out;
  --transition-default: 0.3s ease;
}

/* 4) BASE TYPOGRAPHY */
h1, .heading-hero {
  font-weight: 700;
  font-size: var(--font-size-h1);
  margin-bottom: var(--spacing-m);
  color: var(--color-dark-gray);
  text-align: center; /* optional */
}

h2, .heading-section {
  font-weight: 700;
  font-size: var(--font-size-h2);
  margin-bottom: var(--spacing-s);
  color: var(--color-dark-gray);
}

h3, .subheading {
    font-weight: 700;
    font-size: var(--font-size-h3);
    margin-bottom: var(--spacing-s);
    color: var(--color-dark-gray);
  }

p, .body-text {
  font-weight: 400;
  font-size: var(--font-size-body);
  margin-bottom: var(--spacing-m);
  color: var(--color-dark-gray);
}

.faq-page-container {
  background-color: var(--color-white);
  padding: var(--spacing-l);
  max-width: 80%;
  margin: var(--spacing-l) auto;
  height: auto;          /* Remove the fixed height */
  padding-top: 70px;     /* To push it below the navbar */
  justify-content: flex-start; /* Start content from the top */
}


.faq-page-container ol {
  list-style-type: none;
  padding-left: 0;
}

.faq-page-container li {
  margin-bottom: var(--spacing-m);
}

/* Pins a single button to the bottom (centered) */
.pin-bottom {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  width: 180px;
}

/* Pinned bottom container for multiple buttons side by side */
.pin-bottom-container {
  position: fixed;
  width: 98vw;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  display: flex;
  flex-wrap: wrap;       /* Let them wrap on very narrow screens */
  gap: var(--spacing-m);
  align-items: center;
  justify-content: center;
}

.pin-bottom-container .btn {
  /* Force the same width range for both buttons */
  flex: 1 1 0;
  /* width: clamp(80px, 25vw, 160px); */
  width: 180px;


  /* Ensure text (and emojis) are centered vertically and horizontally */
  display: flex;
  align-items: center;
  justify-content: center;

  /* Optional: prevent text from wrapping or shifting */
  white-space: nowrap;
}

.text-entry-card {
  /* Increase the maximum width beyond 600px—e.g., 900px or 1000px */
  max-width: 900px;
  /* Also allow a percentage-based width for smaller screens */
  width: 80%;
  /* Center it horizontally */
  margin: var(--spacing-l) auto;
  /* Keep your translucent white background */
  background-color: rgba(255, 255, 255, 0.9);

  /* Optional: add some extra padding if you like */
  padding: var(--spacing-m);
}

/* Basic .btn styling */
.btn {
  display: inline-block;
  font-family: var(--font-family-base);
  font-weight: 600;
  font-size: var(--font-size-button);
  text-align: center;
  border-radius: 999px;
  padding: var(--spacing-s) var(--spacing-m);
  cursor: pointer;
  transition: background-color var(--transition-fast),
              color var(--transition-fast),
              border-color var(--transition-fast);
}

.btn-primary {
  background-color: var(--color-blue) !important;
  color: var(--color-white) !important;
  border: 2px solid var(--color-blue) !important;
}

.btn-success {
  background-color: var(--color-green);
  color: var(--color-dark-gray);
  border: 2px solid var(--color-green);
}

.btn-secondary {
  background-color: var(--color-white);
  color: var(--color-dark-gray);
  border: 2px solid var(--color-dark-gray);
  transition: background-color var(--transition-fast), color var(--transition-fast);
}

/* Only apply hover styles on devices with real hover capability (not touch screens) */
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover {
    background-color: var(--color-white) !important;
    color: var(--color-dark-gray) !important;
  }

  .btn-success:hover {
    background-color: var(--color-white) !important;
    color: var(--color-dark-gray) !important;
  }

  .btn-secondary:hover {
    background-color: var(--color-dark-gray) !important;
    color: var(--color-white) !important;
  }
}

/* Prevent iOS Safari/Chrome from keeping buttons in pressed/active state */
@media (hover: none) {
  .btn:active,
  .btn-primary:active,
  .btn-success:active,
  .btn-secondary:active {
    background-color: inherit;
    color: inherit;
  }
}

/* Maintain button appearance when focused (after clicking outside) */
.btn-primary:focus,
.btn-primary:focus-visible {
  background-color: var(--color-blue) !important;
  color: var(--color-dark-gray) !important;
  border: 2px solid var(--color-blue) !important;
  outline: none; /* Remove default browser outline */
}

.btn-success:focus,
.btn-success:focus-visible {
  background-color: var(--color-green);
  color: var(--color-dark-gray);
  border: 2px solid var(--color-green);
  outline: none;
}

.btn-secondary:focus,
.btn-secondary:focus-visible {
  background-color: var(--color-white);
  color: var(--color-dark-gray);
  border: 2px solid var(--color-dark-gray);
  outline: none;
}

@media (max-width: 576px) {
  #navbar-logo {
    height: 24px;
  }
}

/* ------------------------------------------------------------------------------
# REACT CSS FROM JUNE 2025
# ------------------------------------------------------------------------------ */

.camera-access-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1050;
  background-color: white;
  padding: var(--spacing-l);
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  text-align: center;
}

/* Video Description Modal Styles */
.video-description-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
}

.video-description-modal-content {
  background-color: var(--color-white);
  padding: var(--spacing-l);
  border-radius: 8px;
  max-width: 500px;
  width: 90%;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.video-description-textarea {
  width: 100%;
  height: 100px;
  padding: var(--spacing-s);
  font-size: 1rem;
  margin-bottom: 12px;
  border-radius: 4px;
  border: 1px solid var(--color-mid-gray);
  resize: vertical;
  font-family: var(--font-family-base);
}

.video-description-submit-btn {
  display: block;
  margin: 0 auto;
}

/* Paywall Modal Styles */
.paywall-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
}

.paywall-modal-content {
  background-color: var(--color-white);
  padding: var(--spacing-l);
  border-radius: 12px;
  max-width: 400px;
  width: 90%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  text-align: center;
  position: relative;
}

.paywall-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: none;
  border: none;
  font-size: 28px;
  line-height: 1;
  color: var(--color-dark-gray);
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color var(--transition-fast);
}

.paywall-modal-close:hover {
  color: #000;
}

.paywall-icon {
  font-size: 48px;
  margin-bottom: var(--spacing-m);
}

.paywall-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: var(--spacing-m);
  color: var(--color-dark-gray);
}

.paywall-message {
  font-size: 1rem;
  margin-bottom: var(--spacing-l);
  color: var(--color-dark-gray);
  line-height: 1.5;
}

.paywall-upgrade-btn {
  width: 100%;
  padding: 12px 24px;
  font-size: 1.1rem;
}

/* Success Modal Styles */
.success-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
}

.success-modal-content {
  background-color: var(--color-white);
  padding: var(--spacing-l);
  border-radius: 12px;
  max-width: 400px;
  width: 90%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  text-align: center;
  position: relative;
}

.success-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: none;
  border: none;
  font-size: 28px;
  line-height: 1;
  color: var(--color-dark-gray);
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color var(--transition-fast);
}

.success-modal-close:hover {
  color: #000;
}

.success-icon {
  font-size: 48px;
  margin-bottom: var(--spacing-m);
}

.success-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: var(--spacing-m);
  color: var(--color-dark-gray);
}

.success-message {
  font-size: 1rem;
  margin-bottom: var(--spacing-l);
  color: var(--color-dark-gray);
  line-height: 1.5;
}

.success-start-btn {
  width: 100%;
  padding: 12px 24px;
  font-size: 1.1rem;
}

/* Feedback Modal Styles */
.feedback-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
}

.feedback-modal-content {
  background-color: var(--color-white);
  padding: var(--spacing-l);
  border-radius: 12px;
  max-width: 450px;
  width: 90%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  position: relative;
}

.feedback-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: none;
  border: none;
  font-size: 28px;
  line-height: 1;
  color: var(--color-dark-gray);
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color var(--transition-fast);
}

.feedback-modal-close:hover {
  color: #000;
}

.feedback-modal-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: var(--spacing-l);
  color: var(--color-dark-gray);
}

.feedback-emoji-section {
  margin-bottom: var(--spacing-l);
}

.feedback-emoji-question {
  font-size: 0.95rem;
  color: var(--color-dark-gray);
  margin-bottom: var(--spacing-m);
  font-weight: 500;
}

.feedback-emoji-buttons {
  display: flex;
  gap: var(--spacing-m);
  justify-content: space-between;
}

.feedback-emoji-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-xs);
  background: none;
  border: 2px solid transparent;
  border-radius: 8px;
  padding: var(--spacing-s);
  cursor: pointer;
  transition: all var(--transition-fast);
}

/* Only apply hover on devices with mouse (not touch devices) */
@media (hover: hover) {
  .feedback-emoji-btn:hover {
    background-color: var(--color-light-gray);
  }
}

.feedback-emoji-btn:focus {
  outline: none;
}

.feedback-emoji-btn.selected {
  border-color: var(--color-blue);
  background-color: rgba(41, 216, 255, 0.1);
}

.feedback-emoji-btn.selected:focus {
  border-color: var(--color-blue);
  background-color: rgba(41, 216, 255, 0.1);
}

.feedback-emoji-btn:active {
  transform: scale(0.95);
}

.feedback-emoji-icon {
  font-size: 2rem;
}

.feedback-emoji-label {
  font-size: 0.75rem;
  color: var(--color-dark-gray);
}

.feedback-textarea-section {
  margin-bottom: var(--spacing-m);
}

.feedback-textarea-label {
  display: block;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-dark-gray);
  margin-bottom: var(--spacing-s);
}

.feedback-textarea {
  width: 100%;
  height: 100px;
  padding: var(--spacing-s);
  font-size: 0.95rem;
  border-radius: 8px;
  border: 1px solid var(--color-mid-gray);
  resize: vertical;
  font-family: var(--font-family-base);
  transition: border-color var(--transition-fast);
}

.feedback-textarea:focus {
  outline: none;
  border-color: var(--color-blue);
}

.feedback-textarea::placeholder {
  color: #999;
}

.feedback-char-counter {
  font-size: 0.75rem;
  color: #999;
  text-align: right;
  margin-top: 4px;
}

.feedback-checkbox-section {
  margin-bottom: var(--spacing-l);
}

.feedback-checkbox-label {
  display: flex;
  align-items: center;
  gap: var(--spacing-s);
  font-size: 0.9rem;
  color: var(--color-dark-gray);
  cursor: pointer;
}

.feedback-checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: var(--color-blue);
}

.feedback-submit-btn {
  width: 100%;
  padding: 12px 24px;
  font-size: 1rem;
  border-radius: 8px;
  transition: all var(--transition-fast);
}

.feedback-submit-btn.btn-secondary {
  background-color: var(--color-mid-gray);
  color: #000;
  border: none;
}

.feedback-submit-btn.btn-primary {
  background-color: var(--color-blue);
  color: #000;
  border: none;
}

.feedback-submit-btn:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .feedback-modal-content {
    max-width: 95%;
  }

  .feedback-emoji-buttons {
    gap: var(--spacing-s);
  }

  .feedback-emoji-icon {
    font-size: 1.75rem;
  }

  .feedback-emoji-label {
    font-size: 0.7rem;
  }
}

/* Video Component Utility Classes */
.video-container {
  position: relative;
  width: 100vw;
  height: 100vh;
}

.camera-error-notification {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: rgba(0, 0, 0, 0.7);
  color: white;
  padding: var(--spacing-s) 12px;
  border-radius: 4px;
  font-size: 14px;
  z-index: 9999;
}

.upload-status-indicator {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: rgba(0, 0, 0, 0.7);
  color: white;
  padding: var(--spacing-s) 12px;
  border-radius: 4px;
  font-size: 14px;
  z-index: 9999;
}

.privacy-notice {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  width: 90vw;
  text-align: center;
  font-size: 1.0rem;
  color: white;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6);
  z-index: 9998;
  pointer-events: none;
}

.countdown-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
}

/* ------------------------------------------------------------------------------
# OLDER CSS
# ------------------------------------------------------------------------------ */


.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: calc(100vh - 100px); /* Reserve ~100px for pinned buttons + margin */
  padding: 0 20px;
  box-sizing: border-box;
}


body {
  background-image: url('/static/trip_tracker/sunnyLakeClose.jpg');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: fixed;  /* Keeps lake stationary for elegant scrolling */
  min-height: 100vh;              /* Guarantees full viewport height, prevents white gaps */
  font-family: var(--font-family-base);
  font-size: var(--font-size-body);
  color: var(--color-dark-gray);
  line-height: 1.5;
}


/* 🔍 Possibly tied to Finish Chat – revisit in bug phase
@keyframes flashing {
  0%,
  100% {
    background-color: salmon;
    color: white;
    border-color: red;
  }
  50% {
    background-color: white;
    color: #0e6e7e;
    border-color: #0e6e7e;
  }
}
*/


.navbar {
  background-color: #e2f5f6;
  position: relative;
  overflow: visible;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 9999;
}

#navbar-logo {
  padding: 0;
  width: auto;
  height: 24px;
}

@media (max-width: 600px) {
  #navbar-logo {
    height: 30px; /* adjust this value as needed */
  }
}

.brand-text {
  margin-left: 8px; /* adjust as needed */
}

.dropdown-menu {
  position: absolute;
  float: right;
  z-index: 1000; /* high value to ensure it's on top */
}

.navbar-toggler {
  float: left;
}

.navbar-collapse {
  text-align: right;
}

.navbar-nav {
  justify-content: flex-end;
}


.container {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  padding: 20px;
  height: calc(100vh - 64px);
  width: 100%;
  background-color: transparent;
  border-radius: 16px;
}

.dashboard-video-container {
  height: auto; /* Remove the fixed height */
  padding-top: 70px; /* To push it below the navbar */
  justify-content: flex-start; /* To start content from the top */
}




/* 🔍 Possibly tied to Finish Chat – revisit in bug phase
.recording {
  animation: flashing 3s infinite;
  Other button styles
}
*/


.video_container {
  position: relative;
  height: calc(100vh - 64px); /* or calc(100vh - 64px) if you want the navbar visible */
  width: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

/* calling out a class, e.g. dashboard, to have a no-image background */
.noImgBg-body {
  background-image: none; /* Remove the background image */
  background-color: #ffffff; /* Set the background to white */
}


#localVideo,
#synthesiaVideo {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  margin: 0;
  padding: 0;
}

.modal {
  top: 30%;
}


/* Responsive adjustments for smaller screens */
@media screen and (max-width: 1400px) and (max-height: 1000px) {
  body {
    overflow-y: auto;
  }
}


  /***********************************************
   * Subtitles
   ***********************************************/

video::cue {
  /* Positioning */
  position: relative;
  bottom: 80px;             /* Moves subtitles up by 60px from the bottom edge of the video */

  /* Text Sizing & Spacing */
  font-size: 1em;           /* Make text a bit smaller than before */
  line-height: 1.4;         /* Add breathing room between lines */

  /* Colors & Background */
  color: white;
  background: rgba(0, 0, 0, 0.6);
  padding: 5px 10px;
  border-radius: 8px;

  /* Center alignment if desired */
  text-align: center;
}

/* Video fullscreen container styles */
.video-fullscreen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 10000;
  background-color: black;
}

.video-element {
  width: 100%;
  height: 100%;
  object-fit: cover;
}


/* Mirror only the live camera preview (not intro/outro videos) */
#localVideo {
  transform: scaleX(-1);
}

/* Mirror dashboard thumbnail images (View 2) */
.card-img-top img {
  transform: scaleX(-1);
}

/* Mirror dashboard video playback (Views 3 & 4) */
video.card-img-top {
  transform: scaleX(-1);
}

/* Unflip video controls so they stay correctly oriented */
video.card-img-top::-webkit-media-controls-panel {
  transform: scaleX(-1);
}
