@font-face {
    font-family: 'Ubuntu Mono';
    src: url('./font/ubuntu.mono.woff2') format('woff2'),
         url('./font/ubuntu.mono.woff') format('woff'),
         url('./font/ubuntu.mono.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

html, body {
	min-height: 100%;
	margin: 0;
	height: 100%;

	color: white;
	background-color: #273444;

	font-family: 'Ubuntu Mono', Monospace;

	font-size: 1.0rem;
	text-rendering: optimizeLegibility;

	overflow: hidden;
	overscroll-behavior:none;
	touch-action: none; /* Safari zooming chaos prevention */
}

i {
	color: rgb(174, 174, 174);
}

h1, h2, h3, b, p {
	overflow-x: auto;
	scrollbar-color: #4242426a #99999978;
	scrollbar-width: thin;
}

.comment {
	font-size: 15px;
	margin-top: 0.5em;
	margin-bottom: 1.5em;
	color:#b4b4b4;
}

.dark_hr{
	border: 1px solid rgba(160, 160, 160, 0.6);
}

a {
	color:rgb(0, 186, 243)
}

h3 {
	margin-bottom: 5px;
}

h4 {
	margin-top: 1.5em;
}

/* Icon bar */

object {
	pointer-events: none;
}

.icon-text {
    position: absolute;
    top: 45%;
    left: 50%;
    margin: 0;
    transform: translate(-50%, -50%);
	font-weight: bold;
    font-size: 0.8em;
	pointer-events: none;
}

.folder-icon-text{
	word-spacing: 100vw;
	position: absolute;
    top: 65%;
    left: 50%;
    margin: 0;
    transform: translate(-50%, -50%);
	font-weight: bold;
    font-size: 0.4em;
	pointer-events: none;
	text-align: center;
}

.icon-text-dial {
    position: absolute;
    top: 45%;
    left: 50%;
    margin: 0;
	width: 100%;
    transform: translate(-68%, 35%);
	font-weight: bold;
    font-size: 0.7em;
	color: black; 
	text-align: right;
}

.icon-text-dial-unit {
    position: absolute;
    top: 45%;
    left: 50%;
    margin: 0;
	width: 100%;
    transform: translate(-50%, -100%);
	font-weight: bold;
    font-size: 0.5em;
	color: black; 
	text-align: center;
}

.icon-img {
    position: absolute;
    top: 65%;
    left: 50%;
    margin: 0;
    transform: translate(-50%, -50%);
	font-weight: bold;
    font-size: 0.8em;
	pointer-events: none;
	display: none;
}

.icon-stack-img {
    position: absolute;
    top: 50%;
    left: 50%;
    margin: 0;
    transform: translate(-50%, -50%);
	font-weight: bold;
    font-size: 0.8em;
	pointer-events: none;
	z-index: -1;
}

.icon {
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
	width: 65px;
	height: 65px;
	margin: 5px;
	border-radius: 15px;

	background-color: rgba(124, 124, 124, 0.3);

	border: none;
	box-sizing: border-box;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;

	transition: linear  0.2s;
	flex-shrink: 0;
}

.icon img,
.icon object,
.icon svg {
	width: 100%;
	height: 100%;
	object-fit: contain;
	padding: 5px;
}

.icon-warn {
	background-color: rgba(185, 167, 0, 0.37); 
}

.icon-error {
	background-color: rgba(175, 0, 0, 0.397);
}

.icon:hover {
	background-color: rgba(185, 185, 185, 0.3);
	transform: scale(1.05);
}

.status {
	padding: 0;
	margin: 0;
	color: lime; 
	font-size: 11px;
}

.status-warn {
	color: rgb(255, 205, 42); 
	font-weight: bold;
}

.status-error {
	color: rgb(255, 60, 60);  
	font-weight: bold;
}

#icon_container {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
	grid-auto-flow: rows;
	height: 100%;
	justify-content: start;
	align-content: start;
	width: 100%;
	transition: max-height 0.2s ease, opacity 0.2s ease;
	max-height: 100vh;
	gap: 0;
}

.icon-label {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 4px;
}

.icon-label .icon {
	margin: 5px;
}

.icon-label-text {
	font-size: 10px;
	text-align: center;
	color: #cfcfcf;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 65px;
	line-height: 1.2;
}

#hidden_icon_container {
	display: none;
}

