
html {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--c-global-bg);
  color: var(--c-text);
}

* {
  box-sizing: border-box;
}

*:not(input):not(textarea) {
  -webkit-user-select: none;
  /* disable selection/Copy of UIWebView */
  -webkit-touch-callout: none;
  /* disable the IOS popup when long-press on a link */
}

body {
  width: 100%;
  height: 100%;
  background: var(--c-global-bg);
  display: grid;
  grid-template-rows: 3rem minmax(0,1fr);
  grid-template-columns: minmax(0,1fr);
  grid-template-areas:
        "header"
        "main";
}

.no-overflow {
  overflow-y: hidden;
}

.no-overflow-x {
  overflow-x: hidden;
}

.main {
  position: relative;
}

.absolute {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  height: 0;
}

:focus {
  outline: none;
}

.absolute-fullscreen {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

.fullsize {
  width: 100%;
  height: 100%;
}

.fullsize-flex {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  width: 100%;
  height: 100%;
}

.fullheight {
  height: 100%;
}

/* TODO: TEST ON THE CLIENT and delete grid from body as we have it in here*/
.fullsize [aria-hidden=true], [aria-hidden=true]:not(view-container) {
  display: none;
}

.container {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  height: 100%;
}

.right {
  justify-content: flex-end;
}

.vertical {
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
}

.horizontal, .horizontal-centered {
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
  -ms-flex-direction: row;
  flex-direction: row;
}

.horizontal-centered {
  align-items: center;
}

.space-around {
  -ms-flex-pack: distribute;
  justify-content: space-around;
}

.stretch {
  -webkit-box-flex: 1;
  -ms-flex: 1;
  flex: 1;
  height: unset;
  width: unset;
}

.no-margin {
  margin: 0;
}

.default-padding {
  padding: 1rem;
}

.default-padding-left {
  padding-left: 1rem;
}

.default-padding-right {
  padding-right: 1rem;
}

.default-padding-bottom {
  padding-bottom: 1rem;
}

.default-margin-right {
  margin-right: 1rem;
}

.half-margin-right {
  margin-right: 0.5rem;
}

.half-margin-bottom {
  margin-bottom: 0.5rem;
}

.half-padding {
  padding: 0.5rem;
}

.half-padding-left {
  padding-left: 0.5rem;
}

.half-padding-right {
  padding-right: 0.5rem;
}

.half-padding-top {
  padding-top: 0.5rem;
}

.half-padding-bottom {
  padding-bottom: 0.5rem;
}

.hidden {
  display: none;
}

.overflow-y {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  will-change: transform;
}

.flex {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  align-items: center;
}

.align-left {
  align-items: flex-start;
}

.x-small-text {
  font-size: var(--font-size-x-small);
}

.placeholder-color {
  color: var(--c-placeholder-text);
}

@keyframes spinning {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
.fullsize-stretch {
  -webkit-box-flex: 1;
  -ms-flex: 1;
  flex: 1;
  height: unset;
  width: unset;
  width: 100%;
  height: 100%;
}

.ping {
  --width: 0;
  --height: 0;
  --top: 0;
  --left: 0;
  background: var(--c-item-selected);
  width: calc(var(--width) * 1px);
  height: calc(var(--height) * 1px);
  top: calc(var(--top) * 1px);
  left: calc(var(--left) * 1px);
  position: fixed;
  z-index: 399;
  animation: ping 0.5s infinite both;
  transform-origin: center;
}
@keyframes ping {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0.2;
  }
  100% {
    opacity: 1;
  }
}
