a {
    color: #0000EE;
    cursor: pointer;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

p {
    margin-top: 1em;
    margin-bottom: 0;
}

body {
    color: #333;
}

.hide {
    display: none;
}

input {
    border: 1px solid #DFDFDF;
    padding: 5px 10px;
    width: 350px;
}

.params, .help, .request, .results, .divider {
    position: relative;
}

.filters {
    z-index: 2;
    position: relative;
}

.app {
    padding: 20px;
    position: relative;
    display: grid;
    grid-row-gap: 20px;
    grid-template:
        "search  search"
        "params  params"
        "filters nav   "
        "divider divider"
        "request request"
        "results results"  auto / 1fr 300px;
}

/* Divider */

.divider {
    grid-area: divider;
    height: 20px;
    background-color: #f6f6f6;
}

/* Request */

.request {
    grid-area: request;
}

/* Params */

.params {
    grid-area: params;
}

.params-list {
    list-style: none;
    margin: 0;
    padding: 0;

}

.all-params-list {
    -webkit-column-width: 300px;
    -moz-column-width: 300px;
    column-width: 300;
    column-count: 2;
    -webkit-column-count: 2;
    -moz-column-count: 2;
}

.parameter-group {
    padding-bottom: 35px;
}

.param label {
    text-align: right;
    width: 35em;
    line-height: 30px;
    display: inline-block;
}

li.param select {
    width: 370px;
}

li.param + li.param input {
    margin-top: 0;
    display: inline-block;
}

.param .name {
    margin-right: 10px;
}

.param label {
    margin-right: 10px;
}

.param .close {
    margin-left: 0;
    display: inline-block;
}

li.param + li {
    margin-top: 20px;
}

.param .glyphicon {
    margin-right: 10px;
    display: inline-block;
}

.param input {
    font-size: 16px;
    color: #6e6e6e;
}

/* Search bar */

.search-bar {
    grid-area: search;
    margin: 0 auto;
    width: 100%;
}

.search-bar input {
    height: 40px;
    padding: 0 10px;
    width: 80%;
}

/* Param Adder */

/* Help */

.help {
    padding: 10px;
    background-color: #f6f6f6;
}

.help h3 {
    margin-top: 0;
}

ul.help-options {
    list-style: none;
    padding: 0;
    margin: 0;
}

li.help-option + li {
    margin-top: 5px;
}

.help h4 {
    margin: 0;
    padding: 0;
    font-size: 14px;
}

.help p.param-teaser {
    margin: 0;
    padding: 0;
    font-size: 14px;
}

/* Dropdown */

.dropdown {
    display: inline-block;
}

.dropdown button {
    height: 42px;
    margin: 0;
    padding: 0 10px;
    background-color: #2479c3;
    border: none;
    color: white;
    min-width: 160px;
}

.caret {
    border-top: 4px solid white;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    vertical-align: middle;
    display: inline-block;
    margin-left: 8px;
}

.dropdown a {
    color: #6E6E6E;
}

.dropdown-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: none;
    color: #6E6E6E;
    position: absolute;
    min-width: 160px;
    background-color: white;
}

.open .dropdown-menu {
    display: block;
    border: 1px solid #DFDFDF;
    z-index: 9999;
}

.dropdown-menu a {
    padding: 10px;
    display: block;
}

.dropdown-menu a.active,
.dropdown-menu a.active:hover {
    background-color: #4bc6df;
    color: white;
}

.dropdown-menu a:hover {
    background-color: #F6F6F6;
    text-decoration: none;
}

/* Datepicker */

.ui-datepicker {
    padding: 10px;
    background-color: white;
    border: 1px solid #dfdfdf;
    color: #6E6E6E;
}

.ui-datepicker thead {
    font-size: 10px;
}

.ui-datepicker-title {
    text-align: center;
    margin-bottom: 10px;
}

.ui-datepicker-prev {
    position: absolute;
    left: 10px;
}

.ui-datepicker-next {
    position: absolute;
    right: 10px;
    top: 13px;
}

