/**
* 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 {
  /* To smooth any scrolling behavior */
  -webkit-overflow-scrolling: touch;
  flex-shrink: 0;
  flex-basis: auto;
  flex-grow: 1;
  display: flex;
  flex: 1;
  flex-direction: column;
  margin: 0px;
  padding: 0px;
  /* Allows content to fill the viewport and go beyond the bottom */
  min-height: 100%;
  width: 100%;
  font-family: "proxima soft";
}

/* TODO: We might need to prefix these styles for chrome/safari/firefox compatability, use autoprefixer */

#root {
  margin: auto;
  max-width: 960px;
  position: relative;
}

#loader-container {
  margin: 10px auto 10px auto;
  max-width: 960px;
  left: 0px;
  right: 0px;
  bottom: 0px;
  top: 0px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: absolute;
  background-color: white;
  box-shadow: 1px 1px 5px 2px #0000007f;
  border-radius: 4px;
  flex-direction: column;
}

.loader {
  pointer-events: auto;
  align-items: stretch;
  border: 0px solid black;
  box-sizing: border-box;
  display: flex;
  flex-basis: auto;
  flex-direction: column;
  flex-shrink: 0;
  margin: 0px;
  min-height: 0px;
  min-width: 0px;
  padding: 0px;
  position: relative;
  z-index: 0;
  height: 36px;
  width: 36px;
  animation-duration: 0.75s;
  animation-iteration-count: infinite;
  animation-name: loader-animation;
  animation-timing-function: linear;
}

@keyframes loader-animation {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.tabs {
  display: flex;
  flex: 1;
  flex-direction: row-reverse;
  margin: 10px 0 10px 0;
  box-shadow: 1px 1px 5px 2px #0000007f;
  border-radius: 4px;
}

.tab {
  display: flex;
  flex: 1;
}

.go-logo {
  margin-top: 30px;
  background-size: contain;
  height: 20px;
  cursor: pointer;
  user-select: none;
}

.tab-button {
  display: flex;
  margin-top: 30px;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  font-size: 11px;
  cursor: pointer;
  user-select: none;
}

.tab-button-account {
  display: flex;
  align-items: center;
  flex-direction: column;
  cursor: pointer;
  margin-top: auto;
  margin-bottom: 10px;
}

.stack {
  display: flex;
  flex: 1;
  position: relative;
  width: 100%;
}

#root > .stack {
  margin: 10px 0 10px 0;
  box-shadow: 1px 1px 5px 2px #0000007f;
}

.modal > .stack {
  margin: 0;
}

.screen-wrapper {
  display: flex;
  height: 100%;
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

.screen {
  display: grid;
  flex: 1;
  background-color: #fff;
  border-radius: 4px;
  overflow: hidden;
}

.with-top-bar {
  padding-top: 60px;
}

.with-tab-bar {
  border-radius: 0 4px 4px 0;
}

.tab-bar {
  display: flex;
  flex-direction: column;
  background-color: #fff;
  padding-left: 10px;
  padding-right: 10px;
  border-radius: 4px 0 0 4px;
  border-right: 1px solid #d7d7d9;
}

.top-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid #d7d7d9;
  background-color: #fff;
  font-size: 16px;
  margin: auto;
  max-width: 960px;
  border-radius: 4px 4px 0 0;
  user-select: none;
}

.with-tab-bar > .top-bar {
  border-radius: 0 4px 0 0;
}

.top-bar-left {
  flex: 1;
  justify-content: flex-start;
  display: flex;
  margin: 0 16px;
}

.top-bar-title {
  flex: 1;
  justify-content: center;
  display: flex;
}

.top-bar-right {
  flex: 1;
  justify-content: flex-end;
  display: flex;
  margin: 0 16px;
}

.modal {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  width: 100%;
  height: calc(100vh - 20px);
  margin: 10px 0 10px 0;
  border-radius: 4px;
}

#loader-container {
  margin: 10px auto 10px auto;
  max-width: 960px;
  left: 0px;
  right: 0px;
  bottom: 0px;
  top: 0px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: absolute;
  background-color: white;
  flex-direction: column;
}

.loader {
  pointer-events: auto;
  align-items: stretch;
  border: 0px solid black;
  box-sizing: border-box;
  display: flex;
  flex-basis: auto;
  flex-direction: column;
  flex-shrink: 0;
  margin: 0px;
  min-height: 0px;
  min-width: 0px;
  padding: 0px;
  position: relative;
  z-index: 0;
  height: 36px;
  width: 36px;
  animation-duration: 0.75s;
  animation-iteration-count: infinite;
  animation-name: loader-animation;
  animation-timing-function: linear;
}

@keyframes loader-animation {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.navigation-button {
  color: #6665f6;
  cursor: pointer;
}

.icon-button {
  cursor: pointer;
  height: 32px;
  width: 32px;
}

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: 100%;
}

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;
  background-image: linear-gradient(90deg, #6665f6, #13f1c9);
}

body.dark {
  background-image: linear-gradient(90deg, #6665f6, #213a44);
}

.tab-image {
  height: 32px;
  width: 32px;
}

.selected-tab-text {
  margin-top: 2px;
  color: #6665f6;
  font-weight: bold;
}

.unselected-tab-text {
  margin-top: 2px;
  color: #8e959b;
  font-weight: bold;
}

input:focus {
  outline: none;
  border: none;
  box-shadow: none;
}

select {
  padding: 12px;
  border-radius: 8px;
}

.footer {
  display: flex;
  flex-direction: column;
  font-family: "proxima soft";
  font-weight: 200;
  padding: 1.5em 0;
}

#copyright {
  display: flex;
  justify-content: center;
  font-size: 0.9em;
  color: #f2f2f2;
}

.links {
  display: flex;
  margin: 0.5em auto 0 auto;
}

.links > a {
  padding: 0 0.5em;
  font-size: 0.8em;
  text-decoration: none;
  color: #f2f2f2;
}

.links > a:not(:first-child) {
  border-left: #f2f2f2;
  border-left-style: solid;
  border-width: 1px;
}

/* fix issue in web app for dropdown row in org list */
div[data-testid="ORG_LIST.NETWORK_DROPDOWN"] {
  flex: 1;
}
