/* The public website's look, over Bootstrap: the app's purple (xen-habits/src/config/colors.ts) in place of Bootstrap's
   blue. White on #710071 is 10.8:1 and #5a005a (hover) 13:1, so text and buttons meet WCAG AA either way. */
:root {
  --bs-primary: #710071;
  --bs-primary-rgb: 113, 0, 113;
  --bs-primary-text-emphasis: #2d002d;
  --bs-primary-bg-subtle: #f1e0f1;
  --bs-primary-border-subtle: #c699c6;
  --bs-link-color: #710071;
  --bs-link-color-rgb: 113, 0, 113;
  --bs-link-hover-color: #5a005a;
  --bs-link-hover-color-rgb: 90, 0, 90;
  --bs-focus-ring-color: rgba(113, 0, 113, 0.25);
}

.btn-primary {
  --bs-btn-bg: #710071;
  --bs-btn-border-color: #710071;
  --bs-btn-hover-bg: #5a005a;
  --bs-btn-hover-border-color: #550055;
  --bs-btn-focus-shadow-rgb: 134, 38, 134;
  --bs-btn-active-bg: #5a005a;
  --bs-btn-active-border-color: #550055;
  --bs-btn-disabled-bg: #710071;
  --bs-btn-disabled-border-color: #710071;
}

.btn-outline-primary {
  --bs-btn-color: #710071;
  --bs-btn-border-color: #710071;
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: #710071;
  --bs-btn-hover-border-color: #710071;
  --bs-btn-focus-shadow-rgb: 113, 0, 113;
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: #710071;
  --bs-btn-active-border-color: #710071;
  --bs-btn-disabled-color: #710071;
  --bs-btn-disabled-border-color: #710071;
}

.dropdown-menu {
  --bs-dropdown-link-active-bg: #710071;
}

.navbar-brand img {
  height: 40px;
  width: 40px;
  margin-right: 10px;
}

.habit-card {
  transition: transform 0.2s ease-in-out;
  border: none;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.habit-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.duration-badge {
  background: linear-gradient(45deg, #710071, #5a005a);
}

/* The stores' official badges, at their artwork's height (Apple asks for at least 40px). */
.store-badge {
  display: inline-block;
  line-height: 0;
  border-radius: 0.5rem;
}

.store-badge img {
  height: 48px;
  width: auto;
}

.store-badge:focus-visible {
  outline: 3px solid rgba(113, 0, 113, 0.5);
  outline-offset: 3px;
}

.home-headline {
  line-height: 1.15;
}

/* A page's introduction: the body font at its normal weight, a little larger on wider screens. */
.page-lead {
  font-size: 1rem;
}

.home-app-screen {
  width: 100%;
  max-width: 270px;
  height: auto;
  border-radius: 1.25rem;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.18);
}

@media (min-width: 768px) {
  .page-lead {
    font-size: 1.25rem;
  }

  .home-app-screen {
    max-width: 400px;
  }
}

.language-selector .dropdown-toggle::after {
  margin-left: 0.5em;
}

footer {
  background-color: #f8f9fa;
  margin-top: auto;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
}
