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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: white;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.container {
    width: 100%;
    max-width: 900px;
}

.page-title {
    font-size: 96px;
    font-weight: 700;
    text-align: center;
    color: #112e17;
    margin-bottom: 40px;
    font-family: 'Dancing Script', cursive;
    letter-spacing: 2px;
}

.gift-card-viewer {
    background: transparent;
    border-radius: 20px;
    padding: 30px;
}

.card-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 2 / 1;
    overflow: hidden;
    border-radius: 15px;
    touch-action: pan-y pinch-zoom;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.card {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.4s cubic-bezier(0.4, 0.0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url('green-bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.card.active {
    opacity: 1;
    transform: translateX(0);
    z-index: 2;
}

.card.prev {
    transform: translateX(-100%);
    opacity: 0;
}

.card.swipe-left {
    transform: translateX(-100%);
    opacity: 0;
}

.card.swipe-right {
    transform: translateX(100%);
    opacity: 0;
}

.card img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 10px;
    user-select: none;
    -webkit-user-drag: none;
}

.card-content {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    padding: 20px 25px 30px;
    color: white;
}

.card-title {
    font-size: 32px;
    font-weight: 700;
    margin: 20px 0 30px 0;
    color: #cdc298;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.card-description {
    font-size: 24px;
    line-height: 1.5;
    margin: 0;
    color: #cdc298;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    max-width: 75%;
}

.navigation {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 25px;
    padding: 0 10px;
}

.nav-btn {
    background: linear-gradient(135deg, #0a4d3c 0%, #1a7a5e 100%);
    border: none;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(26, 122, 94, 0.4);
}

.nav-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(26, 122, 94, 0.6);
}

.nav-btn:active {
    transform: scale(0.95);
}

.nav-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: scale(1);
}

.counter {
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ddd;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: linear-gradient(135deg, #0a4d3c 0%, #1a7a5e 100%);
    transform: scale(1.3);
}

.dot:hover {
    transform: scale(1.2);
}

.redeem-section {
    margin-top: 25px;
    display: flex;
    justify-content: center;
}

.redeem-btn {
    background: linear-gradient(135deg, #0a4d3c 0%, #1a7a5e 100%);
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(26, 122, 94, 0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.redeem-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(26, 122, 94, 0.6);
}

.redeem-btn:active {
    transform: translateY(0);
}

.redeem-btn.redeemed {
    background: #888;
    cursor: not-allowed;
    opacity: 0.6;
}

.card.redeemed {
    filter: grayscale(100%) brightness(0.7);
    opacity: 0.6;
}

.card.redeemed::after {
    content: 'BEVÁLTVA';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-15deg);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 15px 30px;
    font-size: 28px;
    font-weight: bold;
    border-radius: 10px;
    letter-spacing: 3px;
    border: 3px solid #fff;
    z-index: 10;
}

/* Responsive design */
@media (max-width: 768px) {
    .gift-card-viewer {
        padding: 20px;
    }
    
    .page-title {
        font-size: 56px;
        margin-bottom: 30px;
    }
    
    .nav-btn {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
    
    .counter {
        font-size: 16px;
    }
    
    .redeem-btn {
        padding: 12px 30px;
        font-size: 16px;
    }
    
    .card-title {
        font-size: 20px;
    }
    
    .card-description {
        font-size: 13px;
    }
    
    .card-content {
        padding: 15px 20px 25px;
    }
    
    .card.redeemed::after {
        font-size: 24px;
        padding: 12px 25px;
    }
}

@media (max-width: 480px) {
    .gift-card-viewer {
        padding: 15px;
    }
    
    .page-title {
        font-size: 42px;
        margin-bottom: 20px;
        letter-spacing: 1px;
    }
    
    .nav-btn {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .counter {
        font-size: 14px;
    }
    
    .dots {
        gap: 8px;
    }
    
    .dot {
        width: 10px;
        height: 10px;
    }
    
    .redeem-btn {
        padding: 10px 25px;
        font-size: 14px;
    }
    
    .card-title {
        font-size: 18px;
        margin: 0 0 8px 0;
    }
    
    .card-description {
        font-size: 12px;
    }
    
    .card-content {
        padding: 12px 15px 20px;
    }
    
    .card.redeemed::after {
        font-size: 20px;
        padding: 10px 20px;
    }
}
