:root {
    --flash-successful: #afcfa3;
    --flash-unsuccessful: #cfa3a3;
    --flash-semisuccessful: #cfcc29;
}

.flash {
	position: fixed;
	top: 1.55rem;
	right: 1.5rem;
	width: fit-content;
	padding: 1rem 1rem 1rem 1rem;
	display: flex;
	border-radius: 5px;
	box-shadow: 0 0 2px 1px rgba(0, 0, 0, 0.2);
    color: white;
    font-size: 22px;
    font-style: italic;
    max-width: 500px;
    z-index: 2000;
}

.flash span {
    position: absolute;
    right: 0.5rem;
    top: 0.1rem;
    font-family: monospace;
    font-style: normal;
    font-size: 1.5rem;
    cursor: pointer;
}

.flash-p {
    font-weight: bold;
    color: white;
    font-style: italic;
    margin: 0 auto;
    margin-right: 2.5rem;
}

@-webkit-keyframes fadeinout {
    20% { opacity: 1; }
    80% { opacity: 1; }
}

@keyframes fadeinout {
    20% { opacity: 1; }
    80% { opacity: 1; }
}

.flash-successful {
	background-color: #afcfa3;
}

.flash-unsuccessful {
	background-color: #cfa3a3;
}

.flash-semisuccessful {
	background-color: #cfcc29;
}

.flash-error {
	background-color: #f07f16;
}

.fade-in {
	animation-name: fadeInOpacity;
	animation-iteration-count: 1;
	animation-timing-function: ease-in;
	animation-duration: 1s;
}
.fade-out {
	animation-name: fadeOutOpacity;
	animation-iteration-count: 1;
	animation-timing-function: ease-in;
	animation-duration: 1s;
}

@keyframes fadeInOpacity {
	0% {
		opacity: 0;
	}
	100% {
		opacity: 1;
	}
}

@keyframes fadeOutOpacity {
	0% {
		opacity: 1;
	}
	100% {
		opacity: 0;
	}
}
