@import "colors.css";
@import "themes.css";

@font-face {
  font-family: 'Noto Sans';
  font-style: normal;
  font-weight: normal;
  src: local('Noto Sans'), local('NotoSans'), url(noto-sans.woff2) format('woff2');
}

@font-face {
  font-family: 'Ubuntu';
  font-style: normal;
  font-weight: normal;
  src: local('Ubuntu Regular'), local('Ubuntu-Regular'), local('Ubuntu'), url(ubuntu.woff2) format('woff2');
}

@font-face {
  font-family: 'Ubuntu';
  font-style: normal;
  font-weight: bold;
  src: local('Ubuntu Bold'), local('Ubuntu-Bold'), url(ubuntu-bold.woff2) format('woff2');
}

html {
  box-sizing: border-box;
}

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

* {
  -webkit-overflow-scrolling: touch;
  /* prevent pinch-to-zoom on iOS devices, only allowing panning */
  touch-action: pan-x pan-y;
}

html,
body,
#app {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  margin: 0;
  padding: 0;
  user-select: none;
  -webkit-tap-highlight-color: var(--tap-color);
  overscroll-behavior: none;
  /* overflow hidden disables "pull-to-refresh" feature on iOS devices */
  overflow: hidden;
}

html,
body,
button,
input,
textarea,
select {
  font-family: "Ubuntu", sans-serif;
}

#app,
.bia-panel {
  background-color: var(--bg-color--default);
  color: var(--font-color--default);
}

button {
  cursor: pointer;
  background: none;
  border: none;
  font-size: 1rem;
  color: var(--font-color--default);
}

button:focus {
  outline: none;
}

.btn {
  background-color: var(--btn-bg-color-main);
  border: 1px solid var(--black);
  /* setting the margin to 0 globally is needed for iOS devices */
  margin: 0;
  padding: 0.5em 1em;
  text-align: center;
  color: var(--btn-color-main);

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

  overflow: hidden;
}

.btn:active,
.btn--active {
  background-color: var(--btn-bg-color-main--active);
}

.btn:disabled,
.disabled {
  background-color: var(--btn-bg-color-main--inactive);
  color: var(--black)
}

h1,
h2,
h3 {
  padding: 0.25rem;
  margin: 0;
}

h1 {
  font-size: 1.5rem;
}

h2 {
  font-size: 1.25rem;
}

[hidden] {
  display: none !important;
}

button:disabled {
  pointer-events: none;
  /* important for vue-mint-slider, if there are disabled buttons on a slide */
  /* otherwise it would not be possible to swipe, because events would be "eaten" */
  /* -------------------------------- from MDN -----------------------------------*/
  /* The element is never the target of pointer events; */
  /* however, pointer events may target its descendant elements if those descendants have pointer-events set to some other value. */
  /* In these circumstances, pointer events will trigger event listeners on this parent element as appropriate on their way to/from the descendant during the event capture/bubble phases. */
}

.btn--small {
  padding: 0.5em;
}

.btn--big {
  font-size: 1.5em;
}

.btn--clickable {
  margin: 0.25em;
}

.btn--borderless {
  border: none;
}

.btn--collapsed {
  border-top: none;
  border-bottom: none;
}

.inp {
  font-size: 1.25rem;
  min-height: 2rem;

  background-color: var(--bg-color--input);
  border: 1px solid var(--border-color--default);
  color: var(--font-color--default);
  padding: 0 0.25em;
  border-radius: 0;
  /* prevents weird default styling on elements */
  -moz-appearance: none;
  -webkit-appearance: none;
  appearance: none;
  /* allows textareas to shrink properly */
  min-width: 0px;
}

.inp:focus {
  outline: 2px solid var(--biaschtln-color);
  background-color: var(--bg-color--input--focus);
}

.inp--big {
  font-size: 2rem;
  min-height: 2.5rem;
}

.inp:focus, .inp:active {
  outline: 2px solid var(--biaschtln-color);
}

select.inp {
  padding: 0.25em 0.5em;
  -moz-appearance: auto;
  -webkit-appearance: auto;
  appearance: auto;

  min-width: 8em;
}

.bia-box-shadow {
  box-shadow: 0 0px 3px rgba(var(--shadow-color--default), 0.25), 0 0px 2px rgba(var(--shadow-color--default), 0.50);
  z-index: 1;
}

.bia-list-item {
  border-bottom: 1px solid var(--bg-color--default);
}

ul.bia-alt {
  list-style: none;
  padding: 0;
  margin: 0;
}