.carddetailscontainer
{
	position: fixed;
	pointer-events: none;
	z-index: 10000;
}

card.childcard
{
	position: absolute;
	right: 0;
	top: 0;
	transform: translateX(100%);
	z-index: 0 !important;
	animation: childcardreveal 0.5s forwards;
}

@keyframes childcardreveal
{
	from
	{
		transform: translateX(0);
		opacity: 0;
	}
}

.carddetailscontainer .attributescontainer
{
	position: absolute;
	width: 100%;
	height: 100%;
	left: 0;
	top: 0;
	transform: translateX(-100%);
	display: flex;
	flex-direction: column;
}

.carddetailscontainer > card
{
	z-index: 10;
}

.attributescontainer > div
{
	box-sizing: border-box;
	border: 1px solid rgb(200, 200, 200);
	background-color: var(--dark);
	animation: effectreveal 0.5s forwards;
}

@keyframes effectreveal
{
	from
	{
		transform: translateX(100%);
		opacity: 0;
	}
}

.attributescontainer > div::before
{
	content: "";
	position: absolute;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	background-image: url("../gfx/backgrounds/uibackground.jpg");
	background-position: center;
	background-repeat: no-repeat;
	background-size: cover;
	opacity: 0.25;
	z-index: -1;
}

card
{
	transition: 0.25s;
	aspect-ratio: var(--card_ratio);
	display: block;
	box-sizing: border-box;
	position: relative;
	filter: drop-shadow(0 0 8px 1px black);
	z-index: 0;
	background-position: center;
	background-repeat: no-repeat;
	background-size: cover;
	image-rendering: auto;
}

@keyframes showcarddetails
{
	from
	{
		-moz-transform: perspective(1000px) rotateY(90deg) translateZ(0);
		transform: perspective(1000px) rotateY(90deg) translateZ(0);
	}
}

card:has(.reverse)
{
	transform-style: preserve-3d;
}

card > .reverse
{
	position: absolute;
	box-sizing: border-box;
	left: 0;
	top: 0;
	background-image: url("../gfx/cards/back.jpg");
	background-color: var(--dark);
	background-size: cover;
	background-repeat: no-repeat;
	background-position: 20%;
	box-shadow: inset 0 0 20px var(--dark);
	backface-visibility: hidden;
}

card.unknown
{
	background-color: var(--dark);
	display: flex;
	justify-content: center;
	align-items: center;
	color: white;
	user-select: none;
	font-size: 25px;
	font-weight: bold;
	text-shadow: 0 1px 5px darkgray;
	border: 1px solid gray;
	box-shadow: inset 0 0 10px black;
}

card.unknown::after
{
	z-index: -1;
	content: "";
	position: absolute;
	width: 100%;
	height: 100%;
	background-image: url("https://magecast.online/gfx/backgrounds/uibackground.jpg");
	background-position: center;
	background-repeat: no-repeat;
	background-size: cover;
	opacity: 0.25;
}

card.unknown::before
{
	content: "";
	position: absolute;
    width: 100%;
    height: 25%;
	bottom: 0;
    z-index: 0;
	background-color: white;
    mask-image: linear-gradient(to right, rgba(0, 0, 0, 1) -75%, rgba(0, 0, 0, 0) 100%), linear-gradient(to left, rgba(0, 0, 0, 1) -75%, rgba(0, 0, 0, 0) 100%), linear-gradient(to top, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0) 100%);
    -webkit-mask-composite: intersect;
    mask-composite: intersect;
    mask-repeat: no-repeat;
    mask-size: cover;
    mask-position: center;
}