.rectangle {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
	bottom:50px;
	left:30%;
    width: 50px;
    height: 50px;
    background: #1693a5;
    transform: scale(0);
    border-radius: 50%;
    color: white;
    opacity: 0;
    overflow: hidden;
    animation: scale-in .3s ease-out forwards,
               expand .35s .25s ease-out forwards;
}
.ocultarnotificacion {
	transform: scale(1.2);
    opacity: 1;
	width: 600px;
	border-radius: 4px;
	box-shadow: 0px 1px 3px 0px rgba(0,0,0,.2),
				0px 1px 1px 0px rgba(0,0,0,.14),
				0px 3px 3px -1px rgba(0,0,0,.12);

	animation: noexpand .3s ease-out forwards,scale-out .35s .3s ease-out forwards;
}



.notification-text {
    display: flex;
    align-items: center;
    padding: 0 16px;
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    animation: fade-in .65s ease-in forwards;
}

@keyframes scale-in {
    100% {
        transform: scale(1.2);
        opacity: 1;
    }
}

@keyframes expand {
    50% {
        width: 450px;
        border-radius: 6px;
    }
    100% {
        width: 600px;
        border-radius: 4px;
        box-shadow: 0px 1px 3px 0px rgba(0,0,0,.2),
                    0px 1px 1px 0px rgba(0,0,0,.14),
                    0px 3px 3px -1px rgba(0,0,0,.12);
    }
}

@keyframes fade-in {
    0% {
        opacity: 0;
    }
    100% {
        opacity: .8;
    }
}



@keyframes noexpand {
	0% {
        width: 600px;
        border-radius: 4px;
        box-shadow: 0px 1px 3px 0px rgba(0,0,0,.2),
                    0px 1px 1px 0px rgba(0,0,0,.14),
                    0px 3px 3px -1px rgba(0,0,0,.12);
    }

    50% {
        width: 450px;
        border-radius: 6px;
    }
    100% {
        width: 50px;
        border-radius: 0px;
    }
}

@keyframes scale-out {
    100% {
        transform: scale(0);
        opacity: 0;
    }
}




/* Estilos para dispositivos móviles */
@media (max-width: 768px) {
    .rectangle {
        bottom: 20px;
        left: 5%;
        width: 40px;
        height: 40px;
        animation: scale-in-mobile .3s ease-out forwards,
                   expand-mobile .35s .25s ease-out forwards;
    }

    .ocultarnotificacion {
        width: 90%;
        left: 5%;
        border-radius: 4px;
        box-shadow: 0px 1px 3px 0px rgba(0,0,0,.2),
                    0px 1px 1px 0px rgba(0,0,0,.14),
                    0px 3px 3px -1px rgba(0,0,0,.12);
        animation: noexpand-mobile .3s ease-out forwards, 
                   scale-out-mobile .35s .3s ease-out forwards;
    }

    .notification-text {
        font-size: 12px;
        padding: 0 12px;
    }

    @keyframes scale-in-mobile {
        100% {
            transform: scale(1);
            opacity: 1;
        }
    }

    @keyframes expand-mobile {
        50% {
            width: 70%;
            border-radius: 6px;
        }
        100% {
            width: 90%;
            border-radius: 4px;
            box-shadow: 0px 1px 3px 0px rgba(0,0,0,.2),
                        0px 1px 1px 0px rgba(0,0,0,.14),
                        0px 3px 3px -1px rgba(0,0,0,.12);
        }
    }

    @keyframes noexpand-mobile {
        0% {
            width: 90%;
            border-radius: 4px;
            box-shadow: 0px 1px 3px 0px rgba(0,0,0,.2),
                        0px 1px 1px 0px rgba(0,0,0,.14),
                        0px 3px 3px -1px rgba(0,0,0,.12);
        }

        50% {
            width: 70%;
            border-radius: 6px;
        }
        100% {
            width: 40px;
            border-radius: 50%;
        }
    }

    @keyframes scale-out-mobile {
        100% {
            transform: scale(0);
            opacity: 0;
        }
    }
}
