body {
    font-family: 'Dancing Script', cursive;
    background: linear-gradient(to right, #ff9a9e, #f6416c);
    color: white;
    text-align: center;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    animation: fadeIn 2s ease-in-out;
}

header {
    padding: 20px;
    font-size: 24px;
    background: rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 10;
    animation: slideDown 1s ease-in-out;
}

#counter, #gallery, #location, #message {
    margin: 30px 5%;
    padding: 20px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 10;
    max-width: 90%;
    animation: fadeIn 1.5s ease-in-out;
}

.timeline {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.memory:hover {
    transform: scale(1.05);
}

.memory img {
    width: 100%;
    max-width: 300px;
    border-radius: 10px;
}

.memory p {
    margin-top: 10px;
    font-size: 16px;
    color: white;
    background: rgba(0, 0, 0, 0.3);
    padding: 5px 10px;
    border-radius: 5px;
    display: block;
}

#gallery .timeline {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    justify-content: center;
    align-items: center;
    margin-right: 30px;
}

.memory {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
    max-width: 300px;
    margin: 15px;
    padding: 10px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.3);
    transition: transform 0.3s ease-in-out;
}

.memory img {
    width: 100%;
    max-width: 300px;
    height: 250px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease-in-out;
}

.memory:hover img {
    transform: scale(1.05);
}

#location iframe {
    width: 100%;
    max-width: 600px;
    height: 350px;
    border-radius: 10px;
    animation: fadeIn 1.5s ease-in-out;
}

footer {
    padding: 10px;
    font-size: 18px;
    background: rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 10;
    animation: slideUp 1s ease-in-out;
}

.heart {
    position: fixed;
    bottom: 0;
    font-size: 24px;
    color: rgba(255, 0, 0, 0.9);
    animation: floatUp 5s linear infinite;
}

@keyframes slideUp {
    from { transform: translateY(50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

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

@keyframes slideDown {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes floatUp {
    0% {
        transform: translateY(0);
        opacity: 1;
    }
    100% {
        transform: translateY(-100vh);
        opacity: 0;
    }
}

@media (max-width: 768px) {
    header {
        font-size: 20px;
        padding: 15px;
    }
    
    #counter, #gallery, #location, #message {
        padding: 15px;
        font-size: 16px;
    }
    
    .memory img {
        max-width: 250px;
    }
    
    .memory p {
        font-size: 14px;
        padding: 3px 8px;
    }
    
    .heart {
        font-size: 18px;
    }
    
    #location iframe {
        height: 250px;
        max-width: 100%;
    }
}

@import url('https://fonts.googleapis.com/css2?family=Dancing+Script:wght@400;700&display=swap');
