* {
	box-sizing: border-box;
}

html, body {
	width: 100%;
	height: 100%;
	overflow: hidden;
	padding: 0 0 0 0;
	margin: 0 0 0 0;
	font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
	background-color: #f4f4f9;
}

#variableface {
	transition: margin-left 0.3s ease-in-out, width 0.3s ease-in-out;
	margin-left: 0;
	width: 100%;
	height: 100vh;
	position: relative;
}

#variableface.shifted {
	margin-left: 200px;
	width: calc(100% - 200px);
}

#variableface canvas {
	display: block;
	width: 100%;
	height: 100%;
}

/* Toggle Button */
.toggle-btn {
	position: fixed;
	top: 20px;
	left: 20px;
	z-index: 100;
	width: 20px;
	height: 20px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: 3px;
	background-color: white;
	color: black;
	border: 1px solid black;
	border-radius: 4px;
	cursor: pointer;
	transition: all 0.3s ease;
}

.toggle-btn span {
	display: block;
	width: 12px;
	height: 1px;
	background-color: black;
	transition: transform 0.3s ease;
}

.toggle-btn:hover {
	background-color: #f0f0f0;
}

.toggle-btn.panel-open {
	background-color: white;
	left: 170px;
}

/* Side Panel */
#sidebar {
	position: fixed;
	top: 0;
	left: -200px;
	width: 200px;
	height: 100vh;
	background-color: white;
	color: black;
	padding: 16px;
	border-right: 1px solid black;
	box-shadow: 4px 0 15px rgba(0, 0, 0, 0.2);
	transition: transform 0.3s ease-in-out;
	z-index: 99;
	display: flex;
	flex-direction: column;
	overflow-y: auto;
}

#sidebar.open {
	transform: translateX(200px);
}

#sidebar h2 {
	margin-top: 0;
	margin-bottom: 20px;
}

.sidebar-main {
	flex-grow: 1;
}

.sidebar-footer {
	margin-top: auto;
	padding-top: 20px;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

/* Controller Styling */
#controller {
	display: flex;
	flex-direction: column;
	gap: 15px;
	margin-bottom: 20px;
}
.control-group {
	display: flex;
	flex-direction: column;
	gap: 5px;
}
.control-group input {
	width: 100%;
}

/* Emotion List Styling */
#sidebar ul {
	list-style: none;
	padding: 0;
}
#sidebar ul li a {
	color: #333;
	text-decoration: none;
	display: block;
	padding: 4px 0;
}
#sidebar ul li a:hover {
	color: #000;
	text-decoration: underline;
}

/* Legacy styles */
#topleft {
	position: absolute;
	z-index:2;
	top:4px;
	left:4px;
}
#topright {
	position: absolute;
	z-index:1;
	top:4px;
	right:4px;
	width:75px;
	height:75px;
	text-align: right;
}
#bottomleft {
	position: absolute;
	bottom:4px;
	left:4px;
}
#bottomright {
	position: absolute;
	bottom:4px;
	right:4px;
}
.voyc { width:4rem;}
.git { width:3rem; }

#command-input {
	width: 100%;
	padding: 5px;
	box-sizing: border-box;
	margin-top: 20px;
}
