﻿﻿.stacks-container {
	display: flex;
	flex-direction: column;
	position: fixed;
	z-index: 1100;
	/*padding: 15px;*/
}

.position-topleft,
.position-topright,
.position-topcenter {
	top: 0;
}

.position-bottomleft,
.position-bottomright,
.position-bottomcenter,
.position-bottomfullwidth {
	bottom: 0;
}

.stack {
	display: flex;
	position: relative;
	flex-direction: row;
	animation: fadein 1.5s;
	padding: 1rem 1.25rem;
	color: #fff;
	width: 100vw;
	box-shadow: rgba(0,0,0,0.25) 0px 10px 40px;
	z-index: 1100;
}

.stack-info {
	background-color: #34a9ad;
}

.stack-success {
	background-color: #5fba7d;
}

.stack-warning {
	background-color: #c1c13e;
}

.stack-error {
	background-color: #ba5e5e;
}

.stack-icon {
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 0 1rem 0 0;
	font-size: 2.5rem;
}

.stack-body {
	display: flex;
	flex-direction: column;
	flex: 1;
}

	.stack-body .stack-header {
		display: flex;
		align-items: flex-start;
		justify-content: space-between;
	}

		.stack-body .stack-header h5 {
			font-weight: bold;
			text-transform: uppercase;
			font-size: 1rem;
			margin-bottom: 0;
			line-height: 32px;
		}

		.stack-body .stack-header .stack-close {
			background-color: transparent;
			border: 0;
			-webkit-appearance: none;
			color: inherit;
			font-size: 1.25rem;
		}

	.stack-body p {
		margin-bottom: 0;
		font-size: 1rem;
	}

.stack-progressbar {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	height: 8px;
	border-bottom-left-radius: .25rem;
	border-bottom-right-radius: .25rem;
}

.stack-info .stack-progressbar > span {
	background-color: #34a9ad;
}

.stack-success .stack-progressbar > span {
	background-color: #5fba7d;
}

.stack-warning .stack-progressbar > span {
	background-color: #c1c13e;
}

.stack-error .stack-progressbar > span {
	background-color: #ba5e5e;
}

.stack-progressbar > span {
	position: absolute;
	filter: brightness(75%);
	height: 8px;
	border-bottom-left-radius: .25rem;
}

@keyframes fadein {
	from {
		opacity: 0;
	}

	to {
		opacity: 1;
	}
}

.position-topleft {
	position: absolute;
}

.position-topright {
	position: absolute;
}

.position-topcenter {
	position: absolute;
}

.position-bottomleft {
	position: absolute;
}

.position-bottomright {
	position: absolute;
}

.position-bottomcenter {
	position: absolute;
}

.position-bottomfullwidth {
	position: absolute;
	width: 100%;
	height: 100px;
	overflow-x:hidden;
	overflow-y:scroll;
}

	.position-bottomfullwidth .stack {
		border-radius: 0;
	}

.stack {
	border-radius: .25rem;
}

@media (min-width: 576px) {

	.position-topleft {
		top: 2rem;
		left: 2rem;
		position: absolute;
	}

	.position-topright {
		top: 2rem;
		right: 2rem;
		position: absolute;
	}

	.position-topcenter {
		top: 2rem;
		left: 50%;
		margin-left: -15rem;
		position: absolute;
	}

	.position-bottomleft {
		bottom: 2rem;
		left: 2rem;
		position: absolute;
	}

	.position-bottomright {
		bottom: 2rem;
		right: 2rem;
		position: absolute;
	}

	.position-bottomcenter {
		bottom: 2rem;
		left: 50%;
		margin-left: -15rem;
		position: absolute;
	}

	.stack {
		width: 30rem;
		border-radius: .25rem;
	}

	.position-bottomfullwidth {
		left: 0;
		width: 100%;
		z-index: 10003;
	}

		.position-bottomfullwidth .stack {
			border-radius: 0;
			width: 100%;
		}
}
