/*============================================================
* cwBootstrap
* v 1.2 - 2021-07-21
* v 1.4 - 2022-02-15
* Took out generic css stuff (set in app style.css instead)
* ==========================================================*/

html {
	--cw-toastBorder: #000000;
	--cw-toastBackground: #f8f8f8;

	--cw-msgBoxBorder: #000000;
	--cw-msgBoxBackground: #f8f8f8;
	--cw-msgBoxMask: rgba(20, 20, 20, 0.4);
	--cw-info: #add8e6;
	--cw-warning: #ffff00;
	--cw-error: #ff0000;

	--cw-bodyBG: #f8f9fa;

	--cw-dropShadow: rgba(0, 0, 0, 0.5);
}

/* To correct issue with Firefox not vertically centering text in button */
button {
	font-family: inherit;
}

/*============================================================
* TOAST 
* ==========================================================*/
.toastContainer {
	display: flex;
	pointer-events: none;
	position: fixed;
	justify-content: center;
	top: 100px;
	width: 100vw;
	z-index: 1;
	animation: toastGrow 500ms cubic-bezier(0.63, -0.13, 0.17, 1.6) forwards;
}

.toastBody {
	border: 2px solid var(--cw-toastBorder);
	border-radius: 10px;
	background-color: var(--cw-toastBackground);
	padding: 0.5rem 1rem;
	max-width: 500px;
	box-shadow: 0 0.5rem 0.6rem var(--cw-dropShadow);
}

.toastContainerHide {
	animation: toastShrink 400ms ease-in forwards;
}

@keyframes toastGrow {
	0% {
		opacity: 0;
		transform: scale(0);
	}
	100% {
		opacity: 1;
		transform: scale(1);
	}
}

@keyframes toastShrink {
	0% {
		opacity: 1;
		transform: scale(1);
	}
	100% {
		opacity: 0;
		transform: scale(0);
	}
}

/*============================================================
* MESSAGE BOX
* ==========================================================*/
.msgBoxContainer {
	display: flex;
	pointer-events: all;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	justify-content: center;
	align-items: center;
	background-color: var(--cw-msgBoxMask);
	animation: msgBoxGrow 500ms cubic-bezier(0.63, -0.13, 0.17, 1.6) forwards;
	z-index: 1;
}

.msgBoxContainerHide {
	animation: msgBoxShrink 400ms ease-in forwards;
	pointer-events: none;
}

.msgBox {
	display: flex;
	max-width: 600px;
	max-height: 100vh;
	margin-left: 20px;
	margin-right: 20px;
	flex-direction: column;
	padding: 0.2rem;
	border: 2px solid var(--cw-msgBoxBorder);
	border-radius: 5px;
	color: var(--wd-bodyFG);
	background-color: var(--cw-bodyBG);
	overflow-y: auto;
	box-shadow: 5px 5px 8px rgba(0, 0, 0, 0.5);
}

.msgBox .msgBoxHeader {
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.5rem;
	/* line-height: 1.5rem; */
	font-weight: bolder;
	padding: 0.2rem;
	border: 1px solid black;
	border-radius: 3px;
	text-align: center;
}

.msgBox .msgBoxTitle .msgBoxSubTitle {
	font-size: 0.8em;
}

.msgBoxHeader-info {
	background-color: var(--cw-info);
	color: black;
}

.msgBoxHeader-warning {
	background-color: var(--cw-warning);
	color: black;
}

.msgBoxHeader-error {
	background-color: var(--cw-error);
	color: white;
}

.msgBox .msgBoxBody {
	padding: 0.5rem;
	overflow: auto;
	max-height: 65vh;
	overscroll-behavior: contain;
}

.msgBox .msgBoxBody img {
	display: block;
	margin: 0 auto;
	width: 10rem;
}

.msgBox .msgBoxFooter {
	display: flex;
	justify-content: flex-end;
	background-color: gray;
	padding: 0.3rem;
	border: 1px solid black;
	border-radius: 3px;
}

.msgBox .msgBoxBtn {
	font-size: 1.1rem;
	padding: 0.2rem 0.6rem 0.2rem 0.6rem;
	margin-left: 0.2rem;
	margin-right: 0.2rem;
	background-color: white;
	color: black;
	border: 2px solid black;
	border-radius: 8px;
}

.msgBox .msgBoxBtn:hover {
	cursor: pointer;
	background-color: #f8f8f8;
}

.msgBox .msgBoxBtn:active,
.msgBox .msgBoxBtn:focus {
	border: 3px solid black;
}

.msgBox .msgBoxTitleIcon {
	height: 1em;
	margin-right: 0.2rem;
}

@keyframes msgBoxGrow {
	0% {
		opacity: 0;
		transform: scale(0);
	}
	100% {
		opacity: 1;
		transform: scale(1);
	}
}

@keyframes msgBoxShrink {
	0% {
		opacity: 1;
		transform: scale(1);
	}
	100% {
		opacity: 0;
		transform: scale(0);
	}
}

/*============================================================
* BOUNCING BALLS
* ==========================================================*/
.bouncer {
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	display: flex;
	justify-content: space-around;
	align-items: flex-end;
	width: 100px;
	height: 100px;
}
.bouncer-hide {
	display: none;
}
.bouncer div {
	width: 20px;
	height: 20px;
	background: #0077ff;
	border-radius: 50%;
	animation: bouncer 0.5s cubic-bezier(0.19, 0.57, 0.3, 0.98) infinite alternate;
}
.bouncer div:nth-child(2) {
	animation-delay: 0.1s;
	opacity: 0.8;
}
.bouncer div:nth-child(3) {
	animation-delay: 0.2s;
	opacity: 0.6;
}
.bouncer div:nth-child(4) {
	animation-delay: 0.3s;
	opacity: 0.4;
}

@keyframes bouncer {
	from {
		transform: translateY(0);
	}
	to {
		transform: translateY(-100px);
	}
}

/*============================================================
* UTILITY
* ==========================================================*/
.d-none {
	display: none;
}
