.credit-card-form {
  margin: 0;
  padding: 0;
  /* background-color: #f9f9f9; */
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-line-pack: center;
  align-content: center;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  /* min-height: 100vh; */
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  font-family: "Raleway";
}

.credit-card-form .payment-title {
  width: 100%;
  text-align: center;
}
.credit-card-form .payment-title h1 {
  font-size: 24px;
  margin-top: 0;
  margin-bottom: 0;
}

.credit-card-form .form-container .field-container:first-of-type {
  grid-area: name;
}

.credit-card-form .form-container .field-container:nth-of-type(2) {
  grid-area: number;
}

.credit-card-form .form-container .field-container:nth-of-type(3) {
  grid-area: expiration;
}

.credit-card-form .form-container .field-container:nth-of-type(4) {
  grid-area: security;
}

.credit-card-form .field-container input {
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}

.credit-card-form .field-container {
  position: relative;
}

.credit-card-form .form-container {
  display: grid;
  grid-column-gap: 10px;
  grid-template-columns: auto auto;
  grid-template-rows: 80px 80px 80px;
  grid-template-areas: "name name" "number number" "expiration security";
  max-width: 400px;
  padding: 20px;
  color: #707070;
}

.credit-card-form label {
  font-size: 14px;
  margin-bottom: 0;
  font-weight: 600;
  color: #333;
}

.credit-card-form input {
  margin-top: 3px;
  padding: 8px 15px;
  font-size: 16px;
  width: 100%;
  border-radius: 3px;
  color: #333;
  border: 1px solid #dcdcdc;
}

.credit-card-form .ccicon {
  height: 38px;
  position: absolute;
  right: 5px;
  top: calc(50% - 16px);
  width: 60px;
}

/* CREDIT CARD IMAGE STYLING */
.credit-card-form .preload * {
  -webkit-transition: none !important;
  -moz-transition: none !important;
  -ms-transition: none !important;
  -o-transition: none !important;
}

.credit-card-form .container {
  width: 100%;
  max-width: 400px;
  max-height: 251px;
  height: 54vw;
  padding: 20px;
}

.credit-card-form #ccsingle {
  position: absolute;
  right: 15px;
  top: 20px;
}

.credit-card-form #ccsingle svg {
  width: 100px;
  max-height: 60px;
}

.credit-card-form .creditcard svg#cardfront,
.credit-card-form .creditcard svg#cardback {
  width: 100%;
  -webkit-box-shadow: 1px 5px 6px 0px black;
  box-shadow: 1px 5px 6px 0px black;
  border-radius: 22px;
}

.credit-card-form #generatecard {
  cursor: pointer;
  float: right;
  font-size: 12px;
  color: #fff;
  padding: 2px 4px;
  background-color: #909090;
  border-radius: 4px;
  cursor: pointer;
  float: right;
}

/* CHANGEABLE CARD ELEMENTS */
.credit-card-form .creditcard .lightcolor,
.credit-card-form .creditcard .darkcolor {
  -webkit-transition: fill 0.5s;
  transition: fill 0.5s;
}

.credit-card-form .creditcard .lightblue {
  fill: #03a9f4;
}

.credit-card-form .creditcard .lightbluedark {
  fill: #0288d1;
}

.credit-card-form .creditcard .red {
  fill: #ef5350;
}

.credit-card-form .creditcard .reddark {
  fill: #d32f2f;
}

.credit-card-form .creditcard .purple {
  fill: #ab47bc;
}

.credit-card-form .creditcard .purpledark {
  fill: #7b1fa2;
}

.credit-card-form .creditcard .cyan {
  fill: #26c6da;
}

.credit-card-form .creditcard .cyandark {
  fill: #0097a7;
}

.credit-card-form .creditcard .green {
  fill: #66bb6a;
}

.credit-card-form .creditcard .greendark {
  fill: #388e3c;
}

