﻿:root {
    --cardbg: hsl(270, 20%, 8%);
    --cardborder: hsl(40, 65%, 80%);
    --currencyborder: hsl(40deg 65% 80% / 34%);
}

body {
    background-image: linear-gradient(rgba(13, 3, 6, 0.8), rgba(13, 3, 6, 0.8)), url('img/bg1.png');
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    background-color: #030107 !important;
    height: 100vh;
    background-attachment: fixed;
}

#preload {
    overflow: hidden;
    position: relative;
    height: 100%;
    width: 100%;
}

    #preload img {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        margin: auto;
        width: 90%;
        height: auto;
    }

.currency-border {
    padding: 0.5rem;
    padding-top: 0.2rem;
    padding-bottom: 0.2rem;
    border: 1px solid var(--currencyborder);
    border-radius: 6px;
}

.card.t1 {
    --cardborder: hsl(40, 65%, 80%);
}

.card.t2 {
    --cardborder: hsl(136, 72%, 64%);
}

.card.t3 {
    --cardborder: hsl(222, 72%, 64%);
}

.card.t4 {
    --cardborder: hsl(287, 72%, 64%);
}

.card.t5 {
    --cardborder: hsl(360, 72%, 64%);
}

.card {
    display: flex;
    flex-direction: column;
    background: var(--cardbg);
    border: 1px solid var(--cardborder);
    position: relative;
    padding: 0.2rem;
    margin: 0.2rem;
    border-radius: 4px;
}

    .card .pack-cost-container {
        background-color: rgba(0,0,0,0.8);
        position: absolute;
        bottom: 1.2em;
        left: 0;
        right: 0;
        padding: 0.5em;
    }

    .card .dead {
        position: absolute;
        top: 40%;
        text-align: center;
        width: 100%;
        font-weight: bold;
        color: #fc035e;
        font-size: 36px;
    }

    .card .corner {
        width: 0.5rem;
        height: 0.5rem;
        border: 1px solid var(--cardborder);
        position: absolute;
        border-radius: 4px;
    }

        .card .corner::after, .card .corner::before {
            content: "";
            position: absolute;
        }

        .card .corner::after {
            width: 2rem;
            height: calc(1rem - 1px);
        }

        .card .corner::before {
            width: calc(1rem - 1px);
            height: 2rem;
        }

        .card .corner.left {
            left: -0.5rem;
        }

            .card .corner.left::after {
                left: calc(-2px + 1rem);
                border-left: 1px solid var(--cardborder);
            }

            .card .corner.left::before {
                left: -1px;
                border-left: 1px solid var(--cardborder);
            }

        .card .corner.right {
            right: -0.5rem;
        }

            .card .corner.right::after {
                right: calc(-2px + 1rem);
                border-right: 1px solid var(--cardborder);
            }

            .card .corner.right::before {
                right: -1px;
                border-right: 1px solid var(--cardborder);
            }

        .card .corner.top {
            top: -0.5rem;
        }

            .card .corner.top::after {
                top: -1px;
                border-top: 1px solid var(--cardborder);
            }

            .card .corner.top::before {
                top: calc(-2px + 1rem);
                border-top: 1px solid var(--cardborder);
            }

        .card .corner.bottom {
            bottom: -0.5rem;
        }

            .card .corner.bottom::after {
                bottom: -1px;
                border-bottom: 1px solid var(--cardborder);
            }

            .card .corner.bottom::before {
                bottom: calc(-2px + 1rem);
                border-bottom: 1px solid var(--cardborder);
            }

    .card .typeicon {
        position: absolute;
        top: -15px; /* push upward */
        right: -15px; /* push to the right */
        height: 50px;
        pointer-events: none; /* optional: clicks pass through */
    }

    .card .hpbg {
        position: absolute;
        height: 50px;
        bottom: -15px;
        pointer-events: none;
        left: -15px;
    }

        .card .hpbg img {
            height: 50px;
        }

        .card .hpbg .txt {
            position: absolute;
            top: 0;
            left: 0;
            bottom: 0;
            right: 0;
            width: 100%;
            text-align: center;
            height: 100%;
            align-content: center;
            font-size: 2em;
            margin-top: 4px;
        }

    .card .infoicon {
        position: absolute;
        top: -15px; /* push upward */
        left: -15px; /* push to the right */
        height: 40px;
        cursor: pointer;
    }
