﻿.banner-alert, .banner-alert * {
    box-sizing: border-box;
}

.banner-alert {
    position: fixed;
    bottom: 15px;
    right: 15px;
    width: 350px;
    /* background-color: red; */
    border: 1px solid #ccc;
    padding: 10px;
    display: flex;
    height: 125px;
    box-shadow: -5px 3px 10px rgba(0, 0, 0, .3);
    border-radius: 5px;
    transition: .2s opacity;
    z-index: 1000;
    animation: .3s invisible ease-in-out forwards;
}

@keyframes invisible {
    0% {
        opacity: 1;
    }

    50% {
        opacity: .4;
    }

    100% {
        opacity: 0;
        visibility: hidden;
        transform: translateX(50%);
    }
}

.banner-alert > div:nth-child(n) {
    padding: 10px;
}

.banner-alert > div:nth-child(2) {
    width: calc(100% - 100px);
}

.banner-alert > .image {
    width: 100px;
    height: 100px;
}

    .banner-alert > .image > img {
        width: 100%;
        object-fit: contain;
        height: 100%;
        border-radius: 50%;
        overflow: hidden;
    }

.banner-alert > .body > .title > h2,
.description > p {
    margin: 0;
}

.banner-alert > .body > .title > h2 {
    font-size: 20px;
    margin-bottom: 8px;
}

.banner-alert.danger {
    background-color: rgb(187, 39, 39);
    color: white;
}

.banner-alert.success {
    background-color: rgb(39, 187, 83);
}

.banner-alert.warning {
    background-color: rgb(239, 195, 4);
}

    .banner-alert.success > .body > .title > h2,
    .banner-alert.success > .body .description > p {
        color: white;
        font-weight: 700;
    }

    .banner-alert.danger.active > .body > .title > h2,
    .banner-alert.success > .body .description > p {
        color: white;
    }

/*    .banner-alert.danger.active > .body > .title > h2,
    .banner-alert.warning > .body .description > p {
        color: white;
    }*/

.banner-alert.active {
    animation: .3s visi forwards;
}

@keyframes visi {
    0% {
        visibility: visible;
    }

    50% {
        opacity: .5;
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

body {
    overflow-x: hidden;
}
