* {
  margin: 0;
  padding: 0;
}

canvas.drawing {
  width: 100%;
  height: calc(100vh - var(--toolbar-height) - 1px);
  user-select: none;
}

canvas.text {
  position: absolute;
  top: var(--toolbar-height);
  z-index: 10;
  user-select: none;
}

.tools {
  font-size: .9em;
  user-select: none;
}

.info {
  user-select: none;
}

.mx-1 {
  margin-left: 0.25rem;
  margin-right: 0.25rem;
}

.grid {
  display: grid;
  grid-template-columns: 5fr 1fr;
}

.grid2 {
  display: flex;
  flex-flow: row;
  justify-content: space-between;
}

.flex-column {
  display: flex;
  flex-flow: column;
}

.flex-row {
  display: flex;
  flex-flow: row;
}

.flex-wrap{
  flex-wrap: wrap;
}

.align-center {
  align-items: center;
}

.jcc {
  justify-content: center;
}

.jce{
  justify-content: end;
}

.row {
  display: flex;
  justify-content: center;
}

.text-center {
  text-align: center;
}

.w-25{
  width: 25%;
}

.w-50 {
  width: 50%;
}

.w-60 {
  width: 60%;
}

.w-80 {
  width: 80%;
}

.w-100 {
  width: 100%;
}

.w-50px{
  width: 50px;
}

.w-75px{
  width: 75px;
}

.w-100px{
  width: 100px;
}

.absolute-div {
  position: absolute;
  left: 1rem;
  top: 3rem;
  user-select: none;
}

/* my styles */

.m-flex {
  display: flex;
}

.m-justify-end {
  justify-content: end;
}

.m-alert {
  padding: 1rem;
  background-color: rgb(238, 255, 65);
  margin: 1rem;
  border-radius: 5px;
}

.link{
  color:var(--east-bay-700);
  text-decoration: underline;
}

.small{
  font-size: .75em;
  color:slategray;
}

:root {
  --woodsmoke-50: #f6f6f6;
  --woodsmoke-100: #e7e7e7;
  --woodsmoke-200: #d1d1d1;
  --woodsmoke-300: #b0b0b0;
  --woodsmoke-400: #888;
  --woodsmoke-500: #6d6d6d;
  --woodsmoke-600: #5d5d5d;
  --woodsmoke-700: #4f4f4f;
  --woodsmoke-800: #454545;
  --woodsmoke-900: #3d3d3d;
  --woodsmoke-950: #171717;
  --haiti-50: #eff0fe;
  --haiti-100: #e1e4fe;
  --haiti-200: #c9ccfc;
  --haiti-300: #a8abf9;
  --haiti-400: #8985f4;
  --haiti-500: #7668ec;
  --haiti-600: #674cdf;
  --haiti-700: #593dc5;
  --haiti-800: #49349f;
  --haiti-900: #3e317e;
  --haiti-950: #1a1433;
  --east-bay-50: #f3f5fb;
  --east-bay-100: #e5e7f4;
  --east-bay-200: #d1d7ec;
  --east-bay-300: #b0bce0;
  --east-bay-400: #8b99cf;
  --east-bay-500: #6f7cc2;
  --east-bay-600: #5c63b4;
  --east-bay-700: #5154a4;
  --east-bay-800: #464686;
  --east-bay-900: #3c3d6c;
  --east-bay-950: #282843;
  --bg-slate-100: rgb(241 245 249);
  --bg-slate-200: rgb(232 236 240);
  --bg-slate-300: rgb(221 228 232);
  --bg-slate-400: rgb(212 219 224);
  --bg-slate-500: rgb(204 212 216);
  --bg-slate-600: rgb(193 198 200);
  --color-primary: var(--east-bay-600);
  --color-primary-hover: var(--east-bay-500);
  --color-secondary: var(--woodsmoke-200);
  --color-secondary-hover: var(--woodsmoke-100);
  --color-text-primary: var(--woodsmoke-900);
  --color-text-secondary: #475569;
  --color-text-muted: slategray;
  --color-link: var(--east-bay-700);
  --color-border: #e5e7eb;
  
  /* Tailwind CSS variables for focus states */
  --tw-ring-inset: ;
  --tw-ring-offset-width: 0px;
  --tw-ring-offset-color: #fff;
  --tw-ring-color: rgb(59 130 246 / 50%);
  --tw-ring-offset-shadow: 0 0 #0000;
  --tw-ring-shadow: 0 0 #0000;
  --tw-shadow: 0 0 #0000;
}

