body {
    font-family: 'Arial', sans-serif;
    background-color: #ffebee;
    color: #d32f2f;
    text-align: center;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh; /* Full viewport height */
}

.container {
    padding: 20px;
    max-width: 600px; /* Optional: Limit the width for better readability */
    width: 100%;
}

h1 {
    font-size: 2.5em;
    margin-bottom: 20px;
}

button {
    background-color: #d32f2f;
    color: white;
    border: none;
    padding: 10px 20px;
    margin: 5px;
    cursor: pointer;
    border-radius: 5px;
    font-size: 1em;
}

button:hover {
    background-color: #b71c1c;
}

#rose {
    width: 150px;
    height: 150px;
    background-image: url('babybreath.jpg');
    background-size: cover;
    margin: 20px auto;
}



/* Gallery Container */
/* Ensure #gallery takes up full height and allows scrolling */
/* Gallery Container */
#gallery {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start; /* Start content from the top */
    padding: 20px;
    min-height: 100vh; /* Ensure the gallery takes up full viewport height */
    box-sizing: border-box; /* Include padding in height calculation */
    overflow-y: auto; /* Allow scrolling if content exceeds height */
    margin-top: 20px; /* Adds space from the top if needed */
  }
  
  /* Gallery Title */
  #gallery h1 {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: #d32f2f; /* Optional: set the title color */
    text-align: center; /* Center the title */
  }
  
  /* Photo Gallery Grid */
  #photo-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* Responsive grid */
    gap: 15px;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto; /* Center the gallery horizontally */
  }
  
  /* Gallery Images */
  #photo-gallery img {
    width: 200px;  /* Set a fixed width */
    height: 200px; /* Set a fixed height */
    object-fit: cover; /* Ensure the image covers the box without distortion */
    border-radius: 10px; /* Optional: for rounded corners */
  }
  
  

#result {
    font-size: 1.5em;
    margin-top: 20px;
}

.back-button {
    background-color: #757575; /* Gray color for the back button */
    margin-top: 20px; /* Add some space above the back button */
}

.back-button:hover {
    background-color: #616161; /* Darker gray on hover */
}





/* Floating Hearts Container */
.hearts {
    position: fixed; /* Cover the entire viewport */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none; /* Ensure hearts don't interfere with clicks */
    z-index: -1; /* Place hearts behind other content */
    overflow: hidden; /* Prevent hearts from overflowing the page */
}

/* Heart Styles */
.heart, .altheart {
    position: absolute;
    bottom: -100px; /* Start below the viewport */
    opacity: 0.6;
    animation: moveclouds linear infinite;
}

.altheart {
    background: url(http://static.indigoimages.ca/2016/shop/113439_img25_twotoneheart.png) no-repeat center;
    width: 24px;
    height: 21px;
}

.heart:before,
.heart:after {
    position: absolute;
    content: "";
    left: 18px;
    top: 0;
    width: 18px;
    height: 30px;
    background: #CC2022;
    border-radius: 30px 30px 0 0;
    transform: rotate(-45deg);
    transform-origin: 0 100%;
}

.heart:after {
    left: 0;
    transform: rotate(45deg);
    transform-origin: 100% 100%;
}

/* Individual Heart Animations */
.x1 {
    left: 5%;
    transform: scale(0.9);
    animation-duration: 15s;
    animation-delay: 0s;
}

.x2 {
    left: 25%;
    transform: scale(0.6);
    opacity: 0.9;
    animation-duration: 25s;
    animation-delay: 5s;
}

.x3 {
    left: 55%;
    transform: scale(0.8);
    opacity: 0.8;
    animation-duration: 20s;
    animation-delay: 7s;
}

.x4 {
    left: 72%;
    transform: scale(0.75);
    opacity: 0.9;
    animation-duration: 18s;
    animation-delay: 8s;
}

.x5 {
    left: 88%;
    transform: scale(0.8);
    opacity: 0.3;
    animation-duration: 7s;
    animation-delay: 10s;
}

.x6 {
    left: 33%;
    opacity: 1;
    animation-duration: 10s;
    animation-delay: 10s;
}

/* Keyframes for Floating Animation */
@keyframes moveclouds {
    0% {
        top: 100vh; /* Start at the bottom of the viewport */
    }
    100% {
        top: -100px; /* Move to the top of the viewport */
    }
}

@keyframes sideWays {
    0% {
        margin-left: 0px;
    }
    100% {
        margin-left: 50px;
    }
}

@keyframes swayWays {
    0% {
        transform: rotate(12deg);
        left: -0.3%;
    }
    33% {
        transform: rotate(-2deg);
        left: 0.7%;
    }
    100% {
        transform: rotate(0deg);
        left: -12%;
    }
}