@font-face {
	font-family: 'Lato';
	src: url('./fonts/Lato/Lato-Regular.woff2') format('woff2'),
		url('./fonts/Lato/Lato-Regular.woff') format('woff');
	/* font-weight: normal; */
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'Lato';
	src: url('./fonts/Lato/Lato-Medium.woff2') format('woff2'),
		url('./fonts/Lato/Lato-Medium.woff') format('woff');
	font-weight: 500;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'Lato';
	src: url('./fonts/Lato/Lato-Semibold.woff2') format('woff2'),
		url('./fonts/Lato/Lato-Semibold.woff') format('woff');
	font-weight: 600;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'Lato';
	src: url('./fonts/Lato/Lato-Bold.woff2') format('woff2'),
		url('./fonts/Lato/Lato-Bold.woff') format('woff');
	/* font-weight: bold; */
	font-weight: 700;
	font-style: normal;
	font-display: swap;
}

html,
body {
	height: 100%;
	/* position: relative; */
	/* overflow: hidden; */
}

.toast {
	box-sizing: border-box;
	padding: 0.75rem;
	background-color: white;
	border: 1px solid #333;
	border-radius: 0.25em;
	position: relative;
	cursor: pointer;
	transition: transform 300ms ease-in-out;
	overflow: hidden;
}

.toast-container[data-position$='-right'] .toast {
	transform: translateX(110%);
}

.toast-container[data-position$='-left'] .toast {
	transform: translateX(-110%);
}

.toast-container[data-position='top-center'] .toast {
	transform: translateY(-100vh);
	-webkit-transform: translateY(-100vh);
	-moz-transform: translateY(-100vh);
	-ms-transform: translateY(-100vh);
	-o-transform: translateY(-100vh);
}

.toast-container[data-position='bottom-center'] .toast {
	transform: translateY(100vh);
	-webkit-transform: translateY(100vh);
	-moz-transform: translateY(100vh);
	-ms-transform: translateY(100vh);
	-o-transform: translateY(100vh);
}

.toast-container .toast.show {
	transform: translate(0, 0);
}

.toast.progress::before {
	content: '';
	position: absolute;
	height: 2px;
	width: calc(100% * var(--progress));
	background-color: blue;
	bottom: 0;
	left: 0;
	right: 0;
}

.toast.can-close::after {
	content: '\00D7';
	position: absolute;
	top: 2px;
	right: 5px;
}

.toast-container {
	position: fixed;
	margin: 10px;
	width: 250px;
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.toast-container[data-position^='top-'] {
	top: 0;
}

.toast-container[data-position^='bottom-'] {
	bottom: 0;
}

.toast-container[data-position$='-right'] {
	right: 0;
}

.toast-container[data-position$='-left'] {
	left: 0;
}

.toast-container[data-position$='-center'] {
	left: 50%;
	transform: translateX(-50%);
}
