* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Ma Shan Zheng', cursive, sans-serif;
    background: linear-gradient(135deg, #ff6b6b, #ffb8b8);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #333;
    overflow-x: hidden;
    position: relative;
}

.container {
    width: 100%;
    max-width: 800px;
    padding: 20px;
    z-index: 1;
}

.love-card {
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    padding: 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    perspective: 1000px;
    transition: transform 0.5s ease;
}

.love-card:hover {
    transform: translateY(-5px) rotateX(5deg);
}

.title {
    color: #ff4757;
    font-size: 3.5rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
    animation: pulse 2s infinite;
}

.typing-text {
    font-size: 1.5rem;
    min-height: 4rem;
    margin-bottom: 30px;
    color: #333;
}

.photo-frame {
    margin: 30px auto;
    max-width: 300px;
}

.polaroid {
    background: white;
    padding: 15px 15px 60px 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    transform: rotate(-3deg);
    transition: all 0.3s ease;
}

.polaroid:hover {
    transform: rotate(0deg) scale(1.05);
}

.photo {
    width: 100%;
    height: 200px;
    background-image: url('love.jpg');
    background-size: cover;
    background-position: center;
}

.caption {
    margin-top: 20px;
    font-size: 1.2rem;
}

.love-button {
    background: linear-gradient(45deg, #ff4757, #ff6b6b);
    border: none;
    border-radius: 50px;
    color: white;
    padding: 15px 30px;
    font-size: 1.2rem;
    cursor: pointer;
    outline: none;
    box-shadow: 0 5px 15px rgba(255, 71, 87, 0.4);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    font-family: 'Ma Shan Zheng', cursive;
}

.love-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 71, 87, 0.6);
}

.love-button:active {
    transform: translateY(0px);
}

.button-hearts {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.hidden-message {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.8s ease;
    font-size: 1.3rem;
    margin-top: 30px;
}

.hidden-message.reveal {
    max-height: 1000px;
    opacity: 1;
    padding: 20px 0;
}

.big-text {
    font-size: 3rem;
    color: #ff4757;
    margin: 20px 0;
    animation: pulse 2s infinite;
}

.hearts-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.heart {
    position: absolute;
    width: 20px;
    height: 20px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23ff4757' d='M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z'/%3E%3C/svg%3E") no-repeat center/contain;
    pointer-events: none;
    opacity: 0;
}

.floating-hearts {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.floating-heart {
    position: absolute;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23ff4757' d='M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z'/%3E%3C/svg%3E") no-repeat center/contain;
    opacity: 0.6;
    pointer-events: none;
}

@keyframes float {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.6;
    }
    90% {
        opacity: 0.6;
    }
    100% {
        transform: translateY(-100vh) rotate(360deg);
        opacity: 0;
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes typing {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .love-card {
        padding: 20px;
    }
    
    .title {
        font-size: 2.5rem;
    }
    
    .typing-text {
        font-size: 1.2rem;
    }
    
    .big-text {
        font-size: 2.5rem;
    }
}

.music-note {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: rgba(255, 255, 255, 0.8);
    padding: 10px 15px;
    border-radius: 50px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    z-index: 100;
    font-size: 1rem;
    cursor: pointer;
    animation: pulse 2s infinite;
    transition: all 0.3s ease;
}

.music-note:hover {
    background-color: rgba(255, 255, 255, 1);
    transform: scale(1.05);
} 