Spaces:
Running
Running
| body { | |
| font-family: Arial, sans-serif; | |
| display: flex; | |
| flex-direction: column; | |
| align-items: center; | |
| justify-content: center; | |
| height: 100vh; | |
| margin: 0; | |
| background-color: #19181a; | |
| } | |
| #shuffleButton { | |
| padding: 10px 20px; | |
| font-size: 16px; | |
| margin-bottom: 20px; | |
| cursor: pointer; | |
| } | |
| #cardContainer { | |
| position: relative; | |
| width: 100%; | |
| height: 80%; | |
| border: 2px solid #29272b; | |
| overflow: hidden; | |
| } | |
| .card { | |
| width: 100px; | |
| height: 170px; | |
| position: absolute; | |
| cursor: grab; | |
| perspective: 1000px; | |
| transition: transform 0.6s; | |
| transform-style: preserve-3d; | |
| } | |
| .card .front, | |
| .card .back { | |
| position: absolute; | |
| width: 100%; | |
| height: 100%; | |
| backface-visibility: hidden; | |
| background-size: cover; | |
| background-position: center; | |
| border-radius: 10px; | |
| } | |
| .card .back { | |
| transform: rotateY(180deg); | |
| } | |
| .card.flipped { | |
| transform: rotateY(180deg); | |
| } | |
| .card.dragging { | |
| z-index: 1000; | |
| } | |
| .dragging { | |
| cursor: grabbing ; | |
| } | |