@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: #29D8FF;      /* 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: 0.5rem;
  padding: var(--spacing-s) var(--spacing-m);
  cursor: pointer;
  transition: background-color 0.2s ease-in-out, 
              color 0.2s ease-in-out,
              border-color 0.2s ease-in-out;
}

.btn-primary {
  background-color: var(--color-blue);
  color: var(--color-dark-gray);
  border: 2px solid var(--color-blue);
}
.btn-primary:hover {
  background-color: var(--color-white);
  color: var(--color-dark-gray);
}

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

.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);
}

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

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

/* ------------------------------------------------------------------------------
# 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;
}

/* ------------------------------------------------------------------------------
# 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;
  font-family: var(--font-family-base);
  font-size: var(--font-size-body);
  color: var(--color-dark-gray);
  line-height: 1.5;
}


@keyframes flashing {
  0%,
  100% {
    background-color: salmon;
    color: white;
    border-color: red;
  }
  50% {
    background-color: white;
    color: #0e6e7e;
    border-color: #0e6e7e;
  }
}


.navbar {
  background-image: url('https://static.wixstatic.com/media/4d3b6d_5d30b755edae4120988021480195abbd~mv2.png');
  background-size: cover;
  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: 38px;
}

@media (max-width: 600px) {
  #navbar-logo {
    height: 48px; /* 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 */
}




.recording {
  animation: flashing 3s infinite; /* Flashing every 2 seconds */
  /* 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%;
}


  /***********************************************
   * Styling for smalle screens and devices
   ***********************************************/

@media screen and (max-width: 1400px) and (max-height: 1000px) {
  

  /* Allow vertical scrolling */
  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;
}

