@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}

.buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-top: 15rem;
    flex-wrap: wrap;
}

.buttons .btn {
    background-color: black;
    border: none;
    outline: none;
    color: white;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    padding: 10px 25px 10px 25px;
}

.btn:hover {
    background-color: rgb(44, 44, 44);
    transition: .2s ease-in-out;
}

#notification-box {
    position: absolute;
    bottom: 30px;
    right: 0px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    overflow: hidden;
    padding: 20px;
}

.notification {
    height: 80px;
    width: 350px;
    background-color: white;
    font-weight: bold;
    display: flex;
    align-items: center;
    margin: 15px 0;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
    position: relative;
    transform: translateX(100%);
    animation: moveLeft 0.3s linear forwards;
}

.notification i {
    margin: 0 20px;
    font-size: 2rem;
}

.notification.error i {
    color: red;
}

.notification.sucess i {
    color: green;
}

.notification.invalid i {
    color: yellowgreen;
}

.notification::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 5px;
    animation: progressBar 4s linear forwards;
}

.notification.error::after {
    background-color: red;
}

.notification.sucess::after {
    background-color: green;
}

.notification.invalid::after {
    background-color: yellowgreen;
}

@keyframes progressBar {
    100% {
        width: 0;
    }
}

@keyframes moveLeft {
    100% {
        transform: translateX(0%);
    }
}