/*============================================================
* cwBootstrap
* v 1.2 - 2021-07-21
* ==========================================================*/

:root {
	--primary-color: #204f6e;
	--dark-color: #333333;
	--light-color: #f4f4f4;
	--danger-color: #dc3545;
	--success-color: #28a745;
}

* {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

body {
	font-family: "Roboto", sans-serif;
	font-size: 1rem;
	line-height: 1.6;
	background-color: #fff;
	color: #333;
}

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);
}

/*============================================================
* Got some of this from Traversy as kind of mini-Bootstrap
* ==========================================================*/

a {
	color: var(--primary-color);
	text-decoration: none;
}

a:hover {
	color: #666;
}

/* ul {
	list-style: none;
}

img {
	width: 100%;
} */

/* Utilities */
.container {
	max-width: 800px;
	margin: auto;
	overflow: hidden;
	padding: 0 0.5rem;
}

/* Text Styles*/
.x-large {
	font-size: 4rem;
	line-height: 1.2;
	margin-bottom: 1rem;
}

.large {
	font-size: 3rem;
	line-height: 1.2;
	margin-bottom: 1rem;
}

.lead {
	font-size: 1.5rem;
	margin-bottom: 1rem;
}

.text-center {
	text-align: center;
}

.text-primary {
	color: var(--primary-color);
}

.text-dark {
	color: var(--dark-color);
}

.text-center {
	text-align: center;
}

.text-right {
	text-align: right;
}

.text-left {
	text-align: left;
}

.d-none {
	display: none !important;
}

.opacity-0 {
	opacity: 0 !important;
}

.opacity-100 {
	opacity: 1 !important;
}

.scale-0 {
	transform: scale(0) !important;
}

.scale-100 {
	transform: scale(1) !important;
}

/* Cards */
.card {
	padding: 1rem;
	border: #ccc 1px dotted;
	margin: 0.7rem 0;
}

/* List */
.list {
	margin: 0.5rem 0;
}

.list li {
	padding-bottom: 0.3rem;
}

/* Padding */
.p {
	padding: 0.5rem;
}
.p-1 {
	padding: 1rem;
}
.p-2 {
	padding: 2rem;
}
.p-3 {
	padding: 3rem;
}
.py {
	padding: 0.5rem 0;
}
.py-1 {
	padding: 1rem 0;
}
.py-2 {
	padding: 2rem 0;
}
.py-3 {
	padding: 3rem 0;
}

/* Margin */
.m {
	margin: 0.5rem;
}
.m-1 {
	margin: 1rem;
}
.m-2 {
	margin: 2rem;
}
.m-3 {
	margin: 3rem;
}
.my {
	margin: 0.5rem 0;
}
.my-1 {
	margin: 1rem 0;
}
.my-2 {
	margin: 2rem 0;
}
.my-3 {
	margin: 3rem 0;
}

/* Grid */
.grid-2 {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	grid-gap: 2rem;
}

.grid-3 {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	grid-gap: 1rem;
}

.grid-4 {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	grid-gap: 2rem;
}

.grid-2-3 {
	display: grid;
	grid-template-columns: 2fr 3fr;
	grid-gap: 2rem;
}

.btn {
	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;
	cursor: pointer;

	/* display: inline-block;
	background: var(--light-color);
	color: #333;
	padding: 0.4rem 1.3rem;
	font-size: 1rem;
	border: none;
	cursor: pointer;
	margin-right: 0.5rem;
	transition: opacity 0.2s ease-in;
	outline: none; */
}

.btn-link {
	background: none;
	padding: 0;
	margin: 0;
}

.btn-block {
	display: block;
	width: 100%;
}

.btn-sm {
	font-size: 0.8rem;
	padding: 0.3rem 1rem;
	margin-right: 0.2rem;
}

.badge {
	font-size: 0.8rem;
	padding: 0.2rem 0.7rem;
	text-align: center;
	margin: 0.3rem;
	background: var(--light-color);
	color: #333;
	border-radius: 5px;
}

.alert {
	padding: 0.7rem;
	margin: 1rem 0;
	opacity: 0.9;
	background: var(--light-color);
	color: #333;
}

.btn-primary,
.bg-primary,
.badge-primary,
.alert-primary {
	background: var(--primary-color);
	color: #fff;
}

.btn-light,
.bg-light,
.badge-light,
.alert-light {
	background: var(--light-color);
	color: #333;
}

.btn-dark,
.bg-dark,
.badge-dark,
.alert-dark {
	background: var(--dark-color);
	color: #fff;
}

.btn-danger,
.bg-danger,
.badge-danger,
.alert-danger {
	background: var(--danger-color);
	color: #fff;
}

.btn-success,
.bg-success,
.badge-success,
.alert-success {
	background: var(--success-color);
	color: #fff;
}

.btn-white,
.bg-white,
.badge-white,
.alert-white {
	background: #fff;
	color: #333;
	border: #ccc solid 1px;
}

.btn:hover {
	opacity: 0.8;
}

.bg-light,
.badge-light {
	border: #ccc solid 1px;
}

.round-img {
	border-radius: 50%;
}

/* Forms */
input {
	margin: 0.1rem 0 0.5rem 0;
}

.form-text {
	display: block;
	margin-top: 0.3rem;
	color: #888;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="date"],
input[type="number"],
select,
textarea {
	display: block;
	/* width: 100% !important; */
	padding: 0.4rem;
	font-size: inherit;
	border: 1px solid #ccc;
}

input[type="submit"],
button {
	font: inherit;
}

.form-group {
	margin: 1.2rem 0;
}

.form-group input {
	margin: 0.2rem 0;
}

.form-container {
	max-width: 500px;
	margin: 2rem auto;
	overflow: hidden;
	padding: 0 2rem;
}

table th,
table td {
	padding: 1rem;
	text-align: left;
}

table th {
	background: var(--light-color);
}

/* Navbar */
.navbar {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 0.7rem 2rem;
	z-index: 1;
	width: 100%;
	border-bottom: solid 1px var(--primary-color);
	opacity: 0.9;
	margin-bottom: 1rem;
}

.navbar ul {
	display: flex;
}

.navbar a {
	color: #fff;
	padding: 0.45rem;
	margin: 0 0.25rem;
}

.navbar a:hover {
	color: var(--light-color);
}

.navbar .welcome span {
	margin-right: 0.6rem;
}

/* Animation (Add After) */
.item-enter {
	opacity: 0;
}
.item-enter-active {
	opacity: 1;
	transition: opacity 1000ms ease-in;
}
.item-exit {
	opacity: 1;
}
.item-exit-active {
	opacity: 0;
	transition: opacity 1000ms ease-in;
}

/* Mobile Styles */
@media (max-width: 700px) {
	.hide-sm {
		display: none;
	}

	.grid-2,
	.grid-3,
	.grid-4 {
		grid-template-columns: 1fr;
	}

	/* Text Styles */
	.x-large {
		font-size: 3rem;
	}

	.large {
		font-size: 2rem;
	}

	.lead {
		font-size: 1rem;
	}

	/* Navbar */
	.navbar {
		display: block;
		text-align: center;
	}

	.navbar h1 {
		margin-bottom: 0.6rem;
	}

	.navbar ul {
		text-align: center;
		justify-content: center;
	}
}

/*============================================================
* 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;
	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;
	align-items: center;
	font-size: 1.2rem;
	font-weight: bolder;
	padding: 0.5rem;
	border: 1px solid black;
	border-radius: 3px;
}

.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: 50vh;
}

.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 .msgBoxTitleIcon {
	height: 1.5rem;
	width: auto;
	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);
	}
}
