body,
html {
	margin: 0;
	padding: 0;
	height: 100%;
	overflow: hidden;
}

body {
	font-size: 1.6rem;
	line-height: 140%;
	background-color: #f3f6f6;
	font-family: 'Roboto', sans-serif;
}

.overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.7);
	/* Semi-transparent gray */
	z-index: 998;
}

.container {
	display: flex;
	height: 100%;
}

.left-pane,
.right-pane {
	display: flex;
	flex-direction: column;
	padding: 5px;
}

.left-pane {
	width: 20%;
	padding: 5px 0 5px 5px;
	/* Top, Bottom, Left padding */
	min-width: 220px;
	/* Minimum width for the toolbox */
	max-width: 220px;
}

.right-pane {
	width: 80%;
	padding: 5px 5px 5px 0;
	/* Top, Bottom, Right padding */
}

.inner-pane {
	height: 100%;
	width: 100%;
	border-radius: 10px;
}

.left-inner-pane {
	display: flex;
	flex-direction: column;
}

.right-inner-pane {
	display: flex;
	flex-direction: column;
}

.right-top-pane {
	display: flex;
	align-items: flex-start;
}

.divider {
	width: 0px;
	background-color: transparent;
}

.dialog-box {
	margin: 10px 5px 10px 10px;
	height: calc(3em + 40px);
	color: white;
	display: flex;
	justify-content: space-between;
	align-items: center;
	background: #0085C1;
	border: solid 2px #ddd;
	border-radius: 10px;
	padding: 10px;
	flex-grow: 1;
	cursor: pointer;
	position: relative;
}

.dialog-text {
	font-size: 20px;
	font-family: 'Roboto', sans-serif;
	cursor: pointer;
	user-select: none;
	line-height: 1.5;
	flex-grow: 1;
}

.dialog-text b {
	color: #e3f542;
}

.dialog-button-container {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	/* Ensures the hint is at the top and arrows at the bottom */
	height: 100%;
	/* Full height to stretch the container */
	padding: 10px 0;
	margin-right: 10px;
}

.hint-button {
	display: flex;
	justify-content: flex-end;
	margin-bottom: 6px;
}

.hint {
	background: transparent;
	border: none;
	color: white;
	cursor: pointer;
	padding: 0;
	margin: 0;
	z-index: 500;
}

.hint-button button:hover svg {
	fill: #fff;
}

.hint-button button:disabled {
	cursor: default;
}

.arrow-buttons {
	display: flex;
	justify-content: flex-end;
	margin-top: auto;
	margin-bottom: 0;
}

.arrow {
	background: transparent;
	border: none;
	color: white;
	cursor: pointer;
	padding: 0;
	margin: 0;
	z-index: 500;
}

.arrow-buttons button:hover svg {
	fill: #fff;
	/* Change the fill color of the SVG */
}


.button-container {
	padding: 10px 0 10px 0px;
	margin-right: 10px;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	/* Add some space between the buttons */
}

.square-button {
	width: 44px;
	/* Set the width of the button */
	height: 44px;
	/* Set the height of the button */
	background-color: #ddd;
	border: solid 2px #ccc;
	border-radius: 10px;
	/* Rounded corners for the button */
	margin-bottom: 4px;
	/* Space between buttons */
	cursor: pointer;
	/* Change cursor on hover */
}

.square-button:hover {
	background-color: #eee;
	/* Darker shade for hover effect */
}

.toolbox-main-pane {
	display: flex;
	flex: 1;
	position: relative;
}

.toolbox {
	background-color: white;
	border: solid 2px #ddd;
	width: 100%;
	border-radius: 10px;
	padding: 5px;
	margin: 0px 0px 10px 5px;
	overflow: hidden;
	position: relative;
}

.toolbox-content {
	overflow-y: auto;
	/* Enable vertical scrollbar */
	max-height: calc(100% - 10px);
	/* Adjust to fit parent height minus padding */
	padding-right: 5px;
	/* Ensure space for scrollbar */
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	right: 0;
	margin: 20px 10px 10px 10px;
	color: blue;

}

.category-header {
	background-color: #ccc;
	font-family: 'Roboto', sans-serif;
	font-size: 20px;
	color: white;
	padding: 0px 10px;
	margin: 5px 5px;
	border-radius: 5px;
}

