/**********************************************************************/
/* Utilities */

.relative {
	position: relative;
}

.absolute {
	position: absolute;
}

.top-2 {
	top: 8px;
}

.top-4 {
	top: 16px;
}

.right-2 {
	right: 8px;
}

.right-4 {
	right: 16px;
}

.hidden {
	display: none;
}

.flex {
	display: flex;
}

.flex-col {
	flex-direction: column;
}

.flex-auto {
	flex: auto;
}

.flex-1 {
	flex: 1;
}

.justify-center {
	justify-content: center;
}

.justify-between {
	justify-content: space-between;
}

.items-center {
	align-items: center;
}

.gap-2 {
	gap: 8px;
}

.gap-3 {
	gap: 12px;
}

.gap-4 {
	gap: 16px;
}

.h-2 {
	height: 8px;
}

.p-2 {
	padding: 8px;
}

.text-center {
	text-align: center;
}

.text-gray {
	color: #777;
}

/**********************************************************************/

* {
	margin: 0;
	padding: 0;
}

body {
	font-family: helvetica;
}

h1 {
	text-align: center;
	font-size: 32px;
}

h2 {
	text-align: center;
}

code {
	border-radius: 4px;
	padding: 0px 4px;
	background-color: #eee;
	font-size: 16px;
}

textarea {
	border-radius: 8px;
	border: 1px solid #ccc;
	padding: 4px;
	font-size: 16px;
}

.btn {
	border-radius: 5px;
	border: none;

	padding: 6px 12px;

	background-color: #2984d1;
	font-size: 16px;
	color: white;
}

.btn:hover {
	background-color: #4493d7;
	cursor: pointer;
}

.btn-secondary {
	background-color: #8f8f8f;
	color: white;
}

.btn-secondary:hover {
	background-color: #979797;
}

/**********************************************************************/

#graph-panel-box {
	display: flex;
	flex-direction: column;
}

.graph-panel {
	position: relative;
	flex-direction: column;
	flex: 1;
	border-radius: 8px;
	border: 1px solid #ddd;
}

.toolbar {
	display: flex;
	gap: 8px;
	border-bottom: 1px solid #ddd;
	padding: 4px;
	border-radius: 8px 8px 0px 0px;
	background-color: #efefef;
}

.graph-canvas {
	position: relative;
	flex: 1;
}

.no-graph {
	position: absolute;
	z-index: 2;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 16px;
	height: 100%;
	width: 100%;
	border-radius: 8px;
	background-color: white;
}

.help-msg {
	text-align: center;
	font-size: 28px;
	color: #ccc;
}

@media only screen and (min-width: 768px) {
	#graph-panel-box {
		flex-direction: row;
		align-items: stretch;
	}

	.graph-panel {
		flex: 1;
	}
}

/**********************************************************************/
/* Dialog */

dialog {
	margin: auto;
	width: 400px;
	min-width: 280px;
	border: none;
	border-radius: 8px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
	padding: 16px;
}

dialog::backdrop {
	background-color: rgba(0, 0, 0, 0.5);
}

#import-dialog {
	position: relative;
}

.close-button {
	border: none;
	background-color: inherit;
	cursor: pointer;
}

.close-button > svg {
	display: block;
	color: #ccc;
}

/**********************************************************************/

.cy {
	position: absolute;
	top: 0;
	left: 0;
	z-index: 1;
	height: 100%;
	width: 100%;
}

/**********************************************************************/