#icon_bar {
	background-color: transparent;
	height: 100vh;
	width: 75px;
	overflow: hidden;
	overflow-y: scroll;
	overflow-x: hidden;
	scrollbar-width: none;
	display: block;
	position: fixed;
	top: 0;
	right: 0;
	transition: width 0.1s;
	z-index: 10;
	-ms-overflow-style: none;
}

#icon_bar_toggle {
	position: sticky;
	top: 10px;
	margin: 5px;
	z-index: 11;
	width: 65px;
	height: 65px;
	line-height: 65px;
	text-align: center;
	font-size: 20px;
	user-select: none;
	background-color: rgba(124, 124, 124, 0.3);
	border-radius: 15px;
	border: none;
	cursor: pointer;
	transition: linear 0.2s;
	flex-shrink: 0;
}

#icon_bar_toggle:hover {
	background-color: rgba(185, 185, 185, 0.3);
	transform: scale(1.05);
}

#icon_bar::-webkit-scrollbar {
	display: none;
}

#icon_bar::-webkit-scrollbar-thumb {
	display: none;
}

#icon_bar::-webkit-scrollbar-track {
	display: none;
}


#icon_bar.collapsed {
	width: 16px;
}

#icon_bar.collapsed #icon_container {
	opacity: 0;
	pointer-events: none;
	max-height: 0;
	overflow: hidden;
}

.mode_toggle {
	position: fixed;
	top: 20px;
	left: 20px;
	width: auto;
	height: auto;
	padding: 12px 15px;
	border-radius: 8px;
	background-color: rgba(124, 124, 124, 0.4);
	color: #cfcfcf;
	cursor: pointer;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 6px;
	font-size: 24px;
	z-index: 15;
	transition: background-color 0.2s, transform 0.2s;
	border: 2px solid rgba(185, 185, 185, 0.3);
	user-select: none;
}

.mode_toggle_icon {
	font-size: 24px;
}

.mode_toggle_text {
	font-size: 12px;
	font-weight: bold;
	text-align: center;
	letter-spacing: 0.5px;
}

.mode_toggle:hover {
	background-color: rgba(185, 185, 185, 0.5);
	transform: scale(1.05);
}

.mode_toggle:active {
	transform: scale(0.95);
}


/* Modal windows */

#modal_container{
	height: 100%;
	width: 100%;
	position: fixed;
	left: 0;
	top: 0;
	pointer-events: none;
	z-index: 20;
}

.modal_outer{
	position: absolute;
	display: none; /*flex;*/

	align-items: flex-start;
	justify-content: center;

	left: 0;
	top: 0;

	width: 100%;
	height: 100%;
	min-height: 100%;
	
	overflow: auto;
	scrollbar-color: #424242 #999999;
	scrollbar-width: thin;

	background-color: rgba(0, 0, 0, 0.4);
	pointer-events: auto;
}

.modal_outer::-webkit-scrollbar {
	width: 6px;
}

.modal_outer::-webkit-scrollbar-thumb {
	background-color: #999999;
	border-radius: 3px;
}

.modal_outer::-webkit-scrollbar-track {
	background-color: #424242;
}

.modal_inner {
	position: relative;

	background-color: #273444;
	height: auto;

	border-style: outset;
	border-radius: 15px;
	padding: 15px;

	max-width: 95%;
	min-width: 50%;
	margin: 50px;
	pointer-events: auto;
}

.folder_modal {
	background-color: rgba(0, 0, 0, 0.6);
	border-style: solid;
	border-color:#444444;
	border-width: 6px;
	border-radius: 5px;
	min-width: 70%;
	margin-top: 70px;
}

.folder_icon_container {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
	grid-auto-flow: rows;
	height: 100%;
	justify-content: start;
	align-content: start;
}


/* Media query for non-touch devices (usually desktop) */
@media (pointer: fine) {
	.modal_inner {
		max-width: 50%;
	}
}

.altimeter_canvas {
	pointer-events: auto;
	z-index: 11; 
	border-left: 5px solid #4070bfff;
	width: 110px;
	bottom: 0;
	top: auto;
	background-image: linear-gradient(to right, rgba(0, 0, 0, 0.589) , transparent);
}

