 .alert {
    z-index: 10;
    padding: 1em 1em 1.5em 1.5em;
    min-width: 300px;
    position: fixed;
    top: 25px; right: 30px;
    display: flex; flex-direction: column;
    overflow: hidden;
    border-radius: 3px;
    background: #FFF;
    box-shadow: 0 0 3px 1px rgba(0, 0, 0, 0.3);
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.35);
    transform: translateX(500px);
} .alert.active {
    transform: translateX(0%);
}
  
.alert > .dismiss {
    align-self: flex-end;
    opacity: 0.7; cursor: pointer;
    color: var(--dark);
} .alert > .dismiss:hover {
    opacity: 1;
}
  
.alert > .alert-content {
    display: flex; flex-direction: row;
    align-items: center; justify-content: flex-start;
}

.alert-content > .icon {
    padding: 0.5em;
    display: grid;
    place-items: center;
    height: 35px; min-width: 35px;
    font-size: 20px;
    border-radius: 50%;
    color: #FFF; background: #000;
} .alert-content > .warning-icon {
    background-color: var(--warning);
} .alert-content > .error-icon {
    background-color: var(--error);
} .alert-content > .success-icon {
    background-color: var(--success);
}

.alert-content > .message {
    margin-left: 1em;
    display: flex; flex-direction: column;
    font-size: 1rem;
    color: var(--dark);
}  .alert-content > .message > .alert-title {
    margin-bottom: 0.1em;
    font-size: 1rem; font-weight: 600;
    text-transform: uppercase;
} .alert-content > .message > .alert-message {
    font-size: 0.9rem; font-weight: 400;
}
  
.alert > .timeout {
    position: absolute;
    bottom: 0; left: 0;
    width: 100%; height: 3px;
} .alert > .timeout:before {
    content: '';
    position: absolute;
    bottom: 0; right: 0;
    width: 100%; height: 100%;
    background-color: #000;
} .alert > .warning-timeout:before {
    background: var(--warning);
} .alert > .error-timeout:before {
    background: var(--error);
} .alert > .success-timeout:before {
    background: var(--success);
} .timeout.active:before {
    animation: timeout 5s linear forwards;
}

@keyframes timeout {
    100% {
        right: 100%;
    }
}
