/**
 * Reset and base styles only. For components in the application you should use
 * styles imported from JavaScript for each component that uses it. This avoids
 * ending up with a bunch of legacy unused CSS in this file.
 */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  outline: 0;
}

body {
  margin: 0;
  overflow: hidden;
  /* Enable momentum scrolling */
  -webkit-overflow-scrolling: touch;
  font-family: Lato, sans-serif;
  font-size: 14px;
  line-height: 1.42857143;
  /* Prevent text size adjust after orientation change. */
  -webkit-text-size-adjust: 100%;
  color: #333;
  background-color: #fff;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* Style the webkit scrollbar to avoid white background below the shadow in the react menu */
::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

::-webkit-scrollbar-thumb {
    background: rgba(128,128,128,0.5);
    border-radius: 6px;
}


/* LINKS
   ========================================================================= */

/* Clickable items will have a lot of different UI requirements, so there is
   no point defining a style here that might be overridden all the time. */
a {
  color: inherit;
  text-decoration: none;
}
a:active, a:hover {
  outline: 0;
}


/* TEXT
   ========================================================================= */

/* We want to be able to use the heading element that suits the page hierarchy
   best, without worrying about default styling. */
h1, h2, h3, h4, h5, h6 {
  font-size: inherit;
  font-weight: inherit;
}

/* Address style set to `bolder` in Firefox 4+, Safari, and Chrome. */
b, dt, strong, th {
  font-weight: 600;
}

/* Address inconsistent and variable font size in all browsers. */
small {
  font-size: 80%;
}

code, kbd, pre, samp {
  font-family: monospace;
  font-size: 1em;
}


/* FORMS
   ========================================================================= */

/* *Always* use `button` rather than `input type=submit`, since the latter has
   a lot of browser inconsistencies. */
button {
  /* Address `overflow` set to `hidden` in IE 11. */
  overflow: visible;
  user-select: none;
}
button, fieldset, input, textarea {
  background-color: transparent;
  border: 0;
  outline: 0;
}

button, input, optgroup, select, textarea {
  color: inherit;
  font: inherit;
}
textarea {
  overflow: auto;
}

/* Address inconsistent `text-transform` inheritance for `button` and `select`.
   All other form control elements do not inherit `text-transform` values. */
button, select {
  text-transform: none;
}

/* Correct inability to style clickable `input` types in iOS. */
button, input[type="reset"], input[type="submit"], input[type="button"] {
  cursor: pointer;
  -webkit-appearance: button;
  border-radius: 0;
}

button[disabled], html input[disabled] {
  cursor: default;
}

/* Remove default search input styles in Chrome and Safari. */
input[type="search"] {
  -webkit-appearance: textfield;
}
input[type="search"]::-webkit-search-cancel-button, input[type="search"]::-webkit-search-decoration {
  -webkit-appearance: none;
}


/* CONTENT
   ========================================================================= */

iframe {
  border: 0;
}

/* Remove most spacing between table cells. */
table {
  border-collapse: collapse;
  border-spacing: 0;
}

th {
  text-align: left;
}

hr {
  border: 0px solid;
  border-top-width: 1px;
}

svg {
  fill: inherit;
}

/* Being a web-app, we'll mostly use lists in a context without bullets. */
ol, ul {
  list-style: none;
}

/* Remove the extra whitespace that can appead below images */
img {
  vertical-align: middle;
}

label {
  display: inline-block;
}

/* Super and sub script */
sub {
  vertical-align: sub;
  font-size: 0.67em;
  line-height: 0;
}
sup {
  vertical-align: super;
  font-size: 0.67em;
  line-height: 0;
}

/* ReactCSSTransitionGroup starts */
.item-enter {
  opacity: 0.01;
  transition: opacity 1s ease-in;
}

.item-enter.item-enter-active {
  opacity: 1;
}

.item-leave {
  opacity: 1;
  transition: opacity 1s ease-in;
}

.item-leave.item-leave-active {
  opacity: 0.01;
}
/* ReactCSSTransitionGroup ends */

.noselect-nodrag {
  user-drag: none;
  user-select: none;
  -moz-user-select: none;
  -webkit-user-drag: none;
  -webkit-user-select: none;
  -ms-user-select: none;
  -khtml-user-select: none;
  -webkit-touch-callout: none;
}

body.noselect-nodrag #APP {
    overflow: hidden;
}

/* react-collapse animation */
.ReactCollapse--collapse {
  transition: height 500ms;
}
/* --------- */
