body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: var(--bg-image, url('/static/img/background.jpg'));
    background-size: cover;
    background-position: center;
    z-index: -1;
}


main {
    background-color: rgba(0, 0, 0, 0.37);
    border-radius: 8px;
    margin: 1rem;
}


* {
    box-sizing: border-box;
}

/* ---------- Format badges ---------- */
.badge-standard   { background-color: #02746e; color: #fff; }
.badge-commander  { background-color: #a85a00; color: #fff; }
.badge-pauper     { background-color: #6b7280; color: #fff; }
.badge-penny      { background-color: #960070; color: #fff; }

/* ---------- Deck list rows ---------- */
.deck-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.deck-list-left {
    display: flex;
    align-items: center;
    gap: 6px;
}

.mana-icon {
    width: 20px;
    height: 20px;
}

/* ---------- Deck name link ---------- */
.deck-link {
    color: #717272;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.15s ease;
}

.deck-link:hover {
    color: #008d76;
    text-decoration: none;
}

.deck-flow {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 2rem;
}

.deck-section {
    flex: 0 0 auto;
}

.card-thumb {
    transition: transform 0.15s ease;
    cursor: zoom-in;
}
.card-thumb:hover {
    transform: scale(1.8);
    position: relative;
    z-index: 10;
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}

.btn-outline-teal{
    background: teal;
    background:hover ;

}

.btn-outline-teal:hover{
    background: rgb(177, 130, 0);

}


.btn-mystic {
    position: relative;
    border: none;

    border-radius: 20px;
    color: #ffffff;
    font-weight: 600;
    background: linear-gradient(
        270deg,
        #00b8a8, #00685a, #00443b, #011a20, #000000
    );
    background-size: 400% 400%;
    animation: mystic-fog 8s ease infinite;
    overflow: hidden;
}

.btn-mystic:hover {
    animation-duration: 3s;
    color: #007b8b;
    box-shadow: 0 0 12px rgba(0, 104, 107, 0.692);
}

@keyframes mystic-fog {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.btn-mystic2 {
    position: relative;
    border: none;
    border-radius: 20px;
    color: #ffffff;
    font-weight: 600;
    background: linear-gradient(
        270deg,
        #a34201, #b14802, #814900, #1f1401, #000000
    );
    background-size: 400% 400%;
    animation: mystic-fog 12s ease infinite;
    overflow: hidden;
}

.btn-mystic2:hover {
    animation-duration: 5s;
    color: #007b8b;
    box-shadow: 0 0 12px rgb(0, 92, 95);
}

.btn-mystic3 {
    position: relative;
    border: none;
    border-radius: 20px;
    color: #ffffff;
    font-weight: 600;
    background: linear-gradient(
        270deg,
        #00ffff, #00d3c8, #005881, #014244, #000000
    );
    background-size: 400% 400%;
    animation: mystic-fog 12s ease infinite;
    overflow: hidden;
}

.btn-mystic3:hover {
    animation-duration: 5s;
    color: #8b4a00;
    box-shadow: 0 0 12px rgb(0, 92, 95);
}

@keyframes mystic-fog {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.orb-row {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin-bottom: 4px;
}

.orb {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #00000063;
    display: inline-block;
}

.orb-filled {
    background: radial-gradient(circle at 30% 30%, #ffb516, #cf7b1b);   
}


.board-toggle.active {
    background-color: #9e6c01;
    color: #fff;
    border-color: #007a83;
}

.card-tile {
    width: 200px;
    min-width: 0;
    flex-shrink: 1;
}


@media (max-width: 576px) {
    .card-tile {
        width: 95px;
        padding: 0 0px !important;
    }
    .d-flex{
        padding: 0 0px !important;;
    }

}

@media (max-width: 900px) {

    .deck-flow {
        flex-direction: column;
    }
    .deck-section {
        width: 100%;
    }
    .d-flex{
        padding: 0 0px;
    }
}

.card-tile p,
.card-tile div {
    word-break: break-word;
    overflow-wrap: break-word;
}



.card-results-container {
    padding: 0 10px !important;
}

.deck-section {
    flex: 0 0 auto;
    max-width: 100%;
    min-width: 0;
}

.deck-section .d-flex {
    min-width: 0;
}


.form-control,
.form-select {
    background-color: rgba(0, 0, 0, 0.3);
    color: #ffffff;
    border: 1px solid #038f8f;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: #b86a04;
    background-color: rgba(0, 0, 0, 0.9);
    color: #ffffff;
    box-shadow: 0 0 8px 2px rgba(173, 113, 0, 0.6), 0 0 16px 4px rgba(202, 123, 4, 0.35);
    outline: none;
}

.form-control::placeholder {
    color: cyan;
    opacity: 1; /* Firefox dims placeholder text by default (~54% opacity) — this overrides that */
}

@keyframes input-glow {
    0%, 100% { box-shadow: 0 0 4px 1px rgba(124, 58, 237, 0.4); }
    50%      { box-shadow: 0 0 10px 3px rgba(167, 139, 250, 0.7); }
}