
.menu {
	display: table;
}

.menu2 {
	position: fixed;
	bottom: -25vh;
	left: 50%;
	transform: translate(-50%, 0vh) scale(0.5);
	transition: transform 0.5s ease-in-out;
}

.card {
	--offset: calc(sin(var(--i))*-5vmin);
	width: 20vmin;
	height: 30vmin;
	max-width: 100px;
	max-height: 150px;
	background: white;
	border-radius: 1vmin;
	background: repeating-radial-gradient(#fff, #ccc);
	box-shadow: 1px 1px 5px 0px #222, inset 1px 1px 3px #dec, inset -1px -1px 2px #564;
	color: #000;
	display: inline-flex;
	justify-content: center;
	align-items:center;
	font-family: 'myFontPoker';
	font-size: clamp(2vmin, 4vw, 1.3em);
	line-height: 1;
	vertical-align: middle;
	position: relative;
	padding: 1vw;
	transform-origin: center;
	transform: rotate( calc(-20deg + (var(--i) * 15deg)) )  translate(0, calc(var(--offset)));
	cursor: pointer;
	transition: all 0.5s;
}

.card:hover {
	--offset: calc(sin(var(--i))*-5vmin - 3vmin);
	background: repeating-radial-gradient(#fff, #cca);
	transform: rotate( calc(-20deg + (var(--i) * 15deg)) ) translate(0, calc(var(--offset))) ;
	box-shadow: 0px -3px 8px 2px #ffa, inset 1px 1px 3px #dec, inset -1px -1px 2px #564;
}

.card b {
	display: inline-block;
	position: absolute;
	width: 0.8em;
	height: 0.8em;
	font-size:2em;
	line-height: 0.7;
	left:2px;
	top:2px;
}

.card b:last-child {
	left:unset;
	top:unset;
	right: 2px;
	bottom: 0.2em;
}	

.topcard {
	--i: 2;
	position: absolute;
	right: 10px;
	bottom: 30px;
	transform: translate(-20%, -0%) rotate(-15deg);
	
	width: 10vmin;
	height: 15vmin;
	max-width: 55px;
	max-height: 80px;
	
	align-content: center;
	background: #aaa;
	border-radius: 1vmin;
	background: repeating-radial-gradient(#fff, #ccc);
	box-shadow: 1px 1px 3px 0px #222, inset 1px 1px 1px #dec, inset -1px -1px 1px #564;
	cursor: pointer;
	opacity: 0.9;
}

.topcard:hover {
	background: repeating-radial-gradient(#fff, #cca);
	box-shadow: 0px -3px 8px 2px #ffa, inset 1px 1px 3px #dec, inset -1px -1px 2px #564;
}

.topcard span {
	display: block;
	width: 5vmin;
	max-width: 25px;
	height: 3px;
	margin: 5px auto;
	background: black;	
}
/*Mobile*/
@media (max-width: 600px) {
	.menu2 {
		width: 90vw;
	}
}

/*Desktop*/
@media (min-width: 1000px) {
	.menu2 {
		bottom: -5vh;
		transform: translate(-50%, 0vh) scale(1.0);
	}
	
	.topcard {
		display: none;
	}
}