@import "_colors.css";
@import "_sizes.css";
@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 300 400 500 600 700 800;
  src: url("fonts/OpenSans.ttf") format("truetype");
}

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

html {
  font-size: 0.85em;
}

body {
  background-color: var(--ba-dark);
  color: var(--ba-light);
  font-family: "Open Sans", sans-serif;
  height: 100vh;
  line-height: 1.4;
  margin: 0;
  user-select: none;
}

a {
  color: var(--ba-blue);
  text-decoration: none;
}

a:hover,
a:active {
  opacity: 0.8;
  text-decoration: underline;
  -webkit-user-drag: none;
}

img {
  -webkit-user-drag: none;
}

h1,
h2,
h3 {
  align-items: center;
  display: flex;
  margin: var(--margin-100) 0;
  font-variation-settings: "wght" 500;
}

h2 {
  font-size: 1.4rem;
}

h3 {
  font-size: 1.1rem;
  text-transform: uppercase;
}

input[type="number"],
input[type="text"],
select,
textarea {
  appearance: none;
  background-color: var(--ba-border);
  border: var(--border-1) solid var(--ba-border-active);
  border-radius: var(--margin-025);
  color: var(--ba-light);
  height: var(--height-200);
  min-height: var(--height-200);
  max-width: 100%;
  padding: var(--margin-025) var(--margin-050);
  width: 100%;
  flex: 1;
  font-family: inherit;
}

input[type="number"]:focus,
input[type="text"]:focus,
select:focus,
textarea:focus {
  border: var(--border-1) solid var(--ba-lightyellow);
  border-radius: var(--margin-025);
  box-shadow: 0 0 var(--border-1) var(--border-1) var(--ba-lightyellow);
  outline: none;
}

select {
  background-image: url("./images/dropdown.svg");
  background-repeat: no-repeat;
  background-position: center right var(--margin-025);
  background-size: 1rem;
}

table {
  border-spacing: 0;
}

#root {
  height: 100%;
}

::-webkit-scrollbar {
  background-color: var(--ba-dark-mid-hover);
  width: 0.9rem;
  height: 0.9rem;
}

::-webkit-scrollbar-track,
::-webkit-scrollbar-track-piece {
  background-color: transparent;
}

::-webkit-scrollbar-thumb {
  background-color: var(--ba-border);
  border-radius: var(--margin-050);
  border: var(--border-1) solid var(--ba-dark);
}

::-webkit-scrollbar-thumb:hover {
  background-color: var(--ba-border-hover);
}

::-webkit-scrollbar-thumb:active {
  background-color: var(--ba-border-active);
}

::-webkit-scrollbar-corner {
  background-color: var(--ba-dark-mid-hover);
}

::-webkit-resizer {
  background-image: url("./images/resizer.svg");
}
