:root {
    --primary-color: #e84393;
    --secondary-color: #ff7675;
    --background-dark: #2d3436;
    --text-color: #ffffff;
    --card-bg: rgba(255, 255, 255, 0.15);
    --romantic-gradient: linear-gradient(135deg, #2d3436 0%, #6c5ce7 50%, #e84393 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
    /* Deep romantic night */
    color: var(--text-color);
    min-height: 100vh;
    /* overflow: hidden; Removed to allow scroll if needed, handled by container */
    display: flex;
    justify-content: center;
    align-items: flex-start;
    /* Align top for scroll */
}

.container {
    width: 100%;
    max-width: 480px;
    /* Mobile width */
    min-height: 100vh;
    position: relative;
    /* overflow: hidden; Removed to allow scrolling */
    background: radial-gradient(circle at center, rgba(232, 67, 147, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
    padding-bottom: 2rem;
    /* Space for scroll */
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    min-height: 100vh;
    /* Ensure it takes full height */
    opacity: 0;
    visibility: hidden;
    transition: all 0.8s ease-in-out;
    transform: translateY(20px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem 1.5rem;
    /* More padding */
    text-align: center;
    /* Ensure content flows */
}

.slide.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    position: relative;
    /* Make it relative when active to take up space */
}

h1,
h2 {
    font-family: 'Dancing Script', cursive;
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

h1 {
    font-size: 3.5rem;
    color: #fd79a8;
}

h2 {
    font-size: 2.5rem;
    color: #fab1a0;
}

p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    color: #e0e0e0;
}

.highlight {
    color: var(--primary-color);
    font-weight: 600;
}

.image-container {
    width: 100%;
    height: 300px;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 3px solid rgba(255, 255, 255, 0.1);
}

.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

button {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    border: none;
    padding: 1rem 2.5rem;
    color: white;
    font-size: 1.2rem;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(255, 71, 87, 0.4);
    transition: transform 0.2s, box-shadow 0.2s;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
}

button:active {
    transform: scale(0.95);
}

/* Scanner Styles */
.scanner-container {
    width: 120px;
    height: 120px;
    margin: 2rem auto;
    position: relative;
    cursor: pointer;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.scanner-circle {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid rgba(255, 71, 87, 0.3);
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    transition: all 0.3s;
}

.fingerprint-icon {
    width: 60%;
    height: 60%;
    fill: rgba(255, 255, 255, 0.5);
    transition: fill 0.3s;
}

.scanner-circle.scanning {
    border-color: var(--primary-color);
    box-shadow: 0 0 20px var(--primary-color);
}

.scanner-circle.scanning .fingerprint-icon {
    fill: var(--primary-color);
}

.glow {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid transparent;
    border-top-color: var(--primary-color);
    animation: spin 1s linear infinite;
    display: none;
}

.scanner-circle.scanning .glow {
    display: block;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Gift Card */
.gift-card {
    background: linear-gradient(135deg, #ffffff, #f0f0f0);
    color: #333;
    padding: 2rem;
    border-radius: 15px;
    margin: 2rem 0;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
    transform: rotate(-2deg);
    border: 1px solid #ddd;
}

.gift-header {
    display: flex;
    justify-content: space-between;
    font-weight: bold;
    border-bottom: 2px solid #eee;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
    color: #008000;
    /* Saga Greenish tone or generic */
}

.gift-body h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #000;
}

.barcode {
    font-family: 'Courier New', monospace;
    letter-spacing: 5px;
    margin-top: 1rem;
    font-weight: bold;
    opacity: 0.7;
}

.final-message {
    font-size: 1.2rem;
    font-style: italic;
    margin-top: 2rem;
}