.ui-datepicker-prev {
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-right: 6px solid #6e6e6e;
    vertical-align: middle;
    text-indent: 9999px;
    width: 0px;
    height: 0px;
    width: 0px;
}

.ui-datepicker-next {
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-left: 6px solid #6e6e6e;
    vertical-align: middle;
    text-indent: 9999px;
    height: 0px;
    width: 0px;
}

a.ui-state-default {
    text-decoration: none;
    color: #6E6E6E;
    padding: 8px;
    display: block;
    text-align: center;
}

a.ui-state-default:hover {
    text-decoration: none;
    background-color: #f6f6f6;
}

/* Typeahead */

.params-adder input {
    width: 220px;
}

.tt-query,
.tt-hint {
  width: 220px;
  border: 1px solid #ccc;
  outline: none;
}

.typeahead {
  background-color: #fff;
}

.typeahead:focus {
  border: 1px solid #2479c3;
}

.tt-query {
    -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
    -moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
}

.tt-hint {
  color: #999
}

.react-autosuggest__suggestions-list {
  width: 240px;
  padding: 8px 0;
  background-color: #fff;
  border: 1px solid #ccc;
  border: 1px solid rgba(0, 0, 0, 0.2);
  -webkit-box-shadow: 0 5px 10px rgba(0,0,0,.2);
  -moz-box-shadow: 0 5px 10px rgba(0,0,0,.2);
  box-shadow: 0 5px 10px rgba(0,0,0,.2);
  max-height: 250px;
  overflow-y: auto;
  position: absolute;
}

.react-autosuggest__suggestion {
  padding: 3px 10px;
  font-size: 14px;
}

.react-autosuggest__suggestion--highlighted {
  color: #fff;
  background-color: #2479c3;

}

.react-autosuggest__suggestion p {
  margin: 0;
}

.react-autosuggest__suggestion .name {
    font-size: 16px;
}

.react-autosuggest__suggestion .teaser {
    font-size: 14px;
}

.teaser .tt-highlight {
    font-weight: normal;
}

.tt-dropdown-menu .empty-message {
    padding: 0 10px;
}

/* Glyphicons */

.glyphicon {
    vertical-align: middle;
    color: #dfdfdf;
}

.glyphicon:hover {
    color: grey;
}

/* Help box */

.help-box {
    position: relative;
    margin-top: 10px;
}

.close {
    position: absolute;
    top: 10px;
    right: 10px;
}

.close .glyphicon {
    margin: 0;
}

.help-box h3 {
    font-size: 16px;
}

.hint h4 {
    margin-top: 10px;
}

.hint p {
    margin-top: 0;
    font-size: 12px;
}

/* Welcome help */

.modal-inner {
    position: absolute;
    z-index: 9999;
    top: 0;
    right: 0;
    left: 0;
}

.modal .background {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    z-index: 8000;
    opacity: 0.5;
    background-color: black;
}

.welcome-help {
    width: 560px;
    background-color: white;
    margin: 30px auto;
    padding: 20px;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.5);
    border-radius: 6px;
    position: relative;
}

.welcome-help h1 {
    margin-top: 0;
}

.welcome-help h2 {
    border-top: 1px solid #dfdfdf;
    padding-top: 20px;
}

.welcome-help img {
    text-align: center;
    max-width: 400px;
    max-height: 200px;
}

.welcome-text p {
    text-align: justify;
}

/* Filters */

.filters {
    grid-area: filters;
    display: flex;
}

.params-adder {
    margin-right: 10px;
}

.api-key {
    vertical-align: top;
}

/* Navigation */

.navigation {
    grid-area: nav;
    display: inline-block;
    margin: 20px 10px 0 0;
}

.navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.navigation ul li {
    display: inline;
    margin-left: 10px;
}

.display-toggle {
    width: 20px;
}

/* Feedback */

.feedback {
    background-color: #4bc6df;
    color: white;
    padding: 20px;
}

.feedback-close {
    position: absolute;
    top: 0;
    right: 0;
    padding: 20px;
}

.feedback a {
    color: white;
    text-decoration: underline;
}

.feedback .glyphicon {
    color: white;
}

/* Results */

.results {
    grid-area: results;
}