.altimeter_arrow {
	pointer-events: none;
	position: absolute;
	bottom: 50%;
	transform: translateY(-50%);
	width: 60px;
	height: 60px;
	z-index: 12; 
}

.navball_canvas {
	pointer-events: none;
	z-index: 12; 
	transform: translate(-50%, -50%);
}
  

/*Add widget cards*/

.widget_entry {
	display: flex;
	align-items: center;
	padding-top: 5px;
	padding-bottom: 5px;
	border-radius: 10px;
	width: 100%;
}

.widget_entry:hover {
	background-color: rgba(185, 185, 185, 0.3);
}

.card_icon {
	flex: 0 0 40px;
	width: 40px;
	height: 40px;
	margin-right: 1rem; /* Add margin to the right of the icon */
}

.card {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	flex: 1; /* This will make the card take the remaining space in the container */
	min-width: 0; /* This is necessary for text-overflow to work properly in flex container */
}

.card_title {
	margin-bottom: 0.5rem;
}

.card_desc {
	width: 100%;
	margin: 0;
	font-size: 0.8rem;
	color: lightgray;
	overflow-x: auto;
	scrollbar-color: #99999978 #4242426a;
	scrollbar-width: thin;
}

.card_desc::-webkit-scrollbar {
	height: 3px;
}

.card_desc::-webkit-scrollbar-thumb {
	background-color: #99999978;
	border-radius: 2px;
}

.card_desc::-webkit-scrollbar-track {
	background-color: #4242426a;
	height: 3px;
}

.live_data_display {
    background: #12181f;
    color: #ffffff; 
    padding: 15px;
    margin: 10px 0;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    font-size: 15px;
    line-height: 1.6; 
	border-left: 3px solid gray;
	margin-bottom: 1rem;
}

.live_data_display p {
    margin-left: 5px;
    margin-top: 5px;
    margin-bottom: 5px;
}


.live_data_indented {
	margin-left: 1.5em;
}


/* Input box */

input[type=color] {
	max-width: 100%;
	min-width: 100px;
	font-size: 1.0rem;
	border-radius: 4px;
	outline: 0;
	height: 24px;
	color: white;
	background-color: #424242;
	font-family: 'Ubuntu Mono', Monospace;
}

input[type=number] {
	max-width: 100%;
	min-width: 100px;
	font-size: 1.0rem;
	border-radius: 4px;
	height: 22px;
	outline: 0;
	color: white;
	background-color: #424242;
	font-family: 'Ubuntu Mono', Monospace;
}

input[type=text] {
	width: 80%;
	font-size: 1.0rem;
	height: 22px;
	outline: 0;
	color: white;
	background-color: #424242;
	font-family: 'Ubuntu Mono', Monospace;
}

.spacer {
	display: block;
	height: 0.8rem;      /* Adjust for desired spacing */
	line-height: 1;    /* Prevent line-height inflation */
	margin: 0;         /* Remove default div margin */
	padding: 0;
}

input[type="checkbox"] {
	appearance: none;
	width: 50px;
	height: 20px;
	background-color: #3f3f3f;
	border-radius: 10px;
	position: relative;
	cursor: pointer;
	outline: none;
	vertical-align: middle;
}
  
input[type="checkbox"]:checked {
	background-color: #52b7ff;
}
  
input[type="checkbox"]:before {
	content: "";
	width: 20px;
	height: 20px;
	background-color: rgb(255, 255, 255);
	border-radius: 50%;
	position: absolute;
	left: 0;
	top: 0;
	transition: all 0.2s;
}
  
input[type="checkbox"]:checked:before {
	left: calc(100% - 20px);
}

.tf_label {
	white-space: nowrap;
	width: 100%;
	margin: 0;
	overflow-x: auto;
	scrollbar-color: #99999978 #4242426a;
	scrollbar-width: thin;
}

.tf_label::-webkit-scrollbar {
	height: 3px;
}

.tf_label::-webkit-scrollbar-thumb {
	background-color: #99999978;
	border-radius: 2px;
}

.tf_label::-webkit-scrollbar-track {
	background-color: #4242426a;
	height: 3px;
}

