body, html {
    height: 100%;
    margin: 0;
    background-image: url('turtle/angry_turtle.png'), url('turtle/lovey_turtle.png');
    font-family: 'Cursive', Arial, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    background-size: cover;
    background-color: #f6f60b;
    background-image: 
    url('turtle/angry_turtle.png'), 
    url('turtle/lovey_turtle.png'), 
    url('turtle/rofl_turtle.png'), 
    url('turtle/pleading_turtle.png'),
    url('turtle/kissing_turtle.png'), 
    url('turtle/happy_turtle.png');
    background-position: 
        left top, 
        left 50%,
        left 100%, /* Adjust this percentage based on the height of the first image */
        right top,
        right 100%, 
        right 50%; /* Similarly, adjust this percentage */
    background-repeat: no-repeat;
    background-size: 
        20% auto, 
        20% auto, 
        20% auto, 
        20% auto,
        20% auto,
        20% auto;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    padding: 0;
    
}

.container {
    text-align: center;
    background-color: rgba(255, 255, 255, 0.8);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    max-width: 500px;
}

h1 {
    color: #d23669;
    font-size: 28px;
    margin-bottom: 20px;
}

button {
    margin: 10px;
    padding: 10px 20px;
    font-size: 16px;
    color: #fff;
    background-color: #d23669;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
}

button:hover {
    background-color: #a52848;
    transform: scale(1.05);
}

#response, #imageContainer {
    color: #333;
    font-size: 24px;
    margin-top: 20px;
}

#imageContainer {
    min-height: 300px; /* Set a minimum height */
    min-width:300px;
    width: 100%; /* Ensure it spans the full container width */
    overflow: hidden; /* Keeps the layout clean */
    display: flex;
    flex-direction: column; /* Stacks flex items vertically */
    justify-content: center; /* Centers the content vertically */
    align-items: center; /* Centers the content horizontally */
}

#imageContainer h2 {
    margin: 0; /* Removes default margin */
    padding: 10px 0; /* Adds padding above and below the text */
    width: 100%; /* Ensures it spans the full width */
    text-align: center; /* Centers the text horizontally */
}

#imageContainer img {
    max-height: 300px; /* Maximum image height to fit the container */
    max-width: 100%; /* Ensures image does not overflow its container */
    margin-top: 10px; /* Space from top */
}

/* Animation for fade-in effect */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.fade-in {
    animation: fadeIn 1s;
}
