@import url('https://fonts.googleapis.com/css2?family=Dancing+Script:wght@700&family=Montserrat:wght@300;400;600&display=swap');

:root {
    --primary-color: #ff69b4;
    --secondary-color: #fff0f5;
    --accent-color: #ff1493;
    --text-color: #4a4a4a;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: linear-gradient(135deg, var(--secondary-color), #ffe6f2);
    font-family: 'Montserrat', sans-serif;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-color);
    padding: 20px;
}

.container {
    width: 100%;
    max-width: 900px;
    position: relative;
}

.heart-loader {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 50px;
    color: var(--primary-color);
    animation: pulse 1.5s infinite;
}

.content {
    opacity: 0;
    transform: translateY(20px);
    transition: all 1s ease;
}

.content.visible {
    opacity: 1;
    transform: translateY(0);
}

.letter {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(255, 105, 180, 0.15);
    margin: 2rem 0;
    transform: translateY(0);
    transition: transform 0.3s ease;
}

.letter:hover {
    transform: translateY(-5px);
}

.title {
    font-family: 'Dancing Script', cursive;
    color: var(--primary-color);
    font-size: 4rem;
    text-align: center;
    margin-bottom: 2rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.opening {
    font-family: 'Dancing Script', cursive;
    font-size: 2rem;
    color: var(--accent-color);
    margin-bottom: 2rem;
}

.message p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
    font-size: 1.1rem;
    text-align: justify;
}

.special {
    font-size: 1.3rem;
    color: var(--accent-color);
    text-align: center !important;
    font-weight: 600;
    margin: 3rem 0;
}

.closing {
    font-family: 'Dancing Script', cursive;
    font-size: 1.8rem;
    text-align: right;
    color: var(--primary-color);
    margin-top: 3rem;
}

.gallery {
    margin-top: 4rem;
}

.memory-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 2rem;
}

.memory {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(255, 105, 180, 0.1);
    transition: transform 0.3s ease;
}

.memory:hover {
    transform: translateY(-5px);
}

.floating-hearts {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: -1;
}

@keyframes pulse {
    0% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.2); }
    100% { transform: translate(-50%, -50%) scale(1); }
}

@keyframes float {
    0% { transform: translateY(0) rotate(0); }
    50% { transform: translateY(-20px) rotate(10deg); }
    100% { transform: translateY(0) rotate(0); }
}

@media (max-width: 768px) {
    .title {
        font-size: 3rem;
    }
    
    .letter {
        padding: 2rem;
    }
    
    .message p {
        font-size: 1rem;
    }
    
    .special {
        font-size: 1.2rem;
    }
    
    .closing {
        font-size: 1.5rem;
    }
}