@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,900&display=swap');

@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@500&display=swap');

*
{
	margin: 0;
	padding: 0;
	font-family: 'Poppins', sans-serif;
	box-sizing: border-box;
}

body
{
    overflow: hidden;
}

section
{
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: #1c1c25;
}

section::before
{
    content: '';
    position:absolute;
    bottom: -30%;
    left: 40%;
    width: 600px;
    height: 600px;
    
}

.card
{
    position: relative;
    width: 508px;
    height: 314px;
    transform-style: preserve-3d;
    perspective: 500px;
}

.card .face
{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    transform-style: preserve-3d;
    transition: 1s;
    /*Visiblity number affect karto*/
    backface-visibility: hidden;
}
/* This hovar effect at 180* and 360* 
face Front and Face Back*/

.card:hover .face.front
{
    transform: rotateY(180deg);
}

.card .face.back
{
    transform: rotateY(180deg);
}

.card:hover .face.back
{
    transform: rotateY(360deg);
}
/* All these Upper Hovar Effect responsible for that*/


/*Before after for 2 small circles at bottom left*/
.card .face.front::before
{
    content: '';
    position:absolute;
    bottom: 40px;
    right: 40px;
    width: 60px;
    height: 60px;
    background: #fff;
    border-radius: 50%;
    opacity: 0.5;
}

.card .face.front::after
{
    content: '';
    position:absolute;
    bottom: 40px;
    right: 80px;
    width: 60px;
    height: 60px;
    background: #fff;
    border-radius: 50%;
    opacity: 0.7;
}

.card .face.front .debit
{
    position:absolute;
    left: 40px;
    top: 30px;
    color: #fff;
    font-weight: 500;
}

.card .face.front .bank
{
    position:absolute;
    right: 40px;
    top: 25px;
    color: #fff;
    font-weight: 500;
    font-size: 24px;
    font-style: italic;
}

.card .face.front .chip
{
    position:absolute;
    left: 50px;
    top: 80px;
    max-width: 64px;
}

.card .face.front .number
{
    position: absolute;
    bottom: 130px;
    left: 40px;
    color: #fff;
    font-weight: 500;
    letter-spacing: 6px;
    font-size: 18px;
    text-shadow: 0 2px 1px #0005;
    font-family: 'Orbitron', sans-serif;
}

.card .face.front .valid
{
    position:absolute;
    bottom: 90px;
    left: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    font-weight: 300;
    line-height: 1em;
    text-align: right;
    font-family: 'Orbitron', sans-serif;

}

.card .face.front .valid span:last-child
{
    margin-left: 20px;
    font-size: 16px;
    font-weight: 400;
    letter-spacing: 2px;
}

.card .face.front .cardHolder
{
    position: absolute;
    bottom: 40px;
    left: 40px;
    color: #fff;
    font-size: 16px;
    font-weight: 300;
    letter-spacing: 2px;
}

.card .face.back .blackbar
{
    position: absolute;
    top: 40px;
    width: 100%;
    height: 60px;
    background: #000;
}

.card .face.back .ccvtext
{
    position:absolute;
    top: 120px;
    left: 30px;
}

.card .face.back .ccvtext h5
{
    color: #fff;
    font-weight: 400;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.card .face.back .ccvtext .whitebar
{
    position: relative;
    width: 400px;
    height: 40px;
    background: #fff;
    margin-top: 5px;
}

.card .face.back .ccvtext .ccv
{
    position: relative;
    top: -35px;
    left: 395px;
    width: 50px;
    height: 30px;
    background: #ccc;
    font-weight: 600;
    color: #111;
    letter-spacing: 3px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.card .face.back .text
{
    position: absolute;
    bottom: 30px;
    left: 30px;
    right: 30px;
    color: #fff;
    line-height: 1.4em;
    font-weight: 300;
    font-size: 15px;
}