.m-btn-accept {
  padding: 0.75rem;
  border-radius: 5px;
  background-color: var(--east-bay-600);
  color: white;
}

.m-btn-accept:hover {
  background-color: var(--east-bay-500);
}

.m-btn-cancel {
  padding: 0.75rem;
  border-radius: 5px;
  background-color: var(--woodsmoke-200);
}

.m-btn-cancel:hover {
  background-color: var(--woodsmoke-100);
}

.m-mx-1 {
  margin-left: 0.5rem;
  margin-right: 0.5rem;
}

.m-mx-2 {
  margin-left: 1rem;
  margin-right: 1rem;
}

.m-my-1 {
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}

.m-my-2 {
  margin-top: 1rem;
  margin-bottom: 1rem;
}

.m-mt-1 {
  margin-top: 1rem;
}

.m-mb-1 {
  margin-bottom: 1rem;
}

.m-mb-05{
  margin-bottom: .5rem;
}

.m-px-1 {
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}

.small-hint {
  font-size: 12px;
  color: var(--woodsmoke-900);
}

@font-face {
  font-family: 'gost_type_a';
  src: url('./fonts/GOST\ type\ A.ttf');
}

.no-select{
  user-select: none;
}

/* ********* bootstrap ********* */
.custom-tooltip{
  --bs-tooltip-bg: var(--bg-slate-500);
  --bs-tooltip-color: var(--woodsmoke-100);
}

/* TAILWIND */

/*
! tailwindcss v3.4.1 | MIT License | https://tailwindcss.com
*/

/*
1. Prevent padding and border from affecting element width. (https://github.com/mozdevs/cssremedy/issues/4)
2. Allow adding a border to an element by just adding a border-width. (https://github.com/tailwindcss/tailwindcss/pull/116)
*/

*,
::before,
::after {
  box-sizing: border-box;
  border-width: 0;
  border-style: solid;
  border-color: #e5e7eb;
}

::before,
::after {
  --tw-content: '';
}

/*
1. Use a consistent sensible line-height in all browsers.
2. Prevent adjustments of font size after orientation changes in iOS.
3. Use a more readable tab size.
4. Use the user's configured `sans` font-family by default.
5. Use the user's configured `sans` font-feature-settings by default.
6. Use the user's configured `sans` font-variation-settings by default.
7. Disable tap highlights on iOS
*/

html,
:host {
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  -moz-tab-size: 4;
  -o-tab-size: 4;
     tab-size: 4;
  font-family: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  font-feature-settings: normal;
  font-variation-settings: normal;
  -webkit-tap-highlight-color: transparent;
}

/*
1. Remove the margin in all browsers.
2. Inherit line-height from `html` so users can set them as a class directly on the `html` element.
*/

body {
  margin: 0;
  line-height: inherit;
}

/*
1. Add the correct height in Firefox.
2. Correct the inheritance of border color in Firefox. (https://bugzilla.mozilla.org/show_bug.cgi?id=190655)
3. Ensure horizontal rules are visible by default.
*/

hr {
  height: 0;
  color: inherit;
  border-top-width: 1px;
}

/*
Add the correct text decoration in Chrome, Edge, and Safari.
*/

abbr:where([title]) {
  -webkit-text-decoration: underline dotted;
          text-decoration: underline dotted;
}

/*
Remove the default font size and weight for headings.
*/

