

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #fecfef 0%, #ffecd2 50%, #e3f2fd 100%);
    min-height: 100vh;
    overflow-x: hidden;
    color: #333;
    position: relative;
}

/* Loading Spinner - Clean */
.loading-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top: 2px solid #ffffff;
    animation: spin 1s linear infinite;
    margin-right: 8px;
    vertical-align: middle;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Heart loading animation */
.loading-heart {
    display: inline-block;
    animation: heartbeat 1.5s ease-in-out infinite;
    margin-right: 8px;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    25%, 75% { transform: scale(1.1); }
    50% { transform: scale(1.2); }
}

/* Disabled button states */
button:disabled {
    opacity: 0.6;
    cursor: not-allowed !important;
    pointer-events: none;
}

.form-btn:disabled {
    transform: none !important;
    box-shadow: none !important;
}

.navbar-btn:disabled {
    transform: none !important;
    box-shadow: none !important;
}

.remove-btn:disabled {
    transform: none !important;
    box-shadow: none !important;
}

/* Memory Submission Modal - Clean Design */
.memory-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
}

.memory-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #ffffff;
    border-radius: 16px;
    padding: 32px;
    max-width: 480px;
    width: 90%;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 182, 193, 0.2);
    max-height: 90vh;
    overflow-y: auto;
}

.memory-modal h2 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 24px;
    font-size: 1.8rem;
    font-weight: 600;
    background: linear-gradient(135deg, #ff9a9e, #64b5f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.memory-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-weight: 500;
    color: #34495e;
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    padding: 12px 16px;
    border: 1.5px solid #e1e8ed;
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: inherit;
    background: #ffffff;
    transition: all 0.2s ease;
    color: #2c3e50;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #ff9a9e;
    box-shadow: 0 0 0 3px rgba(255, 154, 158, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.file-input-wrapper {
    position: relative;
    overflow: hidden;
    display: inline-block;
    width: 100%;
}

.file-input-wrapper input[type=file] {
    position: absolute;
    left: -9999px;
}

.file-input-label {
    padding: 16px;
    border: 2px dashed #d1d9e0;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    background: #f8fafc;
    transition: all 0.2s ease;
    display: block;
    color: #64748b;
    font-size: 0.9rem;
}

.file-input-label:hover {
    border-color: #ff9a9e;
    background: #fef7f7;
    color: #ff9a9e;
}

.form-buttons {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}

.form-btn {
    flex: 1;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
}

.submit-btn {
    background: linear-gradient(135deg, #ff9a9e, #64b5f6);
    color: white;
}

.submit-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 154, 158, 0.3);
}

.cancel-btn {
    background: #f1f5f9;
    color: #64748b;
    border: 1px solid #e2e8f0;
}

.cancel-btn:hover:not(:disabled) {
    background: #e2e8f0;
    color: #475569;
}

.close-memory-modal {
    position: absolute;
    top: 12px;
    right: 16px;
    color: #94a3b8;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
    line-height: 1;
}

.close-memory-modal:hover {
    color: #ff9a9e;
}

/* Remove Memory Modal - Clean Design */
.remove-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
}

.remove-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #ffffff;
    border-radius: 16px;
    padding: 32px;
    max-width: 560px;
    width: 90%;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.1);
}

.remove-modal h2 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 24px;
    font-size: 1.8rem;
    font-weight: 600;
    background: linear-gradient(135deg, #ef4444, #f87171);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.close-remove-modal {
    position: absolute;
    top: 12px;
    right: 16px;
    color: #94a3b8;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
    line-height: 1;
}

.close-remove-modal:hover {
    color: #ef4444;
}

.memory-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 400px;
    overflow-y: auto;
    padding-right: 8px;
}

.memory-item {
    background: #ffffff;
    border-radius: 12px;
    padding: 16px;
    border: 1px solid #f1f5f9;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 16px;
}

.memory-item:hover {
    border-color: #fecaca;
    background: #fef2f2;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.08);
}

