@media (min-width: 581px) and (max-width: 1000px) {
    .container {
        text-align: center;
        position: relative;
    }

    .birthday-message {
        font-size: 3em;
        color: #ff69b4;
        animation: fadeIn 2s ease-in-out;
    }

    .balloons {
        display: flex;
        justify-content: space-around;
        margin-top: 220px;
    }

    .balloon {
        width: 160px;
        height: 200px;
        border-radius: 50% 50% 50% 50%;
        position: relative;
        animation: float 4s ease-in-out infinite;
        margin-top: 39px;
    }

    .balloon::after {
        content: '';
        position: absolute;
        bottom: -40px;
        left: 50%;
        width: 2px;
        height: 50px;
        background: gray;
    }

    @keyframes fadeIn {
        from { opacity: 0; }
        to { opacity: 1; }
    }

    @keyframes float {
        0% {
            transform: translateY(0);
        }
        50% {
            transform: translateY(-20px);
        }
        100% {
            transform: translateY(0);
        }
    }
}

@media (min-width: 1001px) {
    .container {
        text-align: center;
        position: relative;
    }

    .birthday-message {
        font-size: 3em;
        color: #ff69b4;
        animation: fadeIn 2s ease-in-out;
    }

    .balloons {
        display: flex;
        justify-content: space-around;
        margin-top: 50px;
    }

    .balloon {
        width: 60px;
        height: 100px;
        border-radius: 50% 50% 50% 50%;
        position: relative;
        animation: float 4s ease-in-out infinite;
        margin-top: 39px;
    }

    .balloon::after {
        content: '';
        position: absolute;
        bottom: -20px;
        left: 50%;
        width: 2px;
        height: 50px;
        background: gray;
    }

    @keyframes fadeIn {
        from { opacity: 0; }
        to { opacity: 1; }
    }

    @keyframes float {
        0% {
            transform: translateY(0);
        }
        50% {
            transform: translateY(-20px);
        }
        100% {
            transform: translateY(0);
        }
    }
}

