* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    overflow: hidden;
}

.card-container {
    position: relative;
    width: 320px;
    height: 500px;
}

.card {
    position: absolute;
    width: 100%;
    height: 100%;
    background: white;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s ease, opacity 0.3s ease;
    cursor: grab;
}

.card:active {
    cursor: grabbing;
}

.card img {
    width: 100%;
    height: 70%;
    object-fit: cover;
}

.card-info {
    padding: 20px;
    text-align: center;
}

.card-info h2 {
    margin-bottom: 10px;
    color: #333;
}

.card-info p {
    color: #666;
}

/* Stacking cards */
.card:nth-child(1) { z-index: 5; }
.card:nth-child(2) { z-index: 4; transform: scale(0.95) translateY(10px); }
.card:nth-child(3) { z-index: 3; transform: scale(0.9) translateY(20px); }
.card:nth-child(4) { z-index: 2; transform: scale(0.85) translateY(30px); }
.card:nth-child(5) { z-index: 1; transform: scale(0.8) translateY(40px); }

/* Swipe animations */
.card.like {
    transform: translateX(200px) rotate(30deg) scale(0.8);
    opacity: 0;
}

.card.dislike {
    transform: translateX(-200px) rotate(-30deg) scale(0.8);
    opacity: 0;
}

/* Responsive */
@media (max-width: 600px) {
    .card-container {
        width: 280px;
        height: 450px;
    }
}