.tool-link {
	display: block;
	margin: 0 0 5px 5px;
	padding-left: 5px;
	color: blue;
	text-decoration: none;
	font-size: 16px;
	font-family: 'Roboto', sans-serif;
	color: #222;
	/* margin-bottom: 5px; */
	/* border-radius: 5px; */
	/* transition: background-color 0.3s ease; */
}

.tool-link:hover {
	/* background-color: #f0f0f0; */
	color: #0085C1;
	font-weight: bold;
}

.toolbox-content::-webkit-scrollbar {
	width: 8px;
	/* Width of the scrollbar for WebKit browsers (Chrome, Safari) */
}

.toolbox-content::-webkit-scrollbar-track {
	background: white;
	/* Color of the scrollbar track */
}

.toolbox-content::-webkit-scrollbar-thumb {
	background-color: #ccc;
	/* Color of the scrollbar thumb */
	border-radius: 10px;
	/* Rounded corners for the thumb */
}

.toolbox-content::-webkit-scrollbar-thumb:hover {
	background-color: #ccc;
	/* Adjust thumb color on hover if needed */
}

.robot-pane {
	background-color: transparent;
	position: relative;
	margin: 14px 10px;
	padding: 10px;
	height: calc(3em + 40px);
	/* 3 lines of text height plus top and bottom margins */
}

.robot-overlay {
	position: absolute;
	top: -101px;
	left: 50%;
	transform: translate(-50%, 0%);
	z-index: 1;
}

.robot-overlay .img {
	filter: drop-shadow(0rem .5rem rgba(0, 0, 0, 0.1));
	transition: 0.3s ease-out;
}

.middle-pane {
	display: flex;
	flex: 1;
}

.editor {
	background-color: white;
	border: solid 2px #ddd;
	color: black;
	width: 40%;
	min-width: 320px;
	border-radius: 10px;
	padding: 10px;
	margin: 0px 0px 10px 10px;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
}

.editor .editor-buttons {
	display: flex;
	align-items: center;
}

.editor .editor-buttons button {
	margin-right: 10px;
	cursor: pointer;
}

.editor .editor-buttons .edit-button {
	background-color: #ddd;
	border: solid 2px #ccc;
	border-radius: 5px;
	height: 40px;
	width: 60px;
}

.editor .editor-buttons .edit-button:hover {
	background-color: #f0f0f0;
}

.editor .editor-buttons .run-button {
	cursor: pointer;
	background-color: #41AA04;
	border: solid 2px #ccc;
	border-radius: 5px;
	height: 40px;
	width: 80px;
}

.editor .editor-buttons .run-button:hover {
	background-color: #54DC05;
}

.editor .editor-buttons button:last-child {
	margin-right: 0;
	/* Remove margin from the last button */
	margin-left: auto;
	/* Push 'Run' button to the right */
}

.code-editor-container {
	position: relative;
	height: 100%;
	overflow: hidden;
}

.code-info-container {
	margin-top: 8px;
	height: 3em;
	color: #292929;
	display: flex;
	justify-content: space-between;
	align-items: center;
	background: white;
	border: solid 1px #ccc;
	border-radius: 5px;
	flex-grow: 1;
	position: relative;
}

.code-info {
	font-size: 16px;
	text-align: left;
	/* Aligns text to the left horizontally */
	font-family: 'Roboto', sans-serif;
	user-select: none;
	line-height: 1.5;
	flex-grow: 1;
	padding: 8px;
	/* Adds padding for some space inside */
	box-sizing: border-box;
	/* Ensures padding is included in the total width/height */
	resize: none;
	/* Disable resizing if desired */
	height: 100%;
	/* Ensure the textarea uses the full height of its container */
}

.code-info.error-info {
	background-color: #f5e2e4;
	/* Light red background */
	color: #721c24;
	/* Dark red text for visibility */
	/* font-weight: bold;  /* Make the text bold */
	padding: 4px;
	/* Slightly more padding for visual appeal */
}

.CodeMirror {
	height: calc(100% - 15px);
	border: 1px solid #ccc;
	font-size: 18px;
	margin-top: 10px;
	border-radius: 5px;
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	right: 0;
	height: auto;
	line-height: 1.5;
}


.CodeMirror .error-line {
	background-color: rgba(255, 0, 0, 0.1);
	text-decoration: underline wavy red;
}

