body {
	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: 100dvh;
	-ms-flex-wrap: wrap;
	flex-wrap: wrap;
	font-family: 'Montserrat', sans-serif;
}

.bg-pattern {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	padding-top: 5%;
	background-image: url(bg-pattern.svg);
	background-repeat: no-repeat;
	background-size: cover;
	min-height: 100dvh;
	z-index: -1;
}


/* === Payment page style === */

.payment-title {
	text-align: center;
}

.payment-title img {
	width: 100%;
	border-radius: 12px;
	object-fit: contain;
	object-position: center;
	max-width: 90px;
	text-align: left;
}

@media screen and (min-width: 768px) {
	.payment-title img {
		text-align: center;
		width: 100%;
		border-radius: 12px;
		object-fit: contain;
		object-position: center;
		max-width: 150px;
	}
}

.payment-total .total-txt {
	font-size: 14px;
	color: #6b6b6b;
	margin-bottom: 10px;
}

.payment-total .total-price {
	color: #000000;
	margin-bottom: 0;
}

.form-container .field-container:first-of-type {
	grid-area: name;
}

.form-container .field-container:nth-of-type(2) {
	grid-area: number;
}

.form-container .field-container:nth-of-type(3) {
	grid-area: expiration;
}

.form-container .field-container:nth-of-type(4) {
	grid-area: security;
}

.form-container .field-container:nth-of-type(5) {
	grid-area: sender;
}

.field-container input {
	-webkit-box-sizing: border-box;
	box-sizing: border-box;
}

.field-container {
	position: relative;
}

.form-container {
	display: grid;
	grid-column-gap: 10px;
	grid-template-columns: auto auto;
	grid-template-rows: 90px 90px 90px;
	grid-template-areas: 'name name' 'number number' 'expiration security' 'sender sender';
	max-width: 460px;
	padding: 0px;
	color: #707070;
}

label {
	padding-bottom: 5px;
	font-size: 13px;
}

input {
	margin-top: 3px;
	padding: 15px;
	font-size: 16px;
	width: 100%;
	border-radius: 3px;
	border: 1px solid #dcdcdc;
}

select {
	margin-top: 3px !important;
	padding: 15px !important;
	font-size: 16px !important;
	width: 100% !important;
	border-radius: 3px !important;
	border: 1px solid #dcdcdc !important;
}

.ccicon {
	height: 60px;
	position: absolute;
	right: 6px;
	top: calc(50% - 17px);
	width: 60px;
}

/* CREDIT CARD IMAGE STYLING */
.preload * {
	-webkit-transition: none !important;
	-moz-transition: none !important;
	-ms-transition: none !important;
	-o-transition: none !important;
}

.container-card {
	width: 100%;
	max-width: 460px;
	max-height: 251px;
	height: 54vw;
	padding: 0px;
	display: flex;
	justify-content: center;
	margin: auto;
}

#ccsingle {
	position: absolute;
	right: 15px;
	top: 20px;
}

#ccsingle svg {
	width: 100px;
	max-height: 60px;
}

.creditcard svg#cardfront,
.creditcard svg#cardback {
	width: 100%;
	-webkit-box-shadow: rgba(0, 0, 0, 0.15) 0px 15px 25px, rgba(0, 0, 0, 0.05) 0px 5px 10px;
	box-shadow: rgba(0, 0, 0, 0.15) 0px 15px 25px, rgba(0, 0, 0, 0.05) 0px 5px 10px;
	border-radius: 22px;
}

#generatecard {
	cursor: pointer;
	float: right;
	font-size: 12px;
	color: #fff;
	padding: 2px 4px;
	background-color: #000000;
	border-radius: 4px;
	cursor: pointer;
	float: right;
}

/* CHANGEABLE CARD ELEMENTS */
.creditcard .lightcolor,
.creditcard .darkcolor {
	-webkit-transition: fill 0.5s;
	transition: fill 0.5s;
}

.creditcard .lightblue {
	fill: #03a9f4;
}

.creditcard .lightbluedark {
	fill: #0288d1;
}

.creditcard .red {
	fill: #ef5350;
}

.creditcard .reddark {
	fill: #d32f2f;
}

.creditcard .purple {
	fill: #ab47bc;
}

.creditcard .purpledark {
	fill: #7b1fa2;
}

.creditcard .cyan {
	fill: #26c6da;
}

.creditcard .cyandark {
	fill: #0097a7;
}

.creditcard .green {
	fill: #66bb6a;
}

.creditcard .greendark {
	fill: #388e3c;
}

.creditcard .lime {
	fill: #d4e157;
}

.creditcard .limedark {
	fill: #afb42b;
}