.memory-thumbnail {
    width: 64px;
    height: 48px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
    background: linear-gradient(135deg, #ff9a9e, #64b5f6);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.75rem;
    font-weight: 500;
}

.memory-info {
    flex: 1;
    min-width: 0;
}

.memory-info h3 {
    font-size: 1rem;
    color: #1e293b;
    margin-bottom: 4px;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.memory-info p {
    color: #64748b;
    font-size: 0.85rem;
    margin-bottom: 6px;
    line-height: 1.4;
}

.memory-meta-small {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    color: #94a3b8;
}

.author-small {
    font-weight: 500;
    padding: 2px 8px;
    border-radius: 12px;
    color: white;
    font-size: 0.75rem;
}

.remove-btn {
    background: linear-gradient(135deg, #ef4444, #f87171);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
    flex-shrink: 0;
}

.remove-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.no-memories {
    text-align: center;
    color: #94a3b8;
    font-style: italic;
    padding: 40px 20px;
    font-size: 0.95rem;
}

/* Scrollbar styling for memory list */
.memory-list::-webkit-scrollbar {
    width: 8px;
}

.memory-list::-webkit-scrollbar-track {
    background: rgba(255, 182, 193, 0.1);
    border-radius: 10px;
}

.memory-list::-webkit-scrollbar-thumb {
    background: rgba(255, 154, 158, 0.5);
    border-radius: 10px;
}

.memory-list::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 154, 158, 0.7);
}

/* Memory Author and Meta Styling */
.memory-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 10px;
}

