
/********* Start Front Side *********/
.credit-card {
    position:absolute;
    /*position:fixed;*/
    background-color: transparent;
    width: 320px;
    height: 200px;
    perspective: 1000px;
    left:50%;
    bottom:26px;
    /*top:67%;*/
    /*right:var(--grid8);*/
    transform: translate(-50%, 0%) scale(1.2) rotate(4deg);
    /*transform: scale(1.5) translate(-50%, -50%);*/
    z-index:999;
}

.credit-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: 0.8s;
    transform-style: preserve-3d;
    border-radius: 10px;
    
}
.credit-card:hover {
    /*left:77%;*/
}
.credit-card:hover .credit-card-inner {
    transform: rotateY(180deg);
}

.credit-card-front,
.credit-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    /*background-color: #161616;*/
    background-color: var(--yellow);
    color: white;
    border-radius: 10px;
}

.credit-card-front p {
    padding-left: 20px;
    padding-top: 7px;
    font-size: 30px;
    font-weight: 500;
    font-family: 'Cairo', sans-serif;
    font-family: 'Jomhuria', 'cursive';
    font-family: 'Rubik', sans-serif;
}

.credit-card-back {
    backface-visibility: hidden;
    transform: rotateY(180deg);
}

.mc-logo {
    position: absolute;
    bottom: 0;
    right: 0;
    padding: 10px;
}

.credit-card-red,
.credit-card-yellow {
    display: inline-block;
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.credit-card-yellow {
    background-color: #F79E1B;
}

.credit-card-red {
    background-color: #EB001B;
    opacity: 70%;
    transform: translateX(20px );
}

.sound-logo {
    position: absolute;
    right: 0;
    top: 0;
    margin-right: 20px;
    margin-top: 10px;
    display: flex;
    justify-content: space-between;
    flex-direction: row-reverse;
    transform: scale(0.7);
}

.sound-logo .c1,
.sound-logo .c2,
.sound-logo .c3,
.sound-logo .c4 {
    position: absolute;
    background-color: transparent;
    border: 3px solid transparent;
    border-right-color: white;
    border-radius: 50%;
}

.sound-logo .c1 {
    width: 40px;
    height: 40px;
}

.sound-logo .c2 {
    top: 5px;
    right: 6px;
    width: 30px;
    height: 30px;
}

.sound-logo .c3 {
    top: 10px;
    right: 12px;
    width: 20px;
    height: 20px;
}

.sound-logo .c4 {
    top: 15px;
    right: 18px;
    width: 10px;
    height: 10px;
}

.mid-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.mid-logo img {
    width: 240px;
}

.sim {
    position: absolute;
    top: 33%;
    left: 15%;
    width: 45px;
    height: 30px;
    background-color: #CFCECE;
    border-radius: 5px;
    border: 1px solid black;
}

.sim::before {
    content: '';
    position: absolute;
    top: 22.5%;
    width: 100%;
    height: 50%;
    border-top: 1px solid black;
    border-bottom: 1px solid black;
}

.sim::after {
    content: '';
    position: absolute;
    left: 22.5%;
    width: 50%;
    height: 100%;
    border-left: 1px solid black;
    border-right: 1px solid black;
}

/********* End Front Side *********/


/****** Start Back Side*******/

.top-txt {
    position: absolute;
    width: 100%;
    top: 2%;
    padding-left: 10px;
    padding-right: 10px;
    display: flex;
    justify-content: space-between;
    font-size: 6px;
    text-transform: uppercase;
}

.rec {
    position: absolute;
    top: 10%;
    width: 100%;
    height: 20%;
    background-color: black;
}

.auth-txt {
    position: absolute;
    top:33%;
    width: 45%;
    padding-left: 10px;
    font-size: 5px;
    text-transform: uppercase;
}

.rec-nums {
    position: absolute;
    width: 41%;
    height: 15%;
    top: 40%;
    margin-left: 10px;
    background-color: #CFCECE;
    color: black;
}

.rec-nums::before {
    content: '123';
    position: absolute;
    width: 100%;
    height: 100%;
    right: -100px;
    bottom: -11px;
    transform: skewX(15deg);
}

.help-txt {
    position: absolute;
    top: 58%;
    width: 80%;
    margin-left: 10px;
    font-size: 5px;
    font-weight: 300;
    font-family: 'Cairo', sans-serif;
    font-family: 'Jomhuria', cursive;
    font-family: 'Rubik', sans-serif;
}

.nums {
    position: absolute;
    top: 70%;
    margin-left: 20px;
    word-spacing: 14px;
}

.valid {
    position: absolute;
    top: 85%;
    margin-left: 10px;
    width: 10%;
    font-size: 6px;
    text-transform: uppercase;
    line-height: 0.5;
}

.valid::after {
    content: '01/21';
    font-size: 12px;
    margin-left: 10px;
}

.act {
    position: absolute;
    top: 85%;
    margin-left: 90px;
    width: 10%;
    font-size: 6px;
    text-transform: uppercase;
    line-height: 0.5;
}

.act::after {
    content: '12345678';
    font-size: 12px;
    margin-left: 10px;
}

.prepaid {
    position: absolute;
    top: 71%;
    left: 82.5%;
    font-size: 11px;
    font-family: 'Cairo', sans-serif;
    font-family: 'Jomhuria', 'cursive';
    font-family: 'Rubik', sans-serif;
}

.mark {
    position: absolute;
    top: 80%;
    left: 80%;
    width: 50px;
    height: 30px;
    background: rgba(255, 255, 255, 0.2);
    background: linear-gradient(0deg, rgba(243, 239, 239, 0.479)50%, rgba(255, 255, 255, 0.7)100%); 
    border-radius: 50px;
    overflow: hidden;
}

.mark::before {
    content: '';
    position: absolute;
    top: -13%;
    left: -15%;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #CFCECE;
    border: 1px solid white;
    z-index: 2;
}

.mark::after {
    content: '';
    position: absolute;
    top: 18%;
    left: 50%;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: #CFCECE;
}

.banque-img {
    position: absolute;
    top: 33%;
    left: 92%;
    width: 13px;
    height: 13px;
    filter: grayscale(1);
}

.banque-txt {
    position: absolute;
    top: 33%;
    left: 79.5%;
    width: 40px;
    height: 13px;
    filter: invert(1);
}

/********* End Back Side *********/

.copy {
    position: absolute;
    left: 0;
    bottom: 0;
    margin: 5px;
    color: white;
    font-size: 14px;
    font-weight: 300;
    font-family: 'Cairo', sans-serif;
    font-family: 'Jomhuria', 'cursive';
    font-family: 'Rubik', sans-serif;
}