body {
    background-color: antiquewhite;
    background-image: url("../img/background.png");
    background-repeat: repeat;
}

.logo {
    max-height: 180px;
    border: none;
    margin: 0 auto;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin-top: 0;
    padding-top: 0;
}

.text-white {
    color: white;
}

/* Custom styling to fix image aspect ratios in Paper.css cards */
.card-image {
    width: 100%;
    height: 175px;
    overflow: hidden;
    border-bottom: 2px solid #41403e;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: .5rem;
}

.card-image img {
    width: auto;
    height: 175px;
    object-fit: contain;
    display: block;
}

.card-body {
    padding: 1rem !important;
    padding-top: .5rem !important;
}

.card-text {
    min-height: 3rem !important;
}

/* Flex helpers */
.flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.flex-center {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.icon-text {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.9rem;
}

main {
    flex: 1;
}

.card {
    position: relative;
    background: #fff;
    /* FLEX UPDATE: Ensure card takes full height of column */
    display: flex;
    flex-direction: column;
    margin-bottom: .5rem;
    margin-left: .25rem;
    margin-right: .25rem;
}

.card-body {
    /* FLEX UPDATE: Ensure body grows and aligns footer to bottom */
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

/* FLEX UPDATE: Push the stats row (last child) to the bottom */
.card-body>.row:last-child {
    margin-top: auto;
}

/* New CSS to stack the badges */
.badge-stack {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 5px;
    align-items: flex-end;
}

.difficulty-badge,
.two-player-badge {
    margin: 0 !important;
    line-height: 1;
    padding: 0.3rem 0.6rem;
}

.filter-controls label {
    font-weight: bold;
    display: block;
    margin-bottom: 0.25rem;
}

.filter-controls input[type="number"],
.filter-controls select {
    width: 100%;
}

a {
    background-image: none;
}

.social-icons {
    margin: 0 auto;
    margin-top: 1rem;
}

.social-icons a {
    margin: .5rem;
}

.light {
    background-color: mediumaquamarine;
    color: black;
}

.med-light {
    background-color: peachpuff;
    color: black
}

.medium {
    background-color: purple;
    color: white;
}

.med-heavy {
    background-color: yellow;
    color: black;
}

.heavy {
    background-color: red;
    color: black;
}