/*
 * Stylesheet for TreasureX
 * Copyright 2020
 */
/*
 * For some reason card-deck styles only apply sm-up, which forces the cards to
 * be full-width on xs screens. This breaks the way categories are displayed on
 * xs displays. This code is lifted straight from _card.scss to force that
 * change to apply on all screen sizes.
 */
.card-deck {
  display: flex;
  flex-flow: row wrap;
  margin-right: -15px;
  margin-left: -15px;
}

.card-deck .card {
  flex: 1 0 0%;
  margin-right: 15px;
  margin-bottom: 0;
  margin-left: 15px;
}

html {
  /* Required for sticky footer */
  position: relative;
  min-height: 100%;
}

body {
  /* Required for sticky footer */
  margin-bottom: 100px;
}

.footer {
  /* Required for sticky footer */
  position: absolute;
  bottom: 0;
  width: 100%;
  padding-top: 1em;
  padding-bottom: 1em;
  background-color: #f5f5f5;
}

.mt-navbar {
  padding-top: 5em;
  padding-bottom: 1em;
}

h1, h2, .text-emph {
  font-family: "Francois One", sans-serif;
}

h1 .badge, h2 .badge, .text-emph .badge {
  font-family: "Lato", sans-serif;
}

.listing-container {
  margin-top: 0.75em;
  margin-bottom: 0.75em;
}

/* Forces the <img> inside to fit inside a 4:3 ratio box */
.aspect-ratio-box {
  position: relative;
}

.aspect-ratio-box::after {
  display: block;
  content: '';
  padding-bottom: 75%;
}

.aspect-ratio-box img {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.jumbotron.marketplace {
  height: 35em;
}

@media (max-width: 767.98px) {
  .jumbotron.marketplace {
    height: 22em;
  }
}

.jumbotron.marketplace .container {
  padding: 6em;
}

@media (max-width: 767.98px) {
  .jumbotron.marketplace .container {
    padding: 2em;
  }
}

@media (max-width: 575.98px) {
  .jumbotron.marketplace .container {
    padding: 3.5em;
  }
}

.jumbotron.marketplace h1 {
  letter-spacing: 0.15em;
}

@media (max-width: 767.98px) {
  .jumbotron.marketplace h1 {
    font-size: 2.5em;
  }
}

.jumbotron.marketplace p {
  font-size: 1.75em;
}

@media (max-width: 767.98px) {
  .jumbotron.marketplace p {
    font-size: 1em;
  }
}

.message {
  border-radius: 1em;
}

.bg-primary a {
  color: #fff;
}