.memory-author {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 20px;
    color: white;
    font-weight: 500;
    font-size: 0.9rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.memory-date {
    font-style: italic;
    color: #666;
    font-size: 0.9rem;
    background: rgba(255, 255, 255, 0.8);
    padding: 6px 12px;
    border-radius: 15px;
    backdrop-filter: blur(5px);
}

/* Future Features Styling */
.memory-features {
    margin-top: 15px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.memory-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tag {
    background: rgba(100, 181, 246, 0.2);
    color: #1976d2;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

.memory-mood {
    color: #ff9a9e;
    font-size: 0.9rem;
    font-weight: 500;
}

.memory-location {
    color: #666;
    font-size: 0.9rem;
}

.memory-rating {
    color: #ffa726;
    font-size: 0.9rem;
}

/* Future feature: Reactions */
.memory-reactions {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.reaction-btn {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    transition: transform 0.2s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.reaction-btn:hover {
    transform: scale(1.1);
}

/* Future feature: Privacy indicators */
.privacy-indicator {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 4px 8px;
    border-radius: 10px;
    font-size: 0.8rem;
}

/* Floating hearts and lilies animation */
.floating-hearts {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.heart {
    position: absolute;
    color: rgba(255, 154, 158, 0.6);
    font-size: 20px;
    animation: float 6s infinite ease-in-out;
}

.lily {
    position: absolute;
    color: rgba(255, 182, 193, 0.7);
    font-size: 24px;
    animation: floatLily 8s infinite ease-in-out;
}

.heart:nth-child(1) { left: 10%; animation-delay: 0s; }
.heart:nth-child(2) { left: 30%; animation-delay: 1s; }
.heart:nth-child(3) { left: 50%; animation-delay: 2s; }
.heart:nth-child(4) { left: 70%; animation-delay: 3s; }
.heart:nth-child(5) { left: 90%; animation-delay: 4s; }

.lily:nth-child(6) { left: 5%; animation-delay: 0.5s; }
.lily:nth-child(7) { left: 25%; animation-delay: 2.5s; }
.lily:nth-child(8) { left: 45%; animation-delay: 4.5s; }
.lily:nth-child(9) { left: 65%; animation-delay: 1.5s; }
.lily:nth-child(10) { left: 85%; animation-delay: 3.5s; }

@keyframes float {
    0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(-100px) rotate(360deg); opacity: 0; }
}

@keyframes floatLily {
    0% { transform: translateY(100vh) rotate(0deg) scale(1); opacity: 0; }
    10% { opacity: 1; }
    50% { transform: translateY(50vh) rotate(180deg) scale(1.1); }
    90% { opacity: 1; }
    100% { transform: translateY(-100px) rotate(360deg) scale(0.8); opacity: 0; }
}

.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #333;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.1);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 20px;
}

.hero-photo {
    width: 300px;
    height: 300px;
    background: linear-gradient(45deg, #ff9a9e, #64b5f6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
    text-align: center;
    margin: 0 auto 40px auto;
    box-shadow: 0 15px 40px rgba(255, 154, 158, 0.4);
    transition: transform 0.3s ease;
    position: relative;
    overflow: hidden;
}

.hero-photo::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    50% { transform: translateX(100%) translateY(100%) rotate(45deg); }
    100% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
}

.hero-photo:hover {
    transform: scale(1.05);
}

.music-player {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

.play-button {
    background: transparent;
    backdrop-filter: blur(10px);
    color: #333;
    border: none;
    padding: 20px 40px;
    border-radius: 60px;
    font-size: 1.1rem;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    font-family: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-width: 200px;
}

.play-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    background: rgba(255, 255, 255, 0.1);
}

.play-button.playing {
    background: rgba(100, 181, 246, 0.15);
    backdrop-filter: blur(10px);
    color: #64b5f6;
}

.play-button.playing:hover {
    background: rgba(100, 181, 246, 0.25);
}

.music-icon {
    font-size: 1.3rem;
    animation: pulse 2s infinite;
}

.play-button.playing .music-icon {
    animation: spin 3s linear infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.button-text {
    font-weight: 500;
    letter-spacing: 0.5px;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.3);
    background: linear-gradient(45deg, #ff9a9e, #64b5f6, #ff9a9e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: 40px;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.3);
    color: #333;
}

.scroll-hint {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: #333;
    font-size: 1rem;
    animation: bounce 2s infinite;
    cursor: pointer;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

.photo-section {
    padding: 100px 20px;
    max-width: 1200px;
    margin: 0 auto;
    overflow-x: hidden;
}

.photo-container {
    display: flex;
    align-items: center;
    margin-bottom: 150px;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease-in-out;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    word-wrap: break-word;
    overflow-wrap: break-word;
    width: 100%;
    max-width: 1200px;
}

.photo-container::before {
    content: '🌸';
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 2rem;
    opacity: 0.3;
    animation: gentleBounce 3s infinite ease-in-out;
}

.photo-container:nth-child(even)::before {
    content: '🌺';
    top: 15px;
    left: 15px;
    right: auto;
}

@keyframes gentleBounce {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-5px); }
}

.photo-container.visible {
    opacity: 1;
    transform: translateY(0);
}

.photo-container:nth-child(even) {
    flex-direction: row-reverse;
}

.photo-placeholder {
    width: 400px;
    height: 300px;
    background: linear-gradient(45deg, #ff9a9e, #64b5f6);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    text-align: center;
    flex-shrink: 0;
    box-shadow: 0 10px 30px rgba(255, 154, 158, 0.3);
    transition: transform 0.3s ease;
    position: relative;
    overflow: hidden;
}

.photo-placeholder::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: slideShine 4s infinite;
}

@keyframes slideShine {
    0% { left: -100%; }
    50% { left: 100%; }
    100% { left: -100%; }
}

.photo-placeholder:hover {
    transform: scale(1.05);
}

/* Memory Bottom Info - Date, Edit Button, and WHO */
.memory-bottom-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
}

.memory-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.edit-memory-btn {
    background: rgba(255, 154, 158, 0.2);
    border: 2px solid rgba(255, 154, 158, 0.3);
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.edit-memory-btn:hover {
    background: rgba(255, 154, 158, 0.4);
    border-color: rgba(255, 154, 158, 0.6);
    transform: scale(1.1);
}

.memory-date-inline {
    font-style: italic;
    color: #666;
    font-size: 0.9rem;
}

.memory-author-inline {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 15px;
    color: white;
    font-weight: 500;
    font-size: 0.85rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.photo-content {
    flex: 1;
    padding: 0 40px;
    position: relative;
}

.hirono-character {
    position: absolute;
    font-size: 1.5rem;
    animation: jump 4s infinite ease-in-out;
    z-index: 3;
    pointer-events: none;
}

.hirono-1 {
    top: 10px;
    right: 20px;
    animation-delay: 0s;
}

.hirono-2 {
    bottom: 20px;
    left: 10px;
    animation-delay: 2s;
}

.hirono-3 {
    top: 50%;
    right: 5px;
    animation-delay: 1s;
}

@keyframes jump {
    0%, 100% { transform: translateY(0px) rotate(0deg); opacity: 0.7; }
    25% { transform: translateY(-15px) rotate(-10deg); opacity: 1; }
    50% { transform: translateY(-8px) rotate(0deg); opacity: 1; }
    75% { transform: translateY(-20px) rotate(10deg); opacity: 1; }
}

.hero-hirono {
    position: absolute;
    font-size: 2rem;
    animation: heroJump 6s infinite ease-in-out;
    z-index: 3;
}

.hero-hirono-1 {
    top: 20%;
    left: 10%;
    animation-delay: 1s;
}

.hero-hirono-2 {
    top: 60%;
    right: 15%;
    animation-delay: 3s;
}

@keyframes heroJump {
    0%, 100% { transform: translateY(0px) scale(1) rotate(0deg); opacity: 0.6; }
    20% { transform: translateY(-25px) scale(1.1) rotate(-15deg); opacity: 1; }
    40% { transform: translateY(-10px) scale(1) rotate(0deg); opacity: 1; }
    60% { transform: translateY(-30px) scale(1.2) rotate(15deg); opacity: 1; }
    80% { transform: translateY(-5px) scale(1) rotate(-5deg); opacity: 0.8; }
}

.photo-content h2 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 20px;
    background: linear-gradient(45deg, #ff9a9e, #64b5f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.photo-content p {
    font-size: 1.2rem;
    line-height: 1.6;
    color: #333;
    margin-bottom: 15px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.photo-content .date {
    font-style: italic;
    color: #666;
    font-size: 1rem;
}

.final-message {
    text-align: center;
    padding: 100px 20px;
    background: linear-gradient(135deg, #ff9a9e 0%, #64b5f6 100%);
    color: white;
    margin-top: 50px;
    position: relative;
    overflow: hidden;
}

.final-message::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 20%, rgba(255, 182, 193, 0.3) 0%, transparent 30%),
        radial-gradient(circle at 80% 80%, rgba(255, 182, 193, 0.3) 0%, transparent 30%),
        radial-gradient(circle at 40% 60%, rgba(255, 182, 193, 0.2) 0%, transparent 25%);
    pointer-events: none;
}

.final-message h2 {
    font-size: 3rem;
    margin-bottom: 30px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 2;
}

.final-message h2::after {
    content: '🌸 🌸 🌸';
    display: block;
    font-size: 1.5rem;
    margin-top: 15px;
    opacity: 0.8;
}

.final-message p {
    font-size: 1.3rem;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.final-photo {
    width: 400px;
    height: 300px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    text-align: center;
    margin: 30px auto;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    position: relative;
    overflow: hidden;
}

.final-photo::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255, 154, 158, 0.3), rgba(100, 181, 246, 0.3));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.final-photo:hover::before {
    opacity: 1;
}

.sparkle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    animation: sparkle 2s infinite;
}

@keyframes sparkle {
    0%, 100% { opacity: 0; transform: scale(0); }
    50% { opacity: 1; transform: scale(1); }
}

.final-photo:hover {
    transform: scale(1.05);
}

.image-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 90%;
    max-height: 90%;
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.modal-content img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 15px;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.close-modal:hover {
    color: #ff9a9e;
}

/* Hamburger Menu Button */
.hamburger-btn {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 101;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 182, 193, 0.3);
    border-radius: 15px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 154, 158, 0.2);
}

.hamburger-btn:hover {
    transform: scale(1.05);
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 6px 20px rgba(255, 154, 158, 0.3);
}

.hamburger-btn span {
    width: 25px;
    height: 3px;
    background: linear-gradient(45deg, #ff9a9e, #64b5f6);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.hamburger-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.hamburger-btn.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Game Menu Overlay */
.game-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    z-index: 100;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Game Menu - Clean Design */
.game-menu {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #ffffff;
    border-radius: 16px;
    padding: 32px;
    min-width: 280px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 182, 193, 0.2);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from { 
        transform: translate(-50%, -40%);
        opacity: 0;
    }
    to { 
        transform: translate(-50%, -50%);
        opacity: 1;
    }
}

.game-menu h2 {
    text-align: center;
    font-size: 1.6rem;
    margin-bottom: 24px;
    color: #2c3e50;
    font-weight: 600;
    background: linear-gradient(135deg, #ff9a9e, #64b5f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.menu-option {
    width: 100%;
    padding: 14px 20px;
    margin-bottom: 8px;
    background: #ffffff;
    border: 1px solid #f1f5f9;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.95rem;
    font-family: inherit;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.2s ease;
    color: #475569;
}

.menu-option:hover {
    background: #f8fafc;
    border-color: #ff9a9e;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(255, 154, 158, 0.1);
}

.option-icon {
    font-size: 1.2rem;
    width: 20px;
    text-align: center;
}

.option-text {
    font-weight: 500;
    flex: 1;
}

.menu-close {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #ff9a9e, #64b5f6);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    font-family: inherit;
    margin-top: 16px;
    transition: all 0.2s ease;
}

.menu-close:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 154, 158, 0.3);
}

/* Prevent body scroll when modal is open */
body.modal-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
}

