.card-container 
{
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-ms-flex-wrap: wrap;
	    flex-wrap: wrap;
  	-webkit-perspective: 1200px;
  	        perspective: 1200px;
  	-webkit-box-pack: center;
  	    -ms-flex-pack: center;
  	        justify-content: center;
}

.card {
	position: relative;
	-webkit-transform-style: preserve-3d;
	        transform-style: preserve-3d;
	-webkit-transition: -webkit-transform 0.7s ease;
	transition: -webkit-transform 0.7s ease;
	-o-transition: transform 0.7s ease;
	transition: transform 0.7s ease;
	transition: transform 0.7s ease, -webkit-transform 0.7s ease;
	-webkit-transform-origin: center center;
	    -ms-transform-origin: center center;
	        transform-origin: center center;
	cursor: pointer;
}

.card.is-flipped 
{
	-webkit-transform: rotateY(180deg);
	        transform: rotateY(180deg);
}

.card-face 
{
  position: absolute;
  inset: 0;
  -webkit-backface-visibility: hidden;
          backface-visibility: hidden;
}

.card-front 
{
  -webkit-transform: rotateY(180deg);
          transform: rotateY(180deg);
}

#rocks-container 
{
    width: 100%;
}

.skill-rock 
{
    display: inline-block;
    width: -webkit-fit-content;
    width: -moz-fit-content;
    width: fit-content;
    padding:  clamp(12px, 1.6vw, 20px) clamp(22px, 3vw, 36px);
    font-size: clamp(13px, 1.1vw, 16px);
    font-weight: 500;
    text-align: center;
    color: white;
    cursor: pointer;
    white-space: nowrap;
    -webkit-transition: all 0.35s cubic-bezier(.2,.8,.2,1);
    -o-transition: all 0.35s cubic-bezier(.2,.8,.2,1);
    transition: all 0.35s cubic-bezier(.2,.8,.2,1);
    white-space: nowrap;

    -webkit-clip-path: polygon(
        25% 0%,
        75% 0%,
        100% 50%,
        75% 100%,
        25% 100%,
        0% 50%
    );

            clip-path: polygon(
        25% 0%,
        75% 0%,
        100% 50%,
        75% 100%,
        25% 100%,
        0% 50%
    );

    background: -o-linear-gradient(305deg, #ff4d6d, #7a001a);

    background: linear-gradient(145deg, #ff4d6d, #7a001a);

    border: 1px solid rgba(255,255,255,0.25);

    /* 3D effect */
    -webkit-box-shadow:
        inset -8px -8px 16px rgba(0,0,0,0.7),
        inset 8px 8px 18px rgba(255,255,255,0.15),
        0 12px 25px rgba(0,0,0,0.6);
            box-shadow:
        inset -8px -8px 16px rgba(0,0,0,0.7),
        inset 8px 8px 18px rgba(255,255,255,0.15),
        0 12px 25px rgba(0,0,0,0.6);
        overflow: hidden;
}

.skill-rock::before 
{
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: -o-linear-gradient(
        330deg,
        transparent 30%,
        rgba(255,255,255,0.25) 45%,
        rgba(255,255,255,0.05) 55%,
        transparent 70%
    );
    background: linear-gradient(
        120deg,
        transparent 30%,
        rgba(255,255,255,0.25) 45%,
        rgba(255,255,255,0.05) 55%,
        transparent 70%
    );
    -webkit-transform: rotate(25deg);
        -ms-transform: rotate(25deg);
            transform: rotate(25deg);
    pointer-events: none;
    -webkit-transition: opacity 0.3s ease;
    -o-transition: opacity 0.3s ease;
    transition: opacity 0.3s ease;
    opacity: 0.4;
}

.skill-rock:hover 
{
    -webkit-transform: translateY(-6px) scale(1.08);
        -ms-transform: translateY(-6px) scale(1.08);
            transform: translateY(-6px) scale(1.08);
    -webkit-box-shadow:
        inset -10px -10px 20px rgba(0,0,0,0.8),
        inset 10px 10px 20px rgba(255,255,255,0.2),
        0 20px 40px rgba(0,0,0,0.8),
        0 0 25px rgba(255,255,255,0.4);
            box-shadow:
        inset -10px -10px 20px rgba(0,0,0,0.8),
        inset 10px 10px 20px rgba(255,255,255,0.2),
        0 20px 40px rgba(0,0,0,0.8),
        0 0 25px rgba(255,255,255,0.4);
}

.skill-rock:hover::before 
{
    opacity: 0.7;
}

.ruby { background: -o-linear-gradient(305deg, #ff4d6d, #7a001a); background: linear-gradient(145deg, #ff4d6d, #7a001a); }
.sapphire { background: -o-linear-gradient(305deg, #4da6ff, #001f4d); background: linear-gradient(145deg, #4da6ff, #001f4d); }
.emerald { background: -o-linear-gradient(305deg, #5cff8d, #004d26); background: linear-gradient(145deg, #5cff8d, #004d26); }
.amethyst { background: -o-linear-gradient(305deg, #d580ff, #3a0066); background: linear-gradient(145deg, #d580ff, #3a0066); }
.onyx { background: -o-linear-gradient(305deg, #494949, #000000); background: linear-gradient(145deg, #494949, #000000); }

@media all and (min-width:300px) 
{
	.card 
	{
		width: 270px;
		height: 380px;
	}

	.card-face img 
	{
		width: 250px;
	}
}

@media all and (max-width:300px) 
{
	.card 
	{
		width: 250px;
		height: 360px;
	}

	.card-face img 
	{
		width: 230px;
	}
}