.alert{
    border: 1px solid transparent;
    border-radius: 1rem;
    padding: .7rem 2.5rem .7rem 1rem;
    overflow: hidden;
    position: relative;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.alert>.alert-close-btn{
    position: absolute;
    right: 1rem; 
}
.alert>.alert-close-btn::after{
    content: "✖";
    cursor: pointer;
    opacity: .7;
    transition: .2s;
}
.alert>.alert-close-btn:hover::after{
    opacity: .5;
}
.alert>i{
    font-size: 1.2rem;
    animation: iconShake 3s infinite;
}
.alert>.alert-text{
    font-weight: 300;
    margin-left: .5rem;
    display: inline-block;
}
.alert.alert-success{
    color: #0ad406;
    border-color: rgb(10 212 6 / 70%);
    background-color: rgb(10 212 6 / 10%);
    box-shadow: 0 0 4px 2px rgb(10 212 6 / 20%);
}
.alert.alert-success::before{
    content:"";
    position: absolute;
    height: 50%;
    left: 0;
    border-left: 1px solid rgb(10 212 6 / 70%);
    border-right: 2px solid rgb(10 212 6 / 70%);
    border-bottom-right-radius: .5rem;
    border-top-right-radius: .5rem;
    top: 50%; 
    transform: translate(0,-50%);
}
.alert.alert-info{
    color: rgb(3 150 255 / 100%); 
    border-color: rgb(3 150 255/ 70%);
    background-color: rgb(3 150 255 / 10%);
    box-shadow: 0 0 4px 2px rgb(3 150 255 / 20%);
}
.alert.alert-info::before{
    content:"";
    position: absolute;
    height: 50%;
    left: 0;
    border-left: 1px solid rgb(3 150 255 / 70%);
    border-right: 2px solid rgb(3 150 255 / 70%);
    border-bottom-right-radius: .5rem;
    border-top-right-radius: .5rem;
    top: 50%; 
    transform: translate(0,-50%);
}
.alert.alert-warning{
    color: rgb(255 177 3);
    border-color: rgb(255 177 3 / 70%);
    background-color: rgb(255 177 3 / 10%);
    box-shadow: 0 0 4px 2px rgb(255 177 3 / 20%);
}
.alert.alert-warning::before{
    content:"";
    position: absolute;
    height: 50%;
    left: 0;
    border-left: 1px solid rgb(255 177 3 / 70%);
    border-right: 2px solid rgb(255 177 3 / 70%);
    border-bottom-right-radius: .5rem;
    border-top-right-radius: .5rem;
    top: 50%; 
    transform: translate(0,-50%);
}
.alert.alert-danger{
    color: rgb(255 3 3);
    border-color: rgb(255 3 3 / 70%);
    background-color: rgb(255 3 3 / 10%);
    box-shadow: 0 0 4px 2px rgb(255 3 3 / 20%);
}
.alert.alert-danger::before{
    content:"";
    position: absolute;
    height: 50%;
    left: 0;
    border-left: 1px solid rgb(255 3 3 / 70%);
    border-right: 2px solid rgb(255 3 3 / 70%);
    border-bottom-right-radius: .5rem;
    border-top-right-radius: .5rem;
    top: 50%; 
    transform: translate(0,-50%);
}
.alert.alert-primary{
    color: rgb(3 208 255);
    border-color: rgb(3 208 255/ 70%);
    background-color: rgb(3 208 255 / 10%);
    box-shadow: 0 0 4px 2px rgb(3 208 255 / 20%);
}
.alert.alert-primary::before{
    content:"";
    position: absolute;
    height: 50%;
    left: 0;
    border-left: 1px solid rgb(3 208 255 / 70%);
    border-right: 2px solid rgb(3 208 255 / 70%);
    border-bottom-right-radius: .5rem;
    border-top-right-radius: .5rem;
    top: 50%; 
    transform: translate(0,-50%);
}

@keyframes iconShake{
    10%{
        transform: scale(1);
    }
    40%{
        transform: scale(.7);
    }
    70%{
        transform: scale(1);
        transform: rotate(-10deg);
    }
    90%{
        transform: rotate(10deg);
    }
    100%{
        
        transform: rotate(0deg);
    }
} 