/* STRUCTURE */
html,
body,
#content,
body.login #content .login {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  /* overflow: hidden */
}

body {
  display: grid;
  grid-template-rows: 36px auto 36px;
}

body.login #content .login {
  background-color: transparent;
  background-repeat: no-repeat;
  background-size: cover !important;
}

body.login #content {
  background-color: transparent;
}

header, footer {
    background: black;
    background-image: linear-gradient(#333, black);
    min-height: 36px;
}

footer {
    padding: 8px;
}

#content {
    background: #333;
    overflow: auto;
}

/* GENERAL FORMAT */

.rounded-light {
    border-radius: 4px;
}

/* HEADER */

#logo {
    margin-top: 4px;
}
header div {
    display: inline-flex;
}

#selector div {
  height: 30px;
  width: 350px;
}

#selector div input {
  height: 30px;
  top: -1px;
  /*border-bottom: none;*/
}

#selector button {
  height: 30px;
  top: -5px;
}

@-moz-document url-prefix() {
  #selector div input {
    height: 30px;
    top: -6px;
  }
  #selector button {
    height: 30px;
    top: 50px;
  }
}



header h2 {
    font-size: 1.6em;
    display: inline-flex;
    margin: 10px 0 0 10px;
    position: relative;
    top: -2px;
    color: #bfbfbf;

}

header select {
  display: none;
}
#header_tools {
    float:right;
    margin: 2px 5px 0 0;
    padding: 0;
    height: 30px;
    list-style: none;
}

#header_tools li {
    float: left;
    margin: 10px 5px 0 0;
}
#header_tools li.icon {
    width: 20px;
    height: 20px;
    font-size: 20px;
    margin: 5px 5px 0 0;
}
#header_tools li span:hover {
    color: #00e2e2;
    /* color: linear-gradient(red, yellow); */
    /* background: -webkit-linear-gradient(#1c4444, #00e2e2); */
    /* background: -webkit-linear-gradient(#00e2e2, #1c4444); */
    background: -webkit-linear-gradient(#00e2e2, #257c7c);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
#header_tools li span {
    color: #efefef;
}

/* FORMS */

input {
    /* background: #303030;
    background: #262626; */
    border: none;
    border-bottom: 1px solid #6A6A6A;
    line-height: 2em;
    color: #CACACA;
    /* margin-bottom: 5px; */
    margin: 0px 20px 10px 0px;
}

button {
    background: #CACACA;
    color: #363636;
    border: #EFEFEF;
    border-radius: 2px;
    padding: 5px 10px;
    font-weight: bold;
}

button:hover {
    background: white;
    color: black;
    cursor: pointer;
}

form .help, form .help-small {
    padding: 10px;
    background: #121212;
    border-radius: 4px;
}

form .help ul, form .help-small ul {
    margin: 0;
}

form .help-small ul {
    font-size:.9em;
    line-height: 1.2em;
}

form .help-small li {
    margin-bottom: 15px;
    background: no-repeat  url('https://cdn4.iconfinder.com/data/icons/alphabet-3/500/Alert_exclamation_exclamation_mark_mark-16.png');
    padding-left: 20px;
    height:16px;
}
form .help-small li:last-child {
    margin-bottom: 0px;
}

form .form-column {
    float: left;
    width: 50%;
    padding: 0 10px;
}
.cesium-infoBox .hint {
  color: #9e9e9e;
  font-size: .65em;
}
.cesium-infoBox .error {
    color: red;
    font-size: .85em;
}

/* LOGIN FORM */

.form.windowed {
    font-size: 1.2em;
    padding: 20px;
    width: 440px;
    min-height: 180px;
    background-color: black;
    color: #EFEFEF;

    position: fixed; /*it can be fixed too*/
    left: 0; right: 0;
    top: 100px;
    margin: auto;

    /*this to solve "the content will not be cut when the window is smaller than the content": */
    max-width: 100%;
    max-height: 400px;
    overflow: hidden;
}

.form {
    font-size: 1.2em;
    padding: 10px 0 40px 20px;
    color: #EFEFEF;
    margin: 20px;
}

.form h2 {
    margin: 0;
    padding-top: 0;
}

#content .form .errorlist {
    padding: 10px;
    margin: 0px 20px 10px 0px;
    background: #121212;
    color: red;
    border-radius: 4px;
    font-size: .9em;
    width: 100%;
}

.login #content .login-form .errorlist li, #content .password-change-form .errorlist li {
    list-style: none;
}

.btn-no-padding{
  padding:0px;
}

#security_info {
	background-color:#1d63cc;
	border-radius: 50%;
	display:inline-block;
	cursor:pointer;
	color:#ffffff;
	font-family:Arial;
	font-size:16px;
	font-weight:bold;
	padding: 0;
    width: 25px;
    height: 25px;
	text-decoration:none;
	text-shadow:0px 1px 0px #0048ff;
}
#security_info:hover {
	background-color:#0022ff;
}
#security_info:active {
	position:relative;
	top:1px;
}

.layer-name{
  word-break: break-all;
}
.c3-chart-lines .c3-target-hidden_bullets .c3-circles {
  display: none;
}
.c3-chart-lines .c3-focused path {
  /* stroke-width: 2px; */
  stroke: #FFF !important;
}
#chart_buttons {
  padding: 0px 0 10px 0;
  text-align: center;
}
#number_of_dates_input {
  width: 50px;
}
.cesium-infoBox button.cesium-button.cesium-fullscreenButton {
  cursor: pointer;
  margin-right: 8px;
  font-size: .8em;
  width: auto;
  display: inline;
}
#chart_buttons i {
  font-size: 20px;
  vertical-align: sub;
}
#chart_buttons .active {
  background: black;
  color: #666;
}

