body {
    background-color: black;
    text-align: center;
    padding-top: 30vh;
}

#image-container {
    position: relative;
    width: 100%; /* Adjust as needed for your layout */
}

.dynamic-image {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 600px; /* Adjust to the actual width of your images */
    height: auto; /* Maintain aspect ratio */
    animation: stretchAndSqueeze 2s linear infinite;
    transition: opacity 2s ease; /* Smooth transition for the opacity */
}

@keyframes stretchAndSqueeze {
    0%, 100% { transform: translateX(-50%) scale(1, 1); }
    25% { transform: translateX(-50%) scale(1.5, 0.5); }
    50% { transform: translateX(-50%) scale(0.5, 1.5); }
    75% { transform: translateX(-50%) scale(1.5, 0.5); }
}