html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

html, body {
    height: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
}

.container {
    flex: 1;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

footer {
    padding-bottom: 10px;
}

.listing-section {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 40px;
}

.listing-card {
    flex: 1 1 calc(33.333% - 20px);
    display: flex;
    flex-direction: column;
    border: 1px solid #ccc;
    padding: 15px;
    box-sizing: border-box;
    min-width: 250px;
}

/* Image container styling */
.img-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 150px;
    margin-bottom: 10px;
}

.img-placeholder {
    width: 100%;
    height: 150px;
    background-color: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.listing-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.listing-info a {
    align-self: flex-start;
    text-decoration: none;
    color: #258cfb;
    font-weight: bold;
}

/* New: ensure listing images are 200px wide with preserved aspect ratio and centered */
.listing-img, .monster-image {
    width: 200px;    /* force width to 200px */
    height: auto;    /* preserve aspect ratio */
    object-fit: contain; /* ensure the image scales inside its box */
    display: block;
    margin: 0 auto 10px; /* center horizontally with auto margins */
}
