/* -------------------------------------------------------
   Global base
------------------------------------------------------- */

html {
  font-size: 15px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

html,
body {
  margin: 0;
  padding: 0;

  background-color: #f5f6f8;

  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    Helvetica,
    Arial,
    sans-serif;

  color: #1d1d1f;
  line-height: 1.6;
}

.page-content {
  flex: 1;
  padding-bottom: 100px;
}


/* -------------------------------------------------------
   Typography
------------------------------------------------------- */

/* Prevent Bootstrap from centering long text blocks */
main p,
main li {
  text-align: left;
}


/* -------------------------------------------------------
   Navbar
------------------------------------------------------- */

.navbar {
  background-color: rgba(255, 255, 255, 0.85) !important;

  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
}

.navbar-brand {
  font-weight: 600;
  letter-spacing: -0.01em;
}

.header-memoji {
  width: 64px;
  height: 64px;

  display: block;
  object-fit: cover;

  border-radius: 50%;
}

.nav-link {
  font-weight: 500;
  color: #3a3a3c !important;
}

.nav-link:hover {
  color: #000 !important;
}

@media (min-width: 576px) {
  .navbar-nav {
    gap: 14px;
  }
}


/* -------------------------------------------------------
   Buttons & focus
------------------------------------------------------- */

.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
  box-shadow: 0 0 0 0.15rem rgba(0, 122, 255, 0.35);
}


/* -------------------------------------------------------
   Forms
------------------------------------------------------- */

.form-floating > .form-control-plaintext::placeholder,
.form-floating > .form-control::placeholder {
  color: #8e8e93;
  text-align: start;
}


/* -------------------------------------------------------
   Utilities
------------------------------------------------------- */

.box-shadow {
  box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.06);
}


/* -------------------------------------------------------
   iApps Footer
------------------------------------------------------- */

.iapps-footer {
  padding: 64px 0 40px;

  background: #f5f5f7;
  border-top: 1px solid #d2d2d7;

  color: #6e6e73;
  font-size: 14px;
}

.footer-container {
  max-width: 1100px;

  margin: 0 auto;
  padding: 0 24px;
}


/* Footer top
------------------------------------------------------- */

.footer-top {
  margin-bottom: 28px;
}

.footer-brand {
  margin-bottom: 10px;

  color: #1d1d1f;

  font-size: 28px;
  font-weight: 600;

  letter-spacing: -0.01em;
}

.footer-tagline {
  margin: 0;

  color: #6e6e73;

  font-size: 16px;
  line-height: 1.6;
}


/* Footer author link
------------------------------------------------------- */

.iapps-footer .footer-tagline a,
.iapps-footer .footer-tagline a:visited {
  color: inherit;
  font-weight: inherit;
  text-decoration: none;
}

.iapps-footer .footer-tagline a:hover,
.iapps-footer .footer-tagline a:focus {
  color: inherit;
  text-decoration: none;
}

.iapps-footer .footer-tagline a:focus-visible {
  outline: 2px solid rgba(66, 66, 69, 0.45);
  outline-offset: 3px;

  border-radius: 3px;
}


/* Footer divider
------------------------------------------------------- */

.footer-divider {
  height: 1px;

  margin: 36px 0 24px;

  background: #d2d2d7;
}


/* Footer bottom
------------------------------------------------------- */

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;

  gap: 14px;
}

.footer-copyright {
  margin: 0;

  color: #86868b;

  font-size: 13px;
}


/* Footer navigation
------------------------------------------------------- */

.footer-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;

  gap: 22px;

  font-size: 13px;
}

.footer-links a {
  position: relative;

  color: #424245;
  text-decoration: none;

  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: #000;
  text-decoration: none;
}


/* Footer underline animation */

.footer-links a::after {
  content: "";

  position: absolute;
  left: 0;
  bottom: -4px;

  width: 0;
  height: 1px;

  background: #424245;

  transition: width 0.25s ease;
}

.footer-links a:hover::after,
.footer-links a.active::after {
  width: 100%;
}


/* Footer navigation keyboard focus */

.footer-links a:focus-visible {
  outline: 2px solid rgba(66, 66, 69, 0.45);
  outline-offset: 5px;

  border-radius: 3px;
}


/* -------------------------------------------------------
   Responsive
------------------------------------------------------- */

@media (max-width: 768px) {

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;

    gap: 12px;
  }

  .footer-links {
    column-gap: 14px;
    row-gap: 10px;
  }

}