<div id="card-container">
<section id="card">
  <div id="front-side">
    <i id="rightLogo">VISA</i>

    <span id="leftLogo">V &#x2654 J</span>

    <img id="chip" src="http://res.cloudinary.com/walidk/image/upload/v1505515259/secondchip.png">

    <span id="fullName">MR VANILLA JAVASCRIPT</span>

    <span id="accountNumber">1389 3902 2389 2939</span>

    <span id="expiryDate">
      <b>Expiry Date</b>
      <p class="front-par">02/2020</p>
    </span>

    <span id="cardNumber">
      <b>Card Number</b>
      <p class="front-par">8726665</p>
    </span>

    <span id="BranchNumber">
      <b>Branch Number</b>
      <p class="front-par">02-04-90</p>
    </span>
  </div>
  
  <div id="back-side">
    <div id="black-bar"></div>
    
      <span id="customer-signature">
        <b>Customer Signature</b>
        <p id="signature-area"></p>
      </span>
    
      <span id="csv-container">
        <b class="back-headers">CSV</b>
        <p id="csv-number">290</p>
      </span>
  </div>
<section>
</div>
* {
  letter-spacing: 2px;
  color: white;
  font-size: 10px;
}

body {
  background-color: #f9f9f9;  
}

#card-container {
  perspective: 700px;  
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
  width: 100%;
  
}

#card {
  position: relative;
  width: 440px;
  height: 240px;
  border-radius: 10px;
  box-shadow: 0 0 6px black;
  transform-style: preserve-3d;
  transition: all 1s;
}

#card:hover {
  transform: rotateX(180deg);
}

#front-side, #back-side {
  position: absolute;
  top: 0;
  left: 0;
  background: linear-gradient(
    to right,
    rgba(0, 0, 255, 0.7),
    rgba(0, 0, 255, 1)
  );
  border-radius: 10px;
  backface-visibility: hidden;
}

#front-side {
  width: 420px;
  height: 220px;
  padding: 10px;
}

#back-side {
  width: 440px;
  height: 240px;
  background-color: rgba(0, 0, 255, 1);
  transform: rotateX(180deg);
}

#rightLogo {
  float: right;
  margin-right: 6px;
  font-size: 24px;
}

#leftLogo {
  background: #f5f5f5;
  color: black;
  padding: 15px;
  position: absolute;
  top: 0;
  left: 6%;
  letter-spacing: 8px;
  border-bottom-right-radius: 6px;
  border-bottom-left-radius: 6px;
}

#chip {
  width: 55px;
  height: 40px;
  border: 1px solid black;
  border-radius: 8px;
  position: absolute;
  top: 41%;
  left: 6%;
}

#fullName {
  position: absolute;
  top: 41%;
  left: 27%;
}

#accountNumber {
  font-size: 20px;
  word-spacing: 18px;
  color: rgba(255, 255, 255, 0.8);
  position: absolute;
  top: 50%;
  left: 14%;
  right: 0;
  text-align: center;
}

#expiryDate, #cardNumber, #BranchNumber {
  position: absolute;
  top: 80%;
}

#expiryDate {
  left: 27%;
}

#cardNumber {
  left: 73%;
}

#BranchNumber {
  left: 48%;
}

b {
}

.front-par {
  margin: 0;
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.8);
}

#black-bar {
  background-color: black;
  height: 28%;
  border-top: 1px solid grey;
  border-bottom: 1px solid grey;
  margin-top: 10px;
}

#customer-signature {
  position: absolute;
  top: 41%;
  left: 6%;
}

#signature-area {
  background-color: #f5f5f5;
  width: 200px;
  height: 30px;
  border-radius: 2px;
}

#csv-container {
  position: absolute;
  top: 41%;
  left: 60%;
}

#csv-number {
  background-color: #f5f5f5;
  width: 50px;
  height: 30px;
  border-radius: 2px;
  color: black;
  text-align: center;
  line-height: 30px;
}

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.