
.cardcentificado{
	* {
		border: 0;
		box-sizing: border-box;
		margin: 0;
		padding: 0;
	}
	
}
:root {
		--hue: 223;
		--bg: hsl(var(--hue), 10%, 90%);
		--fg: hsl(var(--hue), 10%, 10%);
		--primary: hsl(var(--hue), 90%, 55%);
	}
.cardcentificado,
.cardcentificado__chip {
	overflow: hidden;
	position: relative;
}
.cardcentificado,
.cardcentificado__chip-texture,
.cardcentificado__texture {
	animation-duration: 100s;
	animation-timing-function: ease-in-out;
	animation-iteration-count: infinite;
}
.cardcentificado {
	animation-name: rotate;
	background-color: var(--primary);
	background-image: radial-gradient(
			circle at 100% 0%,
			hsla(0, 0%, 100%, 0.08) 29.5%,
			hsla(0, 0%, 100%, 0) 30%
		),
		radial-gradient(
			circle at 100% 0%,
			hsla(0, 0%, 100%, 0.08) 39.5%,
			hsla(0, 0%, 100%, 0) 40%
		),
		radial-gradient(
			circle at 100% 0%,
			hsla(0, 0%, 100%, 0.08) 49.5%,
			hsla(0, 0%, 100%, 0) 50%
		);
	border-radius: 0.5em;
	box-shadow: 0 0 0 hsl(0, 0%, 80%), 0 0 0 hsl(0, 0%, 100%),
		-0.2rem 0 0.75rem 0 hsla(0, 0%, 0%, 0.3);
	color: hsl(0, 0%, 100%);
	width:100%;
	height: 200px;
	transform: translate3d(0, 0, 0);
}
.cardcentificado__infotitle{
	line-height: 1;
	margin-left: 10px;
}
.cardcentificado__info,
.cardcentificado__chip-texture,
.cardcentificado__texture {
	position: absolute;
}
.cardcentificado__chip-texture,
.cardcentificado__texture {
	animation-name: texture;
	top: 0;
	left: 0;
	width: 200%;
	height: 100%;
}
.cardcentificado__info {
	font: 1.75em/1 "DM Sans", sans-serif;
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	padding: 0.75rem;
	inset: 0;
}
.cardcentificado__logo,
.cardcentificado__number {
	width: 100%;
}
.cardcentificado__certial{
	font-size: 10px;
}
.cardcentificado__logo {
	font-weight: bold;
	font-style: italic;
}
.cardcentificado__chip {
	background-image: linear-gradient(hsl(0, 0%, 70%), hsl(0, 0%, 80%));
	border-radius: 0.2rem;
	box-shadow: 0 0 0 0.05rem hsla(0, 0%, 0%, 0.5) inset;
	width: 3.25rem;
	height: 3.25rem;
	transform: translate3d(0, 0, 0);
}
.cardcentificado__chip-lines {
	width: 100%;
	height: auto;
}
.cardcentificado__chip-texture {
	background-image: linear-gradient(
		-80deg,
		hsla(0, 0%, 100%, 0),
		hsla(0, 0%, 100%, 0.6) 48% 52%,
		hsla(0, 0%, 100%, 0)
	);
}
.cardcentificado__type {
	align-self: flex-end;
	margin-left: auto;
}
.cardcentificado__digit-group,
.cardcentificado__exp-date,
.cardcentificado__name {
	background: linear-gradient(
		hsl(0, 0%, 100%),
		hsl(0, 0%, 85%) 15% 55%,
		hsl(0, 0%, 70%) 70%
	);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	font-family: "Courier Prime", monospace;
	filter: drop-shadow(0 0.05rem hsla(0, 0%, 0%, 0.3));
}
.cardcentificado__number {
	font-size: 1rem;
	display: flex;
	justify-content: space-between;
}
.cardcentificado__valid-thru,
.cardcentificado__name {
	text-transform: uppercase;
}
.cardcentificado__valid-thru,
.cardcentificado__exp-date {
	margin-bottom: 0.25rem;
	width: 50%;
}
.cardcentificado__valid-thru {
	font-size: 1rem;
	padding-right: 0.25rem;
	text-align: right;
}
.cardcentificado__exp-date,
.cardcentificado__name {
	font-size: 1rem;
}
.cardcentificado__exp-date {
	padding-left: 0.25rem;
}
.cardcentificado__name {
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
	width: 6.25rem;
}
.cardcentificado__vendor,
.cardcentificado__vendor:before,
.cardcentificado__vendor:after {
	position: absolute;
}
.cardcentificado__vendor {
	right: 0.375rem;
	bottom: 20px;
	width: 2.55rem;
	height: 1.5rem;

	img{
		width: 100%;
	}
}
.cardcentificado__texture {
	animation-name: texture;
	background-image: linear-gradient(
		-80deg,
		hsla(0, 0%, 100%, 0.3) 25%,
		hsla(0, 0%, 100%, 0) 45%
	);
}

/* Dark theme */
@media (prefers-color-scheme: dark) {
	:root {
		--bg: hsl(var(--hue), 10%, 30%);
		--fg: hsl(var(--hue), 10%, 90%);
	}
}

/* Animation */
@keyframes rotate {
	from,
	to {
		animation-timing-function: ease-in;
		box-shadow: 0 0 0 hsl(0, 0%, 80%), 0.1rem 0 0 hsl(0, 0%, 100%),
			-0.2rem 0 0.75rem 0 hsla(0, 0%, 0%, 0.3);
		transform: rotateY(-10deg);
	}
	25%,
	75% {
		animation-timing-function: ease-out;
		box-shadow: 0 0 0 hsl(0, 0%, 80%), 0 0 0 hsl(0, 0%, 100%),
			-0.25rem -0.05rem 1rem 0.15rem hsla(0, 0%, 0%, 0.3);
		transform: rotateY(0deg);
	}
	50% {
		animation-timing-function: ease-in;
		box-shadow: -0.1rem 0 0 hsl(0, 0%, 80%), 0 0 0 hsl(0, 0%, 100%),
			-0.3rem -0.1rem 1.5rem 0.3rem hsla(0, 0%, 0%, 0.3);
		transform: rotateY(10deg);
	}
}
@keyframes texture {
	from,
	to {
		transform: translate3d(0, 0, 0);
	}
	50% {
		transform: translate3d(-50%, 0, 0);
	}
}