/* Responsive Design */
@media (max-width: 768px) {
    .memory-modal-content,
    .remove-modal-content {
        padding: 24px;
        margin: 20px;
        max-width: 95%;
    }
    
    .hero h1 { font-size: 2.5rem; }
    .hero p { font-size: 1.2rem; }
    .hero-photo { width: 250px; height: 250px; font-size: 0.9rem; }
    .play-button { padding: 16px 32px; font-size: 1rem; min-width: 180px; }
    .photo-container { flex-direction: column !important; text-align: center; }
    .photo-container:nth-child(even) { flex-direction: column !important; }
    .photo-placeholder { width: 100%; max-width: 350px; margin-bottom: 30px; }
    .photo-content { padding: 0; }
    .final-photo { width: 100%; max-width: 350px; height: 250px; font-size: 1rem; }
    
    .memory-list {
        max-height: 50vh;
    }
    
    .form-buttons {
        flex-direction: column;
        gap: 8px;
    }
    
    .memory-bottom-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .memory-actions {
        align-self: flex-end;
    }
}

/* Logout option styling */
.logout-option {
    border-top: 1px solid #f1f5f9 !important;
    margin-top: 8px !important;
    padding-top: 16px !important;
    color: #ef4444 !important;
}

.logout-option:hover {
    background: #fef2f2 !important;
    border-color: #fecaca !important;
    color: #dc2626 !important;
}

