body {
    margin: 0;
    padding: 0;
    background: #fff;
    font-family: 'Playfair Display', 'Dancing Script', cursive, serif;
    font-style: italic;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

.decor-bg {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 0;
    pointer-events: none;
    background: 
        radial-gradient(circle at 10% 20%, #f7e9ff 0%, transparent 70%),
        radial-gradient(circle at 90% 10%, #e0f7fa 0%, transparent 70%),
        radial-gradient(circle at 80% 80%, #ffe0e0 0%, transparent 70%),
        radial-gradient(circle at 20% 80%, #e0ffe7 0%, transparent 70%);
    opacity: 0.7;
}

.container {
    position: relative;
    z-index: 1;
    max-width: 600px;
    margin: 60px auto 0 auto;
    background: rgba(255,255,255,0.95);
    border-radius: 32px;
    box-shadow: 0 8px 32px rgba(80,80,120,0.08);
    padding: 40px 30px 30px 30px;
    text-align: center;
}

.motivational {
    font-family: 'Playfair Display', 'Dancing Script', cursive, serif;
    font-size: 1.8rem;
    color: #2c2c2c;
    margin-bottom: 5px;
    font-weight: 400;
    letter-spacing: 1px;
    font-style: italic;
    text-shadow: 0 2px 4px rgba(44,44,44,0.1);
}

.friend-name {
    font-family: 'Playfair Display', 'Dancing Script', cursive, serif;
    font-size: 3.5rem;
    color: #2c2c2c;
    margin: 15px 0 8px 0;
    font-weight: 900;
    letter-spacing: 3px;
    font-style: italic;
    text-shadow: 0 3px 6px rgba(44,44,44,0.15);
    line-height: 1.1;
}

.friend-lastname {
    font-family: 'Playfair Display', cursive, serif;
    font-size: 1.4rem;
    color: #666;
    margin: 0 0 20px 0;
    font-weight: 400;
    letter-spacing: 1px;
    font-style: italic;
}

.dates {
    font-family: 'Playfair Display', cursive, serif;
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 24px;
    font-style: italic;
    font-weight: 400;
}

.profile-img {
    margin-bottom: 32px;
}
.profile-img img {
    width: 180px;
    height: 180px;
    object-fit: cover;
    border-radius: 50%;
    border: 6px solid #fff;
    box-shadow: 0 4px 24px rgba(74,20,140,0.12);
    background: #f3f3f3;
}

.memorial-text {
    font-family: 'Playfair Display', cursive, serif;
    font-size: 1.4rem;
    color: #4a4a4a;
    margin: 24px 0;
    font-style: italic;
    font-weight: 400;
    line-height: 1.6;
    text-align: center;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.carousel-container {
    margin-top: 24px;
}
.carousel {
    position: relative;
    width: 100%;
    max-width: 400px;
    height: 400px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 18px;
    box-shadow: 0 2px 16px rgba(74,20,140,0.07);
    background: #fafafa;
}
.carousel-img {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0;
    transition: opacity 1s;
}
.carousel-img.active {
    opacity: 1;
    z-index: 1;
}

.upload-section {
    margin-top: 30px;
    text-align: center;
}

.upload-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    font-family: 'Playfair Display', serif;
    font-style: italic;
}

.upload-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: white;
    margin: 10% auto;
    padding: 30px;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    position: relative;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    right: 15px;
    top: 10px;
}

.close:hover { color: #000; }

.modal-content h3 {
    font-family: 'Playfair Display', serif;
    color: #2c2c2c;
    margin-bottom: 20px;
    font-style: italic;
}

.modal-content input, .modal-content textarea {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: 'Montserrat', sans-serif;
    box-sizing: border-box;
}

.modal-content button {
    background: #667eea;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    cursor: pointer;
    font-family: 'Playfair Display', serif;
    width: 100%;
    margin-top: 10px;
}

.modal-content button:hover {
    background: #5a6fd8;
}

@media (max-width: 700px) {
    .container {
        padding: 20px 15px 20px 15px;
        margin: 30px auto 0 auto;
    }
    .motivational {
        font-size: 1.4rem;
    }
    .friend-name {
        font-size: 2.8rem;
        letter-spacing: 2px;
        margin: 12px 0 6px 0;
    }
    .friend-lastname {
        font-size: 1.1rem;
    }
    .profile-img img {
        width: 160px;
        height: 160px;
    }
    .memorial-text {
        font-size: 1.2rem;
        margin: 20px 0;
    }
    .carousel {
        max-width: 100%;
        width: 100%;
        height: 350px;
        margin: 20px auto;
    }
    .upload-btn {
        padding: 14px 28px;
        font-size: 1.1rem;
    }
}
