/**
* Extend the react-native-web reset:
* https://github.com/necolas/react-native-web/blob/master/packages/react-native-web/src/exports/StyleSheet/initialRules.js
*/
html,
body,
#root {
  width: 100%;
  /* To smooth any scrolling behavior */
  -webkit-overflow-scrolling: touch;
  margin: 0px;
  padding: 0px;
  /* Allows content to fill the viewport and go beyond the bottom */
  min-height: 100%;
}

#root {
  flex-shrink: 0;
  flex-basis: auto;
  flex-grow: 1;
  display: flex;
  flex: 1;
}

html {
  scroll-behavior: smooth;
  /* Prevent text size change on orientation change https://gist.github.com/tfausak/2222823#file-ios-8-web-app-html-L138 */
  -webkit-text-size-adjust: 100%;
  height: calc(100% + env(safe-area-inset-top));
}

body {
  display: flex;
  /* Allows you to scroll below the viewport; default value is visible */
  overflow-y: auto;
  overscroll-behavior-y: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -ms-overflow-style: scrollbar;
}

/* Enable for apps that support dark-theme */
/*@media (prefers-color-scheme: dark) {
  body {
    background-color: black;
  }
}*/

form.noscript {
  background-color: #fff;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
}

/* extracted from expo template */
form.noscript div {
  font-size: 18px;
  font-family: Helvetica, sans-serif;
  line-height: 24px;
  margin: 10%;
  width: 80%;
}

form.noscript p {
  margin: 10px 0;
}

form.noscript button {
  background-color: #4630eb;
  border-radius: 100px;
  border: none;
  box-shadow: none;
  color: #fff;
  cursor: pointer;
  font-weight: bold;
  line-height: 20px;
  padding: 6px 16px;
}

textarea:focus,
input:focus {
  outline: none;
}

/* div::-webkit-scrollbar-track {
  -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
  background-color: rgba(255, 255, 255, 0.09);
  border-radius: 10px;
  overflow: hidden;
}

div::-webkit-scrollbar-thumb {
  border-radius: 10px;
  background-image: -webkit-gradient(
    linear,
    left bottom,
    left top,
    color-stop(0.44, rgb(202, 205, 209)),
    color-stop(0.72, rgb(202, 205, 209)),
    color-stop(0.86, rgb(202, 205, 209))
  );
}

div::-webkit-scrollbar {
  width: 10px;
  background-color: transparent;
} */

.windows,
.windows * {
  scrollbar-gutter: auto;
}

.windows::-webkit-scrollbar-track,
.windows *::-webkit-scrollbar-track {
  background-color: rgba(0, 0, 0, 0);
}

.windows::-webkit-scrollbar-thumb,
.windows *::-webkit-scrollbar-thumb {
  background-color: rgba(0, 0, 0, 0);
  border-radius: 6px;
  border: 0px solid #fff;
}

.windows::-webkit-scrollbar-button,
.windows *::-webkit-scrollbar-button {
  display: none;
}

.windows::-webkit-scrollbar,
.windows *::-webkit-scrollbar {
  background-color: rgba(0, 0, 0, 0);
  width: 6px;
  height: 6px;
}

.windows:hover::-webkit-scrollbar-thumb,
.windows *:hover::-webkit-scrollbar-thumb {
  background-color: #a0a0a5;
  border: 0px solid #fff;
}

.windows::-webkit-scrollbar-thumb:hover,
.windows *::-webkit-scrollbar-thumb:hover {
  background-color: #a0a0a5;
  border: 0px solid #f4f4f4;
}