h1,
h2,
h3,
h4,
h5,
h6 {
  font-size: inherit;
  font-weight: inherit;
}

/*
Reset links to optimize for opt-in styling instead of opt-out.
*/

a {
  color: inherit;
  text-decoration: inherit;
}

/*
Add the correct font weight in Edge and Safari.
*/

b,
strong {
  font-weight: bolder;
}

/*
1. Use the user's configured `mono` font-family by default.
2. Use the user's configured `mono` font-feature-settings by default.
3. Use the user's configured `mono` font-variation-settings by default.
4. Correct the odd `em` font sizing in all browsers.
*/

code,
kbd,
samp,
pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-feature-settings: normal;
  font-variation-settings: normal;
  font-size: 1em;
}

/*
Add the correct font size in all browsers.
*/

small {
  font-size: 80%;
}

/*
Prevent `sub` and `sup` elements from affecting the line height in all browsers.
*/

sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

sub {
  bottom: -0.25em;
}

sup {
  top: -0.5em;
}

/*
1. Remove text indentation from table contents in Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=999088, https://bugs.webkit.org/show_bug.cgi?id=201297)
2. Correct table border color inheritance in all Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=935729, https://bugs.webkit.org/show_bug.cgi?id=195016)
3. Remove gaps between table borders by default.
*/

table {
  text-indent: 0;
  border-color: inherit;
  border-collapse: collapse;
}

/*
1. Change the font styles in all browsers.
2. Remove the margin in Firefox and Safari.
3. Remove default padding in all browsers.
*/

button,
input,
optgroup,
select,
textarea {
  font-family: inherit;
  font-feature-settings: inherit;
  font-variation-settings: inherit;
  font-size: 100%;
  font-weight: inherit;
  line-height: inherit;
  color: inherit;
  margin: 0;
  padding: 0;
}

/*
Remove the inheritance of text transform in Edge and Firefox.
*/

button,
select {
  text-transform: none;
}

/*
1. Correct the inability to style clickable types in iOS and Safari.
2. Remove default button styles.
*/

button,
[type='button'],
[type='reset'],
[type='submit'] {
  -webkit-appearance: button;
  background-color: transparent;
  background-image: none;
}

/*
Use the modern Firefox focus style for all focusable elements.
*/

:-moz-focusring {
  outline: auto;
}

/*
Remove the additional `:invalid` styles in Firefox. (https://github.com/mozilla/gecko-dev/blob/2f9eacd9d3d995c937b4251a5557d95d494c9be1/layout/style/res/forms.css#L728-L737)
*/

:-moz-ui-invalid {
  box-shadow: none;
}

/*
Add the correct vertical alignment in Chrome and Firefox.
*/

progress {
  vertical-align: baseline;
}

/*
Correct the cursor style of increment and decrement buttons in Safari.
*/

::-webkit-inner-spin-button,
::-webkit-outer-spin-button {
  height: auto;
}

/*
1. Correct the odd appearance in Chrome and Safari.
2. Correct the outline style in Safari.
*/

[type='search'] {
  -webkit-appearance: textfield;
  outline-offset: -2px;
}

/*
Remove the inner padding in Chrome and Safari on macOS.
*/

::-webkit-search-decoration {
  -webkit-appearance: none;
}

/*
1. Correct the inability to style clickable types in iOS and Safari.
2. Change font properties to `inherit` in Safari.
*/

::-webkit-file-upload-button {
  -webkit-appearance: button;
  font: inherit;
}

/*
Add the correct display in Chrome and Safari.
*/

summary {
  display: list-item;
}

/*
Removes the default spacing and border for appropriate elements.
*/

blockquote,
dl,
dd,
h1,
h2,
h3,
h4,
h5,
h6,
hr,
figure,
p,
pre {
  margin: 0;
}

fieldset {
  margin: 0;
  padding: 0;
}

legend {
  padding: 0;
}

ol,
ul,
menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

/*
Reset default styling for dialogs.
*/