/* Guest mode indicator */
.guest-indicator {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    z-index: 50;
    backdrop-filter: blur(5px);
}

/* Hide elements for guests */
.guest-hidden {
    display: none !important;
}

/* ADD THESE STYLES TO YOUR CSS FILE */

/* Letter Card Styles */
.letter-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 0;
    margin: 40px auto;
    max-width: 600px;
    box-shadow: 0 20px 60px rgba(255, 182, 193, 0.2);
    border: 2px solid rgba(255, 182, 193, 0.3);
    overflow: hidden;
    transition: all 0.3s ease;
}

.letter-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 80px rgba(255, 182, 193, 0.3);
}

.letter-card {
    position: relative;
    background: linear-gradient(135deg, #ffeef8 0%, #fff5f5 50%, #f0f9ff 100%);
    min-height: 400px;
    padding: 30px;
    border-radius: 18px;
}

.letter-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ff9a9e, #fad0c4, #64b5f6);
    border-radius: 18px 18px 0 0;
}

.letter-header {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px dashed rgba(255, 154, 158, 0.3);
}

.letter-envelope {
    font-size: 2.5rem;
    margin-right: 20px;
    animation: gentleBounce 3s infinite ease-in-out;
}

.letter-to-from {
    flex: 1;
}

.letter-to,
.letter-from {
    font-size: 1rem;
    margin: 5px 0;
    color: #666;
    font-style: italic;
}

.letter-to {
    font-weight: 600;
    color: #ff6b96;
}

.letter-from {
    color: #64b5f6;
}

.letter-content {
    margin: 25px 0;
}

.letter-title {
    font-size: 1.8rem;
    margin-bottom: 20px;
    background: linear-gradient(45deg, #ff9a9e, #64b5f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
    text-align: center;
}

.letter-message {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #444;
    white-space: pre-wrap;
    font-family: 'Georgia', serif;
    background: rgba(255, 255, 255, 0.6);
    padding: 25px;
    border-radius: 15px;
    border-left: 4px solid #ff9a9e;
    position: relative;
}

.letter-message::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 15px;
    font-size: 3rem;
    color: rgba(255, 154, 158, 0.3);
    font-family: serif;
}

.letter-message::after {
    content: '"';
    position: absolute;
    bottom: -15px;
    right: 15px;
    font-size: 3rem;
    color: rgba(100, 181, 246, 0.3);
    font-family: serif;
}

.letter-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 2px dashed rgba(100, 181, 246, 0.3);
}

.letter-date {
    font-size: 0.9rem;
    color: #888;
    font-style: italic;
}

.letter-actions {
    display: flex;
    gap: 10px;
}

