:root {
  --theme-color: #70ff4d;
}

html,
body {
	width: 100%;
	height: 100%;
	max-width: 100%;
	max-height: 100%;
	overflow-x: hidden;
	overflow-y: scroll;
	margin: 0;
	padding: 0;
	background: #000;
	position: relative;
}

/* body:after { */
/* 	content: ''; */
/* 	position: absolute; */
/* 	top: 0; */
/* 	right: 0; */
/* 	left: 0; */
/* 	width: 100%; */
/* 	height: 40px; */
/* 	background: linear-gradient(to bottom, red 100%, blue 0%); */
/* 	pointer-events: none; */
/* 	z-index: 100; */
/* } */

button {
	-webkit-tap-highlight-color: transparent;
	-webkit-user-select: none;
	user-select: none;
	-webkit-touch-callout: none;
}

button:active {
	background: transparent;
	outline: none;
	border: 0;
}

button:focus {
	outline: none;
}

/* #transform-target { */
/* 	position: relative; */
/* 	width: 100%; */
/* 	height: 100%; */
/* 	overflow: hidden; */
/* } */

*,
*:before,
*:after {
	box-sizing: border-box;
}

canvas#board {
	width: 980px;
	height: 1897px;
	background: transparent;
}

/* #wrapper { */
/* 	width: 980px; */
/* 	height: 1897px; */
/* 	touch-action: none; */
/* 	background: #000; */
/*   touch-action: none; */
/* } */

/* body.disabled #wrapper { */
/* 	opacity: 0.24; */
/* } */

/* .canvas-container { */
/* 	z-index: 2; */
/* 	position: relative; */
/* } */
/**/
/* .canvas-container:after { */
/* 	content: ''; */
/* 	position: absolute; */
/* 	z-index: -1; */
/* 	inset: 0; */
/* 	background-image: */
/*     radial-gradient(circle, rgba(255, 255, 255, 0.25) 2px, transparent 2px); */
/*   background-size: 50px 50px; */
/* 	transition: opacity 0.25s ease-in-out; */
/* 	opacity: 0; */
/* } */
/**/
/* .zoomed .canvas-container:after { */
/* 	opacity: 1; */
/* } */

#toolbar {
	position: fixed;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 10;
	/* padding: 1rem; */
	display: flex;
	flex-direction: row;
	gap: 0.5rem;
	justify-content: space-between;
	border-radius: 10rem;
	/* background: rgb(20, 20, 20); */
	/* padding: 1rem 0; */
	touch-action: manipulation;
	bottom: 1rem;
	align-items: center;
}

/* .ios-blur-black { */
/*   background: rgba(20, 20, 20, 0.75);          /* tint */ */
/*   -webkit-backdrop-filter: blur(18px) saturate(180%); */
/*   backdrop-filter: blur(18px) saturate(180%); */
/**/
/*   border: 2px solid rgba(255, 255, 255, 0.20); */
/*   box-shadow: */
/*     0 8px 24px rgba(20, 20, 20, 0.35); */
/**/
/*   border-radius: 14px;                      /* iOS-y */ */
/* } */

/* .xtoolbar.debug:after { */
/* 	content: ""; */
/* 	width: 100%; */
/* 	height: 40px; */
/* 	border: 4px dashed rgba(255, 0, 0, 0.25); */
/* 	position: absolute; */
/* 	top: 0; */
/* 	bottom: 0; */
/* 	right: 0; */
/* 	left: 0; */
/* 	margin: auto; */
/* } */
/**/

/* .toolbar-button-wrap:first-of-type .toolbar-button { */
/* 	padding-left: 2.75rem !important; */
/* } */
/* .toolbar-button-wrap:last-of-type .toolbar-button { */
/* 	padding-right: 2.75rem !important; */
/* } */

#toolbar > button {
	appearance: none;
	padding: 1.25rem 0;
	margin: 0;
	/* border: 1px solid blue; */
	border: 0;
	font-size: 2.5rem;
	background: transparent;
	flex: 1;
	color: white;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	position: relative;
	overflow: hidden;
	/* border-bottom: 4px solid transparent; */
}

#toolbar > button:first-of-type {
	border-radius: 10rem 0 0 10rem;
}

#toolbar > button:last-of-type {
	border-radius: 0 10rem 10rem 0;
}

.toolbar-button > svg {
	fill: white;
	stroke: white;
}

#toolbar > button > svg {
	/* width: 60px; */
	/* height: 60px; */
	fill: white;
}

#toolbar > button.active {
	/* border-bottom-color: rgba(255, 255, 255, 0.75); */
	/* color: var(--theme-color); */
}