.tf_details {
	background: linear-gradient(to right, #1D2835, transparent);
	padding: 5px;
	border-radius: 5px;
}

.tf_summary {
	color: lightgray;
	font-style: italic;
}

input[type="range"] {
	-webkit-appearance: none;
	appearance: none;
	width: 100%;
	height: 5px;
	background-color: #bcbcbc;
	border-radius: 5px;
	outline: none;
	cursor: pointer;
	margin-bottom: 15px;
	margin-top: 15px;
}
  
input[type="range"]::-webkit-slider-thumb {
	-webkit-appearance: none;
	appearance: none;
	width: 20px;
	height: 20px;
	background-color: #ffffff;
	border-radius: 50%;
	cursor: pointer;
}
  
input[type="range"]::-moz-range-thumb {
	width: 20px;
	height: 20px;
	background-color: #ffffff;
	border-radius: 50%;
	cursor: pointer;
}

select, .datalist_input {
	max-width: 100%;
	min-width: 100px;
	font-size: 1.0rem;
	border-radius: 4px;
	outline: 0;
	height: 24px;
	color: white;
	background-color: #424242;
	font-family: 'Ubuntu Mono', Monospace;
	margin-top: 5px;
	margin-bottom: 5px;
}

/* Canvas */

canvas {
	width: 100%;
	height: 100%;
	position: absolute;
	top: 0;
	left: 0;
}

#view_container {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	overflow: hidden;
	z-index: 0;
	display: flex;
	align-items: center;
	justify-content: center;
}

#view_container > canvas {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
}

.compressedimage {
	width: 25%;
	height: 25%;

	position: absolute;
	top: 0;
	left: 0;
	border: 3px solid #424242;

	transition: transform 0.2s;  
}

.compressedimage_preview {
	position: fixed;
	bottom: 15vh; 
	left: 50vw; 
	transform: translate(-50px, -50px);
}

/* Details */

details {
	background-color: rgba(0.153, 0.2, 0.26, 0.15); /* Translucent black background */
	padding: 5px; /* Add padding for better visual */
	border-radius: 7px;
	margin-bottom: 7px;
}

/* Style for summary elements */
summary {
	font-weight: bold;
	cursor: pointer; /* Change cursor to pointer on hover */
}

/* Style for content within the details element */
details > *:not(summary) {
	margin-left: 5px; /* Add a slight indent */
	margin-top: 5px; /* Add margin to separate summary from content */
}

/* Buttons */

button {
	max-width: 100%;
	font-size: 1.0rem;

	border: 3px solid #757575; 
	border-radius: 2px;
	font-family: 'Ubuntu Mono', Monospace;

	color: white;
	background-color: #484848;
	margin-bottom: 5px;
}

.export_button {
	margin-right: 10px;
}

.tablinks{
	margin-bottom: 0px;
}

.delete_button {
	border: 3px solid #784b4b; 
	background-color: #4d2626;
	float: right;
}

button:hover{
	transform: scale(1.02);
	text-decoration: none;
	cursor: pointer;
}

@keyframes buttonPressFlash {
	0% {
		border-color: #3a9cff;
		transform: scale(1.15);
		font-size: 1.17em;
		color: #4d9aff;
	}
	100% {
		border-color: transparent;
		transform: scale(1);
		font-size: 1em;
		color: white;
	}
}

.button-press-effect {
	animation: buttonPressFlash 0.25s ease-out;
}


/* Dropdown */

.dropdown-menu {
	position: fixed;
	background: rgba(0, 0, 0, 0.7);
	border-radius: 15px;
	width: 90px;
	z-index: 25;
}

.dropdown-inner {
	background: rgba(100, 100, 100, 0.5);
	border-radius: 15px;
}

.dropdown-item {
	border-radius: 15px;
	display: flex;
	align-items: center;
	padding: 8px;
	padding-top: 15px;
	padding-bottom: 15px;
	cursor: pointer;
	font-size: 14px;
	color: rgb(255, 255, 255);
	transition: background-color 0.2s;
}

.dropdown-item:hover {
	background: #706300;
}

.dropdown-icon {
	width: 16px;
	height: 16px;
	margin-right: 8px;
}

/* Misc */