.credit-card-form .creditcard .lime {
  fill: #d4e157;
}

.credit-card-form .creditcard .limedark {
  fill: #afb42b;
}

.credit-card-form .creditcard .yellow {
  fill: #ffeb3b;
}

.credit-card-form .creditcard .yellowdark {
  fill: #f9a825;
}

.credit-card-form .creditcard .orange {
  fill: #ff9800;
}

.credit-card-form .creditcard .orangedark {
  fill: #ef6c00;
}

.credit-card-form .creditcard .grey {
  fill: #bdbdbd;
}

.credit-card-form .creditcard .greydark {
  fill: #616161;
}

/* FRONT OF CARD */
.credit-card-form #svgname {
  text-transform: uppercase;
}

.credit-card-form #cardfront .st2 {
  fill: #ffffff;
}

.credit-card-form #cardfront .st3 {
  font-family: "Source Code Pro", monospace;
  font-weight: 600;
}

.credit-card-form #cardfront .st4 {
  font-size: 54.7817px;
}

.credit-card-form #cardfront .st5 {
  font-family: "Source Code Pro", monospace;
  font-weight: 400;
}

.credit-card-form #cardfront .st6 {
  font-size: 33.1112px;
}

.credit-card-form #cardfront .st7 {
  opacity: 0.6;
  fill: #ffffff;
}

.credit-card-form #cardfront .st8 {
  font-size: 24px;
}

.credit-card-form #cardfront .st9 {
  font-size: 36.5498px;
}

.credit-card-form #cardfront .st10 {
  font-family: "Source Code Pro", monospace;
  font-weight: 300;
}

.credit-card-form #cardfront .st11 {
  font-size: 16.1716px;
}

.credit-card-form #cardfront .st12 {
  fill: #4c4c4c;
}

/* BACK OF CARD */
.credit-card-form #cardback .st0 {
  fill: none;
  stroke: #0f0f0f;
  stroke-miterlimit: 10;
}

.credit-card-form #cardback .st2 {
  fill: #111111;
}

.credit-card-form #cardback .st3 {
  fill: #f2f2f2;
}

.credit-card-form #cardback .st4 {
  fill: #d8d2db;
}

.credit-card-form #cardback .st5 {
  fill: #c4c4c4;
}

.credit-card-form #cardback .st6 {
  font-family: "Source Code Pro", monospace;
  font-weight: 400;
}

.credit-card-form #cardback .st7 {
  font-size: 27px;
}

.credit-card-form #cardback .st8 {
  opacity: 0.6;
}

.credit-card-form #cardback .st9 {
  fill: #ffffff;
}

.credit-card-form #cardback .st10 {
  font-size: 24px;
}

.credit-card-form #cardback .st11 {
  fill: #eaeaea;
}

.credit-card-form #cardback .st12 {
  font-family: "Rock Salt", cursive;
}

.credit-card-form #cardback .st13 {
  font-size: 37.769px;
}

/* FLIP ANIMATION */
.credit-card-form .container {
  perspective: 1000px;
}

.credit-card-form .creditcard {
  width: 100%;
  max-width: 400px;
  -webkit-transform-style: preserve-3d;
  transform-style: preserve-3d;
  transition: -webkit-transform 0.6s;
  -webkit-transition: -webkit-transform 0.6s;
  transition: transform 0.6s;
  transition: transform 0.6s, -webkit-transform 0.6s;
  cursor: pointer;
}

.credit-card-form .creditcard .front,
.credit-card-form .creditcard .back {
  position: absolute;
  width: 100%;
  max-width: 400px;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  -webkit-font-smoothing: antialiased;
  color: #47525d;
}

.credit-card-form .creditcard .back {
  -webkit-transform: rotateY(180deg);
  transform: rotateY(180deg);
}

.credit-card-form .creditcard.flipped {
  -webkit-transform: rotateY(180deg);
  transform: rotateY(180deg);
}