#toolbar > button.active > svg {
	/* fill: var(--theme-color); */
	/* stroke: var(--theme-color); */
}
#toolbar > button.active > svg > path {
	/* fill: var(--theme-color); */
	/* stroke: var(--theme-color) !important; */
}

#toolbar > button[disabled] > svg {
	opacity: 0.25;
}

#toolbar > #pen > svg {
	transform: translateY(14px);
}

#toolbar > #pen > svg > path {
	stroke-width: 3px;
	stroke: white;
}

/* #toolbar > #select > svg { */
/* 	width: 115px; */
/* 	height: 115px; */
/* 	transform: translateY(10px); */
/* } */
/**/
/**/
/* #toolbar > #move > svg { */
/* 	width: 115px; */
/* 	height: 115px; */
/* 	transform: translateY(10px); */
/* } */
/**/
/* #toolbar > #delete > svg { */
/* 	width: 105px; */
/* 	height: 105px; */
/* 	transform: translateY(14px); */
/* } */
/**/
/* #toolbar > #clear > svg { */
/* 	width: 120px; */
/* 	height: 120px; */
/* 	transform: translateY(12px); */
/* } */

body.disabled #toolbar > button > svg {
	opacity: 0.25;
	fill: white;
	stroke: white;
}

/* #widget-target { */
/* 	width: 900px; */
/* 	height: 400px; */
/* 	/* border: 10px dashed rgba(255, 236, 0, 0.5); */ */
/* 	/* border: 10px dashed rgba(112, 255, 77, 0.5); */ */
/* 	border: 10px dashed rgba(255, 255, 255, 0.25); */
/* 	border-radius: 4rem; */
/* 	position: absolute; */
/* 	top: 0; */
/* 	right: 0; */
/* 	bottom: 0; */
/* 	left: 0; */
/* 	margin: auto; */
/* 	pointer-events: none; */
/* 	user-select: none; */
/* 	background: #000; */
/* 	z-index: 1; */
/* } */


/* =========================================================
   iOS-style Range Slider (Safari / WKWebView)
   ========================================================= */

/* ---------- Theme variables ---------- */

:root {
  /* Accent color (RGB for easy alpha control) */
  --slider-accent-rgb: 255, 255, 255;

  /* Track colors */
  --slider-track-bg: white;
  --slider-track-fill: white;

  /* Thumb */
  --slider-thumb-size: 4rem;
  --slider-thumb-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);

  /* Track */
  --slider-track-height: 1rem;
}

/* ---------- Base reset ---------- */

.ios-slider {
  -webkit-appearance: none;
  appearance: none;

  width: 100%;
  height: 28px;                /* minimum comfortable touch height */
  margin: 0;
  padding: 0;

  background: transparent;
  cursor: pointer;

  /* iOS UX fixes */
  touch-action: manipulation;
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;

  /* Prevent iOS zoom-on-focus */
  font-size: 16px;

  /* Filled-track percentage (set from JS) */
  --value: 0%;
}

/* Remove focus ring */
.ios-slider:focus {
  outline: none;
}

/* ---------- Track ---------- */

.ios-slider::-webkit-slider-runnable-track {
  height: var(--slider-track-height);
  border-radius: 999px;

	background: transparent;
  /* background: linear-gradient( */
  /*   to right, */
  /*   var(--slider-track-fill) var(--value), */
  /*   var(--slider-track-bg) var(--value) */
  /* ); */
}

.ios-slider::-webkit-slider-container {
	background: red !important;
}

/* ---------- Thumb ---------- */

.ios-slider::-webkit-slider-thumb {
  -webkit-appearance: none;

  width: var(--slider-thumb-size);
  height: var(--slider-thumb-size);
  border-radius: 50%;

  background: rgba(var(--slider-accent-rgb), 0.95);
  box-shadow: var(--slider-thumb-shadow);

  /* Center thumb vertically on track */
  margin-top: calc(
    (var(--slider-track-height) - var(--slider-thumb-size)) / 2
  );

  transition:
    transform 0.08s ease,
    box-shadow 0.08s ease;
}

.ios-slider:active::-webkit-slider-thumb {
  transform: scale(1.15);
  box-shadow:
    0 2px 6px rgba(0, 0, 0, 0.4);
}


.ios-slider:disabled {
  opacity: 0.4;
  cursor: default;
}

.ios-slider::-webkit-slider-runnable-track {
	height: 1rem;
	/* background: rgba(255, 255, 255, 0.75); */
}
/* .ios-slider::-webkit-slider-thumb { */
/* 	width: 2rem; */
/* 	height: 2rem; */
/* 	background: white; */
/* } */

