@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');
@import url('https://fonts.cdnfonts.com/css/grids-personal-use');

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

section {
	width: 100%;
	height: 100svh;
	background: #ffffff; /* default white background */
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
}

.cards2 {
    margin-top: 7%;
	display: flex;
	width: 90vw; 
	max-width: 40rem; 
	aspect-ratio: 1;
	transform-style: preserve-3d;
	perspective: 1000px;
	isolation: isolate;
	position: relative;
}

.card2 {
	margin: auto;
	width: 59%; /* slightly smaller than container */
	height: 45%; /* slightly smaller than container */
	background: #16213e;
	transform-style: preserve-3d;
	transform: rotateY(var(--rotate-y));
	transition: transform .6s linear;
	font-size: 2rem; 
	font-weight: 700;
	color: #ffffff;
	text-align: center;
	will-change: transform;
	border-radius: 1rem;
	box-shadow: 
		0 10px 20px rgba(0, 0, 0, 0.3),
		0 0 0 1px rgba(255, 255, 255, 0.1),
		inset 0 1px 0 rgba(255, 255, 255, 0.1);
	position: relative;
}

.background2 {
	position: absolute;
	inset: 0;
	width: 100%;  /* keeps circle around smaller card */
	height: 100%;
	background: conic-gradient(from 0deg, #ff6b6b var(--conic-t, 0%), transparent var(--conic-b, 0%));
	border-radius: 50%;
	z-index: -1;
	filter: drop-shadow(0 0 20px rgba(255, 107, 107, 0.3));
}


.card2 > div {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: space-between;
	padding: 1rem;
}

.card2 .back {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	background: #1a1a2e;
	transform: translateZ(-1px) rotateY(180deg);
	backface-visibility: hidden;
	will-change: transform;
	border-radius: 1rem;
	overflow: hidden;
}

.card2 .front {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	background: #16213e;
	transform: translateZ(1px);
	backface-visibility: hidden;
	border-radius: 1rem;
	overflow: hidden;
}

.card2 .wrapper-top {
	width: 100%;
}

.card2 .top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	font-size: 1rem;
}

.card2 .top .icon {
	width: 1.5rem;
	height: 1.5rem;
}

.card2 .count {
	font-size: 0.9rem;
	color: #a0a0a0;
	font-weight: 500;
}

.card2 .main-number {
	font-size: 2rem; /* smaller */
	background: linear-gradient(135deg, #ff6b6b 0%, #4ecdc4 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	font-weight: 700;
}

.card2 .title {
	font-size: 1.5rem;
	margin-top: 1rem;
	color: #ffffff;
	font-weight: 600;
}

.card2 .info {
	font-size: 1rem;
	color: #b0b0b0;
	line-height: 1.4;
	font-weight: 400;
}