.creditcard .yellow {
	fill: #ffeb3b;
}

.creditcard .yellowdark {
	fill: #f9a825;
}

.creditcard .orange {
	fill: #ff9800;
}

.creditcard .orangedark {
	fill: #ef6c00;
}

.creditcard .grey {
	fill: #383838;
}

.creditcard .greydark {
	fill: #000000;
}

/* FRONT OF CARD */
#svgname {
	text-transform: uppercase;
}

#cardfront .st2 {
	fill: #ffffff;
}

#cardfront .st3 {
	font-family: 'Source Code Pro', monospace;
	font-weight: 600;
}

#cardfront .st4 {
	font-size: 54.7817px;
}

#cardfront .st5 {
	font-family: 'Source Code Pro', monospace;
	font-weight: 400;
}

#cardfront .st6 {
	font-size: 33.1112px;
}

#cardfront .st7 {
	opacity: 0.6;
	fill: #ffffff;
}

#cardfront .st8 {
	font-size: 24px;
}

#cardfront .st9 {
	font-size: 36.5498px;
}

#cardfront .st10 {
	font-family: 'Source Code Pro', monospace;
	font-weight: 300;
}

#cardfront .st11 {
	font-size: 16.1716px;
}

#cardfront .st12 {
	fill: #4c4c4c;
}

/* BACK OF CARD */
#cardback .st0 {
	fill: none;
	stroke: #0f0f0f;
	stroke-miterlimit: 10;
}

#cardback .st2 {
	fill: #111111;
}

#cardback .st3 {
	fill: #f2f2f2;
}

#cardback .st4 {
	fill: #d8d2db;
}

#cardback .st5 {
	fill: #c4c4c4;
}

#cardback .st6 {
	font-family: 'Source Code Pro', monospace;
	font-weight: 400;
}

#cardback .st7 {
	font-size: 27px;
}

#cardback .st8 {
	opacity: 0.6;
}

#cardback .st9 {
	fill: #ffffff;
}

#cardback .st10 {
	font-size: 24px;
}

#cardback .st11 {
	fill: #eaeaea;
}

#cardback .st12 {
	font-family: 'Rock Salt', cursive;
}

#cardback .st13 {
	font-size: 37.769px;
}

/* FLIP ANIMATION */
.container {
	perspective: 1000px;
}

.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;
}

.creditcard .front,
.creditcard .back {
	position: absolute;
	width: 100%;
	max-width: 400px;
	-webkit-backface-visibility: hidden;
	backface-visibility: hidden;
	-webkit-font-smoothing: antialiased;
	color: #47525d;
}

.creditcard .back {
	-webkit-transform: rotateY(180deg);
	transform: rotateY(180deg);
}

.creditcard.flipped {
	-webkit-transform: rotateY(180deg);
	transform: rotateY(180deg);
}

footer .plastic-cards-container,
footer p {
	font-size: 14px;
	color: #a5a5a5;
}

/* === Response page style === */

.response__card {
	border-radius: 12px;
	border: none;
	box-shadow: rgba(17, 17, 26, 0.05) 0px 4px 16px, rgba(17, 17, 26, 0.05) 0px 8px 32px;
}

.response__card .card-header {
	border-bottom: 2px solid #198754;
	background-color: #dbdbdb;
}

._failed {
	padding: 45px;
	width: 100%;
	text-align: center;
	margin: 0px auto;
}

._failed::after {
	content: '';
	position: absolute;
	left: 50%;
	bottom: 0;
	height: 5px;
	width: 100%;
	/* opacity: 1; */
	background-color: red;
	transform: translateX(-50%) !important;
	transition: all 0.3s;
}

._failed i {
	font-size: 60px;
	color: red !important;
}

._success {
	padding: 45px;
	width: 100%;
	text-align: center;
	margin: 0px auto;
}

._success::after {
	content: '';
	position: absolute;
	left: 50%;
	bottom: 0;
	height: 5px;
	width: 100%;
	background-color: #28a745;
	transform: translateX(-50%) !important;
	transition: all 0.3s;
}

._success i {
	font-size: 60px;
	color: #28a745;
}

._success h2 {
	margin-bottom: 12px;
	font-size: 40px;
	font-weight: 500;
	line-height: 1.2;
	margin-top: 10px;
}

._success p {
	margin-bottom: 0px;
	font-size: 18px;
	color: #495057;
	font-weight: 500;
}

.underlined-animated::after {
	animation: underline-animated 1s ease 200ms backwards;
}

@keyframes underline-animated {
	0% {
		width: 0;
		opacity: 0;
	}

	100% {
		width: 100%;
		opacity: 1;
	}
}