


:root {
    --notification-background: #313e2c;
    --notification-primary: #aaec8a;
    --background: #0d110e;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--background);
    display: flex;
    align-items: center;
    justify-content: center;
}

.container {
    display: flex;
    margin: auto;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
    gap: 0.5rem;
}

.notification--info {
    --bg: #1a1a2e;
    --primary: #8b8bda;
}

.notification--failure {
    --bg: #371818;
    --primary: #ff4d4d;
}

.notification--warning {
    --bg: #512e08;
    --primary: #ffa536;
}

.notification--success {
    --bg: #313e2c;
    --primary: #aaec8a;
}

.notification {
    min-width: 22rem;
    margin-left: auto; 
    margin-right: auto; 
    border-radius: 0.375rem;
    background: var(--bg);
    color: var(--primary);
    box-shadow: 0 1px 10px 
        rgba(0, 0, 0, 0.1);
    transform: translateY(1.875rem);
    opacity: 0;
    visibility: hidden;
    animation: fade-in 3s linear;
}

.notification__icon {
    height: 1.625rem;
    width: 1.625rem;
    margin-right: 0.25rem;
}

.notification__body {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 1rem 0.5rem;
}

.notification__progress {
    position: absolute;
    left: 0.25rem;
    bottom: 0.25rem;
    width: calc(100% - 0.5rem);
    height: 0.2rem;
    transform: scaleX(0);
    transform-origin: left;
    background: linear-gradient(
        to right, 
        var(--bg),  
        var(--primary)
    );
    border-radius: inherit;
    animation: progress 2.5s 0.3s linear;
}

@keyframes fade-in {
    5% {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    95% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes progress {
    to {
        transform: scaleX(1);
    }
}

.container {
    display: flex;
    flex-direction: column;
    height: 100vh;
}