:root {
  --bgcolor-gray-100: #fff;
  --bgcolor-gray-150: #fafafa;
  --bgcolor-accent: #fff9f6;
}

/* body {
    color: #000;
} */

.image-max-h {
  max-height: 550px;
  /* width: 1200px; */
  object-fit: cover;
}

.hidden {
  display: none !important;
}

.included-col {
  padding-left: 1.5rem;
}

.cta-section {
  color: var(--color-background) !important;
  padding-bottom: 2.5rem;
  padding-top: 2.5rem;
  background-image: url("/static/images/Landing_hero_2.jpg");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  height: 500px;
  width: 100%;
}

/* Default font sizes for headers */
h1 {
  font-size: 2.2em;
  font-family: var(--font-headers);
  font-weight: var(--font-headers-weight);
}

h2 {
  font-size: 1.8em;
}

h3 {
  font-size: 1.6em;
}

#footer-body,
#account-footer-body {
  background-color: #ffffff00;
}

#menuOverlay {
  position: fixed; /* Fixed position */
  top: 70px; /* Adjust this value based on your header's actual height */
  bottom: 0; /* Align to the bottom */
  right: 0; /* Align to the right */
  left: 0; /* Align to the left */
  z-index: 100; /* Lower z-index */
  background-color: rgba(
    255,
    255,
    255,
    0.9
  ); /* Slightly transparent white background */
  overflow-y: auto; /* Enable scroll if content is long */
}

#nav-menu {
  z-index: 101; /* Higher z-index to ensure it's above the overlay */
  width: 100%;
}
#loginBtn {
  width: 100%;
}

#entry-section {
  height: 90%;
}

.journal-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 0 1rem;
}

/* consistent thin scrollbar for textarea */
#journal-textarea {
  resize: vertical;
  overflow-y: auto;
}
#journal-textarea::-webkit-scrollbar {
  width: 5px;
}
#journal-textarea::-webkit-scrollbar-thumb {
  background-color: rgba(0, 0, 0, 0.4);
}
#journal-textarea::-webkit-scrollbar-track {
  background: transparent;
}

.btn-primary:focus {
  border-color: var(--color-accent);
}
.btn-primary:active {
  border-color: var(--color-accent);
  color: #fff;
}

.login-link {
  color: var(--color-link);
  text-decoration: none;
  font-size: 1rem;
  transition: color 0.3s;
  display: block;
  margin-left: auto;
  margin-right: auto;
  margin-top: 10px;
}

.login-link:hover {
  color: var(--color-link-hover);
}

.dynamic-product-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}
.product-flex-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  padding: 1rem 0;
}

.product-card {
  flex: 1 1 16rem; /* min-width of 280px, grow to fill space */
  max-width: 18rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%; /* ensures internal height matching works */
  border: 1px solid #ddd;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
}

.card-body {
  display: flex;
  flex-direction: column;
  flex-grow: 1; /* take up space to push button to bottom */
}

.card-body .btn {
  margin-top: auto; /* pins button to bottom */
}

.card-img-top {
  width: 100%;
  height: 300px; /* or any fixed value */
  object-fit: cover; /* crop without distortion */
  object-position: center;
}

.disabled-card {
  pointer-events: none;
}

.form-signin {
  width: 100%;
  max-width: 330px;
  padding: 15px;
  margin: auto;
}

.form-signin .checkbox {
  font-weight: 400;
}

.form-signin .form-floating:focus-within {
  z-index: 2;
}

.form-signin input[type="email"] {
  margin-bottom: -1px;
  border-bottom-right-radius: 0;
  border-bottom-left-radius: 0;
}

.form-signin input[type="phone"] {
  margin-bottom: -1px;
  border-bottom-right-radius: 0;
  border-bottom-left-radius: 0;
  border-top-right-radius: 0;
  border-top-left-radius: 0;
}

.form-signin input[type="password"] {
  margin-bottom: 10px;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}

.body-no-scroll {
  overflow: hidden; /* Prevent scrolling */
  pointer-events: none; /* Prevent clicks */
}
.body-no-scroll .menuOverlay,
.body-no-scroll #menu-toggle {
  pointer-events: auto; /* Re-enable clicks for menu and toggle */
}

