:root {
    --sun-yellow: #ffcc00;
    --deep-orange: #ff8800;
    --leaf-green: #4caf50;
    --earth-brown: #5d4037;
    --glass-bg: rgba(255, 255, 255, 0.25);
    --glass-border: rgba(255, 255, 255, 0.4);
}

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

body {
    font-family: 'Outfit', sans-serif;
    background: linear-gradient(135deg, #fff59d 0%, #a5d6a7 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
    overflow-y: auto;
    color: #3e2723;
    padding: 40px 0;
}

#flower-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.container {
    position: relative;
    z-index: 10;
    width: 90%;
    max-width: 500px;
}

.card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 2px solid var(--glass-border);
    border-radius: 40px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.card:hover {
    transform: scale(1.02);
}

h1 {
    font-family: 'Dancing Script', cursive;
    font-size: 3.2rem;
    color: #e65100;
    margin-bottom: 25px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.05);
}

p {
    font-size: 1.15rem;
    line-height: 1.7;
    margin-bottom: 35px;
    font-weight: 400;
}

button {
    background: linear-gradient(to right, var(--sun-yellow), var(--deep-orange));
    color: #3e2723;
    border: none;
    padding: 18px 45px;
    border-radius: 60px;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(255, 136, 0, 0.4);
    transition: all 0.4s ease;
}

button:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(255, 136, 0, 0.6);
    filter: brightness(1.1);
}

.hidden {
    display: none;
}

.step {
    display: none;
    animation: fadeIn 0.6s ease-out forwards;
}

.step.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.romantic-image-container {
    width: 100%;
    max-height: 400px;
    border-radius: 25px;
    overflow: hidden;
    margin-bottom: 30px;
    border: 5px solid white;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    background: #fdfdfd;
}

.story-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.message.highlight {
    font-size: 1.3rem;
    color: #e65100;
    font-weight: 600;
}

.flower-icon {
    font-size: 6rem;
    margin-bottom: 25px;
    display: inline-block;
    animation: rotate 10s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.card-content {
    animation: slideUp 0.8s ease-out forwards;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Floating floral elements */
.floating-item {
    position: absolute;
    user-select: none;
    pointer-events: none;
    animation: floatFloral 6s ease-in-out infinite;
}

@keyframes floatFloral {
    0% {
        transform: translateY(110vh) rotate(0deg) translateX(0);
        opacity: 0;
    }

    15% {
        opacity: 0.8;
    }

    50% {
        transform: translateX(50px);
    }

    85% {
        opacity: 0.8;
    }

    100% {
        transform: translateY(-20vh) rotate(720deg) translateX(-50px);
        opacity: 0;
    }
}