#toast-box {
    position: fixed;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    flex-direction: column;
    overflow: hidden;
    gap: 10px;
    z-index: 9999;
    padding: 0 10px;
}

.toast {
    position: relative;
    width: 400px;
    background: #fff;
    border: 1px solid green;
    font-weight: 500;
    display: flex;
    align-items: center;
    transform: translateY(-100%);
    animation: movedown 0.5s ease-out forwards;
    color: black;
    font-size: 15px;
    min-height: 60px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.toast.error {
    border: 1px solid red;
}

.toast.invalid {
    border: 1px solid orange;
}

@keyframes movedown {
    100% {
        transform: translateY(0);
    }
}

.toast svg {
    background: green;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    padding: 5px;
    margin: 0 20px;
    flex-shrink: 0;
}

.toast.error svg {
    background: red;
}

.toast.invalid svg {
    background: orange;
}

.toast::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 5px;
    background: green;
    animation: anim 5s linear forwards;
}

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

.toast.error::after {
    background: red;
}

.toast.invalid::after {
    background: orange;
}

@media screen and (max-width: 999px) {
    .toast {
        width: 90vw;
        font-size: 14px;
        padding: 10px;
    }

    #toast-box {
        top: 10px;
        left: 50%;
        transform: translateX(-50%);
        gap: 10px;
    }
}