.logo {
	position: fixed;
	right: 5px;
	bottom: 5px;
	width: max(min(150px, 15%), 70px);
	height: auto;
	pointer-events: none;
	z-index: 1000;
}

.noselect {
	-webkit-touch-callout:none;
	-webkit-user-select:none;
	-khtml-user-select:none;
	-moz-user-select:none;
	-ms-user-select:none;
	user-select:none;
	-webkit-tap-highlight-color:rgba(0,0,0,0);
}

.canvas {
	-webkit-touch-callout:none;
	-webkit-user-select:none;
	-khtml-user-select:none;
	-moz-user-select:none;
	-ms-user-select:none;
	user-select:none;
	-webkit-tap-highlight-color:rgba(0,0,0,0);
}

li {
	padding-bottom: 7px;
}

/* Loader */

.loader {
	display: inline-block;
	border: 7px solid #273444;
	border-radius: 50%;
	border-top: 7px solid #aeaeae;
	width: 15px;
	height: 15px;
	-webkit-animation: spin 0.6s linear infinite; /* Safari */
	animation: spin 0.6s linear infinite;
	margin: 7px;
	position: flex;
}

@-webkit-keyframes spin {
	0% { -webkit-transform: rotate(0deg); }
	100% { -webkit-transform: rotate(360deg); }
}

@keyframes spin {
	0% { transform: rotate(0deg); }
	100% { transform: rotate(360deg); }
}

/*Collapsible buttons*/

.collapsible {
	cursor: pointer;
	border: none;
	text-align: left;
	outline: none;
	font-size: 15px;
	background-color: #282828;
	padding: 10px;
	border: none;
	text-align: left;
	outline: none;
	overflow-x: auto;
	scrollbar-color: #4242426a #99999978;
	scrollbar-width: thin;
	white-space: nowrap;
	width: 100%;
}

.collapsible:hover{
	transform: scale(1.0);
}

.collapsible:after {
	content: '-';
	white-space: nowrap;
	color: #ffffff;
	font-weight: bold;
	float: right;
	margin-left: 5px;
}

.active:after {
	content: "+";
}

.content {
	padding: 0 18px;
	display: none;
	overflow: hidden;
	background-color: #2f2f2f;
	overflow-x: auto;
	scrollbar-color: #4242426a #99999978;
	scrollbar-width: thin;
	padding-top: 15px;
    margin-top: -5px;
}

/* Node manager*/

.node-box {
	background-color: #282828;
	border-left: 6px solid gray;
	border-top-right-radius: 15px;
	border-bottom-right-radius: 15px;
	border-top-left-radius: 6px;
	border-bottom-left-radius: 6px;
	white-space: nowrap;
	margin-bottom: 10px;
	padding-left: 15px;
	height: 40px;
	width:auto;
	min-width: auto;
	display: flex;
	justify-content: space-between;
	align-items: center;
	overflow-x: auto;
	overflow-y: hidden;
	scrollbar-color: #4242426a #99999978;
	scrollbar-width: thin;
}

.action-button {
	border: none;
	background: none;
	cursor: pointer;
	padding-top: 5px;
	display: inline-block
}

.action-button:hover{
	transform: scale(1.00);
	text-decoration: none;
	cursor: pointer;
}

.action-container {
	flex-wrap: nowrap;
	width: 110px; 
	min-width: 110px;
	height: 50px; 
	display: inline-block; 
}

/*Dynamic reconfigure arrow animations*/

@keyframes arrowMove {
	0% {
		transform: translateX(0);
		opacity: 1;
	}
	100% {
		transform: translateX(200px);
		opacity: 0;
	}
}

.arrow {
	position: relative;
	animation: arrowMove 0.5s linear;
	/* Adjust the following based on your design */
	display: inline-block;
	color: rgb(255, 255, 255);
	font-size: 30px;
}

/* Add Menu tabs */
.tab {
	border-style: outset;
	border-radius: 5px;
	display: flex;
    justify-content: space-around;
	overflow: hidden;
	background-color: #273B54;
	margin-bottom: 15px;
}

.tab button {
	background-color: inherit;
	flex-grow: 1;
	float: left;
	border: none;
	outline: none;
	cursor: pointer;
	padding: 7px 7px;
	transition: 0.3s;
	color: lightgray;
}

