.ban-icon-img {
    max-width: 20px;
}

.ban-icon-card {
    position: absolute;
    text-align: center;
    left: -1%;
    top: -1%;
    font-size: 25px;
    color: #f44336;
    stroke: #000;
}

#weighted-score{
    cursor: pointer;
    color: #17a2b8;
    text-decoration:underline;
    text-decoration-style: dotted;
}

.card-overlay {
    position: relative;
    display: inline-block;
}

.card-overlay img {
    display: block;
    width: 100%;
    height: auto;
}

.overlay-text {
    position: absolute;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7); /* Semi-transparent black */
    color: white; /* White text */
    width: 100%;
    padding: 5px;
    font-size: 10px;
    text-align: center;
}
.cardimg {
    width: 150px;
    margin-left: auto;
    margin-right: auto;
    display: block;
}
.md-card-usage-nav {
    overflow-x: auto;
}
.custom-badge {
    background: #E9FAFB;
    color: #177E89;
}
[data-bs-theme="dark"] .custom-badge {
    background: #0B4349;
    color: #D4D1D0;
}
.season-badge {
    padding: 3px 4px;
    border-radius: 4px;
    background: #FCF1E9;
    color: #7D3E12;
    font-size: 12px;
    font-weight: 500;
}
.select-season {
    padding: 6px 30px 6px 12px;
    appearance: none;
    background-repeat: no-repeat;
    background-size: 16px;
    background-position: right 0.75rem center;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    background-color: #F8F9FA;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
}
.select-season:focus {
    background-color: #F8F9FA;
}
[data-bs-theme="dark"] .select-season {
    background-color: #212528;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23dedede' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
}
.container-card {
    border-radius: 8px;
    box-shadow: 0px 4px 20px 0px rgba(0, 0, 0, 0.10);
}

/* relevant tier list css */
.tier-div {
    display: flex;
    flex-wrap: wrap;
    --columnGap: 0.25rem;
    margin-left: calc(-1 * var(--columnGap));
    margin-right: calc(-1 * var(--columnGap));
}
.tier-heading {
    font-family: 'Bebas Neue';
}
.md-card-container {
    width: 25%;
    padding: 4px;
    transition: all 0.2s ease-in-out;
    will-change: transform;
}
.md-card-container:hover {
    transform: scale(1.03);
}
.md-card-content {
    background-repeat: no-repeat !important;
    background-size: cover !important;
    background-position: center top !important;
    border-radius: 8px;
    box-shadow: 0px 4px 20px 0px rgba(0, 0, 0, 0.10);
}
.md-card-overlay {
    border-radius: 8px;
    padding: 16px;
    gap: 8px;
    background: rgba(2, 1, 34, 0.70);
    transition: all 0.2s ease-in-out;
}
.md-card-overlay:hover {
    background: rgba(2, 1, 34, 0.90);
}
.md-archetype-name {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    flex-grow: 1;
    text-overflow: ellipsis;
    font-size: 20px;
    font-weight: 500;
}
.score-icon {
    width: 32px;
    height: 32px;
}
.score-value {
    font-family: 'Bebas Neue';
    color: white;
    font-size: 24px;
    line-height: normal;
}
.md-stat {
    max-width: 94px;
    gap: 4px;
}
.md-stat-text {
    font-size: 13px;
    font-weight: 500;
}
.md-stat-pill {
    padding: 4px 8px;
    background: rgba(0, 0, 0, 0.60);
    border: 1px solid rgba(0, 0, 0, 0.60);
    border-radius: 100px;
    font-weight: 700;
    line-height: normal;
}
@media (max-width: 575px) {
    .md-card-container {
        width: 100%;
    }
}
@media (min-width: 576px) and (max-width: 991px) {
    .md-card-container {
        width: 50%;
    }
}
@media (min-width: 992px) and (max-width: 1199px) {
    .md-card-container {
        width: 33.3333333333%;
    }
}
/* relevant tier list css */

/* relevant MD home page css */
.fade-effect {
    animation-name: fade-motion;
    animation-timing-function: cubic-bezier(0.42, 0, 0.58, 1);
    animation-duration: 3s;
}
@keyframes fade-motion {
    0% {opacity: 0}
    10% {opacity: 1}
    50% {opacity: 1}
    100% {opacity: 0}
}
.arrow-btn {
    border: 1px solid #DFDFDF;
    background: #F8F9FA;
    width: 38px;
}
[data-bs-theme="dark"] .arrow-btn {
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: #43464D;
    color: #D4D1D0;
}
.arrow-btn:hover, .arrow-btn:focus, .arrow-btn:active {
    background: #CFCFCF;
}
[data-bs-theme="dark"] .arrow-btn:hover, [data-bs-theme="dark"] .arrow-btn:focus, [data-bs-theme="dark"] .arrow-btn:active {
    background: #303237;
}
.step-btn {
    width: 8px;
    height: 8px;
    border-radius: 8px;
    background-color: #E9ECEF;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
.step-btn:hover {
    background-color: #bac0c4;
    transition: background-color 0.3s ease;
}
.step-btn.active {
    background-color: #69747C;
    transition: background-color 0.3s ease;
}
/* relevant MD home page css */

/* ========== TCG/OCG Deck Breakdown Page ========== */
.inner-card {
    border: 1px solid rgba(108, 117, 125, 0.5);
    box-shadow: 0px 4px 20px 0px rgba(0, 0, 0, 0.1);
}
[data-bs-theme="dark"] .inner-card { background-color: #181818; }
.staples .cardimg,
.engine .cardimg,
.techs .cardimg {
    width: 80px;
    height: auto;
}
@media screen and (max-width: 575px) {
    .staples .cardimg,
    .engine .cardimg {
        width: 60px;
    }
}
.top-deck-sample, .common-main-ratio, .common-extra-ratio { padding: 12px; }
.card-item { width: 16.66666667%; }
@media screen and (max-width: 575px), (min-width: 991.02px) and (max-width: 1199px) {
    .card-item { width: 20%; }
}
@media screen and (min-width: 983px) and (max-width: 991px) {
    .card-item { width: 25%; }
}
.card-item-v2 { width: 8.333333333%; }
@media screen and (max-width: 575px) {
    .card-item-v2 { width: 20%; }
}
@media screen and (min-width: 575.02px) and (max-width: 982px) {
    .card-item-v2 { width: 16.66666667%; }
}
@media screen and (min-width: 982.02px) and (max-width: 991px) {
    .card-item-v2 { width: 12.5%; }
}
@media screen and (min-width: 991.02px) and (max-width: 1199px) {
    .card-item-v2 { width: 10%; }
}
/* ========== TCG/OCG Deck Breakdown Page ========== */