.root {
	display: flex;
	flex-direction: row;
	height: 100%;
	overflow-y: hidden;
}

@media (orientation: portrait) {
	.root {
		display: flex;
		flex-direction: column;
		width: 100%;
		overflow-x: hidden;
	}
	.piece {
		display: flex;
		flex-direction: column;
		height: 50%;
	}
}

.piece {
	display: flex;
	flex-direction: column;
}

.pieceCtl {
	display: flex;
	flex-direction: row;
	height: 28px;
	padding-bottom: 3px;
}

.saveButton {
	width: 40px;
	background-color: deepskyblue;
	color: white;
	border: none;
	border-radius: 8px;
	margin-right: 10px;
	cursor: pointer;
}

.lessonName {
	padding: 0;
}

.balloonButton {
	width: 40px;
	color: white;
	border: none;
	cursor: pointer;
	margin-left: auto;
	margin-right: 4px;
}

.trash {
	width: 24px;
	height: 24px;
	flex-grow: 3;
}

.piecePanel {
	flex: 1;
	display: flex;
	overflow:hidden;
}

.partsPanel {
	border: thin solid gray;
	border-radius: 10px;
	padding-top: 10px;
	padding-bottom: 10px;
	padding-left: 10px;
	padding-right: 10px;
	display: flex;
	flex-direction: column;
}

.scriptPanel {
	padding-top: 10px;
	padding-bottom: 10px;
	padding-left: 10px;
	padding-right: 10px;
	display: flex;
	flex-direction: column;
	overflow-y: auto;
}

.view {
	flex: 1;
	display: flex;
	flex-direction: column;
}

.viewCtl {
	display: flex;
	flex-direction: row;
	height: 28px;
	padding-bottom: 3px;
}

.runButton {
	width: 40px;
	background-color: deepskyblue;
	color: white;
	border: none;
	border-radius: 8px;
	margin-right: 10px;
	cursor: pointer;
	animation-duration: 1s;
	animation-timing-function: linear;
	animation-iteration-count: infinite;
}

.singleButton {
	width: 40px;
	background-color: deepskyblue;
	color: white;
	border: none;
	border-radius: 8px;
	margin-right: 10px;
	cursor: pointer;
	animation-duration: 1s;
	animation-timing-function: linear;
	animation-iteration-count: infinite;
}

.stopButton {
	width: 40px;
	background-color: deepskyblue;
	color: white;
	border: none;
	border-radius: 8px;
	margin-right: 10px;
	cursor: pointer;
	animation-duration: 1s;
	animation-timing-function: linear;
	animation-iteration-count: infinite;
}

@keyframes runPrompt {
	0% {
		opacity: 1;
	}

	100% {
		opacity: 1;
	}
}

@keyframes inputPrompt {
	0% {
		border: thick dashed orange;
	}

	100% {
		border: thick solid white;
	}
}

.toolLocus {
	width: 40px;
	background-color: lightgray;
	color: white;
	border: none;
	border-radius: 8px;
	margin-left: 10px;
	cursor: pointer;
}

.settingButton {
	width: 40px;
	background-color: deepskyblue;
	color: white;
	border: none;
	border-radius: 8px;
	margin-right: 10px;
	cursor: pointer;
	margin-left: auto;
}

.settingModal {
	display: none;
	padding: 0.5em;
	position: absolute;
	z-index: 1;
	background-color: whitesmoke;
	overflow: auto;
}

.settingTabGroup {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	align-items: flex-end;
	background: lightgray;
}

.settingTab {
	flex-grow: 1;
	background: lightgray;
	border-radius: 8px 8px 0 0;
	cursor: pointer;
	display: inline-block;
	text-align: center;
	vertical-align: bottom;
	border-left: 1px solid gray;
	border-top: 1px solid gray;
	border-right: 1px solid gray;
}

.settingTab.tabActive {
	background: white;
}

.settingColumn {
    display: flex;
	justify-content: space-around;
}

.canvas {
	position: relative;
	flex: 1;
	border-radius: 10px;
	border: thin solid gray;
	width: calc(100% - 2px);
	height: 100%;
	overflow: hidden;
}

#canvas3d {
	position: absolute;
}

#canvas2d {
	position: absolute;
	z-index: -1;
	pointer-events: none;
}

#canvasHint {
	position: absolute;
	z-index: 1;
	pointer-events: none;
}

.property {
	flex-basis: 25%;
	justify-content: flex-end;
	border-radius: 10px;
	border: thin solid gray;
	overflow-y: auto;
}

.tabGroup {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	align-items: flex-end;
	background: lightgray;
}

.tab {
	flex-grow: 1;
	background: lightgray;
	border-radius: 8px 8px 0 0;
	cursor: pointer;
	display: inline-block;
	text-align: center;
	vertical-align: bottom;
	border-left: 1px solid gray;
	border-top: 1px solid gray;
	border-right: 1px solid gray;
}

.tab.tabActive {
	background: white;
}

.panelGroup {
	position: relative;
}

#hintMessage {
	font-weight: bold;
    line-height: 1.5em;
	width: 100%;
	height: 120px;
	margin-top: 6px;
}

.hintAxis {
	background-color: lightgray;
	color: white;
	border: none;
	border-radius: 8px;
	cursor: pointer;
}

.hintAction {
	background-color: lightgray;
	color: white;
	border: none;
	border-radius: 8px;
	cursor: pointer;
}

.panel {
	display: none;
}

.gcodeData {
	width: 100%;
	height: 100%;
}

/* 答え合わせ画面 */
.answerModal {
	display: none;
	position: absolute;
	z-index: 1;
	flex-direction: row;
	bottom: 0%;
	height: 120px;
	overflow: visible;
	opacity: 1.0;
	background-color: beige;
	pointer-events: none;
	animation-name: fadeInAnime;
	animation-fill-mode: forwards;
	animation-duration: 2s;
	animation-iteration-count: 1;
	animation-timing-function: ease;
	animation-direction: normal;
}

.answerModal img {
	padding: 10px;
}

.answerModal p {
	margin: auto;
}

.answerModal button {
	height: 40px;
	margin: auto 10px auto 20px;
	color: white;
	background-color: deepskyblue;
	border: none;
	cursor: pointer;
	pointer-events: auto;
}

@keyframes fadeInAnime {
	0% {
		opacity: 0;
		transform: translateY(100px) translateX(0px) rotate(180deg) scale(0.3);
	}

	100% {
		opacity: 1.0;
		transform: translateY(0px) translateX(0px) rotate(0deg) scale(1.0);
	}
}

/* ローディング画面 */
.loaderWrap {
	z-index: 99;
	position: fixed;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	background: #fff;
}

.loader,
.loader::after {
	border-radius: 50%;
	width: 5em;
	height: 5em;
}

.loader {
	position: relative;
	text-indent: -9999em;
	border-top: .8em solid rgba(0, 0, 0, 0.4);
	border-right: .8em solid rgba(0, 0, 0, 0.4);
	border-bottom: .8em solid rgba(0, 0, 0, 0.4);
	border-left: .8em solid rgba(0, 0, 0, 0.8);
	transform: translateZ(0);
	animation: loading 1s infinite linear;
}

@keyframes loading {
	0% {
		transform: rotate(0deg);
	}

	100% {
		transform: rotate(360deg);
	}
}