.edit-letter-btn {
    background: rgba(255, 154, 158, 0.1);
    border: 2px solid rgba(255, 154, 158, 0.3);
    border-radius: 10px;
    padding: 8px 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.edit-letter-btn:hover {
    background: rgba(255, 154, 158, 0.2);
    border-color: #ff9a9e;
    transform: translateY(-2px);
}

/* Remove list letter thumbnail */
.letter-thumbnail {
    background: linear-gradient(135deg, #ff9a9e, #64b5f6);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    border-radius: 10px;
}

/* Memory type indicator in remove list */
.memory-type {
    background: rgba(100, 181, 246, 0.2);
    color: #1976d2;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Letter form specific styles */
.letter-form textarea {
    min-height: 120px;
    font-family: 'Georgia', serif;
    font-size: 1rem;
    line-height: 1.6;
    resize: vertical;
}

.letter-submit-btn {
    background: linear-gradient(135deg, #ff9a9e, #ff6b96) !important;
}

.letter-submit-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #ff6b96, #ff4757) !important;
}

/* Animation for letter envelope */
@keyframes gentleBounce {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg); 
    }
    50% { 
        transform: translateY(-3px) rotate(2deg); 
    }
}

/* Responsive design for letters */
@media (max-width: 768px) {
    .letter-container {
        margin: 20px auto;
    }
    
    .letter-card {
        padding: 20px;
        min-height: 350px;
    }
    
    .letter-header {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .letter-envelope {
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    .letter-title {
        font-size: 1.5rem;
    }
    
    .letter-message {
        font-size: 1rem;
        padding: 20px;
    }
    
    .letter-footer {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

/* Letter card entrance animation */
.letter-container.visible {
    animation: letterSlideIn 0.8s ease-out;
}

@keyframes letterSlideIn {
    0% {
        opacity: 0;
        transform: translateY(50px) scale(0.9);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Beautiful heart decoration for letters */
.letter-card::after {
    content: '💕';
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 1.5rem;
    opacity: 0.4;
    animation: heartFloat 4s infinite ease-in-out;
}

@keyframes heartFloat {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg); 
        opacity: 0.4;
    }
    50% { 
        transform: translateY(-5px) rotate(5deg); 
        opacity: 0.6;
    }
}


@media (max-width: 768px) {
    .memory-item {
        flex-direction: column;
        text-align: center;
        padding: 12px;
    }
    
    .memory-thumbnail {
        width: 48px;
        height: 36px;
        margin: 0 auto 10px auto;
    }
    
    .memory-info {
        margin-bottom: 10px;
    }
    
    .memory-info h3 {
        font-size: 0.9rem;
        margin-bottom: 8px;
    }
    
    .memory-meta-small {
        flex-direction: column;
        gap: 4px;
        align-items: center;
    }
    
    .remove-btn {
        width: 100%;
        padding: 10px;
        font-size: 0.9rem;
    }
}

/* PWA Install Prompt Styles */
.install-prompt {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #ff9a9e, #64b5f6);
    color: white;
    z-index: 1001;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }
    to {
        transform: translateY(0);
    }
}

.install-content {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    max-width: 600px;
    margin: 0 auto;
    gap: 15px;
}

.install-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.install-text {
    flex: 1;
    min-width: 0;
}

.install-text strong {
    display: block;
    font-size: 0.95rem;
    margin-bottom: 2px;
}

.install-text p {
    font-size: 0.8rem;
    opacity: 0.9;
    margin: 0;
}

.install-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.install-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

.dismiss-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.dismiss-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Offline indicator */
.offline-indicator {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: #f59e0b;
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
    display: none;
}

.offline-indicator.show {
    display: block;
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* PWA Install Prompt Styles */
.install-prompt {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #ff9a9e, #64b5f6);
    color: white;
    z-index: 1001;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }
    to {
        transform: translateY(0);
    }
}

.install-content {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    max-width: 600px;
    margin: 0 auto;
    gap: 15px;
}

.install-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.install-text {
    flex: 1;
    min-width: 0;
}

.install-text strong {
    display: block;
    font-size: 0.95rem;
    margin-bottom: 2px;
}

.install-text p {
    font-size: 0.8rem;
    opacity: 0.9;
    margin: 0;
}

.install-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.install-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

.dismiss-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.dismiss-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Offline indicator */
.offline-indicator {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: #f59e0b;
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
    display: none;
}

.offline-indicator.show {
    display: block;
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* PWA specific adjustments */
@media (display-mode: standalone) {
    /* Hide install prompt when app is installed */
    .install-prompt {
        display: none !important;
    }
    
    /* Add padding for standalone mode */
    body {
        padding-top: env(safe-area-inset-top);
        padding-bottom: env(safe-area-inset-bottom);
    }
    
    /* Adjust hero for standalone mode */
    .hero {
        padding-top: max(env(safe-area-inset-top), 20px);
    }
}

/* Responsive design for install prompt */
@media (max-width: 480px) {
    .install-content {
        padding: 10px 15px;
        gap: 10px;
    }
    
    .install-text strong {
        font-size: 0.9rem;
    }
    
    .install-text p {
        font-size: 0.75rem;
    }
    
    .install-btn {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
}