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

body {
    font-family: 'Georgia', serif;
    background: linear-gradient(135deg, #7FB5C3 0%, #C2BCB5 50%, #8D857B 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.container {
    width: 100%;
    max-width: 500px;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
}

.card-stack {
    position: relative;
    width: 100%;
    height: 60vh;
    max-height: 600px;
}

.card {
    position: absolute;
    width: 100%;
    height: 100%;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    padding: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    cursor: grab;
    user-select: none;
    transition: transform 0.3s ease;
}

.card:active {
    cursor: grabbing;
}

.card.swiping {
    transition: none;
}

.card.swiped-left {
    transform: translateX(-150%) rotate(-30deg);
    transition: transform 0.3s ease;
}

.card.swiped-right {
    transform: translateX(150%) rotate(30deg);
    transition: transform 0.3s ease;
}

.quote {
    font-size: 1.5rem;
    line-height: 1.8;
    color: #333;
    margin-bottom: 30px;
}

.author {
    font-size: 1rem;
    color: #888;
    font-style: italic;
}

.counter {
    position: absolute;
    bottom: 40px;
    color: white;
    font-size: 0.9rem;
    opacity: 0.7;
}

.instructions {
    transition: opacity 0.5s ease;
}

.instructions {
    position: absolute;
    bottom: 80px;
    color: white;
    font-size: 0.8rem;
    opacity: 0.5;
}

@media (max-width: 600px) {
    .quote {
        font-size: 1.2rem;
    }
    
    .card {
        padding: 30px;
    }
}