.CodeMirror-scroll {
	max-height: 100%;
}

.CodeMirror-scrollbar-filler,
.CodeMirror-gutter-filler {
	background-color: white;
	/* Match your background color */
}

.CodeMirror-simplescroll-horizontal div,
.CodeMirror-simplescroll-vertical div {
	background-color: #ccc;
	border-radius: 10px;
}

.CodeMirror-scrollbar-filler {
	width: 8px;
}

/* For WebKit browsers */
.CodeMirror-vscrollbar::-webkit-scrollbar {
	width: 8px;
}

.CodeMirror-vscrollbar::-webkit-scrollbar-track {
	background: white;
}

.CodeMirror-vscrollbar::-webkit-scrollbar-thumb {
	background-color: #ccc;
	border-radius: 10px;
}

.CodeMirror-vscrollbar::-webkit-scrollbar-thumb:hover {
	background-color: #bbb;
	/* Slightly darker on hover */
}

/* For Firefox */
.CodeMirror-vscrollbar {
	scrollbar-width: thin;
	scrollbar-color: #ccc white;
}

/* For horizontal scrollbar */
.CodeMirror-hscrollbar::-webkit-scrollbar {
	height: 8px;
}

.CodeMirror-hscrollbar::-webkit-scrollbar-track {
	background: white;
}

.CodeMirror-hscrollbar::-webkit-scrollbar-thumb {
	background-color: #ccc;
	border-radius: 10px;
}

.CodeMirror-hscrollbar::-webkit-scrollbar-thumb:hover {
	background-color: #bbb;
}

.viewer-container {
	background-color: white;
	border: solid 2px #ddd;
	color: black;
	width: 100%;
	border-radius: 10px;
	margin: 0px 10px 10px 0px;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	z-index: 999;
}

.action-button {
	background-color: #ddd;
	border: solid 2px #ccc;
	border-radius: 5px;
	height: 40px;
	width: 60px;
	padding: 10px;
	margin: 10px;
	cursor: pointer;
}

.action-button:hover {
	background-color: #f0f0f0;
}

.viewer-buttons button:last-child {
	margin-left: -5px;
}

.viewer {
	flex: 1;
	display: flex;
	justify-content: center;
	align-items: center;
	position: relative;
}

.drawing-canvas-container {
	display: flex;
	align-items: left;
	width: auto;
}

.drawing-canvas {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	height: 100%;
	width: 100%;
	outline: none;
}

.shadow {
	box-shadow: 8px 8px 4px #888;
	/* Shadow effect */
}


.close-hint-button {
	position: absolute;
	/* Position it absolutely relative to its nearest positioned ancestor */
	top: 0px;
	/* Adjust this value to position the button above the viewer */
	left: 50%;
	/* Center the button horizontally (adjust if needed) */
	transform: translateX(-50%);
	/* Center the button exactly */
	z-index: 9999;
	/* Ensure the button is on top of other elements */
	background-color: #007bff;
	/* Button background color */
	color: #fff;
	/* Button text color */
	border: none;
	/* Remove default border */
	padding: 10px 20px;
	/* Button padding */
	border-radius: 5px;
	/* Rounded corners */
	cursor: pointer;
	/* Change cursor to pointer */
	background-color: rgba(50, 50, 50, 0.5);
	font-family: 'Roboto', sans-serif;
	font-size: 20px;
	color: white;
	margin: 10px 5px;
	border-radius: 5px;
}

.close-hint-button:hover {
	background-color: rgba(99, 99, 99, 0.5);
}

.middle-divider {
	width: 10px;
	background-color: transparent;
	cursor: ew-resize;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
}

.dots {
	width: 4px;
	height: 4px;
	background-color: grey;
	border-radius: 50%;
	margin: 1px 0;
	/* Adjust the margin as needed */
}

.drawer {
	position: fixed;
	top: 0;
	right: -320px;
	width: 300px;
	height: calc(100%-40px);
	background-color: #fff;
	box-shadow: -2px 0 5px rgba(0, 0, 0, 0.5);
	transition: right 0.3s ease;
	z-index: 1000;
	display: flex;
	flex-direction: column;
	border-top-left-radius: 10px;
	border-bottom-left-radius: 10px;
	font-size: 20px;
	font-family: 'Roboto', sans-serif;
	margin: 16px 0 16px 0;
}

