@import './theme';

body, html {
  height: 100%;
  width: 100%;
  margin: 0;
  padding: 0;
  text-align: center;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
  user-select: none;
  font-family: $font;
  color-scheme: dark;
  background: $surface;
}

html {
  font-size: 16px;
}

@media only screen and (min-width: 2160px) { // 2160x1440
  html {
    font-size: calc(1.1 * 16) * 1px;
  }
}

#root {
  height: 100%;
  width: 100%;
}

* {
  outline: 0;
  border: none;
  line-height: 100%;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
  text-decoration: none;
  list-style: none;
  font-weight: 400;
  font-family: $font;
}

h1, h2, h3, h4, h5, h6, p, a, span, li, small, button {
  line-height: 1.3;
}

button, a {
  display: inline-block;
}

svg {
  display: block;
  max-width: 100%;
}

::selection {
  background: $blurple;
  color: $heading;
}
