*[parsetype="container"] {
	border: 1px solid #000000;
	background-color: #444444;
}

.jtg-component {
	display: inline-block;
	box-sizing: border-box;
	width: 50px;
	margin: 1px;
	border: 1px solid #000000;
	background-color: #FFFFFF;
	cursor: pointer;
	white-space: break-spaces;
}

.jtg-component > div {
	margin: 1px auto auto;
	text-align: center;
}

.jtg-component.selected {
	box-sizing: border-box;
	border-width: 2px;
}

.jtg-component.selected > div {
	margin-top: 0px;
}

.jtg-add-component {
	font-weight: bold;
	border-radius: 6px;
}

.ta-input,
.ta-output,
.img-workspace {
	display: inline-flex;
	width: 100%;
	height: 100%;
}

.ta-input textarea,
.ta-output textarea {
	display: block;
	width: 100%;
	height: 100%;
	resize: none;
	padding: 2px;
	border: 1px solid #000000;
}

.img-editor {
	display: grid;
	grid-template-rows: 60px 1fr;
	width: 100%;
	height: 100%;
	cursor: default;
}

.img-toolbar {
	display: flex;
	flex-flow: column wrap;
	align-content: space-between;
	border-bottom: 1px solid #000000;
}

.img-toolbar > *[sectiontype] {
	display: flex;
	height: 100%;;
}

.img-toolbar .img-tool-icon {
	display: inline-flex;
	width: min-content;
	height: 100%;
	min-width: 50px;
	align-items: center;
	justify-content: center;
	margin: 0px 1px;
	background-color: #FFFFFF;
	white-space: break-spaces;
	text-align: center;
	cursor: pointer;
}

.img-toolbar .img-tool-icon > * {
	line-height: 1;
	padding: 0px 3px;
}

.img-workspace {
	align-items: center;
	justify-content: center;
	overflow: hidden;
}

.img-workspace svg {
	max-width: 100%;
	max-height: 100%;
	border: 1px solid #000000;
}

.img-canvas *[objtype] {
	cursor: pointer;
	user-select: none;
}

.img-canvas *[objtype='point'] text {
	pointer-events: none;
}

/* The toaster - position it at the bottom and in the middle of the screen */
#jtg-toast {
	visibility: hidden;
	background-color: #333;
	color: #fff;
	text-align: center;
	border-radius: 16px;
	padding: 16px;
	position: fixed;
	z-index: 1;
	left: 50%; /* Center the snackbar */
	transform: translate(-50%, 0);
	bottom: 30px; /* 30px from the bottom */
}

/* Show the snackbar when clicking on a button (class added with JavaScript) */
#jtg-toast.show {
	visibility: visible;
	-webkit-animation: fadein 0.5s, fadeout 0.5s 2.5s;
	animation: fadein 0.5s, fadeout 0.5s 2.5s;
}

/* Animations to fade the toast in and out */
@-webkit-keyframes fadein {
	from {bottom: 0; opacity: 0;}
	to {bottom: 30px; opacity: 1;}
}

@keyframes fadein {
	from {bottom: 0; opacity: 0;}
	to {bottom: 30px; opacity: 1;}
}

@-webkit-keyframes fadeout {
	from {bottom: 30px; opacity: 1;}
	to {bottom: 0; opacity: 0;}
}

@keyframes fadeout {
	from {bottom: 30px; opacity: 1;}
	to {bottom: 0; opacity: 0;}
}