#floating-image-left,
#floating-image-right {
    position: absolute;
    z-index: 999;
    background: transparent;
    padding: 10px;
    border-radius: 8px;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    width: 400px;
    opacity: 0;
    transform: translateY(30px) scale(0.95);
    filter: blur(5px);
    visibility: visible;
    pointer-events: auto;
}

#floating-image-left {
    top: 120px;
    left: 20px;
}

#floating-image-right {
    top: 200px;
    right: 20px;
}

#floating-image-left img,
#floating-image-right img {
    width: 100%;
    height: auto;
    display: block;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
    object-fit: contain;
    transition: all 0.5s ease;
}

/* Animation classes */
.fade-in {
    opacity: 1 !important;
    transform: translateY(0) scale(1) !important;
    filter: blur(0) !important;
    visibility: visible !important;
}

@keyframes float {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0);
    }
}

/* Add hover effect */
#floating-image-left:hover img,
#floating-image-right:hover img {
    transform: scale(1.02);
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.3));
}

/* Mobile responsive image adjustments */
@media (max-width: 991px) {
    #floating-image-left,
    #floating-image-right {
        width: 250px;
        opacity: 0.4; /* Reduce opacity on tablets */
    }
}

/* Hide floating images on mobile or make them work better */
@media (max-width: 767px) {
    #floating-image-left,
    #floating-image-right {
        position: fixed;
        z-index: 0; /* Put images behind content */
        width: 180px;
        opacity: 0.2; /* Make images very faint on mobile */
    }
    
    #floating-image-left {
        top: 150px;
        left: -40px;
    }
    
    #floating-image-right {
        top: 400px;
        right: -40px;
    }
    
    /* Ensure content is readable */
    .welcome-content, .menu-item, .content-container {
        position: relative;
        z-index: 1;
        background-color: rgba(255, 255, 255, 0.85); /* Add semi-transparent background */
        border-radius: 8px;
    }
}

/* For very small screens, further reduce image interference */
@media (max-width: 480px) {
    #floating-image-left,
    #floating-image-right {
        width: 120px;
        opacity: 0.15; /* Even more faint on small mobile */
    }
} 