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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #f5e6ff 0%, #ffe6f0 50%, #fff0f8 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
    position: relative;
    padding: 20px;
}

/* Floating hearts background */
.hearts-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.heart {
    position: absolute;
    font-size: 20px;
    animation: float-up 6s linear infinite;
    opacity: 0;
}

@keyframes float-up {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}

/* Collage Images Outside Card */
.collage-container {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 5;
}

.collage-img {
    position: absolute;
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 15px;
    border: 5px solid white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    animation: floatRandom 4s ease-in-out infinite;
    opacity: 0;
}

.collage-1 {
    top: 15%;
    left: 10%;
    transform: rotate(-15deg);
    width: 375px;
    height: 375px;
    animation: floatRandom 4s ease-in-out infinite, fadeIn 1s ease-out 0.2s forwards;
}

.collage-2 {
    top: 60%;
    left: 8%;
    transform: rotate(12deg);
    width: 120px;
    height: 120px;
    animation: floatRandom 5s ease-in-out infinite, fadeIn 1s ease-out 0.4s forwards;
}

.collage-3 {
    top: 20%;
    right: 12%;
    transform: rotate(18deg);
    width: 140px;
    height: 140px;
    animation: floatRandom 4.5s ease-in-out infinite, fadeIn 1s ease-out 0.6s forwards;
}

.collage-4 {
    bottom: 15%;
    right: 10%;
    transform: rotate(-20deg);
    width: 160px;
    height: 160px;
    animation: floatRandom 5.5s ease-in-out infinite, fadeIn 1s ease-out 0.8s forwards;
}

@keyframes floatRandom {
    0%, 100% {
        transform: translateY(0) rotate(var(--rotate, 0deg));
    }
    50% {
        transform: translateY(-15px) rotate(calc(var(--rotate, 0deg) + 5deg));
    }
}

.collage-1 { --rotate: -15deg; }
.collage-2 { --rotate: 12deg; }
.collage-3 { --rotate: 18deg; }
.collage-4 { --rotate: -20deg; }

/* Main container */
.container {
    z-index: 10;
    padding: 0;
    max-width: 600px;
    width: 100%;
    animation: fadeIn 1s ease-in 0.3s backwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Card styling */
.card {
    background: white;
    border-radius: 30px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(200, 100, 200, 0.3);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 20px 60px rgba(200, 100, 200, 0.3);
    }
    50% {
        box-shadow: 0 20px 80px rgba(255, 150, 200, 0.5);
    }
}

.card-header {
    text-align: center;
    margin-bottom: 30px;
}