#story {
  max-height: calc(1.5em * 15);
  /* 1.5em is approx height per line for default font-size, multiplied by 15 for 15 lines */
  overflow-y: auto;
  /* make it scrollable when content exceeds max-height */
}

#sendButton {
  width: 100%;
}

#activitySelector {
  border-color: aliceblue;
}

#faq {
  max-width: 48rem;
}

.light-accent-card {
  background-color: var(--bgcolor-accent);
  border-color: transparent !important;
}

.header-container {
  background: linear-gradient(to bottom, white 0%, white 80%, transparent 100%);
}

.product-text-area {
  width: 100%;
  min-height: 200px;
  resize: vertical;
  overflow-y: auto;
}

.bodyPurposeQuest {
  display: flex;
  align-items: center;
}

.image-badge-container {
  position: relative;
}

.token-status-label {
  position: absolute;
  top: 10px; /* You can adjust this value based on the spacing you want */
  right: 10px; /* Same goes for this value */
  z-index: 1; /* To ensure it stays on top of the image */
}

.btn {
  min-width: 100px;
  font-size: 1rem;
  --bs-btn-line-height: 1;
  max-width: 300px;
  padding: 0.6rem 1rem;
}

.custom-icon {
  font-size: 30px !important;
  color: var(--color-accent);
  vertical-align: middle;
}

.sub-text {
  font-size: 0.875rem; /* Assuming your base font size is 16px, this will set it to 14px. Adjust as needed. */
  color: var(--color-secondary);
}

.settings-content {
  max-width: 900px;
}

.nav-item:hover {
  background-color: #f8f9fa; /* A light grey background on hover */
  cursor: pointer; /* Changes the cursor to a pointer to indicate it's clickable */
}

.nav-link:active {
  background-color: #e9ecef; /* A slightly darker grey to simulate a click */
}

hr {
  margin: 0 2rem;
}

@media (min-width: 992px) {
  h1 {
    font-size: 2em;
  }

  h2 {
    font-size: 1.6em;
  }

  h3 {
    font-size: 1.4em;
  }
  #menu-toggle,
  #nav-menu,
  #loginBtn {
    width: 40%;
  }
  #sendButton,
  #submitBtn {
    width: 30%;
  }
  h4 {
    font-size: 1.2em;
  }
}

@media (max-width: 992px) {
  h1 {
    font-size: 2em;
  }

  h2 {
    font-size: 1.6em;
  }

  h3 {
    font-size: 1.4em;
  }
  h4 {
    font-size: 1.2em;
  }
  #nav-menu,
  #loginBtn {
    width: 50%;
  }
  #sendButton,
  #submitBtn {
    width: 40%;
  }
}

@media (max-width: 768px) {
  body {
    font-size: 16px;
  }
  .settings-content {
    padding-top: 4.5rem !important;
  }
  h1 {
    font-size: 1.8em;
  }

  h2 {
    font-size: 1.6em;
  }

  h3 {
    font-size: 1.4em;
  }
  h4 {
    font-size: 1.2em;
  }
  #menu-toggle,
  #nav-menu,
  #loginBtn {
    width: 100%;
  }
  #sendButton,
  #submitBtn {
    width: 100%;
  }
  .form-signin {
    width: 100%;
    max-width: 100%;
    padding: 15px;
    margin: auto;
  }
  .btn {
    font-size: 0.85rem;
    padding: 0.4rem 0.75rem;
    max-width: 100%;
  }

  .mobile-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1050;
    height: 4rem;
    background-color: #fff;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    padding: 0 1rem;
  }

  .mobile-title {
    white-space: nowrap;
    overflow: hidden;
    top: 1.7rem;
    text-align: center;
    font-size: 1.2rem;
    font-weight: 600;
    pointer-events: none;
  }

  .hamburger-button {
    background: none;
    border: none;
    font-size: 1.5rem;
    padding: 0;
    line-height: 1;
  }

  .sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1000;
  }

  .sidebar-menu {
    width: 260px;
    background: #fff;
    height: 100%;
    padding: 1rem;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.2);
  }

  .hidden {
    display: none !important;
  }
}
