body {
    font-family: 'Arial', sans-serif;
    background-color: #f9f9f9;
    color: #333;
    text-align: center;
}

h1 {
    color: #ff69b4;
    margin-top: 20px;
}

p {
    font-size: 18px;
    margin: 10px 0;
}

a {
    color: #ff69b4;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.heart {
    display: inline-block;
    width: 30px;
    height: 30px;
    background-image: url('../assets/images/loveheart.svg');
    background-size: contain;
    background-repeat: no-repeat;
    margin: 10px;
    cursor: pointer;
    position: relative;
    animation: jump 1s infinite;
}

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

/* Add new image rules */
.photo-gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.photo-gallery img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    flex: 1 1 calc(33.333% - 20px); /* Adjust the percentage to control the number of images per row */
    margin: 10px;
    object-fit: cover; /* Maintain aspect ratio */
}

.profile-photo {
    max-width: 300px;
    height: auto;
    border-radius: 50%;
}

.login-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.login-container {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    text-align: center;
}

.login-container input {
    padding: 10px;
    margin: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.login-container button {
    padding: 10px 20px;
    background-color: #ff69b4;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.login-container button:hover {
    background-color: #ff4da6;
}

.birthday-banner {
    display: none; /* Initially hidden */
    position: fixed;
    top: 20px;
    left: 0;
    width: 100%;
    text-align: center;
    z-index: 1001;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
    border-radius: 10px;
    margin: 0 auto;
    max-width: 90%;
    left: 50%;
    transform: translateX(-50%);
}

.birthday-banner span {
    display: inline-block;
    font-size: 3em;
    font-weight: bold;
    color: #ff69b4;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    animation: wobble 1s infinite;
    animation-delay: calc(0.1s * var(--i));
    margin: 0 2px;
}

.balloon {
    position: fixed;
    width: 40px;
    height: 50px;
    background-size: contain;
    background-repeat: no-repeat;
    cursor: pointer;
    transition: transform 0.2s;
}

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

@keyframes float {
    0%, 100% { transform: translateY(0) translateX(0); }
    25% { transform: translateY(-20px) translateX(10px); }
    50% { transform: translateY(-40px) translateX(-10px); }
    75% { transform: translateY(-20px) translateX(10px); }
}

.banner-subtitle {
    font-size: 1.2em;
    color: #666;
    margin-top: 15px;
    font-weight: normal;
    text-shadow: none;
    animation: fadeIn 1s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Add these styles for the stopwatch */

.stopwatch-container {
    text-align: center;
    padding: 20px;
    margin: 20px auto;
    max-width: 800px;
    background-color: rgba(255, 192, 203, 0.2);
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.stopwatch {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 15px;
}

.time-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 80px;
    padding: 10px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.time-unit span:first-child {
    font-size: 2rem;
    font-weight: bold;
    color: #e91e63;
}

.label {
    font-size: 0.8rem;
    margin-top: 5px;
    color: #666;
}

/* Add responsive design for mobile devices */
@media (max-width: 600px) {
    .stopwatch {
        gap: 10px;
    }
    
    .time-unit {
        min-width: 60px;
        padding: 8px;
    }
    
    .time-unit span:first-child {
        font-size: 1.5rem;
    }
}

/* Navigation styles */
.main-nav {
    margin-top: 20px;
    text-align: center;
}

.main-nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 0;
}

.main-nav li {
    margin: 0 15px;
}

.nav-link {
    color: #ff69b4;
    text-decoration: none;
    font-size: 18px;
    font-weight: bold;
    padding: 5px 10px;
    border: 2px solid transparent;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.nav-link:hover, .nav-link.active {
    color: white;
    background-color: #ff69b4;
    border-color: white;
}

/* Content sections */
.content-section {
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    padding: 20px;
    margin: 20px auto;
    max-width: 1000px;
}

.content-section.active {
    display: block;
    opacity: 1;
}

/* Memory items styling */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.memory-item {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.memory-item h3 {
    color: #ff69b4;
    margin-top: 0;
}

/* Gift items */
.gifts-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
}

.gift-item {
    flex: 1 1 300px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.gift-item h3 {
    color: #ff69b4;
    margin-top: 0;
}

/* Love letter styling */
.love-letter {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    font-style: italic;
    line-height: 1.6;
}

.music-prompt {
    font-weight: bold;
    color: #ff69b4;
    margin-bottom: 10px;
}