﻿
.box {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
}

.alert {
    background-color: #89e1d700;
    font-size: 35px;
    font-family: sans-serif;
    text-align: center;
    width: 40vw;
    position: relative;
    background: linear-gradient(84deg, #daf6d9 0%, #daf6d9 15%, #ffffff 100%);
    display: flex;
    height: 110px;
    border: 2px solid #91c391;
    border-radius: 5px;
    box-shadow: 7px 3px 20px 2px #ccc;
    align-items: center;
}

    .alert::before {
        width: 70px;
        height: 70px;
        position: absolute;
        border-radius: 100%;
        inset: 20px 0px 0px 114px;
        font-size: 45px;
        line-height: 70px;
        border: 5px solid green;
        animation-name: reveal;
        animation-duration: 1.5s;
        animation-timing-function: ease-in-out;
    }

    .alert > .alert-body {
        opacity: 0;
        animation-name: reveal-message;
        animation-duration: 1s;
        animation-timing-function: ease-out;
        animation-delay: 1.5s;
        animation-fill-mode: forwards;
    }

@keyframes reveal-message {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.success {
    color: green;
}

    .success::before {
        margin-left: -90px;
        content: '✓';
        background-color: rgb(109 171 109);
        border: 2px solid #008900e3;
        color: white;
    }

.error {
    color: red;
}
.error1 {
    color: red;
}
    /* .error::before { */
        /* content: '✗'; */
        /* background-color: #fef; */
        /* box-shadow: 0px 0px 12px 7px rgba(255,200,150,0.8) inset; */
        /* border: 5px solid red; */
    /* } */

@keyframes reveal {
    0% {
        border: 5px solid transparent;
        color: transparent;
        box-shadow: 0px 0px 12px 7px rgba(255,250,250,0.8) inset;
        transform: rotate(1000deg);
    }

    25% {
        border-top: 5px solid gray;
        color: transparent;
        box-shadow: 0px 0px 17px 10px rgba(255,250,250,0.8) inset;
    }

    50% {
        border-right: 5px solid gray;
        border-left: 5px solid gray;
        color: transparent;
        box-shadow: 0px 0px 17px 10px rgba(200,200,200,0.8) inset;
    }

    75% {
        border-bottom: 5px solid gray;
        color: gray;
        box-shadow: 0px 0px 12px 7px rgba(200,200,200,0.8) inset;
    }

    100% {
        border: 5px solid gray;
        box-shadow: 0px 0px 12px 7px rgba(200,200,200,0.8) inset;
    }
}

