body{
	font-family: Arial, sans-serif;
	margin: 20px;
	padding: 5px;
	text-align: center;
	background-color: #161616;
	color: white;
}

.orangeTitle{
	color: #AA5C29;
}

.orangeInput{
	padding: 10px;
	color: white;
	background-color: #333;
	border: 2px solid #565656;
	border-radius: 10px;
	outline: 2px solid transparent;
	resize: none;
	transition: background-color 0.2s ease, border-color 0.2s ease, outline 0.2s ease;
}
.orangeInput:hover{
	background-color: #565656;
	cursor: text;
	border: 2px solid #828282;
}
.orangeInput:focus{
	outline: 2px solid #BBBBBB;
}
.orangeInput.red{
	border: 2px solid #BC301E;
}
.orangeInput.red:focus{
	outline: 2px solid #BC301E;
}

.orangeScrollable::-webkit-scrollbar {
	width: 10px;
	height: 12px;
}
.orangeScrollable::-webkit-scrollbar-thumb {
	background-color: #875330; /* Thumb color */
	border-radius: 10px; /* Rounded corners for the scrollbar thumb */
	border: 3px solid #161616; /* Border around the thumb to create separation */
	transition: background-color 0.2s ease;
}
.orangeScrollable::-webkit-scrollbar-track {
	background: transparent; /* Background of the track */
	border-radius: 10px; /* Rounded corners for the track */
}
.orangeScrollable::-webkit-scrollbar-thumb:hover {
	background-color: #AA5C29; /* Change color when hovered */
	cursor: pointer;
	transition: background-color 0.2s ease;
}

.orangeReadonlyBox{
	font-family: Consolas;
	display: block;
	text-align: left;
	margin: 0 auto;
	padding: 10px;
	color: white;
	background-color: #222;
	border: 2px solid #565656;
	border-radius: 10px;
	flex: 1;
	transition: background-color 0.2s ease, border-color 0.2s ease, flex 0.2s ease;
}
.orangeReadonlyBox:hover{
	background-color: #333;
	cursor: text;
}
.orangeReadonlyBox.red{
	border: 2px solid #BC301E;
}

.orangeCanvas{
	display: block;
	margin: 0 0;
	padding: 10px 0;
	overflow: hidden;
	background-color: black;
	border: 2px solid #565656;
	border-radius: 10px;
	flex: 0;
    opacity: 0;
    transition: flex 0.2s ease, opacity 0.2s ease, display 0.2s ease, margin 0.2s ease, padding 0.2s ease;
}
.orangeCanvas.show{
	margin: 0 auto;
	padding: 10px 10px;
	flex: 1;
    opacity: 1;
}

.orangeButton{
	padding: 10px;
	margin-top: 20px;
	width: 30%;
	min-width: 100px;
	color: white;
	background-color: #875330;
	border: 2px solid #753F1C;
	border-radius: 10px;
	transition: background-color 0.2s ease, border-color 0.2s ease;
}
.orangeButton:hover{
	background-color: #AA5C29;
	cursor: pointer;
	border: 2px solid #843D11;
}
.orangeButton.green{
	background-color: #60C611;
	border-color: #4C990D;
}
.orangeButton.red{
	background-color: #BC301E;
	border-color: #8E261B;
}

.smallButton{
	width: 40px;
    height: 40px;
	font-size: 20px;
	font-family: Consolas;
	text-align: center;
	border-radius: 10px;
	color: white;
	background-color: #222;
	border: 2px solid #565656;
	transition: background-color 0.2s ease, border-color 0.2s ease;
}
.smallButton:hover{
	background-color: #333;
	cursor: pointer;
}

.panelRight {
	display: flex;
	flex-direction: column;
    position: fixed;
    top: 0;
    right: calc(-1 * max(45vw, 510px)); /* Initially off-screen */
	width: 500px;
	max-width: 100%;
    height: 100%;
    background-color: #161616;
	border-left: 2px solid #363636;
    box-shadow: -4px 0 10px #000000A0;
    z-index: 1001;
	opacity: 0;
    transition: right 0.3s ease-in-out; /* Smooth sliding animation */
}

.panelLeft {
	display: flex;
	flex-direction: column;
    position: fixed;
    top: 0;
    left: calc(-1 * max(45vw, 510px)); /* Initially off-screen */
	width: 500px;
	max-width: 100%;
    height: 100%;
    background-color: #161616;
	border-right: 2px solid #363636;
    box-shadow: -4px 0 10px #000000A0;
    z-index: 1001;
	opacity: 0;
    transition: left 0.3s ease-in-out; /* Smooth sliding animation */
}

.panelContent {
    padding: 20px;
	height: 85%;
	overflow-y: auto;
}

.definePocket{
	height: auto;
	display: flex;
	flex-direction: row;
	gap: 10px;
	align-items: center;
	text-align: left;
	padding: 10px;
	margin: 20px auto;
	
	color: white;
	background-color: #222;
	border: 2px solid #565656;
	border-radius: 10px;
	
	opacity: 0;
	transform: translateY(-15px);
	transition: background-color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}
.definePocket:hover{
	background-color: #333;
	cursor: text;
}
.definePocket.show{
	opacity: 1;
	transform: translateY(0);
}

.defineName{
	width: 35%;
	height: 90%;
}

.defineDef{
	width: 50%;
	height: 90%;
}

input[type="checkbox"].orangeCheckbox {
	appearance: none; /* Removes default styling */
	width: 45px;
	height: 20px;
	background-color: #333;
	border: 2px solid #565656;
	cursor: pointer;
	position: relative;
	border-radius: 5px;
	transition: background-color 0.2s ease, border-color 0.2s ease;
}
input[type="checkbox"].orangeCheckbox:hover{
	background-color: #565656;
	border-color: #828282;
}
input[type="checkbox"].orangeCheckbox:checked {
	background-color: #875330;
	border-color: #753F1C;
}
input[type="checkbox"].orangeCheckbox:checked:hover{
	background-color: #AA5C29;
	border-color: #843D11;
}
input[type="checkbox"].orangeCheckbox::before {
	content: "";
	display: block;
	width: 10px;
	height: 10px;
	border-radius: 3px;
	background-color: #565656;
	position: absolute;
	top: 50%;
	left: 4px;
	transform: translateY(-50%);
	transition: background-color 0.2s ease, left 0.2s ease;
}
input[type="checkbox"].orangeCheckbox:hover::before{
	background-color: #828282;
}
input[type="checkbox"].orangeCheckbox:checked::before {
	background-color: #AA5C29;
	position: absolute;
	top: 50%;
	left: calc(100% - 4px - 10px);
	transform: translateY(-50%);
}
input[type="checkbox"].orangeCheckbox:checked:hover::before{
	background-color: #843D11;
}

.orangeLink{
	color: #875330;
	text-decoration: none;
}

.orangeLink:hover{
	color: #AA5C29;
	text-decoration: underline;
}

.orangeLink:visited{
	color: #753F1C;
}

.orangeLink:visited:hover{
	color: #843D11;
}

.diagramImage{
    image-rendering: pixelated;
    image-rendering: crisp-edges;
    width: 100%;
    height: 100%;
    display: block;
	object-fit: contain;
}