/* SECONDARY MENU */
#secondary-menu {
  position: absolute;
  right: 0px;
  width: 40px;
  bottom: 30px;
  list-style-type: none;
  padding: 0;
  margin: 0;
}
#secondary-menu li {
  float: right;
  margin-top: 4px;
}
#secondary-menu li a {
  position: relative;
  overflow: visible;
  display: inline-block;
}
#secondary-menu li a button {
  padding: 2px;
  overflow: visible;
}
#secondary-menu li a button span {
  font-size: 18px;
}
#secondary-menu li a button .btn-small {
  width: 16.4px;
  height: 16.4px;
  position: absolute;
  left: -8px;
  top: -4px;
  font-size: .8em;
  line-height: 1.4em;
  background: #696969;
  border: 1px solid black;
  color: black;
}
#screenshot_button span.fa-spinner {
  color: #00E2E2;
  -webkit-animation:spin 4s linear infinite;
  -moz-animation:spin 4s linear infinite;
  animation:spin 4s linear infinite;
}

/* MODALS */
body .modal {
  background: rgba(42, 42, 42);
}
body .modal .modal-footer {
  background: #263636;
}
body .modal .modal-footer .btn-flat {
  background: #001515;
  font-weight: bold;
  color: #bacaca;
  border: 1px solid #bacaca;
}
body .modal .modal-footer .btn-flat.modal-close {
  background: #451515;
}
body .modal .modal-footer .btn-flat.disabled {
  display: none;
  background: #203030;
  border: 1px solid #405050;
  color: #405050 !important;
  cursor: default;
}
body .modal .modal-footer .btn-flat.disabled:hover {
  box-shadow: none;
}
body .modal .modal-footer .btn-flat:hover {
  color: #fff;
  fill: #fff;
  background: #48b;
  border-color: #aef;
  box-shadow: 0 0 8px #fff;
}
body .modal.modal-fixed-footer {
  overflow: hidden;
}
.modal .collection .collection-item {
  background: #bacaca;
  color: #263636;
}
.modal .collection .collection-item .title {
  font-weight: bold;
  font-family: Arial;
}
.modal .collapsible-header {
  color: white;
}
.modal .collection .collection-item i {
  vertical-align: middle;
}
.modal .collection .collection-item .date {
  font-size: .7em;
  line-height: 4.6em;
}
.modal .collection .collection-item i.material-icons.cesium-button {
  padding: 4px;
  font-size: 1.4em;
}
.modal .modal-title {
  background: #263636;
  padding: 20px 0 10px 40px;
}
#toollog {
  max-height: 70%;
}
#toollog .collapsible-body {
  background: black;
  padding: 0;
}

@-moz-keyframes spin { 100% { -moz-transform: rotate(360deg); color: #acacac;} }
@-webkit-keyframes spin { 100% { -webkit-transform: rotate(360deg); color: #acacac;} }
@keyframes spin { 100% { -webkit-transform: rotate(360deg); transform:rotate(360deg); color: #acacac;} }

::-webkit-scrollbar {
    width: 10px;
    border: none;
}
::-webkit-scrollbar-track-piece {
    background: #00E2E2;
    -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.3);
}
::-webkit-scrollbar-thumb {
    background: #979ec5;
    border-radius: 5px;
    -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,.5);
}
body .collapsible span.badge {
  margin-top: 4px;
}

body .c3-line-Mean {
  stroke-width: 4px;
}
#log_size {
  z-index: 0;
}

#mouse_coordinates {
  display: inline-block;
  background: #102326;
  opacity: .8;
  color: #c0c0c0;
  margin: 0;
  padding: 2px 10px;
  border-bottom-left-radius: 0px;
  border-bottom-right-radius: 0px;
  min-width: 230px;
  border: 1px solid #444;
  border-bottom: none;
  visibility: hidden;
  max-height: 24px;
}
#content .coordinates-menu {
  display: none;
  margin: 0;
  padding: 4px 4px;
  border-bottom: none;
  max-height: 24px;
  border-bottom-right-radius: 0px;
  border-bottom-left-radius: 0px;
}
#content .coordinates-menu.active {
  background: purple;
  color: mediumpurple;
  border: 1px solid mediumpurple;
  border-bottom: none;
}
#content #follow_me.active {
  background: seagreen;
  color: lightgreen;
  border: 1px solid lightgreen;
  border-bottom: none;
}


.toast.error {
  background: #451515;
}

body .compass {
  top: 50px;
}

@media screen and (max-width: 700px), screen and (max-height: 420px) {
  body .compass {
      display: block;
  }
}



.cesium-infoBox-description {
    font-family: sans-serif;
    padding: 4px 10px;
    color: #edffff;
}
.cesium-infoBox-description table {
    color: #edffff;
}
.cesium-infoBox-defaultTable {
    width: 100%;
    color: #edffff;
}
.cesium-infoBox-defaultTable th {
    font-weight: normal;
    padding: 3px;
    vertical-align: middle;
    text-align: center;
    border-right: 2px solid black;
}
.cesium-infoBox-defaultTable td {
    padding: 3px;
    vertical-align: middle;
    text-align: left;
}
.cesium-infoBox-defaultTable tr:nth-child(odd) {
    background-color: rgba(84,84,84,0.8);
}
.cesium-infoBox-defaultTable tr:nth-child(even) {
    background-color: rgba(84,84,84,0.25);
}

.selector-title {
  margin-top:5px;
  margin-bottom: 5px;
}

.select-dropdown.dropdown-content {
  max-height: 200px;
  overflow-y: auto !important;
}