.drawer.open {
	right: 0;
}

.drawer-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 20px;
	background-color: #f1f1f1;
	border-bottom: 1px solid #ddd;
	border-top-left-radius: 10px;
}

.drawer-header span {
	font-size: 18px;
	font-weight: bold;
}

.close-drawer-button {
	background: #ccc;
	border: none;
	font-size: 32px;
	cursor: pointer;
	color: #fff;
	border-radius: 5px;
	width: 40px;
}

.close-drawer-button:hover {
	background: #ddd;
}

.drawer-content {
	padding: 10px 20px;
	overflow-y: auto;
	height: 500px;
}

.drawer-content::-webkit-scrollbar {
	width: 8px;
	/* Width of the scrollbar for WebKit browsers (Chrome, Safari) */
}

.drawer-content::-webkit-scrollbar-track {
	background: white;
	/* Color of the scrollbar track */
}

.drawer-content::-webkit-scrollbar-thumb {
	background-color: #ccc;
	/* Color of the scrollbar thumb */
	border-radius: 10px;
	/* Rounded corners for the thumb */
}

.drawer-content::-webkit-scrollbar-thumb:hover {
	background-color: #ccc;
	/* Adjust thumb color on hover if needed */
}

.drawer-content ul {
	list-style-type: none;
	padding: 0;
}

.drawer-content li {
	margin: 4px 0;
}

.drawer-content a {
	text-decoration: none;
	color: #222;
	font-size: 16px;
}

.drawer-content strong {
	text-decoration: none;
	color: #e3f542;
	background-color: #aaa;
	font-size: 16px;
	border: none;
	border-radius: 5px;
	padding: 2px 2px;
	margin-left: 5px;
}

.drawer-content a:hover {
	color: #0085C1;
	font-weight: bold;
}

.info-drawer-category {
	text-decoration: none;
	color: #222;
	font-size: 16px;
	font-weight: bold;
	line-height: 1.2;
}

.info-drawer-text {
	text-decoration: none;
	color: #222;
	font-size: 16px;
	line-height: 1.3;
}

.info-drawer-text a {
	text-decoration: none;
	color: #0085C1;
}

.savecode-button {
	background: #007BFF;
	color: white;
	border: none;
	padding: 10px 20px;
	font-size: 16px;
	border-radius: 5px;
	cursor: pointer;
	transition: background 0.3s;
  }
  .savecode-button:hover {
	background: #0056b3;
  }
  .savecode-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.5);
	display: none;
	align-items: center;
	justify-content: center;
	z-index: 1000;
  }
  .savecode-modal {
	background: #ffffff;
	width: 50%;
	max-width: 600px;
	border-radius: 8px;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
	padding: 20px;
  }
  .savecode-modal h2 {
	margin: 0;
	color: #333;
	text-align: center;
	margin-bottom: 20px;
	font-size: 24px;
  }
  .savecode-modal textarea {
	width: 100%;
	height: 100px;
	margin-bottom: 15px;
	padding: 10px;
	font-size: 14px;
	border: 1px solid #ddd;
	border-radius: 5px;
	resize: none;
	box-sizing: border-box;
	outline: none;
  }
  .savecode-modal textarea:focus {
	border-color: #007BFF;
	box-shadow: 0 0 4px rgba(0, 123, 255, 0.5);
  }
  .savecode-modal .savecode-buttons {
	text-align: center;
	margin-top: 10px;
  }
  .savecode-modal button {
	background: #007BFF;
	color: white;
	border: none;
	padding: 10px 20px;
	font-size: 16px;
	border-radius: 5px;
	cursor: pointer;
	margin: 0 10px;
	transition: background 0.3s;
  }
  .savecode-modal button:hover {
	background: #0056b3;
  }
  .savecode-modal .savecode-cancel-button {
	background: #e0a525;
  }
  .savecode-modal .savecode-cancel-button:hover {
	background: #c5901f;
  }
  .savecode-confirmation {
	position: fixed;
	top: -100px;
	left: 50%;
	transform: translateX(-50%);
	background: #c4e255;
	color: black;
	padding: 10px 20px;
	border-radius: 5px;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
	font-size: 16px;
	z-index: 1001;
	transition: top 0.5s ease;
  }