body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    background-color: #000; /* Black background */
    overflow: hidden; /* Prevent scrollbars from emoji animations */
    box-sizing: border-box; /* Include padding and border in the element's total width and height */
}

.meme-container {
    position: relative;
    display: inline-block;
    border: 2px solid #333;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    max-width: 100%; /* Allow image to scale to full width */
    width: auto; /* Allow width to adjust based on content */
}

.meme-image {
    display: block;
    width: 100%; /* Make image responsive */
    height: auto;
}

@media (max-width: 600px) {
    .crying-emoji {
        font-size: 1.5em; /* Smaller emojis on mobile */
    }
}

.emoji-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none; /* Allow interaction with elements beneath */
    overflow: hidden;
}

.crying-emoji {
    position: absolute;
    font-size: 2em;
    animation: cry 2s infinite ease-in-out;
    opacity: 0;
    transform: translate(-50%, -50%);
}

@keyframes cry {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) translateY(0);
    }
    20% {
        opacity: 1;
    }
    80% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) translateY(-50px);
    }
}