.question {
    color: #9b59b6;
    font-size: 28px;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(255, 182, 193, 0.3);
    animation: bounce 1s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.card-body {
    text-align: center;
}

.image-container {
    margin: 20px 0;
    animation: rotateIn 1s ease-out;
}

@keyframes rotateIn {
    from {
        transform: rotate(-180deg) scale(0);
        opacity: 0;
    }
    to {
        transform: rotate(0) scale(1);
        opacity: 1;
    }
}

.hero-image {
    max-width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(200, 100, 200, 0.3);
    border: 5px solid #ffb6d9;
    transition: transform 0.3s ease;
}

.hero-image:hover {
    transform: scale(1.05) rotate(2deg);
}

.message {
    margin: 30px 0;
    padding: 20px;
    background: linear-gradient(135deg, #f5e6ff 0%, #ffe6f0 100%);
    border-radius: 15px;
    border: 2px dashed #ffb6d9;
}

.message p {
    color: #c06c84;
    font-size: 18px;
    font-weight: 500;
}

/* Buttons */
.card-footer {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 30px;
}

.btn {
    padding: 15px 40px;
    font-size: 20px;
    font-weight: bold;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    position: relative;
}

.btn-yes {
    background: linear-gradient(135deg, #9b59b6 0%, #e91e63 100%);
    color: white;
}

.btn-yes:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(233, 30, 99, 0.4);
}

.btn-yes:active {
    transform: scale(1.05);
}

.btn-no {
    background: linear-gradient(135deg, #ffb6d9 0%, #ffc4d6 100%);
    color: #c06c84;
    transition: all 0.2s ease;
}

.btn-no:hover {
    transform: scale(1.05);
}

/* Celebration screen */
.celebration-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f5e6ff 0%, #ffe6f0 50%, #fff0f8 100%);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    animation: fadeIn 1s ease-in;
}

.celebration-screen.show {
    display: flex;
}

.celebration-content {
    text-align: center;
    padding: 40px;
    background: white;
    border-radius: 30px;
    max-width: 600px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(200, 100, 200, 0.4);
    animation: zoomIn 0.8s ease-out;
}

@keyframes zoomIn {
    from {
        transform: scale(0) rotate(-180deg);
        opacity: 0;
    }
    to {
        transform: scale(1) rotate(0);
        opacity: 1;
    }
}

.celebration-title {
    font-size: 48px;
    color: #9b59b6;
    margin-bottom: 20px;
    animation: rainbow 3s ease-in-out infinite;
}

@keyframes rainbow {
    0%, 100% { color: #9b59b6; }
    25% { color: #e91e63; }
    50% { color: #ff69b4; }
    75% { color: #c06c84; }
}

.celebration-message {
    font-size: 24px;
    color: #c06c84;
    margin-bottom: 30px;
    font-weight: 500;
}

.celebration-images {
    margin: 30px 0;
}

.double-images {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.celebration-img {
    max-width: 250px;
    width: 100%;
    height: auto;
    border-radius: 20px;
    border: 5px solid #ffb6d9;
    box-shadow: 0 10px 30px rgba(200, 100, 200, 0.3);
    animation: heartbeat 1.5s ease-in-out infinite;
}

.us-img {
    animation-delay: 0s;
}

.accent-img {
    animation-delay: 0.75s;
    max-width: 200px;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    25% { transform: scale(1.05); }
    50% { transform: scale(1); }
    75% { transform: scale(1.05); }
}

.love-note {
    margin-top: 30px;
    padding: 25px;
    background: linear-gradient(135deg, #f5e6ff 0%, #ffe6f0 100%);
    border-radius: 15px;
    border: 3px solid #ffb6d9;
}

.love-note p {
    color: #9b59b6;
    font-size: 20px;
    font-weight: 500;
    margin: 10px 0;
}

/* Fireworks effect */
.fireworks {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.firework {
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    animation: explode 1s ease-out forwards;
}

@keyframes explode {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 1;
    }
    100% {
        transform: translate(var(--x), var(--y)) scale(0);
        opacity: 0;
    }
}

/* Responsive design */
@media (max-width: 768px) {
    .collage-img {
        width: 100px;
        height: 100px;
    }
    
    .collage-1 {
        top: 10%;
        left: 5%;
        width: 250px;
        height: 250px;
    }
    
    .collage-2 {
        top: 70%;
        left: 5%;
        width: 80px;
        height: 80px;
    }
    
    .collage-3 {
        top: 12%;
        right: 5%;
        width: 90px;
        height: 90px;
    }
    
    .collage-4 {
        bottom: 10%;
        right: 5%;
        width: 100px;
        height: 100px;
    }
    
    .card {
        padding: 25px;
    }
    
    .question {
        font-size: 22px;
    }
    
    .message p {
        font-size: 16px;
    }
    
    .btn {
        padding: 12px 30px;
        font-size: 18px;
    }
    
    .card-footer {
        flex-direction: column;
        gap: 15px;
    }
    
    .celebration-title {
        font-size: 36px;
    }
    
    .celebration-message {
        font-size: 20px;
    }
    
    .love-note p {
        font-size: 18px;
    }
    
    .double-images {
        flex-direction: column;
    }
    
    .celebration-img {
        max-width: 200px;
    }
    
    .accent-img {
        max-width: 150px;
    }
}

@media (max-width: 480px) {
    .collage-img {
        width: 70px;
        height: 70px;
    }
    
    .collage-1 {
        width: 175px;
        height: 175px;
    }
    
    .collage-2 {
        width: 60px;
        height: 60px;
    }
    
    .collage-3 {
        width: 65px;
        height: 65px;
    }
    
    .collage-4 {
        width: 75px;
        height: 75px;
    }
    
    .container {
        padding: 10px;
    }
    
    .card {
        padding: 20px;
        border-radius: 20px;
    }
    
    .question {
        font-size: 20px;
    }
    
    .btn {
        padding: 10px 25px;
        font-size: 16px;
    }
    
    .celebration-title {
        font-size: 28px;
    }
    
    .celebration-message {
        font-size: 18px;
    }
    
    .celebration-content {
        padding: 25px;
    }
}
