html, body {
    height: 100vh;
    width: 100vw;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #ffffff;
    transition: background 0.5s ease;
}

#animatedImage {
    max-width: 30%;
    max-height: 30%;
    cursor: pointer;
    transition: transform 0.5s;
}

@keyframes spinAndFlip {
    0% { transform: rotate(0deg) scaleX(1); }
    16.67% { transform: rotate(360deg) scaleX(1); }
    33.33% { transform: rotate(360deg) scaleX(-1); }
    50% { transform: rotate(360deg) scaleX(1); }
}

.looping {
    animation: spinAndFlip 4s infinite;
}