dialog {
  padding: 0;
}

/*
Prevent resizing textareas horizontally by default.
*/

textarea {
  resize: vertical;
}

/*
1. Reset the default placeholder opacity in Firefox. (https://github.com/tailwindlabs/tailwindcss/issues/3300)
2. Set the default placeholder color to the user's configured gray 400 color.
*/

input::-moz-placeholder, textarea::-moz-placeholder {
  opacity: 1;
  color: #9ca3af;
}

input::placeholder,
textarea::placeholder {
  opacity: 1;
  color: #9ca3af;
}

/*
Set the default cursor for buttons.
*/

button,
[role="button"] {
  cursor: pointer;
}

/*
Make sure disabled buttons don't get the pointer cursor.
*/

:disabled {
  cursor: default;
}

/*
1. Make replaced elements `display: block` by default. (https://github.com/mozdevs/cssremedy/issues/14)
2. Add `vertical-align: middle` to align replaced elements more sensibly by default. (https://github.com/jensimmons/cssremedy/issues/14#issuecomment-634934210)
   This can trigger a poorly considered lint error in some tools but is included by design.
*/

img,
svg,
video,
canvas,
audio,
iframe,
embed,
object {
  display: block;
  vertical-align: middle;
}

/*
Constrain images and videos to the parent width and preserve their intrinsic aspect ratio. (https://github.com/mozdevs/cssremedy/issues/14)
*/

img,
video {
  max-width: 100%;
  height: auto;
}

/* Make elements with the HTML hidden attribute stay hidden by default */
[hidden] {
  display: none;
}

/* ========================================
   SPACING UTILITIES
   ======================================== */

/* Padding */
.p-1 {
  padding: 0.25rem;
}

/* Margins */
.mx-0\.5 {
  margin-left: 0.125rem;
  margin-right: 0.125rem;
}

.mb-2 {
  margin-bottom: 0.5rem;
}


/* ========================================
   SIZING UTILITIES
   ======================================== */

.w-4 { width: 1rem; }
.h-4 { height: 1rem; }
.h-5 { height: 1.25rem; }
.w-5 { width: 1.25rem; }
.h-6 { height: 1.5rem; }
.w-6 { width: 1.5rem; }

/* ========================================
   TEXT UTILITIES
   ======================================== */

.text-slate-600 {
  color: var(--color-text-secondary);
}

.text-slate-500 {
  color: #64748b;
}

.text-blue-600 {
  color: #2563eb;
}

.font-bold {
  font-weight: bold;
}


/* ========================================
   VISIBILITY & DISPLAY
   ======================================== */

.hidden {
  display: none;
}

.z-50 {
  z-index: 50;
}

/* ========================================
   BORDERS & BOX MODEL
   ======================================== */

.box-border {
  box-sizing: border-box;
}

.border-solid {
  border-style: solid;
}

.border-gray-200 {
  border-color: var(--color-border);
}

.border-gray-300 {
  border-color: #d1d5db;
}

.rounded {
  border-radius: 0.25rem;
}

/* ========================================
   BACKGROUND COLORS
   ======================================== */

.bg-slate-100 {
  background-color: var(--bg-slate-100);
}

.bg-gray-100 {
  background-color: #f3f4f6;
}

/* ========================================
   HOVER STATES
   ======================================== */

.hover\:bg-slate-200:hover {
  background-color: var(--bg-slate-200);
}

/* ========================================
   FOCUS STATES
   ======================================== */

.focus\:ring-2:focus {
  --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
  --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);

  box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
}

.focus\:ring-blue-500:focus {
  --tw-ring-color: rgb(59 130 246 / 50%);
}

/* ========================================
   LAYOUT UTILITIES
   ======================================== */

.flex {
  display: flex;
}

.items-center {
  align-items: center;
}

.justify-end {
  justify-content: end;
}
.autocomplete-item-hightlight{
  background-color: rgb(255, 255, 143);
}