body {
  background-color: #000000;
  font-family: sans-serif;
  /* font-size: 150%; */
  margin: 10%;
  color: #eeeeee;
}
/*
td {
  font-size: 120%;
}
*/
input, select, button, ::file-selector-button {
   /* Use the normal font size.  For this to apply to submit buttons in
      Safari, we also need appearance: none. */
  font-size: 1rem;
  appearance: none;
  /* Use light-on-dark colors */
  color: #eeeeee;
  background-color: #111111;
  /* Match border appearance to Leaflet's buttons */
  border-width: 2px;
  border-color: #888;
  border-style: solid; /* default is inset */
  /* The above does not work for passwords fields in Chrome, but this mostly does */
  color-scheme: dark;
}

/* Make inputs and selects the same size. */
/* The default width of an input is some 197px in Safari. */
input, select {
  width: 200px;
  box-sizing: border-box;
  padding-left: 3px; /* Mostly for the frequency scale select */
}

/* Exception to the above; otherwise file upload dialog is too wide */
input[type="submit"] {
    width: unset;
    min-width: 100px;
}

/* Avoid double borders in the file upload dialog */
input[type="file"] {
    width: 300px;
    border-width: 0px;
}

select {
  corner-radius: 0px;
}

input[type="file"] {
    padding: 2px;
    /* For contract between file selector button and file name */
    background-color: #000000;
}

/* Use rounded corners on all kinds of buttons */
button, input[type="submit"], ::file-selector-button {
    border-radius: 6px;
}

/* Used in credits.html */
ul.plain {
  list-style-type: none;
}
li {
  margin-top: 6px;
  margin-bottom: 6px;
}
div.menubar {
  width: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  position: relative;
  /* To make menus appear in front of the spectrogram controls */
  z-index: 5000;
  font-size: 18px;
}
div.menubar a {
  color: #eeeeee;
}
.menubutton {
  /*padding: 10px;*/
  margin-right: 10px; /* For spacing between buttons, without ofsetting the leftmost one */
  display:inline-block; /* Needed for padding to take effect */
}
.menubutton:hover, .menubutton:focus {
  background-color: #303030;
  cursor: pointer;
  cursor: hand;
}
/* Static menu (created once) */
.menu {
  display: none; /* override by adding class "show" */
  position: absolute;
  background-color: #303030;
  min-width: 12em;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  z-index: 1000;
  padding: 6px;
}
/* Dynamic menu */
.dmenu {
  position: absolute;
  background-color: #303030;
  min-width: 12em;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  z-index: 1000;
}
/* For context dmenus */
.bordered {
  padding: 3px;
  border: 1px solid white;
  border-radius: 4px;
}
.popup {
  /*display:none;*/ /* override by adding class "show" */
  display: inline-block; /* Do not fill the page horizontally */
  background-color: rgba(0, 0, 0, 0.9);
  border:1px solid white;
  max-width: 80%;
  border-radius: 6px;
}
.popup-title {
  /*background-color: rgba(200, 255, 200, 0.5); */
  padding: 10px;
}
/* The dismiss link "X" */
.popup-title a {
  float: right;
  padding: 0px;
  font-size: 18px;
  font-weight: bold;
  color: #eeeeee;
  text-decoration: none; /* No underline */
}
.popup-body {
  margin: 20px;
}
.show {
  display:block;
}
table.login {
  margin: auto;
  border-spacing: 8px;
  border-collapse: separate;
}
/* Used by centered() */
.center-outer {
  /*background-color: rgba(255, 0, 0, 0.5);*/
  display: table;
  width: 100%;
  height:100%;
}
/* Add this when centering over the full page */
.full-page-overlay {
  position: fixed;
  left:0px;
  top:0px;
  z-index:100000;
}
.center-inner {
  display: table-cell;
  text-align: center;
  vertical-align: middle;
}
.playhead-control-strip {
  position: fixed;
  bottom: 0;
  padding: 0;
  margin:0;
  height:20px;
  width: 100%;
  cursor: default;
}
.download-button {
  /*
   * This approach is problematic: Safari ignores
   * the background-color and renders the text as
   * white on white.  The button does not look
   * look great in Chrome, either.
  background-color: rgba(0, 0, 0, 0.5);
  appearance: button;
  -moz-appearance: button;
  -webkit-appearance: button;
  */
  /* Like .leaflet-bar */
  border: 2px solid #888;
  border-radius: 6px;
  padding: 5px;
  margin: 20px;
}

a:link, a:visited, a:hover, a:active {
  /* Disable underlines in links */
  /*text-decoration: none;*/
  color: currentColor;
  /*color: #eeeeee;*/ /* Won't do because we have buttons with a light background */
}

table.db_scale td {
    text-align: center;
}
.material-icons.md-18 { font-size: 18px; }

.text_icon { font-size: 18px; }

h2 {
    margin-top: 2em; /* Makes more.html look better */
}

/* Common style of the mouse position time, frequency, and note fields */
div.leaflet-control-mouseposition span {
    display: inline-block; /* So that width can be set */
}
/* Styles for the individual mouse position fields */
.mouse-time-display {
    width: 10ch;
}
.mouse-fq-display {
    width: 9ch;
    text-align: right;
    padding-right: 3ch;
}
.mouse-note-display {
    width: 8ch;
}
/* For greying out links in disabled menu item */
div.leaflet-disabled a {
    color: #777;
    cursor: default;
    pointer-events: none;
}
table.db_scale td {
    text-align: center;
}
td.label {
    text-align: left;
    /* Add some minimum space between label and value */
    padding-right: 2em;
}
td.value {
    text-align: right;
}
td.unit {
    text-align: left;
}
/* Make the mouse position display not eat mouse events */
div.leaflet-control-mouseposition {
    pointer-events: none;
}
tr.space_below>td {
    padding-bottom: 12px;
}

/* Matching .leaflet-control-mouseposition */
.demo-navigation-link {
    color: rgba(255, 255, 255, 0.7);
    font: 18px "Helvetica Neue", Arial, Helvetica, sans-serif;
}
.op_help {
    font-size: 80%;
    text-align: left;
    max-width: 400px;
}
table.op_params {
    margin-top: 18px;
    margin-bottom: 18px;
}
.svl_label {
    background-color: #000000;
    border: 2pt solid #808080;
    padding: 2pt;
    border-radius: 6pt;
}