.tab button:hover {
	background-color: #39567A;
	transform: scale(1);
}

.tab button.active-tab {
	background-color: #496D99;
	font-weight: bold;
	color: white;
}

.tabcontent {
	display: none;
	padding: 6px 12px;
	border: none;
	border-top: none;
}

/* Sprite selector tabs */

.sprite-selector {
    margin: 10px 0;
}

.sprite-tab-buttons {
    border-style: outset;
    border-radius: 5px;
    display: flex;
    justify-content: space-around;
    overflow: hidden;
    background-color: #273B54;
    margin-bottom: 15px;
}

.sprite-tab-btn {
    background-color: inherit;
    flex-grow: 1;
    float: left;
    border: none;
    outline: none;
    cursor: pointer;
    padding: 7px 7px;
    transition: 0.3s;
    color: lightgray;
    font-family: 'Ubuntu Mono', Monospace;
    font-size: 1.0rem;
}

.sprite-tab-btn:hover {
    background-color: #39567A;
    transform: scale(1);
}

.thumbnail-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 10px;
    max-height: 200px;
    overflow-y: auto;
    border: 3px solid #424242;
    padding: 10px;
    background-color: #2f2f2f;
    border-radius: 5px;
    scrollbar-color: #4242426a #99999978;
    scrollbar-width: thin;
}

.thumbnail-gallery::-webkit-scrollbar {
    width: 6px;
}

.thumbnail-gallery::-webkit-scrollbar-thumb {
    background-color: #99999978;
    border-radius: 3px;
}

.thumbnail-gallery::-webkit-scrollbar-track {
    background-color: #4242426a;
}

.thumbnail-item {
    text-align: center;
    cursor: pointer;
    padding: 5px;
    border: 2px solid transparent;
    border-radius: 4px;
    background-color: rgba(124, 124, 124, 0.3);
    transition: transform 0.2s, background-color 0.2s;
}

.thumbnail-item:hover {
    background-color: rgba(185, 185, 185, 0.3);
    transform: scale(1.05);
}

.thumbnail-item.selected {
    border-color: #ffffff;
    background-color: rgba(82, 183, 255, 0.2);
}

.thumbnail-item img {
    width: 64px;
    height: 64px;
    object-fit: contain;
}

.thumb-label {
    display: block;
    font-size: 10px;
    margin-top: 2px;
    color: white;
    font-family: 'Ubuntu Mono', Monospace;
}

/* joystick config */

.axis_config_section {
	margin: 15px 0;
}

.axis_top_row {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 10px;
}

.axis_dropdown_group {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 5px;
	flex: 1;
	
	min-width: 0;
}
.axis_dropdown_group label {
	white-space: nowrap;
}

.axis_dropdown_group select {
	min-width: 0; /* Allows it to shrink when really needed */
}

.axis_icon {
	width: 80px;
	height: 80px;
	flex-shrink: 0;
}

/*

.axis_dropdown_group {
	display: flex;
	align-items: center;
	gap: 6px;
	flex-wrap: wrap;
}

.axis_controls {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.axis_controls label {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 6px;
}
*/

.keyboard_joystick_visual {
    position: relative;
    width: 200px;
    height: 200px;
}

.key_joystick_center {
    width: 200px;
    height: 200px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
	flex-shrink: 0;
}

.key_bind_button {
    background: #333;
    color: white;
    border: 2px solid #555;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-family: 'Ubuntu Mono', Monospace;
    font-weight: bold;
    min-width: 45px;
    min-height: 45px;
    text-align: center;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
	transform: translate(-50%, -50%);
}

.key_bind_button:hover {
    background: #444;
    border-color: #666;
    transform: translate(-50%, -50%) scale(1.05);
}

.key_bind_button.listening {
    background: #005766;
    border-color: #48cbff;
    animation: pulse 1s infinite;
    transform: translate(-50%, -50%) scale(1.1);
}

.key_up {
    top: calc(50% - 55px);
    left: 50%;
}

.key_down {
    top: calc(50% + 55px);
    left: 50%;
}

.key_left {
    top: 50%;
    left: calc(50% - 55px);;
}

.key_right {
    top: 50%;
    left: calc(50% + 55px);
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}