/* =========================================================
   new-lite.css  (for MAX landing page)
   Minimal Bootstrap-like helpers actually used on test-b.html
   ======================================================= */

/* ---- Global reset bits you were relying on ---- */

html {
  box-sizing: border-box;
}

*, *::before, *::after {
  box-sizing: inherit;
}

img {
  max-width: 100%;
  height: auto;
  border-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* ---- Containers ---- */

.container,
.container-fluid {
  width: 100%;
  margin-right: auto;
  margin-left: auto;
  padding-right: 15px;
  padding-left: 15px;
}

/* responsive max-width like Bootstrap 4 */
.container {
  max-width: 100%;
}

@media (min-width: 576px) {
  .container {
    max-width: 540px;
  }
}

@media (min-width: 768px) {
  .container {
    max-width: 720px;
  }
}

@media (min-width: 992px) {
  .container {
    max-width: 960px;
  }
}

@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }
}

/* ---- Grid: row + cols ---- */

.row {
  display: flex;
  flex-wrap: wrap;
  margin-right: -15px;
  margin-left: -15px;
}

[class^="col-"],
[class*=" col-"] {
  position: relative;
  width: 100%;
  padding-right: 15px;
  padding-left: 15px;
}

/* col-md-6: 2-up from 768px+ */
@media (min-width: 768px) {
  .col-md-6 {
    flex: 0 0 50%;
    max-width: 50%;
  }
}

/* col-lg-4: 3-up from 992px+ */
@media (min-width: 992px) {
  .col-lg-4 {
    flex: 0 0 33.3333%;
    max-width: 33.3333%;
  }
}

/* Align helper used on .row */
.align-items-stretch {
  align-items: stretch !important;
}

/* ---- Navbar ---- */

.navbar {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding: .5rem 1rem;
}

/* brand */
.navbar-brand {
  display: inline-flex;
  align-items: center;
  margin-right: 1rem;
  font-size: 1.25rem;
  line-height: 1.2;
}

.navbar-light .navbar-brand {
  color: rgba(0, 0, 0, 0.9);
}

.navbar-light .navbar-brand:hover,
.navbar-light .navbar-brand:focus {
  color: rgba(0, 0, 0, 0.9);
}

/* nav list */
.navbar-nav {
  display: flex;
  flex-direction: row;
  padding-left: 0;
  margin-bottom: 0;
  list-style: none;
}

/* ---- Buttons ---- */

.btn {
  display: inline-block;
  font-weight: 400;
  color: #666;
  text-align: center;
  white-space: nowrap;
  vertical-align: middle;
  user-select: none;
  border: 1px solid transparent;
  padding: 0.375rem 0.75rem;
  font-size: 1rem;
  line-height: 1.5;
  border-radius: 0.25rem;
  transition:
    background-color 0.15s ease-in-out,
    border-color 0.15s ease-in-out,
    box-shadow 0.15s ease-in-out,
    transform 0.15s ease-in-out;
  cursor: pointer;
}

.btn-primary {
  color: #fff;
  background-color: #17a2b8;
  border-color: #17a2b8;
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: #138496;
  border-color: #117a8b;
}

/* ---- Spacing utilities ---- */

.p-3 {
  padding: 1rem !important;
}

.pb-3 {
  padding-bottom: 1rem !important;
}

.pt-5 {
  padding-top: 3rem !important;
}

.py-0 {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

.mx-auto {
  margin-left: auto !important;
  margin-right: auto !important;
}

.mb-4 {
  margin-bottom: 1.5rem !important;
}

/* ---- Text & font utilities ---- */

.text-center {
  text-align: center !important;
}

.text-primary {
  color: #17a2b8 !important;
}

.text-secondary {
  color: #00394f !important;
}

.text-white {
  color: #fff !important;
}

.font-weight-bold {
  font-weight: 700 !important;
}

/* ---- Misc helpers ---- */

.shadow {
  box-shadow: 0 .5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

.position-relative {
  position: relative !important;
}

/* ---- Special fix: copyright line shouldn't be white on white ---- */
/* This targets ONLY the p.text-center.text-white immediately after the <hr> */
hr + p.text-center.text-white {
  color: #233756 !important;
}

/* Fix vertical alignment for logo + "Where's my Max books?" */
.navbar .where {
  display: block;
  margin-top: -4px;   /* pulls text UP to original Bootstrap position */
  line-height: 1.1;
}
.navbar img {
  vertical-align: middle;
}

