﻿.bc-card {
    width: 430px;
    height: 270px;
    perspective: 1000px;
    border: none !important;
    border-radius: 15px;
    margin-right: auto !important;
}

.card-image {
    width: 100%;
    max-width: 200px;
    height: auto;
    mix-blend-mode: multiply; /*test*/
}

.flip {
    width: inherit;
    height: inherit;
}

.front,
.back {
    position: absolute;
    width: inherit;
    height: inherit;
    border-radius: 15px;
    color: #fff;
    text-shadow: 0 1px 1px rgba(0,0,0,0.3);
    box-shadow: 0 1px 10px 1px rgba(0,0,0,0.3);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    background-image: linear-gradient(to right, rgb(var(--bc-card-color)), rgb(var(--bc-card-color)));
    overflow: hidden;
}

.front {
    transform: translateZ(0);
}

.card-number {
    position: absolute;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 10px 25px 10px;
    font-size: 23px;
    bottom: 1rem;
}

.bc-card-input {
    max-width: 100%;
    margin: 0 !important;
    background-color: var(--bc-card-color);
    box-shadow: 0 1px 10px 1px rgba(0,0,0,0.3);
    color: #000 !important;
}

.back {
    transform: rotateY(180deg) translateZ(0);
    background: var(--bc-card-color);
}

    .back .strip-black {
        position: absolute;
        top: 30px;
        left: 0;
        width: 100%;
        height: 50px;
        background: #000;
    }

    .back .bc-card-info {
        position: absolute;
        top: 110px;
        left: 0;
        right: 0;
        width: 90%;
        padding: 10px;
        margin: 0 auto;
        border-radius: 5px;
        text-align: right;
        letter-spacing: 1px;
        color: #000;
        background: #fff;
    }

.bc-card-info-row {
    width: 100%;
    margin: 0;
    display: inline-block;
}

.back .bc-card-info label {
    display: block;
    margin: -30px 0 15px;
    font-size: 10px;
    text-transform: uppercase;
    color: #fff;
}

.animateFlip {
    transition: 0.7s;
    transform-style: preserve-3d;
    -webkit-animation: flip 2.5s ease;
    animation: flip 2.5s ease;
    -webkit-animation-fill-mode: forwards;
    animation-fill-mode: forwards;
}

.animateFlipFront {
    transition: 0.7s;
    transform-style: preserve-3d;
    -webkit-animation: flipFront 2.5s ease;
    animation: flipFront 2.5s ease;
    -webkit-animation-fill-mode: forwards;
    animation-fill-mode: forwards;
}

@-webkit-keyframes flip {
    100% {
        transform: rotateY(180deg);
    }
}

@keyframes flip {
    100% {
        transform: rotateY(180deg);
    }
}

@-webkit-keyframes flipFront {
    0% {
        transform: rotateY(180deg);
    }

    , 100% {
        transform: rotateY(0deg);
    }
}

@keyframes flipFront {
    0% {
        transform: rotateY(180deg);
    }

    , 100% {
        transform: rotateY(0deg);
    }
}
