/* Reset some default styles */
body, h1, h2, p {
    margin: 0;
    padding: 0;
}

/* Basic styling */
body {
    font-family: Arial, sans-serif;
}

header {
    background-color: #ff00f2; /* Example color */
    color: #fff; /* Text color */
    padding: 20px;
    text-align: center;
}

/* Sparkle animation */
@keyframes sparkle {
    0% { opacity: 1; }
    50% { opacity: 0; }
    100% { opacity: 1; }
}

/* Apply animation to text */
header h1 {
    animation: sparkle 1.5s infinite;
}

#gallery {
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap; /* Allow items to wrap to the next line */
    gap: 10px; /* spacing between photos */
    justify-content: center; /* Center align photos */
}

.photo {
    width: calc(50% - 10px); /* Adjust the width of each photo container for smaller screens */
    max-width: 200px; /* Set a fixed maximum width for each photo container */
    max-height: 200px; /* Set a fixed maximum height for each photo container */
    position: relative; /* Add position relative to position the image */
    border-radius: 5px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
    overflow: hidden; /* Ensure images don't overflow the container */
}

.photo img {
    width: 100%; /* Make sure the image fills the entire container */
    height: 100%; /* Make sure the image fills the entire container */
    object-fit: cover; /* Ensure the image maintains its aspect ratio and covers the container */
    object-position: center; /* Center the image horizontally */
}

.photo.portrait img {
    object-position: center top; /* Position the image at the center top for portrait images */
}

main {
    padding: 20px;
    position: relative; /* Position relative for absolute positioning of balloons and stars */
}

/* Balloon animation */
.balloons {
    position: absolute;
    top: 0;
    right: 0; /* Position balloons on the right side */
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1; /* Ensure balloons are behind other content */
}

.balloon {
    position: absolute;
    width: 30px; /* Adjust balloon size for smaller screens */
    height: 50px; /* Adjust balloon size for smaller screens */
    background-color: #ff69b4;
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    animation: balloonAnimation 10s infinite alternate;
}

/* Adjust balloon positions for smaller screens */
.balloon:nth-child(1) {
    top: 5%;
    left: 5%;
}

.balloon:nth-child(2) {
    top: 10%;
    left: 20%;
}

.balloon:nth-child(3) {
    top: 3%;
    left: 40%;
}

.balloon:nth-child(4) {
    top: 5%;
    right: 5%;
}

.balloon:nth-child(5) {
    top: 10%;
    right: 20%;
}

.balloon:nth-child(6) {
    top: 3%;
    right: 40%;
}
/* Add more balloons as needed */

@keyframes balloonAnimation {
    0% { transform: translateY(0) rotate(-5deg); }
    100% { transform: translateY(-200%) rotate(5deg); }
}

/* Star animation */
.stars {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.star {
    position: absolute;
    width: 15px; /* Adjust star size for smaller screens */
    height: 15px; /* Adjust star size for smaller screens */
    background-color: #ffff00;
    border-radius: 50%;
    animation: starAnimation 5s infinite alternate;
}

@keyframes starAnimation {
    0% { transform: translateY(0) rotate(0); }
    100% { transform: translateY(-100%) rotate(360deg); }
}

#memories {
    margin-top: 20px;
}

.memory {
    margin-bottom: 20px;
    border: 1px solid #ccc;
    padding: 10px;
    border-radius: 5px;
}

.memory h3 {
    font-size: 18px;
    margin-bottom: 5px;
}

.memory p {
    font-size: 14px;
}

footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 10px 0;
}


